Agent skill

Linear CLI

by Peiiii in Peiiii/nextclaw

A skill your agent uses when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write…

MITAuto-check passed

Install Linear CLI

skills CLI
$ npx skills add Peiiii/nextclaw --skill linear-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Peiiii/nextclaw linear-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Peiiii/nextclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/linear-cli .claude/skills/linear-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
linear-cli
GitHub stars
260
Token cost
~1.6k tokens
SKILL.md length
814 words
Files
2
Skills in repo
70
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write…

  • Works in 6 steps: Classify the task → Check whether the CLI exists → Confirm CLI version → …
  • The user wants to list
  • SKILL.md covers Overview, What This Skill Covers, What This Skill Does Not Cover and First-Use Workflow, plus 3 more sections
  • Calls brew, npx and pnpm

What it does

Linear CLI is an agent skill from Peiiii/nextclaw. Use when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write boundaries.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `marketplace.json`).

It works with Linear. The repository describes itself as: A human-centered long-term AI partner—not a task-centered assistant. The licence is MIT.

When your agent uses it

  • The user wants to list
  • Update Linear issues from the terminal via schpet/linear-cli
  • Including setup
  • Safe read/write boundaries

Example prompts

  • “/linear-cli”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Classify the task
  2. Check whether the CLI exists
  3. Confirm CLI version
  4. Authentication and configuration
  5. Readiness check
  6. Respect “current issue” rules

What it can do on your machine

Read from SKILL.md and the folder at commit 973722e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • brew
    • npx
    • pnpm
    • bunx
    • deno

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Linear CLI loads about 1.6k tokens when it runs. Until then it costs about 49 tokens; SKILL.md has 814 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~49
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Peiiii/nextclaw at commit 973722e, republished under its MIT licence (© Peiiii). 814 words, ~1,557 tokens.

Download SKILL.mdSave it as .claude/skills/linear-cli/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
linear-cli
description
Use when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write boundaries.

Linear CLI (schpet/linear-cli)

Overview

Use this skill to help the user work through a local linear installation from inside NextClaw.

This skill is intentionally decoupled:

  • The skill owns explanation, onboarding, readiness checks, workflow choice, and risk handling.
  • The linear CLI owns actual execution against Linear’s API and the user’s git or Jujutsu workspace.

From the user’s point of view, the experience should feel complete:

  • install the CLI if needed,
  • ensure authentication and project configuration,
  • verify readiness with observable commands,
  • then run the real task.

Do not pretend the environment is ready when it is not.

What This Skill Covers

  • Issue workflows: list, view, start, create, update, delete, comments, PR helpers (when gh is available as documented upstream).
  • Team, project, milestone, and document commands exposed by the installed CLI.
  • Git branch–based “current issue” semantics and Jujutsu Linear-issue trailers when the user uses jj.
  • First-use setup: API key, linear auth login, and linear config in the target repository.
  • Readiness checks and bounded troubleshooting.

What This Skill Does Not Cover

  • Inventing flags or subcommands that do not appear in linear --help or the installed CLI help for the relevant subcommand.
  • Claiming Linear workspace permissions or plan limits the user does not have.
  • Silently bypassing missing authentication or broken configuration.
  • Silently triggering destructive or write actions without explicit user confirmation.
  • Treating third-party CLI behavior as native NextClaw behavior.

First-Use Workflow

When the user asks for a linear-powered task, follow this order.

1. Classify the task

Classify the task into one of these:

  • read-only (view, list, print id/url/title),
  • write (create/update/delete issues, start work, comments, milestones, documents),
  • VCS-assisted (branch creation, issue binding).

If the task does not fit what the CLI supports, say so clearly.

2. Check whether the CLI exists

Run:

bash
command -v linear

If missing, explain that the CLI must be installed locally first. Prefer one of these install paths and stay consistent with the user’s platform and package preferences:

  • Homebrew: brew install schpet/tap/linear (see upstream tap name in the repository).
  • npm (project or global): install @schpet/linear-cli and invoke via npx linear / pnpm exec linear / bunx linear as appropriate.
  • Deno: follow upstream deno install instructions from the README.

