AgentSkillsCN

linear-uploads

从Linear问题中下载附件与图片。当您从Linear的评论或描述中获取截图、图片或文件附件时,即可使用此服务。

SKILL.md
--- frontmatter
name: linear-uploads
description: Download attachments and images from Linear issues. Use when fetching screenshots, images, or file attachments from Linear comments or descriptions.
allowed-tools: Bash

Linear Uploads

Download attachments and images from Linear issues using linear-cli.

Download to File

bash
# Download image/attachment to file
linear-cli up fetch "https://uploads.linear.app/..." -f image.png

# Download screenshot
linear-cli up fetch "https://uploads.linear.app/abc/def/screenshot.png" -f /tmp/screenshot.png

Output to Stdout

bash
# Pipe to other tools
linear-cli up fetch "https://uploads.linear.app/..." | base64

# Pipe to file
linear-cli up fetch "https://uploads.linear.app/..." > file.png

Finding Upload URLs

Upload URLs are found in:

  • Issue descriptions
  • Comments (use linear-cli cm list ISSUE_ID --output json)

URLs follow pattern: https://uploads.linear.app/{org}/{upload}/{filename}

Tips

  • Requires valid Linear API key
  • Use -f / --file to specify output filename
  • Without -f, outputs raw bytes to stdout (for piping)

When to Use Each Mode

Use -f (file) when you need to view the image:

bash
# Download to /tmp, then use Read tool to view
linear-cli up fetch "https://uploads.linear.app/..." -f /tmp/screenshot.png
# Then: Read tool on /tmp/screenshot.png (Claude is multimodal)

Use stdout when piping to other CLI tools:

bash
# Pipe to base64, imagemagick, etc.
linear-cli up fetch "https://uploads.linear.app/..." | base64