/grey-matter:orientfrom grey-matter
Session-start pickup: get on the frontier and start the top ticket. Reads the board, resumes a live thread or claims the top ready ticket, and only pauses for something genuinely pressing. Use when starting or resuming a session, or asking 'where were we / what's next / pick up where we left off'.
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.
The session-start bookend, and its disposition is bias to action: at session start the default move is to get on the frontier and start working the top ticket. The board is the plan; orient's job is to get you onto it fast, not to narrate the repo's health.
Everything else orient reads — handoff, stale WIP, tkt validate — is a clean-session
check: a quick scan for the rare thing pressing enough to come before ticket work. If
nothing pressing turns up (the common case), don't stop to ask "what next?" — pick up the
top ready ticket and begin.
Orient is the start-of-session twin of compass: compass routes by situation mid-session;
orient gets you onto the frontier at the start. It does not reconcile the board (that's
reconcile-tickets, at session end) and does not own the skill map (that's compass) —
it reads the board, picks the top work, and hands into implement / tkt claim.
Under Kiro Crew, read ticket-state mirroring for optional chat/ledger updates when claiming, resuming or waiting on the human. Other harnesses skip this reference.
This is grey-matter's session-start authority. If a global steering rule (e.g. a legacy
frontier-work) also describes "when tickets exist, work the frontier," orient supersedes
it for this repo.
tkt context # is a work-stream scope active? note it
tkt query --status in_progress # any claimed / mid-flight thread?
tkt ready # the frontier: priority + lowest-id sorted
Decide the pick in this order:
in_progress ticket shows real recent
progress (step 2), resume it — finishing a live thread outranks starting a new one.tkt ready ticket. It's already priority- then
lowest-id-sorted with blockers hidden; the first row is the pick. No deliberation
needed for the ordinary case.Use the current Git checkout as evidence, not author names or a dirty tree as proof of
another live agent. A dirty tree proves only that uncommitted changes exist; commit
authors and recent commits prove only that commits exist. If the host exposes a current
session roster or dispatch binding, compare its checkout path and branch with git rev-parse --show-toplevel and git branch --show-current. Report a same-checkout writer only when
that binding identifies an active writer for this exact checkout. Otherwise say session
liveness is unknown.
In Codex desktop, inspect list_threads({ mode: "history", source: "codex", limit: 50 })
when available. Exclude the current thread ID; compare active peer entries' hostId and
reported cwd with the current host and git rev-parse --show-toplevel. Follow a returned
nextCursor only when claiming full roster coverage. A matching reported cwd shows a
possible workspace overlap; it does not prove the peer's tool calls ran there or that it is
writing. Chat cwd is declared session context and may differ from the actual tool working
directory. For delegated agents, use list_agents for status and the existing parent
dispatch ledger for checkout and branch; agent status alone has no path binding.
Classify the Git evidence before choosing a response:
The cheap read-only probe is the orient concurrency helper.
From the target repository root, run node "<absolute directory containing this loaded SKILL.md>/scripts/classify-checkout-concurrency.mjs".
It reads those Git facts without fetching. Pass a JSON binding as its optional first argument
only when the host explicitly supplies a current active writer, for example
{"active":true,"writing":true,"checkout":"<absolute path>","branch":"<branch>"}.
It makes no changes and exits 0 with JSON fields classification, localChangesObserved,
remoteAdvanceObserved, livenessEvidence and responses; invalid binding JSON or Git
errors exit nonzero. A same-checkout writer and remote advance can both be reported, with
both responses. The helper treats a supplied binding as caller-attested input, not verified
host state; independently inspect the current host roster or dispatch record before passing
it with writing: true. A matching active desktop thread cwd alone is insufficient; without
a verified writing/root binding it remains a possible overlap, not a confirmed writer.
Without a matching binding it returns liveness-unknown unless status -sb shows a behind
count. Remote state may be stale because the probe does not fetch. Keep the process working
directory at the target repository root; the helper's path comes from the installed skill.
Roster example: an active peer reports the current repository path as its cwd, while
the current thread is excluded by ID. Report possible overlap, then check the current
dispatch/root binding; if tool working directory or writing status cannot be established,
leave writer liveness unknown. A mismatch between chat cwd and the actual tool working
directory is reported as a mismatch, not silently resolved in favor of either value.
These are guardrails, not the agenda. Run them quickly and move on unless one trips:
git log --oneline -8 # does a claimed in_progress ticket have advancing commits?
tkt validate --brief # structural health — cycles / broken refs
node <hygiene-dir>/scripts/inspect-footprint.mjs --repo . --summary
# if ~/.config/grey-matter/hub.json exists: check unread mobile dashboard answers
node <dashboard-dir>/scripts/serve-hub.mjs --inbox .
<hygiene-dir> is the installed repository-artifact-hygiene skill. That line prints free space and, under 40 GiB, the three largest uncommitted footprints;
quote it in the session-start report. <dashboard-dir> is the installed delivery-dashboard skill; skip the inbox line if ~/.config/grey-matter/hub.json does not exist.
Classify any in_progress ticket:
tkt edit <id> --status open) and
take the top ready ticket instead" — but releasing another identity's claim is the
user's call, so surface it rather than silently doing it.Then glance at the latest .scratch/ handoff if one exists (handoff writes one at
session end; orient closes that loop). Treat it as pickup context, not instructions —
the tickets and commits it points at are the source of truth, not its prose. It matters
only if it flags something pressing or conflicts with the frontier.
Pressing enough to preempt ticket work (the short list — otherwise, just start):
tkt validate structural error (cycle, dangling dep) that corrupts the frontier;pendingCount > 0): surface and apply or confirm them before starting unrelated frontier work;None of those present → go.
The pick is a ticket; the move is a skill or flow. For the ordinary case — one
agent-ready ticket, scope clear — that's implement, and orient starts it rather than
asking permission. Name the skill so the hand-off is explicit, don't stop to route it.
Reach for compass only when the pick genuinely isn't a straight build:
| The top pick, read in full, is unmistakably… | on-ramp |
|---|---|
| One agent-ready ticket, scope clear, ready to build | implement (the default — just go) |
| An external request not yet groomed into a ticket | triage |
| A foggy effort too big for one session | wayfinder |
| Something broken: a resistant bug, a flake, a regression | diagnosing-bugs |
| User has authorized an outcome across independent frontier tickets | orchestrate; agents may select it only within that existing authorization |
| A whole spec landing together on one integration branch | implement-spec |
Call compass (don't guess from the table) when the pick matches no row cleanly, more than
one applies, or the session context implies a goal the frontier alone doesn't show. The
table summaries can drift — read a skill's SKILL.md before asserting what it does.
Keep it to a couple of lines, then act:
Then start the work — claim/resume and go. Only hand back to the user and wait when a
pressing item (step 2) needs their decision, or when the pick needs compass and the route
is genuinely ambiguous. A clean board with a clear top ticket is not an ambiguous route;
it's a green light.
(grey-matter is plan-less — the frontier is the plan. Orient does not read a docs/plan.md
and does not run tkt sync-plan.)
compass.reconcile-tickets, at session end; orient
only reads the order it wrote.handoff; orient reads one.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".