After installation, continue with readiness checks instead of jumping straight into the user task.

3. Confirm CLI version

Run:

bash
linear --version

If this fails, treat the install as broken and fix that before API-backed tasks.

4. Authentication and configuration

The CLI needs a Linear API key and login state. The user creates a key under Linear account security settings (see upstream docs).

Guide the user through:

bash
linear auth login

For repository-specific defaults (team, workspace slug, VCS mode), run from the target repo:

bash
linear config

Configuration is resolved from ./linear.toml, ./.linear.toml, repo root, .config/linear.toml, and platform-appropriate user config paths as documented upstream. Environment variables override file values when both apply.

5. Readiness check

Prefer a lightweight read that hits the API after auth, for example:

bash
linear team list

If this fails with authentication or permission errors, do not proceed to the user’s real task. Diagnose auth, workspace, or token scope first.

Show full SKILL.md (323 more words)Show less
6. Respect “current issue” rules

The CLI derives the current issue from:

  • git: issue id embedded in the branch name (for example ENG-123-my-feature),
  • jj: Linear-issue trailer in commit metadata.

If the user expects “current issue” behavior but the branch or trailers do not match, explain the mismatch before running issue-scoped commands.

Safe Execution Rules

  • Prefer read-only commands before write commands.
  • For creates, updates, deletes, starts, comments, or other writes, ask for explicit confirmation first unless the user already gave a clear, scoped instruction for that write.
  • Do not assume gh or a Git host CLI is installed; if the user wants linear issue pr, verify gh availability or follow upstream behavior transparently.
  • If the user is in the wrong directory for linear config or issue context, say so and ask to switch to the intended repository root.

Troubleshooting

linear not found
  • Explain that the CLI is not installed or not on PATH.
  • Guide installation using one of the supported methods, then re-check with command -v linear.
Auth or API errors on read commands
  • Confirm linear auth login completed successfully.
  • Confirm API key is valid and not revoked.
  • Confirm workspace and team_id / defaults match the user’s intent (linear config and env vars).
Wrong issue or empty “current issue”
  • For git, verify the branch name contains the expected Linear issue id.
  • For Jujutsu, verify Linear-issue trailers on the relevant commits.
  • Offer linear issue view <id> when current-issue detection is unreliable.
Platform differences
  • Treat path and config locations as different on Windows vs Unix; follow upstream config search order instead of assuming POSIX-only paths.

Success Criteria

The skill is working correctly when:

  • the user understands that execution is performed by the local linear CLI against Linear,
  • missing CLI, auth, or config is identified before task execution,
  • a lightweight API read succeeds before heavier workflows when appropriate,
  • write operations wait for explicit confirmation when required,
  • and the real task runs only after the environment is truly ready.

© Peiiii, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/linear-cli of Peiiii/nextclaw.

  • SKILL.md
  • marketplace.json

Open the folder on GitHubat commit 973722e

Compare with similar skills

Linear CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Linear CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Linear CLI this skillPeiiii/nextclaw260—~1.6kAutomated safety check: PassMIT
Orca Linear Ticket Workflowstablyai/orca87k1 repos~522Automated safety check: PassMIT
Review Triage Phaseprisma/orm48k—~995Automated safety check: PassApache-2.0
Commitdinerojs/dinero.js6.8k—~667Automated safety check: PassMIT
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0
Linear Tickets via Orcastablyai/orca87k—~558Automated safety check: PassMIT

Similar skills

  • Linear ticket work through Orca's CLI. Use when working from a linked Linear issue, finishing work with a PR/MR link and a completion comment, moving a ticket…

    87k GitHub starsUsed in 1 repo~522 tokens
    Productivity & AutomationAuto-check passed
  • Official

    Runs the triage step of the review-framework loop: reads fetched PR review state, builds `review-actions.json`, validates it and renders `review-actions.md`.

    48k GitHub stars~995 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    dinerojs/dinero.js

    Create a git commit with optional automatic Linear issue linking.

    6.8k GitHub stars~667 tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Linear ticket work through Orca's CLI. Use when working from a linked Linear issue, finishing work with a PR/MR link and a completion comment, moving a ticket…

    87k GitHub stars~558 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Add Icon Mapping

    lobehub/lobe-icons

    Add or modify icon keyword mappings for providers, models, or agents in lobe-icons.

    2.6k GitHub stars~1.5k tokensUpdated today
    MobileAuto-check: warnings

