/tkt:tkt-corefrom tkt
Track git-native Markdown tickets in .tickets/ and compute the dependency-graph frontier. Use for tkt commands: ready, new, claim, close, edit, backlog/defer, blocked-by task graphs, and validate.
Ships in tkt. 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.
Track tasks as markdown files in your git repo. One file per ticket in .tickets/, with status and dependencies in YAML frontmatter. tkt computes what's ready to work on next.
Ticket files own status/evidence. The plan owns intended sequence; tkt ready computes candidates. Orientation proposes or the user selects a ticket; execution claims that selection, not automatically the first row.
Agent setup: tkt init recommends instructions (--write), separately installed workflow skills and tkt capabilities -o json. CLI installation excludes skills.
| When I'm... | I want to... | Command |
|---|---|---|
| Discovering CLI commands and flags | read the complete structured inventory | tkt capabilities -o json (schema reference) |
| Routing tickets to agents | allow either named agent or exclude named agents | tkt new <slug> --agents codex,claude / --exclude-agents antigravity |
| Starting a work session | see what's unblocked and prioritized | tkt ready |
| Planning today's work | see only urgent/high eligible work | tkt ready --priority high (threshold; unset priority counts as medium, while tkt query --priority high is an exact stored-priority match) |
| Planning future work | create tickets without them cluttering the frontier | tkt new <slug> --title "..." --status backlog |
| Ready to start something | promote a backlogged ticket to actionable | tkt edit <id> --status open |
| Grabbing a task in a shared repo | signal that I'm working on it | tkt claim <id> |
| Finishing a task | prove it's done with evidence | tkt close <id> --check-all --evidence "..." |
| Recording a decision or observation | append an attributable note without an editor | tkt note <id> --append "..." |
| Recovering an immediately mistaken mutation | preview and revert a recognized HEAD safely | tkt --dry-run undo then tkt undo |
| Discovering work during implementation | capture it as a separate ticket without losing focus | tkt new <slug> --title "..." (open — or --status backlog only if genuinely deferred) |
| Creating several related tickets at once | one commit/push instead of N; share --tags/--blocked-by | tkt batch "slug:title" "slug:title" ... --tags STREAM |
| Coordinating primary/workers or handing off ownership | keep identity separate from machine capabilities | Read role examples |
| Preparing a completed-work report | inspect Git dates and explicit unknowns | tkt done --week -o json |
| Checking project health | find cycles, broken deps, stale WIP | tkt validate / tkt audit |
| Querying tickets | filter text/tags and select fields | tkt query --match sharing --tag cli --fields id,status,title -o json |
| Working in a specific environment | see only relevant work | Set machine.capabilities in config (or CREW_ENV=corp for legacy env filtering) → tkt ready filters by requires |
| Keeping a plan in sync | report drift between tickets and plan doc (advisory) | tkt sync-plan (add --check to gate CI) |
| Scoping work to a subsystem | filter frontier by tags | tkt context backend → tkt ready shows only matching |
| Returning to unscoped view | clear tag filter | tkt context --clear |
| Importing from another tool | preview, review, then convert foreign tickets | tkt migrate --from tk --dry-run → tkt migrate --from tk --confirm |
| Trying the GitHub issue bridge | preview a bounded create-only import | tkt import --github --repo OWNER/NAME --dry-run |
For full flags and options, see commands.md.
Creation/edit: Supply a complete body with new --body text|@file|- or new/batch --template NAME; edit --body preserves notes. Fill intent/acceptance prompts before validation. Backlog is only for deferred work. edit --blocked-by replaces the full list, so retain existing blockers explicitly.
Claim, close, and status-changing edit synchronize existing docs/plan.md rows in
the same commit. Commit or stash plan edits first. Missing rows remain warnings
until sync-plan --fix appends them under Unplanned tickets. Without a plan file,
mutations create none. Alternate plans require explicit sync-plan [PLAN].
Identify each invocation with global --agent <lowercase-slug> or TKT_AGENT; the flag wins and identity is never stored in config. ready and claim apply ticket agent eligibility. Missing identity sees unrestricted work only; ready reports hidden restricted work on stderr. Use claim <id> --force only as an explicit scheduling override.
Create or replace eligibility with mutually exclusive --agents codex,claude or --exclude-agents antigravity on new, batch, and edit; edit --agents '' or edit --exclude-agents '' clears it. Frontmatter stores one optional signed agents list: ["codex", "claude"] allows either, ["!antigravity"] excludes that agent, omission allows everyone. Lists must be nonempty, homogeneous in sign, duplicate-free, and contain lowercase alphanumeric/hyphen slugs. Serialization sorts names. ready human/JSON and query JSON expose the policy (agents: [] in JSON means unrestricted). query honors tag context but never filters by current agent. Tags scope work streams; requires remains all-of machine capabilities; eligibility is separate from ownership after claim.
Claim records the invocation identity as optional assignee; ready hides other
owners and hides owned work when unidentified. --force overrides ownership
checks; anonymous forced claims preserve the recorded owner. This is independent
of allow/exclude eligibility.
backlog → open → in_progress → done
| Status | Meaning | Appears in tkt ready? |
|---|---|---|
backlog | Parked — not prioritized, not actionable yet | No |
open | Available work or a parent container | Yes (if deps done and not a container) |
in_progress | Claimed, actively being worked | No |
done | Completed, verified | No |
Key rule: tkt ready only shows open tickets whose blocked_by are all done, excluding any ticket with direct children. Backlogged tickets are invisible to the frontier.
Only tkt close reaches done; new, batch and edit reject that status so closure gates run.
Retire abandoned work with tkt cancel ID --reason REASON --note "why", not close.
Duplicate/superseded require --by ID; active dependents need explicit repoint/drop.
tkt reopen ID reopens cancelled work, preserving its history. Cancelled is distinct
from done and cannot satisfy prerequisites. See the command reference for edge handling.
Body AC checkboxes use --check-all / --ac; frontmatter validation_criteria
maps 1:1 by index to --evidence. Their counts are independent.
Hierarchy uses optional --parent ID on new/batch/edit, separate from prerequisites;
edit --parent '' clears it, and query --parent ID selects children. Invalid
parent targets and introduced cycles are rejected.
Backlog is for work you've identified but are deliberately deferring out of the current cycle. Default new work to open — backlog is the exception, not the reflex.
When NOT to backlog: if the work could realistically be picked up once its blockers clear, it's open (frontier-eligible), not backlog. Discovered work found mid-task is usually actionable — create it as open, or --blocked-by if it depends on other tickets. Parking actionable work in backlog hides it from tkt ready and it gets forgotten. A growing backlog is a smell, not a safety net.
Legitimate uses of backlog:
The test: could this realistically be worked next once its blockers are done? If yes → open. Only if it's genuinely speculative or deferred → backlog.
tkt new caching --title "Add response caching" --status backlog
tkt batch "cache:Response caching" "metrics:Add metrics" --status backlog
Default (no --status flag) creates as open.
tkt edit 15 --status open # promote → now appears in tkt ready
tkt edit 07 --status backlog # demote → disappears from frontier
| Situation | Use |
|---|---|
| "We'll do this someday, not now" | --status backlog |
| "We'll do this after ticket 03 is done" | --blocked-by 03 (status stays open) |
| "We identified this but it's not scoped yet" | --status backlog |
| "This is ready but depends on another ticket" | --blocked-by N |
tkt ready → orient/propose or user selects <id> → work → tkt close <id> --check-all --resolution "what was done"
tkt ready → orient/propose or user selects <id> → tkt claim <id> → work → tkt close <id> --check-all --resolution "what was done"
If tkt claim push is rejected → someone else got there first → pick next ticket.
Closure is a verification event, not a status flip. The close command enforces quality. Never edit a ticket file to set status: done — that bypasses the AC/resolution/evidence gates and the push protocol. Always use tkt close; tkt validate flags done tickets with no Resolution section.
# Standard close with evidence
tkt close 03 --check-all --resolution "JWT auth with refresh tokens" \
--evidence "56 tests pass" --evidence "POST /login returns 200 with token"
# Force close (bypasses AC checks — use sparingly, justify)
tkt close 03 --force --resolution "Superseded by ticket 12"
# Migration close (work moved elsewhere — don't game ACs)
tkt close 05 --force --resolution "Migrated to other-project #22"
Project config controls what's required at close time (resolution, checked ACs, validation evidence). See enforcement config in commands.md.
Machine-enforceable "definition of done":
# Create with criteria
tkt new deploy --title "Deploy to staging" \
--vc "staging URL returns 200" --vc "smoke tests pass"
# Close with positional evidence (matches criteria order)
tkt close 05 --check-all \
--evidence "curl staging.example.com → 200 OK" \
--evidence "make smoke → 4/4 passed" \
--resolution "Deployed via CI pipeline"
| Command | Job |
|---|---|
tkt validate | Contract integrity — cycles, broken deps, invalid fields |
tkt audit | Closure quality — unchecked ACs, TBD resolutions, stale WIP |
tkt audit --deep | Evidence quality and actual unfilled template sections; quoted examples are ignored |
tkt sync-plan | Plan drift — ticket status vs plan document (advisory; --check gates CI) |
tkt doctor | Setup verification — current project or multi-project scan |
tkt lint --check | Preview style and missing numeric-ID repairs without writing; bare tkt lint applies them |
Validation checks parent targets/cycles separately from prerequisites. Project
label namespaces declare single_select and a single-line double-quoted values
array; malformed declarations fail configuration loading. Validation enforces
declared values and single-select cardinality; undeclared tags remain free-form.
See the command reference for the narrow configuration syntax.
Invalid known policy values fail with key/value/source context instead of silently
weakening gates. Corpus skip warnings are nonfatal; -o json puts one structured
warning per stderr line, so distinguish an empty corpus from skipped invalid files.
Use --strict to treat warnings as errors, --brief for short output, --fix to auto-repair (validate and sync-plan). Full options in commands.md.
Rebase reports potentially stale body citations instead of rewriting prose.
Validation treats unqualified #NNN/ticket NNN as local references and warns
when missing; qualify external issues or link them, and use code formatting for examples.
push.enabled = false in .tickets/config.toml; configuration, context and other local writes have their own behavior.tkt ready sorts by priority bucket (urgent > high > medium > low) then by ID.tkt edit only touches the field you specify — everything else preserved.env: corp only appear in tkt ready when CREW_ENV=corp. No env field = visible everywhere.requires: [gpu, linux] only appear if machine.capabilities config includes all listed values. If a ticket has env but no requires, requires is synthesized from env for backward compat. Prefer requires over env for new tickets.tkt context backend api sets a session-scoped filter. ready, query, and blocked only show tickets whose tags include all context-include tags and none of the context-exclude tags. new and batch auto-inherit context tags.-q minimizes text; -o json stays structured with -q. Read creation id/path (batch tickets[]), not result. Set TKT_ADVICE=0/off/false to disable hints.Query retains the active tag context by default and reports actual narrowing on
stderr. Use tkt query --all-context to bypass context for a whole-board audit
without changing stored context or the current environment.
Query includes tags, validation criteria, requires, ownership and eligibility;
unknown or unparsed stored fields are raw strings under frontmatter. Query and ready JSON
retain historical blocked_by alongside unfinished/missing pending_blockers.
Before writing ticket body content, read ticket-standards.md. Every ticket needs:
Set --tags <stream> at creation in multi-stream projects (one tag is the norm; omit in single-stream projects) — retro-tagging rarely happens, and tags are what scope tkt ready/tkt context to a subsystem.
Retag existing work with edit: --tags a --tags b replaces, --tags '' clears,
--add-tag x adds unique values, and --remove-tag y removes last. Edit does not
inherit active context tags or change that context.
Optional consumer CI can run strict validation and check-only lint after a pinned installation. Host settings determine whether results are required; see enforcement configuration. Remote previews use cached refs; final allocation/publication remains unresolved.
LICENSE (opens in a new tab)agents/openai.yaml (opens in a new tab)references/audit-quality.md (opens in a new tab)references/capabilities.md (opens in a new tab)references/commands.md (opens in a new tab)references/migration-assist.md (opens in a new tab)references/native-hooks.md (opens in a new tab)references/roles.md (opens in a new tab)references/ticket-format.md (opens in a new tab)references/ticket-standards.md (opens in a new tab)references/wide-refactors.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/tkt-orientStart-of-session pickup from docs/plan.md and .tickets/: read the frontier and in-progress threads, flag stale WIP, and propose the next ticket. Use when starting/resuming a session or asking 'where were we?' / 'what's next?'./tkt-reconcileEnd-of-session ticket and plan sync: update stale tickets, capture untracked work, and re-sequence docs/plan.md to match priorities and work streams. Use when wrapping up, auditing ticket health, or asked 'is everything captured?'./tkt-workClaim and execute a ready frontier ticket: verify premises against primary sources, implement, verify acceptance criteria, and close with evidence. Use when working the frontier, starting ticket NN, or doing the next ticket.npx claudepluginhub smileynet/tkt --plugin tkt