/tkt:tkt-orientfrom tkt
Start-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?'.
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.
Session-start bookend to tkt-reconcile. Read the reconciled plan + ticket state, detect anything a prior session left mid-flight, and propose a concrete next step — then hand off to the actual pick-and-work.
This skill reads and orients. It does not re-prioritize or rewrite the plan (that's tkt-reconcile, at session end) and it does not claim-and-execute (that's tkt-work) — it stops at a proposal.
Ticket files own status/evidence. The plan owns human sequencing; tkt ready computes eligible candidates. Orientation applies that sequence to propose one candidate, then hands the accepted or user-selected ticket to tkt-work.
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.
Ready also hides work owned by other agents (or any owned work when unidentified). Cancelled is retired history, not completion or remaining work; only done satisfies prerequisites. Query includes cancelled records, so keep that distinction when describing progress. Use cancel/reopen workflows rather than relabelling retirement as a successful close.
tkt context # is a work-stream scope active? note it
tkt ready # the frontier: what's pickable now
tkt query --status in_progress # claimed/mid-flight threads
tkt query --all-context --status in_progress # inspect WIP outside the active stream
These are instant reads — batch them into one call (with echo ---MARKER--- separators) rather than issuing them separately.
Then read the reconciled ordering. The default is docs/plan.md — read it directly; this is what tkt-reconcile last re-organized and is authoritative for intended sequence. If docs/plan.md is absent, do NOT conclude "no plan" and stop: check AGENTS.md for the project's declared status/sequencing source — many repos deliberately use a BACKLOG.md or a spec overview and treat tkt ready/tkt query as authoritative. Orient from whatever source the project declares, and name the source you used. If a HANDOFF.md exists in the ephemeral dir (most projects won't — skip silently if absent), read it too for extra context.
If tkt query --status in_progress is empty, there's no WIP to classify — skip straight to step 3 (still glance at git log once for the Heads-up freshness check: confirm the last commit was the expected tkt-reconcile/prior work, not a surprise).
Otherwise, an in_progress ticket is a claim a prior session made. Check whether the claim is real progress or an abandoned/crashed session:
git log --oneline -5 # recent commits — do any touch the in_progress ticket's files?
For each in_progress ticket, classify:
tkt claim <id> to surface the frontier but wrote no code.For stale WIP: flag and offer, never auto-release. Present it as a choice — "#NN is in_progress but unstarted; resume it, or release it back to open?" Releasing is tkt edit <id> --status open, but it's the user's call (releasing another identity's claim is a judgment, and the push is the real race boundary).
A plan-level "active thread" is not a tkt claim. The plan (or a reconcile note) may say a thread was "in flight," yet nothing is in_progress in tkt. That means you're starting fresh on that thread's next ticket, not resuming a claim — say so, and don't hunt for a non-existent WIP.
Use the same rubric tkt-reconcile writes the plan against (do not re-derive your own order):
high/urgent breaks ties among equals; it does not let a late ticket jump a live earlier thread.The result is a proposal, not a claim. tkt ready already sorts priority-aware + lowest-ID — but its top line is NOT automatically the pick. When the plan's "current priorities" ordering disagrees with the frontier's first line (e.g. the frontier leads with #18 but the plan ranks #19 first), the plan wins (rubric item 4) — the plan encodes intent the frontier can't see. Name the divergence in your Heads-up, and state which source you followed; don't claim a false "both agree."
Keep it short. A distillation, not a dump:
tkt-work (claim + execute the ticket).tkt validate --brief # structural health — surface cycles/broken refs as a Heads up
tkt sync-plan --check --brief # plan↔ticket drift
Running these in the same early batch as step 1 is fine (and usually better — their results feed the orientation). Interpreting sync-plan --check:
tkt-reconcile before picking up, rather than orienting against a stale plan.docs/plan.md is absent → this is NOT drift and NOT a failure. The repo may track sequencing elsewhere (a BACKLOG.md, a spec overview) or rely on tkt ready alone (see step 1). Do not recommend tkt-reconcile — note the plan source you used and proceed. A non-zero exit here is expected, not an alarm.Recurring cosmetic warnings (e.g. unchecked-acs-on-done on done-and-superseded tickets) belong in the Heads-up once, with a suggested one-time tkt close --check-all cleanup — don't re-flag them every session.
tkt-work — orient proposes or the user selects; tkt-work claims and works that ticket)tkt-reconcile, at session end — orient only reads the plan)in_progress claim (flag + offer; the user decides)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
4 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-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