More from Peiiii/nextclaw

All 70 skills in this repo
  • Nextclaw Skin Studio

    Peiiii/nextclaw

    A skill your agent uses when a user wants to browse, apply, inspect, create, refine, switch, or remove a NextClaw skin; wants a personal skin with arbitrary CSS, JavaScript, images, SVG, DOM…

    260 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • A skill your agent uses when a development task needs visible phase tracing, task-level or phase-level Token measurement, model/effort comparison, or a deterministic usage report or local dashboard…

    260 GitHub stars~802 tokensUpdated today
    Auto-check passed
  • 当 NextClaw 产品更新后需要生成、替换、挑毛病或检查官网、GitHub README、用户文档或社交传播中的真实截图、AI 宣传视觉、整页 HTML 宣传预览、社区二维码等对外视觉资产时使用;也用于“更新截图”“重新截一批图”“做宣传页”“生成 campaign 页面”“视觉审稿”“五星挑刺法”或发布前检查视觉资产。普通站点布局开发或只写文章不触发。

    260 GitHub stars~801 tokensUpdated today
    Auto-check passed
  • UI UX Pro Max

    Peiiii/nextclaw

    A skill your agent uses when the user wants professional UI/UX design guidance, design-system generation, UX review, or stack-specific frontend guidance through a bundled local UI/UX Pro Max dataset…

    260 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Impeccable

    Peiiii/nextclaw

    A skill your agent uses when the user wants distinctive, production-grade frontend design, anti-generic AI aesthetics, UX critique, technical UI audits, or final polish through bundled Impeccable…

    260 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Curate NextClaw skill resources, including OpenClaw and community sources.

    260 GitHub stars~479 tokensUpdated today
    Auto-check passed

Works with

Questions about Linear CLI

What does Linear CLI do?

A skill your agent uses when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write…. Linear CLI is an agent skill from Peiiii/nextclaw. Use when the user wants to list, view, start, create, or update Linear issues from the terminal via schpet/linear-cli, including setup, auth, repo config, and safe read/write boundaries.

When should I use Linear CLI?

Linear CLI fits situations like: the user wants to list; update Linear issues from the terminal via schpet/linear-cli; including setup; safe read/write boundaries.

How do I install Linear CLI in Claude Code?

Run `npx skills add Peiiii/nextclaw --skill linear-cli -a claude-code`. Or copy the skill folder (skills/linear-cli in Peiiii/nextclaw) into .claude/skills/linear-cli in your project. Claude Code loads it when a task matches its description.

How do I install Linear CLI in Codex?

Run `npx skills add Peiiii/nextclaw --skill linear-cli -a codex`. Or copy the skill folder (skills/linear-cli in Peiiii/nextclaw) into .agents/skills/linear-cli in your project. Codex loads it when a task matches its description.

Can I use Linear CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Peiiii/nextclaw --skill linear-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/linear-cli, .gemini/skills/linear-cli, .github/skills/linear-cli and .opencode/skills/linear-cli in your project.

What does Linear CLI need to run?

Going by SKILL.md and its folder, Linear CLI needs the command-line tools its instructions call (brew, npx, pnpm, bunx and deno). Our summary lists: Node.js.

Does Linear CLI access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Linear CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Linear CLI use?

Linear CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Linear CLI use?

About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Linear CLI?

Skills that share tags, products or a category with Linear CLI: Orca Linear Ticket Workflow (stablyai/orca, 87k stars), Review Triage Phase (prisma/orm, 48k stars), Commit (dinerojs/dinero.js, 6.8k stars) and Draft Pull Request Creator (wordpress-mobile/WordPress-Android, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Linear CLI?

Peiiii (a GitHub user) maintains it in Peiiii/nextclaw, which has 260 GitHub stars. The repository holds 70 skills in this directory. The repository was last updated on October 7, 2026.

Source: Peiiii/nextclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.