zer09/pi-config.bak/linear-cli
Claude Code and agent skill by zer09/pi-config.bak
- community
Checking that the SKILL.md file is still in the repository.
Manage Linear from the terminal with the local `linear` CLI. Use for reading/searching issues, teams, projects, cycles, labels, documents, and GraphQL API data, or for drafting/running Linear mutations only when the user explicitly requests the exact hosted-service write.
Install
npx vskill@latest install zer09/pi-config.bak/linear-cliSKILL.md
The same SKILL.md was published earlier as zer09/pi-config.bak/linear-cli.
Linear CLI
Use the local linear command for Linear reads and carefully gated writes. Linear is an external hosted service: stay read-only unless the user explicitly requests the exact create, update, delete, comment, assign, label, attach, link, relation, close, reopen, auth, or other mutation.
Core rules
- Prefer the installed
linearcommand. Verify withlinear --version; if missing, suggestnpx @schpet/linear-cliinstead of installing unless the user asks. - Use Context Mode for read-only commands that may exceed 20 lines: issue searches, schema output, GraphQL JSON, comments, documents, or generated help.
- Before any mutation, verify the target identifier, team/project/workspace, command, flags, and body file. If the user did not request that exact mutation, provide a command draft instead of running it.
- Never print tokens.
linear auth tokenwrites a secret to stdout; do not run it in a way that enters the transcript, logs, shell history, or committed files. - Do not guess flags or required fields. Check
linear <command> --helpor the local reference files before syntax-sensitive answers.
Hosted mutation guard handling
When a Linear mutation is blocked with a message that begins Hosted-service mutation blocked: Linear ..., treat it as an expected Pi hosted-service mutation guard block, not as a Linear CLI, issue, GraphQL, or reference problem.
- Do not load
references/issue.mdor other command references solely to diagnose that guard block. - Read the exact
/authorize-hosted-mutation ...command from the blocked warning. - Ask the user whether to authorize and retry that exact blocked Linear mutation. Include the exact authorization command and target/action in the question.
- After authorization is granted, retry the unchanged blocked command within 10 minutes. If the retry then fails with a non-guard Linear error, load the smallest command reference needed.
Discovery workflow
Use linear team list or project/cycle list commands to resolve identifiers before writes. Some commands infer team from repository config, but do not rely on inference for mutations.
Reference navigation
Start with commands, then open the smallest command reference needed:
- auth - authentication and identity
- issue - issues, comments, links, relations, agent sessions
- team, project, cycle, milestone
- initiative, initiative-update, project-update
- label, document, config
- schema, api - GraphQL fallback
- organization-features - curated examples for organization workflows
Issue and comment content
For Markdown descriptions or comment bodies, prefer file-based flags:
Use inline --description or --body only for simple one-line text. File flags preserve formatting, avoid shell escaping issues, and prevent literal \n from appearing in Linear.
Known gotchas:
issue listrequires a sort order: pass--sort manualor--sort priority, or configureissue_sort/LINEAR_ISSUE_SORT.issue listusually needs--team <key>unless team inference is verified.--no-pageris only supported onissue list; do not pass it to commands likeproject list.
GraphQL fallback
Prefer first-class CLI commands. Use linear api only when the CLI does not expose the needed read or mutation.
Pass GraphQL queries with variables through heredoc stdin, especially when a query contains non-null markers such as String!:
For JSON processing, run the command inside Context Mode and print only the derived fields. Avoid direct curl unless full HTTP control is required and the user explicitly requested the operation.
Maintenance
Update this Local Skill using ../../../docs/skills/linear-cli-update-process.md. Preserve the local invariants in ../../../docs/skills/local-skill-update-invariants.md and keep generated command catalogs in references/, not in this runtime file.
Security
- Security scanPassed, 90 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 repositoryCheckingagent/skills/linear-cli/SKILL.md
Popularity
- 7-day trend score
- 0
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/zer09/pi-config.bak/linear-cli)