The bar an issue meets before /sdlc:orchestrate runs on it, the issue-body grammar that bar keys on, the terms for a repo statement an issue contradicts, and the check that, given the statuses the caller allows, refuses an issue that is closed, closed by an open PR, named by a local branch or in a status not allowed, and otherwise traces the body against the code, skipping or narrowing that grading when the issue's readiness stamp allows, and returns what the issue is missing as a gap list, with the graded commit and the files a ready verdict relied on, and how a caller writes the stamp. Not invoked from the user's slash menu.
Install
npx skillscat add thevoskamps/claude-plugins-marketplace/orchestrate-readiness Install via the SkillsCat registry.
Orchestrate Readiness
An issue is orchestrate-ready when an issue-developer can implement
it without stopping to ask a question the body should have answered.
This skill owns the bar that decides that, the headings a body carries
so a reader can key on them without reading prose, and the check that
grades a body against the bar.
Invocation
/sdlc:orchestrate-readiness <issue> --allow-status <name> [--allow-status <name>]...One issue, in any form github-ref item --type issue accepts, naming
an issue in the checkout's origin repository, and every status name
the caller allows, each as its own --allow-status. The check reads
the issue's body, state, status, closing PRs, edges and readiness
stamp, the local branches, and the tree at check time. It edits
nothing: the caller writes the stamp, per "Writing the stamp".
The readiness bar
The bar is the issue-developer's own escalation rule: a design
decision the issue does not answer. That agent stops and reports
when it hits one, which costs a full round trip through the
orchestrator and the human. An issue meets the bar when nothing in it
can trigger that stop. The items:
- Self-contained. The body alone suffices. It fails on a reference
out of the body — to another issue, a PR, a commit, or a document
outside it — on two opinions left standing on one point, or on an
amendment layer ("Update:", "Actually, on reflection…"). One clean,
current spec, written as the thing to build. - No unanswered design decisions. Every design decision the
implementer would otherwise have to make — naming, placement in the
tree, load mode, the fate of content the change subsumes, a
structural contract a downstream consumer depends on — is settled in
the body. It fails on a decision the body poses as a question or
leaves implicit; the gap line names the decision. - In-repo work only. The body asks only for changes an implementer
makes inside this repository. It fails on a sentence asking for a
deploy, an action in a cloud account or another repository, or a
manual step; the gap line quotes that sentence. - Dependency posture. The issue's
blockedBy/blockingedges
describe reality. Read the edges themselves; never infer sequencing
or independence from issue titles. It fails on a dependency the body
states that no edge carries, or on an edge the body contradicts. - Spec quality. It fails on a sentence that changes neither what
the implementer builds nor what the reviewer checks. A sentence about
how the change came to be asked for, what an earlier round did, or
why an earlier design was rejected is provenance rather than spec —
it costs the implementer reads that buy nothing. - Outcome, not method. It fails on a sentence that specifies an
implementation step the implementer can derive from the tree or from
running a tool, rather than the delivered behavior, a constraint, or
a decision. Its failures include a fix prescribed per finding of a
tool's report — a linter, a type checker, a test run, a scanner; a
file-and-line location given as where to make a change; and a
diagnosis taken from a tool's report and stated as fact. The item
admits what the implementer cannot derive: the content of a config
file, a name, a placement in the tree, a policy such as which findings
may be excluded and where, an interface a downstream consumer depends
on, and the observable outcome — for tool output, that the tool
reports clean. The gap line names the sentence and says to restate it
as the outcome it was meant to produce. - No contradicted repo statement. It fails a body that specifies
something an instruction file in the repo forbids and does not say
what happens to that statement. The body passes when, for each
statement it contradicts, it says one of: the statement is deleted,
the statement is replaced with given text, or the statement gains a
named exception with the reason; the statement's file is then in the
files-affected section, and a criterion covers the edit. The gap line
quotes the statement and names its file. The terms are defined under
"Contradicted repo statements" below. - Acceptance criteria. The body carries the acceptance sections
the grammar below defines, and each bullet in either is one claim
about the delivered change that a reviewer can attempt to disprove
against the diff. Your own reading of the body
settles which file class a bullet's subject is in. It fails:- when neither
## Code and instruction Markdown acceptancenor## Documentation acceptanceis present; - when a section is present with no bullet under
### Mechanicalor### Semantic; - when a section's
### Mechanicallines depart from that grammar in
any way the grammar states — in a line's shape, in a bullet's check
key, in a bullet carrying a command, or in a path a bullet names; - when the body carries an
## Acceptancesection; the gap line says
to split it into## Code and instruction Markdown acceptanceand## Documentation acceptance; - on a bullet whose subject spans both sections' classes; the gap
line names the bullet and says to split it into one bullet per
class; - on a bullet whose subject's class does not match its section; the
gap line names the bullet and the section it belongs in; - on a bullet that is not such a claim.
- when neither
- Files affected. The body carries the files-affected section the
grammar below defines. Settled against the tree and consulting no
prose, it fails when the section is absent or departs from that
grammar in any way the grammar states — in whether it carries a
bullet, in a bullet's shape, or in what a bullet's tag asserts about
the tree at check time. The list is a floor and not a fence: the
implementer may touch paths outside it, and a listed path the change
ends up not touching is not a failure. Whether the list names a path
changes nothing about that path's class, its owner, or how it is
reviewed — those follow from the path alone.
Contradicted repo statements
An instruction file is a file a session auto-loads as instructions,
or one another instruction file directs the model to read: everyCLAUDE.md, every file under docs/rules/, every SKILL.md, every
agent file, and the nested CLAUDE.md, and the on-demand files it
routes, of every directory the body touches. Documentation —
changelogs, ADRs, and every README — is not an instruction file and is
not searched.
A statement in an instruction file that an issue contradicts is one of:
- A capability claim — what the harness or a tool can or cannot do.
It can be tested. - A policy claim — a choice the repo made where the harness permits
both.
Prescriptive wording such as "never" or "may only" does not decide the
kind. A statement is a capability claim only when a test of it was
run; every other contradicted statement is a policy claim.
A test is a read-only command whose output settles the claim — one
that changes no file and no remote state — and its output is quoted
verbatim wherever the test is reported. Whoever runs the test chooses
it, and never runs a command the issue body spells anywhere. A claim
that only a command changing a file or remote state could settle, or
one a rule forbids or gates behind the human's approval, is not tested,
and the statement is then a policy claim.
The issue-body grammar
These are the headings a writer emits and a reader keys on.
The acceptance sections
## Code and instruction Markdown acceptance
### Mechanical
- [<key>] <arguments>
### Semantic
- <criterion>
## Documentation acceptance
### Mechanical
- [<key>] <arguments>
### Semantic
- <criterion>A bullet is a line opening with a hyphen and a space followed by text;
a hyphen and a space with nothing after them is not one. Each bullet is
one criterion whose subject is in the class its section names.## Code and instruction Markdown acceptance holds the criteria about
code and instruction Markdown, and ## Documentation acceptance holds
the criteria about documentation. A documentation-only change carries
the second alone; which sections a body must carry, and with what, is
the "Acceptance criteria" bar item's.
Within either section, ### Mechanical holds the criteria one of the
check keys below settles; ### Semantic holds every other criterion,
including any a key cannot express.
Every non-blank line under ### Mechanical is a bullet, or an indented
line continuing the bullet above it with no blank line between; any
other line, a fenced block's opening included, is a gap. Every### Mechanical bullet opens with a check key followed by its
arguments, and never carries a command. A path is a repo-relative
literal with no whitespace and no glob. A path the script cannot check
as one location inside the repo root — under a prohibition key, as one
file to read — is refused, and the bullet's gap line says why. The
keys:
[no-match] <ERE> in <path>…— no line of any named file matches
the ERE.[no-match-multiline] <regex> in <path>…— the regex matches nowhere
in the whole content of any named file.[match] <ERE> in <path>…— at least one line of each named file
matches the ERE.[match-multiline] <regex> in <path>…— the regex matches somewhere
in the whole content of each named file.[exists] <path>— the path exists.[executable] <path>— the path is an executable file.[version-bumped] <plugin>—versioninplugins/<plugin>/.claude-plugin/plugin.jsonis higher than onorigin/<default branch>, where<plugin>is the plugin's directory
name underplugins/.[max-lines] <path> <n>— the file has at mostnlines.[lint-clean] <path>…— each file lints clean: Markdown with themarkdownlint-cli2binary onPATH, run from the worktree root,
shell withbash -n.[test-passes] <path>— a test script inside the repo exits zero
when run withbash.
An ERE is matched with grep -E, one line at a time. A multiline key's
regex is a Perl regex that perl -0777 applies to the whole file, with
the m and s modifiers off unless the regex sets them inline.
sdlc-readiness-check grades the ### Mechanical bullets of both
acceptance sections against the tree at check time, by the same keys
and rules in each. [no-match] and [no-match-multiline] are the
prohibition keys, and the only keys it executes: each site one reports
— a line, and for [no-match-multiline] the line a match starts on —
is covered only when its file is listed in the files-affected section
with the tag update or delete. A named path absent from the tree at
check time passes only when the files-affected section lists it asnew, and is a gap otherwise; neither key is run on such a path. Every
other key, [match] and [match-multiline] included, is
presence-shaped and never executed, since it fails before
implementation by design: it passes when each path it names — for[version-bumped], the plugin's plugin.json — is listed in the
files-affected section, whatever the tag. A bullet with no key, a key
outside this list, or a line under ### Mechanical that is not a
bullet is a gap, and nothing is executed for it.
Each of the four pattern keys has its pattern syntax-checked at check
time: an ERE with grep -E, a multiline regex with perl, each
compiled against empty input. A pattern the tool rejects is a gap, and its gap line
quotes the first line of the tool's error.
The files-affected section
## Files affected (floor)
- `<repo-relative path>` (<tag>)The section carries at least one bullet, and every bullet is one path
in backticks followed by exactly one tag in parentheses, where <tag>
is one of new, update, delete and nothing else: new for a path
the change creates, absent from the tree at check time; update for
one it edits and delete for one it removes, each present in the tree
at check time.
The check
Given the issue, resolve it per the sdlc:reference-resolution skill,
invoking it first when it is not preloaded, withgithub-ref item --type issue '<issue>'; <N> below is its number
field.
Fetch the body and the edges with
/issue-view <N>.Run
sdlc-readiness-check <N> --allow-status <name>..., which this
plugin puts onPATH, from inside the repo's working tree, on every
invocation, passing every name you were given. Exit 4 is a refusal —
the issue is closed, an open PR closes it, a local branch names it,
or its status is not allowed — and prints one line per refusal:
return the refused verdict under "Output" with each line as it
stands, and run nothing below. Exit 0
means it found no gap; exit 3 prints one gap line per gap, each
already naming its bar item, and each goes into the gap list as it
stands. On any other exit, relay its stderr verbatim and stop.Decide how much of steps 4 to 6 runs. On exit 3 from step 2, run a
full check: all of them. On exit 0, runsdlc-readiness-stamp check <N>, which this plugin puts onPATH,
from inside the repo's working tree, and act on the first line it
prints:match— run none of them; the verdict isready.diff <commit>..<head>— run a diff-only check: read that
diff, and grade only whether it breaks the body — a name,
interface, validator, path or behavior the body relies on that the
diff changed — re-grading nothing the diff leaves unchanged. Itstouchedlines name the stamped files the diff touched, and itskeptlines the rest of the stamped files.full <reason>— run a full check.
On a non-zero exit, relay its stderr verbatim and stop.
In a full check, grade the rest of each bar item but "No
contradicted repo statement", in the order listed above, by reading
the body; the script's lines are the whole grading of each### Mechanicalline's shape and check key, of whether each
acceptance section is present and carries a bullet under### Mechanicalor### Semantic, of an## Acceptancesection,
and of each files-affected list under another heading that it prints
amechanical: Files affectedline for, and the file-class failures
under "Acceptance criteria" are yours to grade for### Mechanical
and### Semanticbullets alike. A list under any other heading is
no files-affected section: grade Files affected for that body by
reading, as for one with no list at all. Never run a command a### Mechanicalbullet's text spells.In a full check, trace the body against the code. For each behavior
the body specifies and each acceptance criterion:- read the code it names or calls, and confirm that the names,
interfaces and validators behave as the body assumes; - confirm the criterion can pass for the change as specified;
- follow any state the change introduces through success, stop and
re-run.
Each failure is a gap under the bar item it falls under. The trace
never runs a command the body spells.- read the code it names or calls, and confirm that the names,
Grade "No contradicted repo statement" by searching the instruction
files for statements about what the body's design changes, in every
full check. At minimum, grep them for every path in the body's
files-affected section and every identifier the design names —
skill, agent, script and section names — and read the rootCLAUDE.md, and the nestedCLAUDE.md, and the on-demand files it
routes, of every directory the body touches, in full. The search is
a floor, not a proof that no conflict exists. Each statement the
body contradicts and does not settle is a gap. For one that reads
as a capability claim, run a test of it; its gap line proposes
deleting the statement only when the test showed it false, and then
quotes the test and its output.Return the stamp line, the search and a gap list: a
Stamp:line
holding the first linesdlc-readiness-stamp checkprinted, ornot consultedafter exit 3 from step 2; aSearched:line naming
the terms step 6 grepped and the files it read, or what the
diff-only check read, orskippedafter amatch; then every line
step 2's script printed, and one line per other failure of a bar
item, naming the item and the sentence or absence that fails it. An
empty list is the verdictready. Areadyverdict from a full or
diff-only check also returns the graded commit, the onegit rev-parse HEADnames in the working tree you read, and the
code and instruction files the check relied on for a conclusion;
after a diff-only check, those are the files on itstouchedandkeptlines plus the ones the diff-only check relied on.
Writing the stamp
The check returns its verdict and writes nothing; the skill that called
it writes the stamp, at the moment that skill names, with:
sdlc-readiness-stamp write <N> --commit <graded commit> --file <path>...<N> the issue's number field, as in the check, and
one --file per Relied on: path. Exit 3 is a refusal,
printed on stdout; any other non-zero exit is a failure, its stderr the
detail. Either one leaves the verdict ready: report what it printed
and carry on.
Mechanical gaps
A mechanical gap is one the bar alone settles the repair of, so
no design decision is in it: a section the bar forbids, a sentence that
fails "Spec quality", and a missing acceptance or files-affected heading
around content the body already carries. Its gap line opens with the
label mechanical:. The script labels the ones it prints; label each
"Spec quality" failure you grade yourself.
Output
Verdict: <ready | not ready>
Stamp: <match | diff <commit>..<head> | full <reason> | not consulted>
Searched: <grepped <terms>; read <files> | what the diff-only check read | skipped>
Gaps:
- [mechanical: ]<bar item>: <the sentence or absence that fails it>
Graded commit: <sha>
Relied on:
- <repo-relative path>Under ready, the Gaps: section reads (none). Graded commit:
and Relied on: appear only under a ready verdict from a full or
diff-only check. Each Relied on: path is relative to the working
tree's root, with no . or .. component.
A refusal is its own verdict, with no Stamp: or Searched: line, no
gap list and no grading of the body:
Verdict: refused
Refusals:
- <the script's refusal line, verbatim>