plugins/linear-orchestrator/skills/linear-attachments/SKILL.md
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".
npx skillsauth add markus41/claude Linear AttachmentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
References:
| Type | Storage | Use case | |------|---------|----------| | File attachment | Linear S3 (pre-signed) | screenshots, logs, design files | | Link attachment | External URL only | GitHub PR, Figma, Notion, Loom |
// 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:
export async function uploadFileToLinear(
client: LinearClient,
issueId: string,
filePath: string,
title?: string
): Promise<string>; // returns attachment ID
For files >50MB:
partNumber query paramPOST ?uploads to finaliseMost use cases stay under 50MB; only logs and video do this.
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.
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.
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.
driveItem upload. The Planner task references field gets the OneDrive URL.development
Enhanced plan-authoring skill with Pre-Writing context gathering, task metadata, non-TDD templates, Red Flags, telemetry, and an automated plan linter. Use when you have a spec or requirements for a multi-step task, before touching code.
tools
Documentation intelligence engine with graph-based API docs, algorithm library, and drift detection
tools
Ultraplan cloud planning — kick off a plan in the cloud from your terminal, review and revise in the browser, then execute remotely or send back to CLI
tools
--- name: mcp description: Configure MCP servers for Claude Code — stdio vs HTTP, authentication, Tools/Resources/Prompts distinction, channels (CI webhook, mobile relay, Discord bridge, fakechat), and cost of always-loaded tools. Use this skill whenever adding an MCP server, debugging connection issues, choosing between MCP Tools vs Prompts vs Resources, installing channel servers, or managing .mcp.json. Triggers on: "MCP server", "mcp config", "add Obsidian MCP", "install context7", "channels"