/cards:cardsfrom cards
You must load this skill whenever the user asks to create, read, comment on, or modify a card, or launch a card in the cloud and monitor it
Ships in cards. 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.
Read when SKILL.md points to them.
Use the CLI binary below to manage cards. For direct card content operations (comments, attachments, plans), use the card's filesystem repository — see Card Repository below.
For controlling VS Code (opening files, running commands, sending notifications,
managing panels, controlling the debugger, etc.), load ./references/extension-cli.md.
For launching a card in the cloud or monitoring a cloud launch, load ./references/cloud.md. This route takes precedence over the local launch action. For local launches, load ./references/launch-cards.md.
To file a GitHub issue with the Cards extension developer, use cards-extension issue
(see ./references/extension-cli.md).
The user is notified when you create a card or add a comment.
Before creating a card, load the cards:markdown skill, ./references/commanders-intent.md, and both references for the matched card type. Two references load together:
Route by the card's deliverable — what the user wants to exist when the work is done — not by surface wording. A feasibility or research question embedded in a request for a concrete change is yours to resolve (Glob/Grep/Read/git/web): answer it, fold the finding into scoping, and route by the change. When the deliverable is ambiguous, confirm in plain language what the card will do before creating it — never name the card type to the user.
Match the first applicable row:
| Card type | Interview (process) | Writing (target) |
|---|---|---|
| Bug, error, crash, regression, broken behavior | ./references/interview-bug-report.md | ./references/bug-report.md |
| Feature, improvement, new capability | ./references/interview-enhancement.md | ./references/enhancement.md |
| Research the user explicitly asks to capture as a card, or too large to resolve in one session | ./references/interview-investigation.md | ./references/investigation.md |
| Documentation, guides, runbooks, API reference | ./references/interview-documentation.md | ./references/documentation.md |
| Refactor, cleanup, tech debt, upgrade, migration | ./references/interview-maintenance.md | ./references/maintenance.md |
| Infrastructure, CI/CD, deploy, monitoring, scaling | ./references/interview-operations.md | ./references/operations.md |
| Otherwise | ./references/interview-enhancement.md | ./references/enhancement.md |
Deep cards. When the source material is a document set — three or more documents, or one document the card cannot cover without omission — or the user says "deep card", additionally load ./references/deep-card.md. It layers a multi-file documentation corpus (routing-hub CARD.md, explanation//how-to//reference//notes/ tiers) over the matched type's interview and intent guidance, replacing the writing guide's CARD.md body structure. A deep card is ~20 files and 6+ commits: do not load it for a single-topic request, however detailed — "comprehensive" alone is not the trigger.
Interview unless the user requests quick capture or a workflow supplies the evidence. Compose CARD.md against the writing guide in the initial commit. Before creating a prerequisite card to defer active work, load cards:blocker-contract and prove every criterion; filing a card never authorizes stopping.
After composing a complex or uncertain card — a deep card, a design touching security, concurrency, or data-integrity surface, or one whose failure handling you are not confident is fully specified — load ./references/fmea-review.md and run its reviewer loop until the reviewer is satisfied, or offer it to the user when they are directing the work. Also run it when the user asks to "FMEA the card" or requests a failure-mode review. Skip it for simple, well-anchored cards.
cards CLIcards is a plugin-provided executable on PATH covering get, create, list, search, variable-group discovery, attach, action, and watch. Invoke it directly as a bare command.
Get a card — Fetch card details by ID. The response includes repositoryPath for filesystem access:
cards <card-id>
Also included:
isMerged: boolean | null — true when all workspace commits are merged into the viewer's HEAD, false when commits exist but are not merged, null when the card has no workspace commits.parentBranch — the workspace branch the card was created from; present when the card was created in a workspace with a resolvable branch.Create a card — Pipe JSON to stdin with title (required). Optional: tags, environment, gates, relations. Capture repositoryPath; every step below writes into it:
REPO=$(cards create --jsonpath '$.repositoryPath' <<'EOF'
{ "title": "Fix auth", "tags": ["bug"] }
EOF
)
Then, in order:
cards:markdown skill before writing CARD.md..html/.meta.json pair in a commit of its own; load cards:html-files for mechanics and cards:design for styling. When a page's subject is the card's own work rather than the product being built, first load the three work-diagram-* references (see Work-Diagram Pages below). Timeline position follows commit order: commit before CARD.md to open the card with a hero the reader takes in first, after CARD.md to elaborate what the description lays out.cards html check "$REPO/proposed-panel.html"
cd "$REPO" && git add proposed-panel.html proposed-panel.meta.json && git commit -m "Added HTML page [single sentence describing what the page shows]."
cat <<'CARD_EOF' > "$REPO/CARD.md"
Card description here (plain markdown, no frontmatter).
CARD_EOF
cd "$REPO" && git add CARD.md && git commit -m "Added description [single sentence summarizing the current and desired behavior covered]."
cards:notes skill and record research discoveries — including any approach that emerged — as notes in the card repository. Planning happens in a later step; do not write plans/ files at creation time.Include relations when the new card relates to an existing one. Each entry has a type (only "related" is valid) and a cardId. The CLI sets relations only at creation; edit CARD.meta.json afterward.
cards create <<'EOF'
{ "title": "Unify tag layout", "relations": [{ "type": "related", "cardId": "main-67" }] }
EOF
Attach a card to a worktree — Attach an existing card to the current linked worktree:
cards <card-id> attach
cards <card-id> attach --parent-branch <ref>
Attaching installs hooks, registers the worktree branch with the card, and enables session streaming. The command succeeds only if:
branch.<name>.cardsParent git config, reflog decoration, --parent-branch flag, then refuses)Outputs card-repo-log and workspace-repo-log context blocks to stdout (no env block). If the transcript path cannot be resolved, attaching succeeds with a stderr streaming-disabled warning.
Search cards — Search cards using a unified query syntax with #tag, @relation, and free text:
cards search "login bug"
cards search "#auth @main-5 login" --status active
cards search "#planning" --limit 20
cards search "@main-42"
Free text matches at 3+ chars. Beyond stored tags, four derived tags are filterable: planning, merge-requested, merged, unmerged.
Search responses are flattened — gates are top-level booleans and commit fields are absent.
Options: --workspace-path <path>, --status <status>, --limit <n>, --offset <n>
List variable groups — Discover the groups available for action dispatches in a workspace:
cards variable-group list
cards variable-group list --workspace-path <path>
cards variable-group list --jsonpath <expr>
Each summary contains id, name, optional description, variableCount, and secretCount. The command never returns variable values or secrets. Use the group id, not its display name, when launching an action.
Execute an action — Execute an action on a card via the server relay:
cards <card-id> action <action-id>
cards <card-id> action <action-id> --background
cards <card-id> action <action-id> --background --exit-when-done
cards <card-id> action <action-id> --variable-group <id> --variable-group <id>
The action ID is the lowercase identifier from the action definition (e.g., launch). Requires a connected extension client.
Actions run interactively by default. --background is rejected with a 400 error for an action that does not support background mode. --exit-when-done signals the agent to exit cleanly once the action completes rather than leaving the session open.
--variable-group is ordered and repeatable. When supplied, the action receives exactly those group IDs for that dispatch only; it does not change the variable-group toggles persisted in the webview. When the flag is omitted, dispatch retains the normal persisted variable-group selection.
Signal shutdown — Inside a running action, when EXIT_WHEN_DONE is true and work reaches a terminal state, finish or roll back in-progress commits. Use blocked only after proving cards:blocker-contract and committing its record:
cards "$CARD_ID" shutdown --outcome success|blocked|error [--message "..."]
Outcome defaults to success. Exit 0 confirms durable acceptance by the authenticated runtime; the handler terminates the session gracefully and the card still settles on needs_review. Without protected runtime credentials the command exits non-zero — it only works inside an admitted action.
Watch for commits — Block until the next unattributed commit on a card's repository:
cards <card-id> watch
cards <card-id> watch "src/auth/**"
cards <card-id> watch "src/auth/**" "tests/auth/**"
Blocks until the first eligible commit, outputs formatted commit details, attributes the commit to the current session, then exits 0. When unattributed commits already exist at invocation time, they are output immediately without subscribing. Optional glob patterns restrict output to commits where at least one changed file matches; multiple globs are OR-combined. Requires an active card session. Exits non-zero on connection failure or missing session.
The CLI auto-detects the workspace from pwd. Cards are scoped to the branch you're working on — in a worktree, the card belongs to that worktree's branch (e.g., branch feature -> prefix feature-).
Use --workspace-path only if the user explicitly requests operating on a different repository, including variable-group discovery for that repository.
Each card is an isolated Git repository. The repositoryPath field from cards <id>
gives the absolute path to this repository.
CARD.meta.json # Metadata (source of truth)
CARD.md # Description (pure markdown, NO frontmatter)
plans/ # Plan documents (continuation-based)
[name].md # Semantically-named plan files
[name].md.meta.json # Sidecar with display title
comments/ # Created on first comment
{slug}.md # Descriptive semantic slug, pure markdown
attachments/ # Created on first attachment
att-{uuid4}_{name} # Binary content
att-{uuid4}_{name}.meta.json
commits/ # One file per attributed commit (infra-managed)
{sha} # Filename is the full 40-hex SHA; content is `<sha>\n`
branches/ # One file per tracked branch (infra-managed)
{encodeURIComponent(name)}.json
The commits/ and branches/ directories are written by Cards infrastructure, not by hand. Produce a correctly-formatted entry only when a task explicitly requires it — otherwise leave these alone.
commits/ — one file per attributed commit. The filename is the full 40-character lowercase-hex SHA (/^[0-9a-f]{40}$/); the content is that SHA plus a single newline (<sha>\n). No .patch, CSV, or short-SHA forms — the pre-commit hook rejects them fail-closed with commits/: invalid commit entry filename: <name>.branches/ — one file per tracked branch, named <encodeURIComponent(name)>.json. The authoritative branch name lives inside the file content, never decoded from the filename. The content is the persisted WorkspaceBranch: parentBranch and addedAt (ISO 8601), plus optional worktree. Never persist the read-time BranchInfo fields (exists, isMerged, commits).Source of truth: COMMITS_DIR, BRANCHES_DIR, and WorkspaceBranch in public/packages/sdk/src/protocol/types/branch.ts.
{
"id": "main-0001",
"title": "Implement authentication",
"status": "active",
"tags": ["feature", "security"],
"gates": {
"planRequired": true,
"planApproved": true,
"mergeRequestRequired": true,
"mergeApproved": false
},
"isPinned": false,
"order": 1,
"repositoryId": "github.com/org/repo",
"relations": [
{ "type": "related", "cardId": "main-0002" }
]
}
relations is optional — omitted when the card has no outgoing relations.
HTML pages may be committed at any point in a card's life (cards:html-files). When a page's subject is the card's own work — its proposed decomposition and task dependencies at creation; execution history, attempts, or the decision trail afterward — rather than the product being built, first load ./references/work-diagram-concepts.md (what to represent), ./references/work-diagram-notations.md (which notation), and ./references/work-diagram-style.md (visual language).
Comments are pure markdown files with descriptive slug filenames.
REPO=$(cards <card-id> --jsonpath '$.repositoryPath')
mkdir -p "$REPO/comments"
cat <<'COMMENT_EOF' > "$REPO/comments/my-slug-name.md"
Your comment content here (plain markdown, no frontmatter).
COMMENT_EOF
cd "$REPO" && git add "comments/my-slug-name.md" && git commit -m "Added comment [single sentence summarizing the comment's substance]."
Add relevant miscellaneous files (screenshots, logs, exports) as attachments whenever the user provides or references one during card creation or comments — don't just describe it in text. If only part of a screenshot is relevant, crop it to that portion before attaching.
REPO=$(cards <card-id> --jsonpath '$.repositoryPath')
ATT_UUID=$(cat /proc/sys/kernel/random/uuid) # UUID4
ATT_NAME="att-${ATT_UUID}_screenshot.png"
mkdir -p "$REPO/attachments"
cp /path/to/file.png "$REPO/attachments/$ATT_NAME"
cat <<METAEOF > "$REPO/attachments/${ATT_NAME}.meta.json"
{
"id": "$ATT_UUID",
"name": "$ATT_NAME",
"originalName": "screenshot.png",
"size": $(stat -c%s "$REPO/attachments/$ATT_NAME"),
"mimeType": "image/png"
}
METAEOF
cd "$REPO" && git add "attachments/$ATT_NAME" "attachments/${ATT_NAME}.meta.json" && git commit -m "Added attachment [single sentence describing what was attached and why]."
.worktreeignore (omit) and .worktreeinclude (copy) at the invoking checkout's root classify ignored source paths; unmatched ignored paths are shared as symlinks. In a linked worktree, that means the linked checkout containing pwd, not the primary checkout behind the common Git directory. Eligibility comes from Git's --exclude-standard ignored/untracked enumeration (repository ignore files, repository-local info/exclude, and configured global excludes). Untracked non-ignored files are outside the policy and do not arrive.
ignore library using gitignore rules, including root-anchored /, **, character classes, escapes, trailing-space rules, directory patterns, ordering, and ! negation. A negation affects only its own file and cannot re-include a child while its parent remains excluded. Blank lines and lines whose trimmed form starts with # are discarded before matching.share. An omitted descendant under such an ignored ancestor otherwise omits the collapsed directory wholesale. To prevent that collapse, a different descendant must survive as a final copy match; making the same omitted leaf an include match is insufficient.node_modules exception — inside root or workspace-package node_modules, ruled ancestors become real directories and entries are handled individually: omitted children stay absent, copied children are real, and unmatched children are symlinked. Tracked symlinks containing a node_modules segment outside the workspace trees this rerouter owns fail closed.create-worktree exit 3). The separate initial ignored-path discovery scan is a general creation failure (exit 2). Config, discovery, and policy expansion finish before policy-controlled linking, but the checkout and unrelated setup may already exist; later copy/link failures may follow partial provisioning. Settle cleanup removes the directory, registration, and only a branch created by that invocation, while reporting cleanup failure.CARDS_WORKTREE_POLICY_TIMEOUT_MS budget (default 30000 ms) across filesystem candidate discovery, batched Git eligibility checking, tracked-symlink scanning, and workspace/symlink walks; Git calls are bounded by that window.bin/cloud.sh (opens in a new tab)references/README.md (opens in a new tab)references/bug-report.md (opens in a new tab)references/cloud.md (opens in a new tab)references/commanders-intent.md (opens in a new tab)references/deep-card.md (opens in a new tab)references/documentation.md (opens in a new tab)references/enhancement.md (opens in a new tab)references/extension-cli.md (opens in a new tab)references/fmea-review.md (opens in a new tab)references/interview-bug-report.md (opens in a new tab)references/interview-documentation.md (opens in a new tab)references/interview-enhancement.md (opens in a new tab)references/interview-investigation.md (opens in a new tab)references/interview-maintenance.md (opens in a new tab)references/interview-operations.md (opens in a new tab)references/investigation.md (opens in a new tab)references/launch-cards.md (opens in a new tab)references/maintenance.md (opens in a new tab)references/operations.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/blocker-contractAuthoritative test for creating, retaining, or reporting blocked work./debugThis skill should be used when the user asks to "debug the cards assistant", "troubleshoot cards", "find cards logs", "check cards server health", "cards not working", "where are cards logs", "test cards API", asks what a Cards error code means, or reports a failure with Cards packages, the extension, licensing or registration, Claude Code hooks, Codex or Antigravity sessions, worktrees, configuration, authentication, or release tooling./designThe single, authoritative design system for themable VSCode UI in this project — VS Code's own webview conventions fused with the Cards extension's concrete tokens and component specs. Use whenever building, styling, or reviewing UI in a Cards extension webview or HTML embedded in a card; every component follows the modules bundled here rather than ad-hoc values or generic best-practice guesses.Other plugins' skills for the same job
npx claudepluginhub goodfoot-io/cards.management --plugin cards