nearai/ironclaw/linear
Claude Code and agent skill by nearai/ironclaw
- community
Checking that the SKILL.md file is still in the repository.
Linear issue tracker API integration. Covers first-use identity bootstrap (viewer + teams cached), raw GraphQL for list/search/create/update, and the rules for handling "my issues" / "assigned to me" requests.
Install
npx vskill@latest install nearai/ironclaw/linearSKILL.md
The same SKILL.md was published earlier as nearai/ironclaw/linear.
Linear API Skill
You have access to the Linear GraphQL API via the http tool. Credentials are automatically injected — never construct Authorization headers manually. When the URL host is api.linear.app, the system injects Authorization: {linear_api_key} transparently (no Bearer prefix — Linear API keys are sent raw).
Identity bootstrap (first use)
Linear's API key does not tell you who the user IS inside Linear. Before running any "my issues" / "assigned to me" / "my tickets" request, make sure the user's Linear identity is cached. This avoids re-fetching viewer on every request and makes filter-by-assignee queries deterministic.
Cache file
Path: context/intel/linear-identity.md
Shape:
Bootstrap flow
memory_read("context/intel/linear-identity.md"). If the file exists andstale_afteris in the future, use it and stop.- If missing or stale, run one GraphQL call:
`` query { viewer { id name displayName email } teams(first: 50) { nodes { id key name } } } ``
- Write the cache via
memory_writewithstale_after= today + 30 days. - If the returned team list has exactly one team, record it as
Default team. If more than one, ask the user once: "I see teams ENG, PROD, OPS. Which one do you default to for new issues?" and store the answer. - On HTTP 401 or an
AuthenticationErrorGraphQL error, invalidate the cache and re-prompt the user to check their API key — do not silently retry.
Using the cached identity
- "list my issues" / "what's assigned to me" → filter by
assignee: { id: { eq: "<cached user_id>" } }, not byassignee: { isMe: true }(theisMefilter is not universally available andviewerround-trips are wasteful). - "create an issue in my team" → use cached
Default teamid without asking. - "create an issue in <team name>" → match against cached team names; ask only if no match.
- Skills that import external work into Linear must consume this cache rather than re-resolving identity per run.
API Patterns
Linear uses a single GraphQL endpoint: https://api.linear.app/graphql
All requests are POST with a JSON body containing query and optional variables.
List Issues
List Issues Assigned to the User (uses identity cache)
Never pass viewer.id inline from a fresh round-trip when the cache is valid — consult context/intel/linear-identity.md.
Get Issue by Identifier
Search Issues
Create Issue
List Teams (to get teamId for issue creation)
Update Issue State
Response Handling
- Linear returns
{"data": {...}}on success,{"errors": [...]}on failure. - Issue identifiers look like
ENG-123(team key + number). - Always check for
errorsin the response before processingdata. - GraphQL errors include a
messageand optionalextensionswith error codes.
Common Mistakes
- Do NOT add an
Authorizationheader — it is injected automatically. - Always use
POSTmethod — Linear's API is GraphQL only. - The
idfield is a UUID, theidentifierfield is human-readable (e.g.,ENG-42). - Use
issueSearchfor text search, notissueswith a filter (text search is separate). - When creating issues, you MUST provide
teamId. List teams first if unknown.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/internal/archived-skills/linear/SKILL.md
Popularity
- Repository stars
- 12,631
- Repository forks
- 1,481
- 7-day trend score
- 47
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nearai/ironclaw/linear)