zer09/pi-config.bak/linear-cli

Claude Code and agent skill by zer09/pi-config.bak

Trust tier 3
  • community
Source check pending

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-cli

SKILL.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 linear command. Verify with linear --version; if missing, suggest npx @schpet/linear-cli instead 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 token writes 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> --help or 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.md or 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

bash
linear --version
linear --help
linear issue --help
linear issue view --help
linear team list

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:

Issue and comment content

For Markdown descriptions or comment bodies, prefer file-based flags:

bash
linear issue create --title "<title>" --description-file <description.md>
linear issue update <ISSUE-ID> --description-file <description.md>
linear issue comment add <ISSUE-ID> --body-file <comment.md>

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 list requires a sort order: pass --sort manual or --sort priority, or configure issue_sort / LINEAR_ISSUE_SORT.
  • issue list usually needs --team <key> unless team inference is verified.
  • --no-pager is only supported on issue list; do not pass it to commands like project list.

GraphQL fallback

Prefer first-class CLI commands. Use linear api only when the CLI does not expose the needed read or mutation.

bash
linear schema -o "${TMPDIR:-/tmp}/linear-schema.graphql"
rg -n "type Issue|cycle" "${TMPDIR:-/tmp}/linear-schema.graphql"

Pass GraphQL queries with variables through heredoc stdin, especially when a query contains non-null markers such as String!:

bash
linear api --variable teamId=<team-id> <<'GRAPHQL'
query($teamId: String!) { team(id: $teamId) { name } }
GRAPHQL

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zer09/pi-config.bak/linear-cli/badge)](https://verified-skill.com/skills/zer09/pi-config.bak/linear-cli)

Something wrong with this skill or its page? Tell us.