/gauntlet:linearfrom gauntlet
Reads, searches, comments on, edits, and manages Linear tickets via the linearis CLI or MCP. Handles ticket lookups, status changes, and assignments.
Ships in gauntlet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before anything else, resolve overrides: read the gauntlet overrides file's
# shared ## issue-tracker section. If tracker: resolves to a non-Linear value, announce
that Linear is off per overrides and stop - no command -v linearis, no auth call,
no ask. An unknown or unparseable tracker: value never reaches setup either:
resolve it per the four-state table in section 2 (free-form mappings or ask) before
any probe. Loading this skill is not probing; the zero-probe guarantee holds even
when a stray ticket-ID mention auto-triggered it.
Write gate. On standalone invocation, every human-channel write (create, body
update, comment/reply, state change with visible effect) is gated on explicit user
confirmation of the exact text. When routed from a tracker-facing skill that already
confirmed the exact payload, do not re-confirm an unchanged payload; any payload
this skill alters re-gates. A run started from a ticket confirms its working-status and assignee writes: announce each without asking. Assign with --assignee me, skip the self prompt, and report a successful assignment as Assigned <ref> to the signed-in user.
Preferred: linearis on PATH and authenticated (linearis auth status). Token
resolution order: --api-token, LINEAR_API_TOKEN, ~/.linearis/token. This is a
preference, not a precondition - a missing or unauthenticated CLI degrades Linear
functionality and is reported, never blocks the run. The token file is encrypted
storage: never use its contents as an HTTP credential or infer the credential type
from its v1: storage-format prefix. Resolve it through linearis instead.
No
linearisinstalled? Ifcommand -v linearisfails, fall back to a Linear MCP server when the harness has one configured - its tools cover the same operations (read, list/search, comment, update status, create). Tool names vary by harness and by the server's configured name, so consult the harness's own tool list rather than hard-coding identifiers; the JSON/jq and command examples below are then guidance for the equivalent MCP call, not literal shell. pi-gauntlet ships no MCP setup; MCP is opportunistic.
No linearis and no MCP: report inability, never fabricate. MCP is the fallback for a
missing binary only (command -v linearis fails); an installed-but-unauthenticated
linearis re-auths rather than rerouting to MCP.
Session sweep. When linearis is present, run linearis issues usage once per
session, before the first issue operation, and treat its output as ground truth for the
issue-domain rows of the section 3 table (Read, Search, List, Create, Update,
Discuss, Reply, Edit). Non-issue domains such as labels, teams, users, cycles, projects,
attachments, files are outside this call's coverage and fall to the section 8 backstop,
same as any row the sweep didn't run or couldn't reach. Authentication is not required -
usage prints local help and makes no API call, so the sweep still runs on an
installed-but-unauthenticated CLI. If the call errors or returns nothing, note once that
the issue-domain rows are unverified this session and continue. The sweep lives inside
the present-binary branch only - strictly after the override check above - so
tracker: github | none | <unknown> still means zero probing.
Optional: each # shared ## issue-tracker override key below, with its degradation.
This skill owns the full schema - all five keys, all optional:
# shared
## issue-tracker
- tracker: linear # or github / none - exclusive tracker selection
- workspace urlKey: acme
- default team: ENG
- self: [email protected]
- id cache: doc/cache/linear.md
Absent-key behavior, per key:
tracker absent -> consumer skills use their detection ladder (unchanged today).workspace urlKey absent -> ask the user once per session (needed only for
issue-URL construction in authored bodies).default team absent -> ask on first create.self absent -> ask on first self-referential query (assignee-me, standup).id cache absent -> skip cache lookups entirely (no cache behavior).tracker: matching is case-insensitive for the known values. Four states:
tracker: state | Behavior |
|---|---|
known value (linear / github / none) | Exclusive: no probing for other trackers, no ask, others never mentioned. github -> linearis never probed, this skill never proceeds past its override check. none -> tracker steps skipped; each consumer skill uses its documented no-tracker outcome. |
unknown value (e.g. jira) | Exclusivity holds (no Linear/gh probing). If the same ## issue-tracker section carries free-form command mappings for that tracker, use them; else say so and ask - never silently fall back to the detection ladder. |
| key absent | Consumer skills use their detection ladder, unchanged from today (including the linearis PATH+auth probe). |
| key present but unparseable | Treat as an off-switch attempt gone wrong: ask the user, never probe - a typoed off-switch must not silently re-enable detection. |
Coexistence with the free-form ## issue-tracker contract. The five keys
compose with the pre-existing README custom-tracker command-mapping convention,
they don't replace it. tracker: adds exclusive selection; free-form verb mappings
keep working both without a tracker: key (ladder rung 1, as today) and as the
mechanics source for an unknown tracker: value.
Conflicting config (e.g. tracker: github plus populated Linear keys) is not an
error: tracker: wins, the other keys are inert. Malformed non-tracker keys are
treated as absent.
| Verb | Command | Notes |
|---|---|---|
| Read | linearis issues read <id> --with-comments --with-comment-threads --with-attachments | Add flags only for what you need - big tickets are slow. |
| Search | linearis issues search "<query>" | Case-sensitive. |
| List | linearis issues list --assignee <who> --status <status> --team <default team> --parent <id> | Filters compose; --parent lists sub-issues. |
| Create | linearis issues create "<title>" --team <default team> [--parent-ticket <id>] --status <status> | Title is positional (no --title); --team required; --parent-ticket for sub-issues; state an explicit --status rather than relying on the default. |
| Update | linearis issues update <id> --status <status> --assignee <who> --labels <labels> --due-date <date> [relation flags] | See gotcha (e) for relation flags. |
| Discuss | linearis issues discuss <id> --body "<text>" | Starts a new top-level comment thread. |
| Reply | linearis issues reply <thread> --body "<text>" | <thread> is a root discussion thread ID, not an issue ID - see gotcha (b). |
| Edit | linearis issues edit <comment> --body "<text>" / linearis issues edit-reply <reply> --body "<text>" | Full rewrite, no history - see gotcha (a). |
| Labels, teams, users, cycles | linearis labels list, linearis teams list, linearis users list, linearis cycles list | Use to resolve names to IDs; see id-cache convention. |
| Attachments | linearis attachments create [<issue>] --url <url> | Positional is optional (--issue <issue> alias); link-only, no inline render - see gotcha (d). |
| Upload | linearis files upload <file> | Returns an assetUrl for inline embedding - see gotcha (d). |
| Download | linearis files download <url> --output <path> | <url> is an attachment/asset URL from issues read --with-attachments; asset URLs are short-lived (gotcha d). A 401 here while issues read works is not an auth problem - see section 8. |
Workspace values above (<default team>, <who>, etc.) are placeholders bound to
the override keys in section 2 - never a real urlKey, team prefix, or email.
Snapshot verified against linearis 2026.7.0 (2026-09-01). The installed CLI's
usage/--help is ground truth; when they disagree, follow the CLI and tell the user
this table is stale.
a. Comment edit is a rewrite, no visible history. To amend rather than replace,
fetch the old body and pass OLD + "\n\n" + ADDITION; surface the overwrite diff
to the user before pushing.
b. reply targets must be root discussion threads. --help: "<thread> must be a
root discussion thread ID." A non-root target fails with a misleading validation
error. To respond in-thread, resolve the thread's root via
discussions/--with-comment-threads and reply to that root, or start a new
discuss thread instead. edit-reply is NOT a reply fallback - it rewrites an
existing reply. Use it only for an explicitly requested edit of the caller's own
reply, behind the rewrite-confirmation rule in (a).
c. @ABC-123 never resolves via the CLI/API. Use the full issue URL
https://linear.app/<workspace urlKey>/issue/<id>, which unfurls to a native
badge and records a relation. A literal @ID in a body stays literal text.
d. Images go inline, links don't render. linearis files upload <file> ->
 in the body embeds the image. attachments create only
