Skip to content
Skills Library
Programming · Tool integration

Linear Attachments

/Linear Attachments

This skill should be used when uploading files to Linear, linking external URLs as attachments, or downloading existing attachments with auth. Activates on "linear attachment", "linear file upload", "fileUpload mutation", "attachmentLinkCreate".

Repository
claude ↗
Licence
MIT
Last repository change
22.10.2026

Assessment and security

90/ 100Class: good
Format15 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
4
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

This skill should be used when uploading files to Linear, linking external URLs as attachments, or downloading existing attachments with auth. Activates on "linear attachment", "linear file upload", "fileUpload mutation", "attachmentLinkCreate".

Triggers from the description

linear attachmentlinear file uploadfileUpload mutationattachmentLinkCreate
Original author description

This skill should be used when uploading files to Linear, linking external URLs as attachments, or downloading existing attachments with auth. Activates on "linear attachment", "linear file upload", "fileUpload mutation", "attachmentLinkCreate".

How it works

  1. Two flavours
  2. File upload (3-step)
  3. Multipart for large files
  4. Link attachments
  5. Download with auth
  6. Bridge fan-out
  7. Security notes
Original SKILL.md headings · 94 lines, 392 words
SKILL.md preview
---
name: Linear Attachments
description: This skill should be used when uploading files to Linear, linking external URLs as attachments, or downloading existing attachments with auth. Activates on "linear attachment", "linear file upload", "fileUpload mutation", "attachmentLinkCreate".
version: 1.0.0
allowed-tools:
  - Read
  - Grep
  - Glob
  - Bash
---

# Linear Attachments

References:
- Attachments overview: https://linear.app/developers/attachments
- File-storage auth: https://linear.app/developers/file-storage-authentication
- How-to upload: https://linear.app/developers/how-to-upload-a-file-to-linear

## Two flavours

| Type | Storage | Use case |
|------|---------|----------|
| File attachment | Linear S3 (pre-signed) | screenshots, logs, design files |
| Link attachment | External URL only | GitHub PR, Figma, Notion, Loom |

## File upload (3-step)

```ts
// 1. Reserve upload URL
const reservation = await client.fileUpload({
  contentType: "image/png",
  filename: "screenshot.png",
  size: file.length
});
// { uploadFile: { uploadUrl, headers: [{key,value}], assetUrl } }

// 2. PUT bytes
await fetch(reservation.uploadUrl, {
  method: "PUT",
  body: file,
  headers: Object.fromEntries(reservation.headers.map(h => [h.key, h.value]))
});

// 3. Attach to issue
await client.attachmentCreate({
  issueId,
  url: reservation.assetUrl,
  title: "Screenshot",
  contentType: "image/png"
});
```

Helper in `lib/attachment-upload.ts`:
```ts
export async function uploadFileToLinear(
  client: LinearClient,
  issueId: string,
  filePath: string,
  title?: string
): Promise<string>;  // returns attachment ID
```

## Multipart for large files

For files >50MB:
- Linear's pre-signed URL supports multipart S3 uploads
- Split into 5MB parts, PUT each with `partNumber` query param
- Complete with `POST ?uploads` to finalise

Most use cases stay under 50MB; only logs and video do this.

## Link attachments

```ts
await client.attachmentLinkCreate(issueId, "https://github.com/org/repo/pull/42", "PR #42");
```

Linear infers preview from URL pattern. Supported: GitHub PR / issue / commit, Figma, Notion, Loom, Vimeo, Slack thread, generic OG-rich pages.

## Download with auth

Asset URLs require the same Linear token in `Authorization: Bearer <token>`. Don't share these URLs publicly — they expire after 7 days but exposing during that window is a leak.

```ts
const res = await fetch(assetUrl, {
  headers: { Authorization: `Bearer ${process.env.LINEAR_API_KEY}` }
});
const buffer = Buffer.from(await res.arrayBuffer());
```

Or, mint a short-lived signed URL through your own service if you need to share with end users.

## Bridge fan-out

- **Harness Code**: file attachments are linked (not copied) to the linked PR via a comment with the asset URL — the URL is auth-required, so reviewers must be Linear members.
- **GitHub**: where Linear Diffs are enabled, PR context renders natively; attachments still link by asset URL.

## Security notes

- Validate content-type before declaring it (don't trust user input)
- Cap upload size at the layer above (usually 100MB)
- Strip EXIF from images if client-side is feasible
- Don't pass user file bytes through your backend; redirect them to Linear's pre-signed URL directly

Versions

The database has no other skills named Linear Attachments.

Database snapshot: 13.11.2026 · package version c514d9d701be (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100gh-attach
    Upload and download GitHub user-attachments (screenshots, PDFs, zips, videos) from the terminal; use when asked to attach or embed a file in a PR, issue, or comment, or download an attachment URL.
  • 100gh-attach
    Upload and download GitHub user-attachments (screenshots, PDFs, zips, videos) from the terminal; use when asked to attach or embed a file in a PR, issue, or comment, or download an attachment URL.
  • 100sendmux-attachments
    Use Sendmux attachment workflows without wasting model context on base64. Use when uploading, downloading, reading, forwarding, or sending email attachments through Sendmux MCP, CLI, SDKs, or direct HTTP, especially when choosing file_path vs presigned upload URL vs inline…
  • 100gh-attach
    Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after…
  • 100qubrics-attachments
    Use Qubrics attachment workflows without wasting model context on base64. Use when uploading, downloading, reading, forwarding, or sending email attachments through Qubrics MCP, CLI, SDKs, or direct HTTP, especially when choosing file_path vs presigned upload URL vs inline…
  • 100linear-install-auth
    Install and configure Linear SDK/CLI authentication. Use when setting up a new Linear integration, configuring API keys, or initializing Linear in your project. Trigger with phrases like "install linear", "setup linear", "linear auth", "configure linear API key", "linear SDK setup".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.