/tkt:tkt-reconcilefrom tkt
End-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?'.
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.
Review all tickets against session context, then re-organize the plan to match current priorities. Three outcomes: every planned item is tracked, every ticket is current, and the plan's ordering reflects the agreed priorities and work streams.
Identify this invocation with --agent <lowercase-slug> or TKT_AGENT before using ready or claim. Unidentified calls see only unrestricted work; ready reports hidden agent-restricted tickets on stderr. query keeps tag context and lists all policies regardless of current agent. Agent eligibility is independent of tags and all-of machine requires. See tkt-core for allow/exclude flags and explicit claim overrides.
Read all open tickets and the current plan (docs/plan.md, session decisions, stated priorities). If the session is scoped to one or more work streams (tags), note them. Build a mental map of: what's planned, what's tracked, what's stale, which stream each ticket belongs to.
tkt context # inspect the effective context
tkt query # matching and untagged tickets
tkt query --all-context # whole-board audit without changing context
Read query's tags field for existing tag vocabulary.
TKT_CONTEXT overrides the stored context. For a temporary stream query, change
only that command's environment, preserving the stored context and any existing
environment override. In a POSIX shell:
TKT_CONTEXT=ink tkt query
In PowerShell:
$prior = $env:TKT_CONTEXT
try { $env:TKT_CONTEXT = 'ink'; tkt query }
finally { $env:TKT_CONTEXT = $prior }
For every open/in_progress ticket, check for real drift:
tkt ready resolves dynamically (done blockers are ignored), so this is cosmetic, not functional. Do NOT manually clear blocked_by when a dependency closes — the history is useful context. Only flag if a ticket genuinely isn't appearing on tkt ready when it should be.For each issue, fix in place or retire irrelevant work with tkt cancel ID --reason REASON --note "why". Duplicate/superseded need --by ID; active dependents need
explicit --repoint / --drop-edges. Terminal stale edges are dropped and named,
preserving closure prose. Cancelled is not done and never satisfies prerequisites.
Use tkt reopen ID if the retirement decision changes. Reserve backlog for work
still wanted but deliberately deferred.
Scan session context for work that has no ticket:
For each gap, create a ticket following the quality standard below. Default new tickets to open (frontier-eligible) — reserve --status backlog for work you are deliberately deferring out of this cycle. Tag it with its work stream at creation (step 5).
After creating tickets, add them to the plan — every open ticket needs a plan row so tkt sync-plan --check passes clean. Place new rows in the appropriate plan section with correct status, then re-organize per step 6.
Apply the tkt-core skill's ticket-standards (if the tkt-core skill is loaded, read references/ticket-standards.md; otherwise apply the checklist below).
Every new ticket MUST have:
validation_criteria frontmatterblocked_by and priority (see step 5)--tags <stream> in a multi-stream project (see step 5)tkt new <slug> --title "..." [--tags STREAM] [--blocked-by NN,NN] [--priority P]
Supply the complete body at creation with new --body @file, stdin --body -, or
literal text; new/batch --template NAME selects a verbatim body from
.tickets/templates/NAME.md. Fill any default prompts and link the intent source
through --spec or a durable body citation. Body AC checkboxes use --check-all/--ac;
frontmatter validation_criteria maps 1:1 by index to --evidence, with independent
counts. A ticket that fails the quality bar wastes the implementer's context window.
Three independent axes — don't conflate them:
Dependencies (blocked_by): structural — A must finish before B can start.
Priority (--priority urgent|high|medium|low): contextual weight, NOT a hard ordering override.
tkt edit <id> --priority high|medium|lowWork-stream tag (--tags <stream>): which parallel thread the ticket belongs to.
ink, platform, config, …) using the tags in existing ticket frontmatter as the project's vocabularytkt context <stream> so tkt ready and new-ticket tagging focus on that thread; clear with tkt context --cleartkt validate --brief # catches cycles and broken blocked_by refs
This is the judgment step the tool can't do: tkt sync-plan --fix only reconciles derivable columns (status). Re-sequencing and re-grouping is yours.
Plan-ordering rubric (apply in order — each rule only breaks ties the one above leaves open):
blocked_by (or a hard external dependency) moves a ticket later regardless of its ID — you cannot start what's blocked.high/urgent raises a ticket's standing among otherwise-equal candidates — it breaks ties and signals importance. It does NOT entitle a later, higher-priority ticket to jump ahead of an earlier in-progress thread. Priority informs; position and blockers decide.Apply the rubric to each plan section:
tkt edit --priority) so the weight matches the plan — then note why in the ticket or plan when a priority changed.Then reconcile derivable columns:
tkt sync-plan --fix --brief # regenerate status cells; never invents ordering
tkt sync-plan --check --brief # plan↔ticket status agreement
tkt validate --brief # structural health (cycles, refs)
tkt ready # frontier matches the rubric's expected first picks
Present: tickets created, tickets updated, plan re-organization (what moved and why), current frontier.
tkt-orient, the session-start counterpart that reads the state this skill leaves behind)tkt-work) — this skill makes the plan's frontier pickable, it doesn't picktkt-core skill's ticket-creation workflow, or your harness's planning flow)Query supports --match, repeatable --tag, and --fields; see query usage.
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-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.