/agentic-workflow:agentic-workflow-doctor [--unit <slug>] [--search "<words>"] [--candidate <n>]from agentic-workflow
Mines project journals and unit docs for accumulated ceremony failures, applies a discard/report rubric, and routes an anonymized bundle to an upstream issue with user consent.
Ships in agentic-workflow. 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.
Runner commands below are
runner <subcommand> [args…]— the launcher, its order and the pin are owned by references/RUNNER.md: read it before the first command, then keep it for the whole run — nowhere else spells either.
One invocation turns the project's own durable record — the session journal and
the unit docs — into one anonymized, maintainer-actionable report, and routes it
to the issue that already covers the defect family (or a new one). The
deterministic half is the workflow-doctor command family; the only part a model
does is apply the rubric in references/RUBRIC.md and
write one sentence per class.
Load and verify the canonical Turn contract before ending every turn. This skill is a read-only reporter with one consent-gated write: the read-only profile substitutes the commit/push/PR boxes, and publish is the only command that reaches the forge. Skill-specific additions:
✓ All five `runner workflow-doctor` commands that apply ran, and each exit code is
recorded (`mine`, `battery`, `bundle`, `route`, and `publish` only on consent)
✓ The triage file was written by lookup against references/RUBRIC.md — one row per
marker kind the mine receipt carries, no verdict or reason outside the rubric
✓ The bundle and the routing receipt were shown to the user verbatim before any
filing, and nothing was filed without an explicit yes in this turn
✓ No file inside the project changed; the working directory is byte-identical to
the run's start (temp files live in the OS temp dir and are removed)
✓ The closing `→ Next:` block names the issue numbers the routing proposed, or
`no filing` when the user declined
Missing reference → STOP. About to end the turn with any box unchecked? The turn is NOT done — complete the missing box first.
review-change,
fold-findings or execute-phase's job. Not as a side effect of another
step: this skill never runs unless the user invokes it.AGENTS.md, else CLAUDE.md — the guide says which
is canonical) and the documentation map it carries. Follow the project's own
commands; this skill names runner because that is the contract's form.docs/LOGS.md, .agentic-workflow/journal/,
or docs/{features,fix}/*/SPEC.md. None of them → report insufficient-input
and stop: there is nothing to mine, and a clean receipt would be a lie.Work in a scratch directory outside the project (tmp=$(mktemp -d)); remove it at
the end. Each step's stdout is the next step's input.
runner workflow-doctor mine --json > "$tmp/mine.json"
runner workflow-doctor mine
The second form is the human block: carriers read, one line per marker kind, the
verdict. A refusal (exit 1) names the carriers it looked for — report it, do not
retry with a different flag.
runner workflow-doctor battery --json > "$tmp/battery.json"
runner workflow-doctor battery --unit <slug>
--unit is optional (the slug the user named); without it the tier cell reads
none. The receipt carries the doctor's doctor@1 envelope as-is, the runner
version against the installed pin, and the installed skill set — re-derive none
of it. The skills tree is located, not assumed: a skills-absent degradation
while the skills are installed (a host-mounted or other-layout tree) is answered
by passing --skills-root <dir>, never by re-running with edits.
Read references/RUBRIC.md — the table is the whole
rubric; classify by lookup, one class per marker kind the mine receipt carries.
Write $tmp/triage.json:
{
"classes": [
{
"class": "gate-red",
"verdict": "report",
"reason": "reproducible-defect",
"defect": "one sentence a maintainer can act on, with no path, name or log text",
"rows": ["W3", "W17"]
},
{
"class": "rework",
"verdict": "discard",
"reason": "one-off-human",
"rows": []
}
]
}
Rules the command enforces (a violation refuses the whole bundle by name):
verdict is report or discard; reason comes from that verdict's column.report class cites 1–5 W<n> ids from the mine receipt and states a
defect; occurrences is computed from the corpus for you.discard class cites no row and states its reason.unclassified, so a class you skip is visible, never silently dropped.runner workflow-doctor bundle --triage "$tmp/triage.json" --mine "$tmp/mine.json" --battery "$tmp/battery.json" --json > "$tmp/bundle.json"
runner workflow-doctor bundle --triage "$tmp/triage.json" --mine "$tmp/mine.json" --battery "$tmp/battery.json"
The human form is the receipt you show the user: the allowlisted header cells,
one ## Report class section per finding, the discarded table, the counts. The
--json form is what route and publish read.
runner workflow-doctor route --bundle "$tmp/bundle.json" --search "<the defect in a few words>"
runner workflow-doctor route --bundle "$tmp/bundle.json" --candidate 698 --candidate 701
Try the known corpus first, one --candidate each: #170, #301, #260, #698,
#701, #702 — or a --search phrase built from the class names and the defect
shape. The receipt answers one line per class: existing-issue #<n> with the
tokens that matched, or new-issue. A forge refusal is a named class
(unavailable-forge-*) on stderr with exit 1 — report it; never re-run with a
different transport.
Show the bundle and the routing receipt verbatim. Ask one question: file on which issues, or hand the draft over. Only on an explicit yes in this turn:
runner workflow-doctor publish --issue <n> --bundle "$tmp/bundle.json" --repo gtrabanco/agentic-workflow --yes
runner workflow-doctor publish --new-title "<title>" --bundle "$tmp/bundle.json" --repo gtrabanco/agentic-workflow --yes
--repo is the upstream tracker, never the user's own repository. Without
--yes the command refuses (exit 2) before it reads the bundle or runs a forge
command — that refusal is the consent gate, not a bug. One filing per class: a
second post of the same bundle is a duplicate, and a declined filing ends the run
with no filing.
Allowed
runner workflow-doctor mine | battery | bundle | route — read-only, any time.references/RUBRIC.md and the project's own guides for orientation.runner workflow-doctor publish — after an explicit yes, to the upstream
tracker the user named.Forbidden
W<n> id: the bundle refuses
unknown tokens by name, and a prose guess is worse than a refusal.defect sentence is yours to write; the
evidence is the slug and the token.publish with different flags to get past the refusal.review-change, audit-pr and fold-findings produce the failures this
skill mines; they never run it.product-audit's journal dimension reads the same carriers inside the project;
this skill is the anonymized, upstream-facing half.triage-issue classifies one item at a time against this project's roadmap;
the doctor classifies a whole corpus against the upstream tracker.#698) may suggest running this skill. The
invocation always stays the user's (S9).report occurrences + unclassified = the mine receipt's rows — a discard
cites no rows, so its occurrences are counted inside unclassified).no filing.no filing.Preamble + no-slash-menu fallback: owned by
PORTABILITY.md:
model:/effort: — the rubric is a lookup table and the
commands are deterministic, so a small model is enough; use a stronger one only
if the user asks for a judgment the table does not cover./loop — one pass, then the closing block. A second pass is
a new invocation the user asks for.bun/node assumption — the launcher and the pin are the runner
contract's (references/RUNNER.md), same argv on every host.→ Next: /agentic-workflow-doctor --unit <slug> — one pass over this project's record, when the user wants the batch.
· /agentic-workflow-doctor with no flags → the same pass, project-wide, when no unit is in scope
· /review-change → when the failure is a live blocker in the current unit, not a history question
· /triage-issue → when the user has one filed item to classify, not a corpus to mine
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gtrabanco/agentic-workflow --plugin agentic-workflow33 skills in this plugin
/audit-docsAudit cross-document coherence: docs ↔ READMEs ↔ roadmap ↔ code ↔ fix index ↔ issues. Finds drift — features in docs/ not in the roadmap (or vice versa), fix-index entries already merged/closed, broken documentation-map links, dependency cycles, artifacts in the wrong language, naming-convention violations, project-charter coverage — and reports them ranked by severity, fixing only low-risk items on request. Model-agnostic: the skill inherits whatever model and effort your agent session is already using. Triggers: "check doc consistency", "are the docs in sync", "audit the docs", "doc coherence review", "did the docs drift", "validate the roadmap".
/audit-prAudit a whole PR against the delivery contract and return MERGE-READY or evidenced blockers with the full URL. Consumes the current review-change REVIEW-PASS receipt instead of re-running review axes; posts a SHA-bound ready comment; never edits or merges. Triggers: "audit-pr", "is this PR ready", "merge gate".
/aw-doctorShort name for /agentic-workflow-doctor: one user-initiated pass over this project's own ceremony-failure record, a fixed discard/report rubric, one anonymized bundle, routed upstream with consent. Triggers: "aw-doctor", "/aw-doctor", "short doctor", "run the doctor".
/batch-schedulerDeterministic batch planner: read the live work graph and emit parallel-execution batches (order-respecting, collision-free) as the fixed `batch-plan@4` machine envelope — which issues can run together now, which are blocked and by what, which unit is really in flight, which pairs would rewrite the same file, which surface each lane occupies, what changed. Triggers: "batch scheduler", "what can run in parallel", "plan the batches", "batch plan".
/discover-repository-stateDiscover repository evidence and write a frozen Normalized Repository State. Produces verified repository evidence and keeps facts, decisions, planned work, documentation, and inference separate. It does not make recommendations or infer implementation from documentation. Triggers: "discover repository state", "normalize repository state", "freeze repository facts".
/execute-phaseStep executor for units whose triage (unit-lane) decided which steps the unit needs. Implements one triaged step (or all remaining steps), with frozen acceptance, step-local gates, commits, red-gate repair, and diff-size guard. BREAKING: replaced PLAN.md/TASKS.md/progress.md/ACCEPTANCE.md with the unit doc's Tasks section, Evidence rows, and Progress log; ACCEPTANCE.md is gone — acceptance criteria live in the unit doc and Evidence rows are the receipts.
Other plugins' skills for the same job