/grey-matter:reconcile-ticketsfrom grey-matter
End-of-session ticket pass: make every open ticket current, capture all untracked work as tickets, and set ordering so the frontier surfaces the right next picks. Use when wrapping up a session, auditing ticket health, or asking 'is everything captured?'.
Ships in grey-matter. 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; scripts run unread.
An end-of-session sweep of the ticket board: every planned item tracked, every open ticket
current, and the ordering set so the frontier's top picks are the right ones. Pairs with
retro at session end, reconcile-tickets grooms the board, retro grooms the
environment.
This repo tracks work with tkt, and the tkt tool ships its own skill (tkt-core) that
owns the command surface and the ticket-quality standard, and is updated as the tool evolves.
Don't re-spell tkt's commands or ticket standards here; defer to it.
First, call the Skill tool with tkt-core. It is the source of truth for: the command
surface (new/claim/close/ready/edit/query/validate), the ticket format, and
the ticket-quality standard (intent source, context, behavioral outcome, testable ACs,
ordering). Everything below is the grey-matter-specific judgment layer on top of that,
what to reconcile and how to order, not how tkt works.
(tkt is a setup prerequisite for this repo; init-project verifies the tool and its skill
are installed. If the tkt-core skill isn't reachable, stop and have the user run
init-project / install tkt rather than improvising commands. The docs/plan.md markdown
fallback is reserved for a future no-tkt optionality path, not the live path.)
Read the open/in-progress tickets (tkt ready, tkt query) and the session's decisions,
discoveries, and stated priorities. If the session was scoped to a work stream
(tkt context), note it. Build the map: what's planned, what's tracked, what's stale,
which stream each ticket belongs to.
For every open/in_progress ticket, fix real drift in place (or close/park if it's no longer relevant):
blocked_by - work genuinely can't start without another ticket, but no
edge is declared. (Don't manually clear a stale blocked_by when a dep closes, tkt ready ignores done blockers; the history is useful.)For gate changes, apply tooling proportionality before creating follow-up tickets.
Scan the session for work with no ticket: decisions needing implementation, issues found,
follow-ups from closed tickets, anything discussed-but-not-filed. File each as a ticket to
the tkt quality bar (from the tkt-core skill). Default new tickets to open (frontier-
eligible); reserve backlog for work deliberately deferred out of this cycle. Tag with its
stream at creation. Dedupe first: extend an existing ticket rather than file a near-
duplicate (tkt query).
Keep the ticket fields distinct (the tkt-core skill defines each; this is how grey-matter
applies them). A project-owned execution queue is separate from these fields:
blocked_by - structural only: A must finish before B can start. "We'd rather do
A first" is not a blocker, that's priority.An adopted execution queue is preferred work order from the project's maintained plan. Preserve
it when it differs from raw tkt ready sorting; use the frontier to check status and eligibility,
not to silently replace the adopted order. Never add blocked_by just to encode that preference.
When the project maintains an explicit execution queue, that queue controls preferred order and
tkt ready remains the structural frontier. Otherwise, tkt ready is the plan. Reconcile
blocked_by, priority and tags without changing the adopted queue or turning preferences into
dependencies. For a project using the frontier as its execution order, sanity-check with the
ordering rubric below; when a queue is adopted, keep its order and use the frontier to verify
state and real blockers, not to reorder it.
Scenario: the adopted queue lists B, then A, then C, while raw tkt ready sorts A, B, C. Keep
the adopted order, leave independent tickets unblocked, and add blocked_by only for an actual
prerequisite.
blocked_by moves a ticket later regardless of
id.Use authoritative tkt query -o json output for ticket facts. Query the full board with
--all-context so an active tag context cannot hide tickets, then select exact workstream
membership from each ticket's tags array. A scoped query may include untagged tickets:
do not treat those as members. Report untagged and unrelated tickets separately as excluded
context, and surface blockers outside the selected workstream as external blockers.
For the selected workstream, compare the stored priority and explicit/adopted queue with
structural eligibility and blocked_by facts. Report open-ticket priority/queue inversions
as advisory comparisons only; an adopted queue remains the owner's preferred order. Exclude
backlog, in-progress, done and cancelled tickets from this inversion comparison. Report queued
tickets before unfinished prerequisites, open tickets behind backlog prerequisites,
missing priorities, and open tickets whose acceptance criteria are all checked. Quote the
relevant query output (or a project script's output) for each finding; ticket prose alone
is not evidence. An adopted queue is planned order, not a dependency graph: preserve it and
report actual blockers separately. This review is read-only; do not edit ticket state or
rewrite the queue as a side effect.
For a deterministic report, run the priority-review helper
from the target repository root with node "<absolute directory containing this loaded SKILL.md>/scripts/priority-review.mjs" "<exact-tag>" "<queue-id,...>".
It queries all tickets with tkt query --all-context -o json, selects exact tag membership,
and reads only the ticket AC checkbox counts from matching .tickets files. Supply an adopted
queue explicitly when the project has one; omit the last argument when there is no maintained
queue. Preserve the JSON output as the evidence in the session report. This command is
read-only and prints JSON containing included IDs, excluded IDs with tags, out-of-scope queue
entries, external and unknown blockers, and findings. It exits 0 on a completed report and
nonzero on invalid query data, missing ticket files, or a failed query. Acceptance-criteria
counts come from checkbox lists in the ticket body sections and are a review signal;
tkt close --check-all remains the closure authority. The supplied queue is reviewed as
planned order and is never written back. Keep the shell working directory at the target
repository root; the helper path comes from the installed skill.
Run tkt validate --brief (no cycles or dangling edges), then tkt ready to inspect the
current structural frontier. If an adopted queue differs, report its order separately and
preserve it; do not replace it with the raw frontier sort. Present tickets created or updated,
the adopted queue when present, and what the frontier shows about eligibility and blockers.
Before counting residual tickets as delivery blockers, compare the requested outcome and its required acceptance with observed behavior and evidence. Keep unmet or unverified required acceptance on its owning ticket; never relabel it as a follow-up, weaken its criteria, or close the ticket to clear the frontier. Independent follow-ups keep their own criteria, status and activation conditions, but do not block a delivered outcome without a real prerequisite. Report delivered behavior, required acceptance still unmet or unverified, and independent follow-ups separately. Scenario: optional Mac validation remains unrun after the core acceptance is evidenced, so report it as an independent follow-up; if the original acceptance requires that validation, keep it unmet or unverified on the core ticket.
tkt ready).to-tickets).retro, run both at session end).Pairs with orient across the session boundary: reconcile-tickets sets the frontier
ordering at session end; orient reads that order at the next session's start.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub smileynet/grey-matter --plugin grey-matter51 skills in this plugin
/adopt-projectAdopt a brownfield repo into grey-matter: characterize its as-is model, subsume existing agent config, seed a triaged board, and wire plumbing./changelogMaintain CHANGELOG.md in Keep a Changelog format with user-facing entries. Use when recording what changed for a release, updating the Unreleased section, or asked to write/update the changelog./cheat-sheetList every skill in this set by category with a one-line description. Use when the user wants a quick reference card of available skills, asks "what skills are there", or "list all commands"./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewReview a commit range, staged changes, or working tree on two axes (Standards + Spec) in parallel sub-agents and file findings as tickets. Use to review a branch, PR, WIP changes, or "review since X"./compassFind which skill or flow fits your situation. A router over the skills in this repo. Use when you (or the agent) are unsure which skill to reach for, want to see how the skills fit together, or ask "what should I use for X".