No slash command · from agentic-workflow
Internal contract defining the eight phase-lint rules, two accepted phase grammars, PASS/BLOCKED result, and normalized phase fingerprint. Consumed by execute-phase and lane's plan step.
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.
None: SKILL.md is the whole skill.
The one authoritative owner of phase shape for this workflow. Planners lint
every phase they emit against the eight rules below; execute-phase re-checks
the same rules before any edit. Nothing else may define what a valid phase is —
including which grammar a phase is written in.
plan step — lint every phase before emission.execute-phase — phase-lint pre-flight guard before editing a phase.Every implementation phase must pass all 8 boxes before it is emitted (planner
skills) or executed (execute-phase pre-flight). Fail-closed: any unticked box
blocks emission/execution until the phase is re-cut or split.
+, ,, &,
and/y, or /. Sole authorized exception: the templates' literal closing
title Hardening & PR (docs/features/_TEMPLATE/SPEC.md,
docs/fix/_TEMPLATE/SPEC.md) is kept verbatim — its & is a normalization
separator, not a deliverable joiner, and its title-deliverable normalizes to
hardening-pr. Any other &-joined title still FAILs.schema/db | domain | api | ui | config/infra | docs | hardening | close-out;
FAIL if any task's target file belongs to another. Tests for the phase's own
layer belong to the phase; a test-only phase declares hardening.→ chain of
implementation steps, enumerates > 3 cases/scenarios, or creates > 1 file of
distinct concerns.Decide, choose, OR between
alternatives, If … then <change scope>.manual.The executed-phase exemption (boxes 3 and 7 only). A fully-ticked phase is historical:
those two boxes are positional — box 3's budget and box 7's gh pr
placement both key off the plan's last phase — and a replan appends its work
after an executed hardening (the lane's replan append), which would otherwise
retro-block work that already passed this gate when it was emitted.
The exemption is scoped to those two boxes: boxes 1, 2, 4, 5, 6 and 8 stay armed for an
executed phase, and for an unemitted phase every box stays armed, so pre-ticking
a phase to dodge a check is a defect, never a pass.
One contract, two shapes. runner phase-lint mechanizes exactly this
split and never carries a second copy of the semantics:
| grammar | where | shape |
|---|---|---|
| plan | a plan file, or any ##/###/#### P<n> — <Title> heading | heading + Layer: <enum> + - [ ] tasks + Done-when: |
| unit doc | the unit doc's ## Tasks section | one P<n> — <task> (validator: <command> <outcome>) bullet per phase, optionally carrying the executed-phase tick mark (- [x] P<n> — …; the tick is state, never a second phase), wrapped lines joining the bullet, plus an optional nested - Relevant files: <path, path…> line |
Precedence is fail-closed and one-way: if a document carries any plan-style
phase heading, the plan grammar governs it; only when it carries none does
the unit-doc grammar apply; a document with no phase in either answers
BLOCKED: no-phases. A P<n> bullet outside ## Tasks (a progress-log line,
for instance) is prose, never a phase.
Scope of the two shapes. The four unit-doc templates seed one shape, every
skill that writes a unit doc writes it, and it declares no layer, so no path
table is consulted: the unit-doc grammar is the supported consumer shape. The
plan grammar and its target→layer prefix table are this repository's own
legacy shape — the table maps this tree (skills/, packages/, scripts/,
docs/, template/, .github/, .agentic-workflow/), so a target under a
project's own tree (src/**, app/, lib/) answers BLOCKED: layer-unknown,
naming the token and this scope. A project that wants the plan grammar's
cross-layer check would need a declared map; until one exists, the honest answer
is a named refusal, never a silent pass. Only boxes 3 and 7 consult a phase's
placement beyond that table.
A bullet has no separate title line and declares no layer, so two boxes have no input and are skipped (not "passed"); the rest run unchanged over the bullet's joined text:
| box | unit-doc status |
|---|---|
| 1 title names one deliverable | n/a — there is no title line; the bullet is the task, and box 4 carries atomicity |
| 2 one declared layer | n/a — a unit doc declares no layer (layers belong to plans) |
| 3 ≥ 1 task, ≤ 8 tasks | applies — a bullet is exactly one task; a repeated P<n> number FAILs as duplicate unit-doc phase P<n> |
| 4 one deliverable | applies — same arrow-chain, >3-case and created-file checks |
| 5 zero decision words | applies, unchanged |
| 6 no conditional scope mutation | applies, unchanged |
| 7 no external/manual gates | applies with the final-bullet exemption: the last bullet is the unit doc's verification/close-out line, so manual / ask the user / gh pr are allowed there only |
| 8 machine-checkable done-when | applies — the bullet's (validator: …) span is the done-when: it must carry a backticked command and an expected outcome; a bullet without the span FAILs as bullet carries no \(validator: …)`` |
Relevant files: sub-section is metadataA nested - Relevant files: <path, path…> line under a bullet declares that
phase's read set (the lane's plan step writes it from its own discovery). It is
never a task: it does not count toward box 3, never feeds a box-2 target and
is scanned by no rule. Every entry must be a path or a glob; an empty list, an
empty entry or a token that is neither fails the phase closed under its own
relevant-files: finding id — a malformed read set is reported, never dropped.
Never-authority (same rule as every selector): a file that is not listed
is never out of scope — an executor may always add one, logging it in the unit
doc's Progress log.
Phase-lint: PASS (8/8)
A unit-doc bullet phase reports the boxes it actually runs:
P<n> Phase-lint: PASS (6/6) · fingerprint P<n>:unit-doc:<n-tasks>:<title-deliverable>
or, on the first failing box:
Phase-lint: BLOCKED — box <n>: <one-line reason>
A plan-grammar target no shipped prefix maps fails closed by name, replacing box verdicts, because the cause is the document's tree, not a rule:
P<n> box-2: task <n> target `<token>` belongs to no layer the shipped prefix table knows — …
verdict BLOCKED: layer-unknown
A malformed Relevant files: sub-section reports under its own id:
P<n> relevant-files: <one-line reason>
A BLOCKED phase is re-cut or split; it is never emitted, committed, or executed
as-is (no --force bypass exists for a non-atomic phase — that decision belongs
to the user).
Each phase's fingerprint is a deterministic string over the phase's shape:
P<n>:<layer>:<n-tasks>:<title-deliverable>. It binds the lint result to the
exact phase version a plan committed to — templates and plans record
Phase-lint: PASS (8/8) · fingerprint <fingerprint> so later re-lints and
execute-phase can confirm nothing in the phase shape drifted since planning.
A unit-doc bullet phase has no layer, so its slot is the literal unit-doc
(P<n>:unit-doc:<n-tasks>:<title-deliverable>, title = the bullet text up to
its first :, with the (validator: …) span removed); both grammars hash the
same way, so a re-lint of either is comparable with its own earlier run.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gtrabanco/agentic-workflow --plugin agentic-workflow33 skills in this plugin
/agentic-workflow-doctorUser-initiated batch ceremony-failure triage: mine this project's own journal and unit docs for its accumulated ceremony failures, apply a fixed discard/report rubric, render one anonymized bundle, and route it upstream to an existing or new agentic-workflow issue — with consent. Read-only; the user starts it. Triggers: "agentic-workflow-doctor", "aw-doctor", "why do my reviews keep blocking", "triage my ceremony failures", "report a workflow bug upstream".
/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".
Other plugins' skills for the same job