/tkt:tkt-workfrom tkt
Claim 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.
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.
When a project has tickets, work the frontier. This is the execution loop: claim a ready ticket, verify its premises, do the work, and close it with evidence.
This skill claims and executes. It does not orient/propose (that's tkt-orient, at session start) and does not reconcile/re-sequence the plan (that's tkt-reconcile, at session end). tkt-orient proposes the next pick and hands off here.
Ticket files own status/evidence; the plan owns human sequencing. tkt ready computes candidates; orientation or the user selects; this skill executes that selection. Local .tickets/ files are the only execution source. Use tkt import --github for GitHub issues; never execute provider issues directly or close them as a completion side effect.
The frontier = any ticket where status: open, all blocked_by are done, AND machine requires are satisfied (ticket's requires is empty or a subset of machine.capabilities config).
tkt ready may also be filtered by active tag context (set via tkt context <tags>). When a context is active, only tickets matching those tags appear in the frontier. Clear with tkt context --clear.
Query follows that context too; use query --all-context for a whole-board read
without changing it. Query includes stored fields and raw unknown values under
frontmatter. Ready/query JSON distinguish unfinished or missing pending_blockers
from historical blocked_by; completed edges do not need removal. -q -o json
keeps mutation outcomes structured, including previews and no-op results.
When no specific task is given, return to tkt-orient to apply the plan's intended sequence and propose one ready candidate. Do not independently select the first tkt ready row. Once the user accepts a proposal or names a ticket, verify that it is ready before claiming it.
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.
tkt claim <id> (pushes visible WIP; if a lost claim race names another winner, return to orientation for the next selection)tkt capabilities -o json for command/flag discovery and tkt <command> --help
for invocation details; project instructions and workflow plugins install separately.Reporter: Codex and Confirmation status: unconfirmed, independently
reproduce every finding before editing. Mark each confirmed, rejected, or
obsolete with evidence; never accept Codex's diagnosis or remedy on authority.Cargo.toml, library source, a real HTTP/CLI
probe), not the ticket's assertion. If a premise is wrong, correct the ticket
first (intent-preserving), then build. Once the load-bearing premises and
target files are verified, stop exploring and move directly to step 6; complete
through verification and tkt close rather than stopping mid-loop. (Field evidence: a single session
overturned four ticket premises this way — "upgrade dep X alone" that a pin
made impossible, "new dependency" that was already present, "the API returns
Err" that actually panics, a version target that was never released.)git diff for newly introduced trivial wrappers, single-use intermediate clutter, narration comments, silent fallbacks, or complexity piled onto an already-large file; simplify locally without widening scope, then re-run affected checks so closure evidence covers the final bytes.Abandoned work is not completion: use tkt cancel ID --reason REASON --note "why".
Duplicate/superseded require --by; active dependents require --repoint or
--drop-edges. Cancellation records no Resolution and checks no criteria. Reopen
cancelled work with tkt reopen before working/closing it. Terminal dependents'
old cancelled-blocker edges are dropped and named; inspect dry-run before applying.
Ticket commit hooks are skipped by default (commit.hooks = "run" opts in);
pre-push hooks remain active. Use --no-push for a local commit without pushing,
then resolve ID collisions with tkt rebase before the later push. Unrelated
pre-staged paths remain staged, outside ticket commits.
Status mutations synchronize existing rows in a clean docs/plan.md in the same
commit. Missing rows need tkt sync-plan --fix; alternate plans need explicit sync.
Never set status: done by editing the ticket file. Always run tkt close <id>. Generic new, batch and edit commands reject done. Hand-flipping the status skips the close gates (acceptance criteria, resolution, evidence) and the atomic push protocol — the frontmatter says done but nothing was verified. tkt validate flags a done ticket with no Resolution section (warning; error under --strict).
When a ticket's acceptance criteria are all met:
Body checkboxes use --check-all / --ac; --evidence maps 1:1 by index to
frontmatter validation_criteria. These counts are independent.
Treat corpus skip warnings as incomplete input, even when a command exits 0.
Under -o json, warnings are stderr JSONL objects separate from result stdout.
Resolve or record skipped files before claiming the whole corpus was checked.
.scratch) to OS trash.
Never delete artifacts of unknown ownership. Keep only items with a stated
lifecycle scope: which ticket/release/shared purpose still needs them and when
that need ends. Retain a reasonably sized attempt history where useful, not
every intermediate file. Record promoted/deleted/kept items in the Resolution,
including why kept artifacts are still needed.tkt close <id> --check-all --evidence "..." --resolution "what was done". Defaults require checked acceptance criteria (close.require_checked_acs = true); resolution is optional (close.require_resolution = false), validation criteria are optional (close.require_validation_criteria = false), and missing evidence warns (close.require_validation_evidence = "warn"). Projects may make these policies stricter; check project configuration rather than assuming universal enforcement.
--evidence is repeatable — supply one per validation criterion (positional in order, or N=text to target criterion N). A ticket with 3 criteria needs 3 --evidence values.
Use --force only with explicit justification.tkt sync-plan reports drift; --check gates CI)Unqualified #NNN / ticket NNN citations refer to this corpus. Qualify external
issues (owner/repo#NNN or a link) and quote literal examples as code. Rebase may
report candidate stale body citations after ID collisions; review them manually
because user-owned prose is preserved and the old ID can be ambiguous.
Prefer a complete body: new --body @file, --body - (stdin), or
literal text. New/batch --template NAME loads .tickets/templates/NAME.md
verbatim. edit --body preserves notes.
Default prompts must be filled and link the intent source; they remain
stub findings until replaced. Claim records the current agent as optional assignee;
other owners require an explicit force override, independently of eligibility.
Quoted template examples are valid specification content. Actual default prompts
need replacement; checking a placeholder box does not supply a real criterion.
To adjust existing tags, edit applies --tags replacement (empty clears), then
--add-tag unique additions, then --remove-tag removals. These are repeatable;
context is preserved and is not inherited by edits.
Use --parent ID on new/batch for hierarchy independently of --blocked-by.
Edit sets the same field (--parent '' clears it); missing/self/cyclic references
are rejected. Query: --parent ID (children), --match, --tag, --fields (output).
Creation JSON: read final id/path (batch tickets[]), not result.
Ticket creation is a race in shared repos; reconcile ID collisions immediately.
Status follows readiness — default to open. A new ticket is open (frontier-eligible) when the work could realistically be picked up once its blockers are done. Use --status backlog only for work you are deliberately deferring out of this cycle — speculative ideas, someday-maybe items, work parked pending a decision. Most discovered work is actionable and belongs on the frontier as open (or --blocked-by if it genuinely depends on other tickets), not in the backlog.
tkt new ... (open — it's real, scoped work)tkt new ... --blocked-by 12 (open, gated by a dependency)tkt new ... --status backlogThe test: could this realistically be worked next once its blockers clear? If yes, it's open, not backlog.
With tkt (default): tkt new <slug> --title "..." [--tags STREAM] [--blocked-by IDS] [--priority high] does the whole claim protocol in one step — fetch, true-max scan (local + origin), create, commit, push, with automatic renumber on a lost race. Get --blocked-by right at creation; fix later with tkt edit <id>. Reconcile out-of-band collisions with tkt renumber <old> <new> (birth-window only — cited ids are contracts).
Tag at creation. Set --tags when you create the ticket — retro-tagging rarely happens. In multi-stream projects, tag each ticket with its work stream: --tags ink, --tags mktoon, --tags platform. Read tags in existing .tickets/*.md frontmatter for the project's vocabulary. One tag per ticket is the norm — add a second only when work genuinely spans streams (e.g., --tags mktoon,blender for texture prep that bridges both). Omit tags in single-stream projects or for cross-cutting work. An active tkt context auto-applies its tags to new tickets, but don't rely on it — pass --tags explicitly when no context is set.
Manual fallback (tkt absent):
git fetch, then rescan .tickets/ (local + origin/main) for the true max IDtk on PATH is an UNRELATED third-party tool — never use it on .tickets/ (reads deps not blocked_by, silently hides tickets it can't parse).
open (or --blocked-by the current ticket if it truly depends on this work finishing) — only use --status backlog if it's genuinely deferred, not just "later." The goal is to keep the current ticket scoped, not to hide the new work.Ticket files are the source of truth for lifecycle status and evidence; the plan records human sequencing and carries a checked status projection. Never duplicate live status in HANDOFF.md or AGENTS.md — reference the ticket corpus and its plan instead.
tkt sync-plan reconciles the plan against ticket status. Its default plan path is docs/plan.md (override with a positional arg), and it reads a Markdown status table (| id | title | status |). See ADR 0002 for the plan-format direction (plan-as-projection primary, narrative opt-in).
tkt-orient, at session start — it hands off here)tkt-reconcile, at session end)The command reference owns exhaustive behavior for parent progress and scoped frontiers, criterion transfer, plan comparison/generation, readiness checks, configuration, undo, notes, import, reports, hooks and previews. Read its role examples before coordinating workers and native hook setup before changing write nudges. Remote previews use cached refs; final allocation/publication remains unresolved.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smileynet/tkt --plugin tkt4 skills in this plugin
/tkt-coreTrack 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./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?'.