links a URL and renders no image. Asset URLs returned by a read are
short-lived signed JWTs - re-upload for a fresh one, never re-paste an old one.
e. Two different relation flag sets. On create/update: --blocks,
--blocked-by, --relates-to, --duplicate-of, --similar-to, plus
--remove-relation on update. These are single-value - repeating one in a single
call keeps only the last value (observed behavior, not stated by --help). On
linearis issues relations add <issue> the set is smaller and comma-separated:
--blocks, --related, --duplicate, --similar - there is no --blocked-by,
so express that direction by inverting the relation or using update. For multiple
relations in one call use relations add; otherwise issue separate update calls.
f. create's title is positional. There is no --title flag.
Write the body to a temp file and pass it as "$(cat FILE)", with a quoted heredoc
delimiter if a heredoc is used to produce the file. Inline heredoc-in-arg
(embedding a heredoc directly inside a CLI argument) fails intermittently.
Active only when id cache: is set; its value is a repo-relative markdown file.
linearis teams list / users list /
projects list resolution. On a miss, resolve via the narrowest list command and
add the row. On a rejected/stale cached ID, re-resolve and update or remove the
row.Operational/data subcommands emit JSON - pipe to jq, don't assume column output.
usage subcommands emit plaintext help.
Safety rules, in addition to the write gate above:
| Symptom | Cause | Fix |
|---|---|---|
| 401 | Not authenticated / expired token | linearis auth status; re-auth - unless the download row below applies. |
401 on files download while issues read works | linearis 2026.7.0 and 2026.8.0 prepend Bearer to personal API keys on file downloads (linearis-oss/linearis#300) | Not an auth problem - do not re-auth. Use the recovery below, or use a version without the bug once one ships. |
| Issue not found | Wrong workspace, or issue archived | Confirm workspace; check archived state. |
| Status not found | Status name doesn't match the team's workflow states | List the team's states before setting one. |
Missing --team error on create | --team is required | Supply --team <default team>. |
| Search returns nothing unexpected | Search is case-sensitive | Retry with matching case. |
| Cannot edit a comment | Comment belongs to another user | Reply instead of editing. |
| Reply validation error | Target is not a root discussion thread | See gotcha (b). |
@ID shows as literal text | @ABC-123 mentions don't resolve | Use the full issue URL (gotcha c). |
| Read is slow | Big ticket with many comments/attachments | Drop --with-* flags not needed. |
| Parser-shape failure on a documented invocation: unknown command/option, unexpected argument | Section 3's snapshot may have drifted from the installed CLI | Re-read that subcommand's --help; report the row stale only if help actually contradicts it, then follow help |
For that download-only 401, this 2026.7.0/2026.8.0 workaround calls linearis's
version-specific internal getApiToken API. Supply the fresh uploads.linear.app URL
from issues read --with-attachments and an output path. It rejects other hosts and
redirects, sends the resolved key without Bearer, writes only a non-empty response,
and never prints or stores the key separately:
download_linear_asset() {
LINEARIS_BIN="${LINEARIS_BIN:-$(command -v linearis)}" node --input-type=module - "$1" "$2" <<'NODE'
import { realpathSync, writeFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { pathToFileURL } from "node:url";
const [urlText, output] = process.argv.slice(2);
const url = new URL(urlText);
if (url.protocol !== "https:" || url.hostname !== "uploads.linear.app")
throw new Error("refusing to send a credential outside https://uploads.linear.app");
const packageRoot = dirname(dirname(realpathSync(process.env.LINEARIS_BIN)));
const { getApiToken } = await import(pathToFileURL(join(packageRoot, "dist/common/auth.js")));
const response = await fetch(url, {
headers: { Authorization: getApiToken({}) },
redirect: "error",
});
if (!response.ok) throw new Error(`download failed: HTTP ${response.status}`);
const bytes = new Uint8Array(await response.arrayBuffer());
if (bytes.byteLength === 0) throw new Error("download failed: empty response");
writeFileSync(output, bytes);
console.log(`downloaded ${bytes.byteLength} bytes to ${output}`);
NODE
}
download_linear_asset 'https://uploads.linear.app/...' '/tmp/attachment'
Do not declare the attachment inaccessible until this recovery used the resolved
credential; reading ~/.linearis/token directly does not count. Afterward, confirm the
reported byte count and inspect the file type before consuming or extracting it.
The last row's trigger is deliberately narrow. Data, auth, status-name, and root-thread
validation errors have their own rows above and are not drift - routing them to "the
skill is stale" would misdiagnose ordinary failures. This row is the reactive path for
when the section 1 session sweep didn't run, couldn't run, or doesn't cover the failing
subcommand (any row outside the issues domain).
linearis usage, each domain's own usage subcommand (e.g.
linearis issues usage), and Linear's LLM docs index https://linear.app/llms.txt
for product behavior the CLI doesn't expose.
If gauntlet.md exists - checked in order: .pi/gauntlet.md, <repo root>/gauntlet.md, <repo root>/doc/gauntlet.md; first found wins - read it. Skip the read only when the file from the same repository at the same trusted revision is already in context. Apply, without a relevance judgment, these sections of # shared: ## issue-tracker, ## worktrees, ## verification, ## cleanup, ## siblings, ## deployment, ## spec-index. Apply the whole # linear block. Apply nothing else from the file: no other block, no text directly under # shared, no other section of # shared.
The recognized headings, their readers, and the rules an override cannot change are listed in the configuration front door; an override extends or replaces the step it names and never lifts this skill's HARD CONSTRAINT or MUST text.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/chase-bugUse when a human hands you a bug report to triage - a Slack paste, tracker ticket, GitHub issue, or described symptom - and the goal is an evidenced verdict (real bug, not-a-bug, cannot reproduce, already fixed or reported); triage itself never fixes - a real-bug verdict may hand off to a bounded hotfix after the menu./check-deliveryUse only when explicitly asked to prove delivery of one or more named merged tickets ("check delivery of/forge-skillUse when creating or editing a SKILL.md, a skill's reference file, an agent persona, a prompt template, a slash command, or a file the repo's AGENTS.md or CLAUDE.md routes here, in pi or Claude Code - including one-line edits - or when such a file exceeds 500 lines, gains if/else branching, or drifts from imperative voice; the authoring skill for repos that follow gauntlet's conventions./gatekeep-prUse only when explicitly asked to gatekeep, verify, or gate a named pull request before it merges - or on pi a set of them - ("gatekeep PR 123", "gatekeep PRs 123 124 125", a loop task naming the PR and the verb); post-merge delivery proof belongs to /skill:check-delivery./housekeepingUse when a human asks to check a repository directory, uncommitted files, or a pull request for cleanup against repository rules./shape-ticketUse when asked to file, create, or shape a ticket, open a tracker issue, or repair or clean up one or more existing ones (ticket IDs like ABC-123, or a comma- or space-separated list "ABC-123, ABC-124") - including when another skill or command routes ticket authoring here.npx claudepluginhub jjuraszek/pi-gauntlet --plugin gauntletOther plugins' skills for the same job