Skip to content
Back to skills

Ready

ASecurity

Definition of Ready gate. Invoke with `/ready #<issue>` or when the user says 'is this ready', 'DoR check', 'audit this issue', 'can we implement #N'. Audits an issue against eight readiness criteria, repairs what it can (rewrites vague acceptance criteria, names accessibility identifiers, derives the acceptance test), and routes what it cannot back to /spec or /ui-design. Prints a fixed DOR VERDICT line so a /goal evaluator can judge the outcome.

  • 5 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added November 17, 2026
testingrustgoswiftbashangularexpresstestingcode-reviewgitbackend

Works with

  • cli

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add JoeCotellese/claude-code-config --skill ready --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ready?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ready
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joecotellese-ready/badge)](https://www.skillsdirectory.com/skills/joecotellese-ready)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ready
max_words: 4200
effort: high
description: "Definition of Ready gate. Invoke with `/ready #<issue>` or when the user says 'is this ready', 'DoR check', 'audit this issue', 'can we implement #N'. Audits an issue against eight readiness criteria, repairs what it can (rewrites vague acceptance criteria, names accessibility identifiers, derives the acceptance test), and routes what it cannot back to /spec or /ui-design. Prints a fixed DOR VERDICT line so a /goal evaluator can judge the outcome."
---

# Definition of Ready Gate

Sits between design and architecture. An issue that has not passed `/ready` does not get
built.

```
/spec  →  /ui-design  →  /ready  →  /architecture  →  build
                           │
                           ▼
                stage:spec or stage:design
```

Entry: `stage:ready`. Labels, verdict comments and the last-action rule follow State machine
in `WORKFLOW.md`.

This phase **repairs before it rejects**. Fix in place what rewriting can fix (vague
acceptance criteria, unnamed accessibility identifiers, a missing acceptance test) and amend
the issue. Route back only what needs a human decision: missing requirements, unbounded scope,
absent design.

## Usage

```
/ready #<issue_number>
```

Designed to run unattended under a goal. Print this for the user rather than setting it
yourself:

```
/goal Issue #<N> has been audited by /ready and the transcript contains a line beginning
"DOR VERDICT: #<N>" whose status is PASS, or whose route is stage:spec or stage:design with the
blocking criteria named. Report the route and stop. Stop after 6 turns.
```

## The Criteria

Audit each one (R1 through R8). A criterion is PASS, FAIL, or N/A. Record the evidence, not just
the verdict.

### The observation test

R2 and R7 both ask: can the observation be **made**, and made **twice**? Observable in
principle is not observable.

- **reachable** — something can drive the system into the asserted state. Name the command or
  gesture; "the state exists" is not an answer.
- **readable** — the channel surfaces at runtime. An identifier in the source proves it was
  typed, not that it reaches the accessibility tree. Confirm against a running screen, not with
  `rg`.
- **passable** — a synthetic positive satisfies every threshold AT ONCE. A guard calibrated
  only against a negative may measure the same quantity as the metric it protects, from the
  other side.
- **repeatable** — the measurement's spread on *unchanged code* is narrower than the threshold.
  Measure at least three times in conditions that differ, cold and warm, quiet and loaded. A
  *difference* is not exempt: "it's a delta, so the drift cancels" is a hypothesis about the
  measurement and needs the same three runs.

When a leg fails the criterion is not observable yet. A **readable** failure is usually R3, a
missing identifier. Otherwise assert something that survives it (an ordering, a ratio, a
within-run comparison), commit the working fallback, or route to `/spec`.

### R1 — User stories exist

At least one story in role/action/benefit form, each carrying acceptance criteria.

- PASS: "As a cook, I want to ask Siri about my recipe box so that I can find a recipe
  without unlocking my phone", followed by criteria.
- FAIL: a title and a paragraph of technical description with no stated user.

**Repairable.** Derive stories from the issue's description and the app's existing patterns.
Post them for the record. If the issue does not say who benefits or why, that is not
repairable: route to `/spec`.

### R2 — Acceptance criteria are observable

This is the criterion that makes the Definition of Done possible. Every AC must name a UI
element or an app state that a test can assert against.

- PASS: "Tapping `saveRecipeButton` on a recipe already saved shows `recipeAlreadySavedToast`
  and does not create a duplicate."
- FAIL: "Saving feels fast." "The flow is intuitive." "Errors are handled gracefully."

**Every AC must also name the channel that observes it.** A precise AC about internal
behavior can still have nothing watching it. Each AC carries one of three tags:

- **`[ui]`** — asserted by the AXe acceptance test through an accessibility identifier.
- **`[test: <name>]`** — asserted by a named unit or integration test. Use it for behavior with
  no UI surface: a migration running exactly once, a write path touching only one record, an
  attribute set having the right shape. Before tagging `[test:]`, apply the **reachable** leg. A
  property true only by construction, or behind a dependency the project can't mock (an
  un-injectable `db` handle, a live listener), is not `[test:]`.
  FAIL example, #372 AC7: `[test: sharedRecipesIsolatedFromPersonalStore]` for "the shared store
  never writes to the personal store" — true because no reference exists between the stores, so
  nothing can drive it. It is `[manual: structural]`, proxied by seeding the shared store and
  asserting the recipe never reaches the personal dict.
- **`[manual]`** — verified by a human, with the reason automation cannot. Allowed, but it must
  be paired with an automatable proxy that catches regressions. "Reads naturally under VoiceOver"
  is genuinely manual; "`contentDescription` contains no newlines and is under two sentences" is
  the proxy that guards it between manual checks. Qualify it as **`[manual: structural]`** when
  the reason is a property true by construction rather than a human judgment — the same channel,
  not a fourth tag, and `/dod` reconciles both as `[manual]`.

**"Nothing else regresses" is not an acceptance criterion.** "The suite stays green" and "gate X
stays green" observe other issues' work. List those acceptance tests in the DoD section under
**Regression sweep** instead; `/dod` runs the suite once and `/submit` runs the sweep once.

An untagged AC fails R2 even when its wording is precise. It is the most common way an issue
looks ready and is not: the gap surfaces at the end, when the DoD test covers three of five
criteria.

**A `[manual]` AC whose evidence is produced by automation still gets the observation test.**
The tag says a human reads the result; it does not exempt the machinery generating it. Walk
**reachable** against every state such an AC names, and state the per-run cost.

FAIL example, WPD-2606 AC5: "Screenshots of all 11 Commercial screens across four device
classes, automated via the AXe harness." Screens enumerated, harness built, devices installed,
and three states unreachable: one lives only until the device calibrates, which is server-side
and outlives a reinstall, and two sit behind an unidentified control. The only criterion to fail
at `/dod`, after the code was written and correct.

Size the evidence against the change, too. A 44-shot four-device sweep is release-qualification
work, not proof for a margin change on two screens, and it puts the Definition of Done behind
its least reliable part. Cut evidence to the states the change can break, and file the broad
sweep as its own issue.

**A visual `[manual]` AC's proxy measures the rendered pixels**, not the data behind them: the
thing is on screen, its contrast against what surrounds it, and its size in pixels. A proxy on
the model (an orbit radius, an angular size, a color value in a struct) passes while the
picture is wrong.

FAIL example, #942: "the Moon reads right from the port" was proxied by its size and orbit,
which passed while the Moon drew as a near-black 7 px dot that no one could see. A proxy on the
disc's brightness over the sky would have failed in the loop instead of at the human's look.

**A numeric threshold gets the repeatable leg**, and the AC must say how the spread was
established.

FAIL example, #217 AC4b: a live-remeasured term required within 25% of the committed row,
calibrated on ONE run that came back 1.4% off. The term then measured 18.1, 25.1, 25.5 and
37.6 ms within ninety minutes on unchanged code, a 2x spread on a *difference*, and failed at
47.5% drift. An open issue (#219) already documented ~30% drift on that very instrument. One
observation is not a calibration.

Rewrite each failing AC into observable form, preserving intent: "feels fast" usually means a
latency budget (which still needs **repeatable**), "handled gracefully" a named error state.
When you cannot tell what the author meant, say so in the verdict and route to `/spec`.

**Repairable in most cases.**

### R3 — Identifier contract

Every element referenced by an AC has a named `accessibilityIdentifier`. Without this, the
acceptance test in R7 cannot address anything.

Check the codebase for identifiers that already exist before inventing new ones:

```bash
rg -o 'accessibilityIdentifier\("([^"]+)"\)' -r '$1' --no-filename | sort -u
```

Reuse an existing identifier when the element already ships. Name new ones in the same style
as their neighbors in the project (for example lowerCamelCase: `settingsNavigationLink`,
`recipeList`).

Write the contract into the issue as a list of identifier and element pairs. `/implement` is
bound by it: a view that ships without these identifiers fails its own DoD test.

**Repairable.**

### R4 — Design artifact

User-facing work needs approved screens that meet Apple HIG and fit the app's existing
aesthetic.

- PASS: the issue links or embeds approved screens, or carries a `design::readyforeng` label.
- FAIL for a UI feature: no design, or blocking findings still open that the user has not
  accepted (a `SPEC VERDICT` after the design log records an acceptance).
- N/A: backend, CLI, or infrastructure work with no user-visible surface.

**Not repairable here.** Route to `stage:design`. The rest of the audit still runs and its
repairs still land, so the design step starts from a clean issue.

### R5 — Technical approach

**Not applicable here.** Architecture runs after `/ready`, in `/architecture`, which applies
this check as its exit criterion. Mark R5 `n/a` and do not count it in `passed`.

### R6 — Bounded scope

An `effort/` label is present and is not XL.

Also check for the conflation pattern: an issue that lists several capabilities each with
independent shipping value is XL regardless of its label. Say which sub-issues it should
become.

**Not repairable.** Route to `/spec` to split.

### R7 — Acceptance test exists

An acceptance test in the project's own harness whose `success_criteria` map one-to-one onto
the R2 acceptance criteria. On Apple platforms that is an AXe YAML under `scripts/uitests/`;
on web it is a named Playwright flow. The procedure below is written for AXe; the rules hold
for either harness.

**Scope.** R7 applies to shipping application code. Config repos, markdown and docs work, and
one-off scripts are exempt under the testing standard in `CLAUDE.md`. When the exemption
applies, mark R7 N/A and name which exemption you used. Check it before the procedure,
not after: the exemption turns on the repo and the artifact, never on difficulty.

FAIL example, over-application: #25 specified a 192-line markdown skill in the config repo.
R7 ran without checking the exemption and produced a headless `claude -p` harness to drive a
documentation file.

**Derive it here, before any code exists.** That ordering is the point: it forces the ACs to
be testable and it gives `/implement` a target that was not written by the person trying to
pass it.

Procedure:

1. Read the `ios-ui-tester` skill for the harness and
   `assets/test-template.yaml` for the schema.
2. Read two or three existing tests in `scripts/uitests/` to match local conventions.
3. Write `scripts/uitests/test_<slug>.yaml`. Start with the two-line `ABOUTME:` header the
   other tests carry.
4. Every `[ui]` AC from R2 becomes exactly one entry under `success_criteria`. Same order, same
   wording where possible. A reader must be able to line them up without interpretation.
   `[test:]` and `[manual]` criteria do not belong in the AXe file; list them in the issue
   under the DoD section so nothing is silently dropped. Every AC must be covered by exactly
   one channel, and the count has to reconcile: if the issue has nine criteria and the AXe file
   has five, the other four are named somewhere or the audit is wrong.
5. Steps reference the R3 identifiers by `element_id`. Do not use raw coordinates for elements
   that will have identifiers, because those tests break on every layout change.
6. Cover the empty, typical, and stress states the ACs describe, not just the happy path.
   When a test bounds its coverage by asserting a path "only ever sees input Y" or "behaviour is
   unchanged for case Z", VERIFY that exclusion against the feature's own outputs before trusting
   it — a sibling feature may feed the path the excluded input directly, making the case reachable
   and untested.
   FAIL example, #142 AC4: the nav-map-centre test asserted the hyper-jump arrival "only ever sees
   procedural centres — a catalogue star is only ever the initial spawn." But the local star map
   (#130) lists catalogue stars AS jump destinations, so jumping to one was a reachable state the
   test never covered. It passed all four ACs while the feature re-centred the map on the wrong
   (rebind-cell) coordinate in production, caught only by a human flying it.
7. **Check the trigger is reachable** — the **reachable** leg, run against every asserted state.
   Siri is not drivable in a simulator; a push path needs a way to fire one; a migration
   needs the prior version's state. If none exists, say what has to be
   built and add it to the issue as an implementation task, flagged as added for testability so
   the user can object. An existing entry point extended is fine; a test-only backdoor is
   not, because it passes while the feature is broken.

   One blocker is **not** a plain implementation task: a trigger resting on a platform capability
   you have *measured as not working*. Filing "make it reachable" bets the cycle on that
   capability. Spike it now, or commit the working fallback as the trigger and flag the harder
   bar for follow-up.
   FAIL example, #105: AC1 asserted spacebar plays "with no prior tap" after the gate had measured
   that focus does not land on the chart at launch. It filed auto-hold focus as an implementation
   task and committed the no-tap trigger anyway; SwiftUI focus does not reach first responder
   without interaction in the simulator. Tap-to-focus should have been committed.
8. **Check the test can fail, can read, fails for the right reason, and can pass**: a mutation
   check, the **readable** leg, a failure-line read, and the **passable** leg. A test can satisfy
   step 7 and still fail all four.

   *Would every step still pass with the feature deleted?* Name the line you would remove, then
   walk the steps against its absence. If they all still pass, the test guards nothing.
   FAIL example, WPD-2604 AC3: the guard for "tapping the field still focuses it" tapped a field
   the new mount-focus had already focused. The earlier fix it existed to protect could have been
   deleted with every step green. The repair: move first responder elsewhere and confirm the blur
   before tapping.

   *Does each assertion's channel actually surface at runtime?* Run **readable** on each.
   FAIL example, WPD-2604: the test addressed the code field by `my-code-input`, present on both
   screens and never in the tree, because the library renders it at `opacity: 0.015` and iOS drops
   near-transparent views. No reading of the wording would have shown it; one `describe-ui` did.

   *Does each test fail for the right reason?* Read every failure line. It must name the missing
   feature (an absent element, a 404, no stored record), never a fault in the test itself that
   the built feature cannot clear. When `/ui-design` left a prototype, run the UI tests against
   it: every step the prototype renders must pass, and the first failure must be the stubbed part.
   FAIL example, calsync #77 AC26: the test held a slot locator across the booking's redirect to
   the confirmation page, then read it there. With the feature built, 15 of 16 passed and AC26
   timed out on the stale locator. A run against the prototype would have shown it.

   *Can the test PASS at all?* A numeric proxy fails today by design, so watching it fail proves
   little. Run **passable** on a synthetic positive: a hand-made mask, a mock render, a doctored
   capture carrying the property the feature will add.
   FAIL example, periplus #193: the coast gate wanted a resolution ratio above 2.30 and a "coast
   surviving a 1 px opening" above 0.90, calibrated only against salt noise (0.86) and the shipped
   smooth coast (0.95). Every real ragged coast landed on one line, keep ≈ 0.95 − 0.45 × (ratio −
   2.13), because the opening shaves the very 1 px bumps the ratio counts. Unreachable by
   construction; ten tuning runs found it. A connected-component filter (drop components under
   12 px, then measure) separated the cases the guard could not.

   Each costs one harness run: against the *current* build, the prototype, or a doctored
   artifact. Those runs are the point: a real failing test differs from a decorative one only
   in having been watched failing for the right reason, and shown able to pass.

The test will not pass yet. Nothing is built. That is expected and correct: it is the failing
test at the top of the TDD cycle, one level up.

For non-UI work, R7 is satisfied by naming the unit or integration test targets instead, with
the same one-to-one mapping to the ACs.

**The acceptance test observes this issue's criteria and nothing else.** It runs its named
tests by name, never the whole suite (`/dod` does) and never another issue's acceptance test
(the `/submit` sweep does). FAIL example, periplus #416: its gate nested six others, one twice,
so every `/implement` iteration paid for all of them.

**Repairable.** This is the main artifact `/ready` produces.

### R8 — Gate is set

Exactly one `gate:` label is present, naming who can close the issue and whether an unattended
loop may touch it. It is the routing axis, orthogonal to `value/`×`effort/`, that lets a loop
pull only items it may finish.

- `gate:machine` — a loop can drive it to done with no person and no hardware in the close path.
- `gate:human` — a person or physical hardware must close it.
- `gate:mixed` — both; a machine does most of it, at least one step needs a human.

- PASS: exactly one `gate:` label present.
- FAIL: no `gate:` label, or more than one.

Two companion routing labels are `/ready`'s to set while auditing, not `/spec`'s:

- **`unattended`** — set it when the issue is safe for the loop to pull with no human and no
  hardware. In practice that means `gate:machine`, no `blocked`, and R4 not routing to design.
  It is the single flag an autonomous puller keys on, so do not set it on anything a machine
  cannot actually finish.
- **`blocked`** — set it when a dependency must clear first, and name the dependency in the
  issue. Clear it when the dependency lands. A `blocked` issue never satisfies `unattended`.

**Repairable.** If `gate:` is unset, classify it from the issue's own signals (does the close
path need a device, a credential, a taste call?) and set it. Route to `/spec` only when
machine-closability is genuinely a product decision you cannot make from the issue — that is a
scope question, not a wording one. `polish` is **not** part of this axis: it is a work-type tag,
outside the Definition of Ready and outside the pull query.

## Workflow

### Step 1 — Fetch the issue

```bash
glab issue view $ISSUE_NUM                       # GitLab
gh issue view $ISSUE_NUM --json title,body,labels  # GitHub
```

Record: title, body, labels, and whether an `effort/` label is present.

### Step 2 — Classify

- **User-facing?** Look for a `UI` label, or ACs that describe screens and taps. Determines
  whether R4 applies and whether R7 is an AXe test or a unit test list.
- **Size gate.** Read the `effort/` label and record which committee tier later phases get.
  The tier sets both the `/ui-design` design passes and the `/submit` code review depth:
  S is `/code-review low` + the acceptance-criteria lens, M adds the domain reviewer at
  `medium`, L adds the test-adequacy lens at `high`. Write the tier into the issue so
  `/ui-design` and `/submit` do not re-derive it.

### Step 3 — Audit and repair

Work R1 through R8 in order. Later criteria depend on earlier ones: R7 cannot be written
until R2 is observable and R3 is named. R8 (the gate) is independent of the rest and can be set
at any point in the pass.

For each criterion, capture one line of evidence: what you found, quoted or cited, not a
summary. The verdict has to be defensible when the user disagrees with it.

**Stop repairing once an unrepairable criterion fails.** R7 depends on R2 and R3, and all of
them depend on R6: if the scope is wrong, every repair is thrown away when the issue is
split. So when R6 fails,
or when R1 fails unrepairably, finish the *audit* on the remaining criteria and report
what they would need, but do not write the repairs and do not derive the acceptance test.
Say so in the verdict.

Audit all eight regardless. Stopping at the first failure costs a round per blocker.

### Step 4 — Branch and commit the artifacts

`/ready` is the first phase that writes to the repo, so it creates the branch. Never commit
to main.

```bash
EXISTING=$(git branch -a | grep -E "(feature|fix)/${ISSUE_NUM}-" | head -1 | xargs)
if [ -n "$EXISTING" ]; then
    git checkout "$EXISTING"
else
    bash ${CLAUDE_PLUGIN_ROOT}/skills/implement/scripts/create_feature_branch.sh $ISSUE_NUM feature <brief-desc>
fi
```

Commit the acceptance test:

```
Test #<N>: Add acceptance test for <feature>

Derived from the issue's acceptance criteria at the Definition of Ready gate,
before implementation. Fails until the feature ships.
```

`/ui-design` and `/implement` continue on this branch.

### Step 5 — Amend the issue

Post the repairs back so the issue becomes the artifact of record:

- Rewritten user stories and observable acceptance criteria
- The accessibility identifier contract
- The path to the committed acceptance test
- The regression sweep: the existing acceptance tests the change can break (R2)
- The committee tier from the size gate
- Any criterion that routed out, with what specifically is missing

Post as an edit when replacing content, as a comment when adding an audit trail. Do not
silently overwrite something a human wrote: quote what you replaced.

### Step 6 — Print the verdict

**Exactly this format, on its own line.** The goal evaluator reads it and it is the only thing
it can see:

```
DOR VERDICT: #347  status=FAIL  passed=5/7  blocking=R4,R6  route=stage:spec
```

- `status` — PASS only when every applicable criterion passes. N/A counts as passing.
- `passed` — count over applicable criteria.
- `blocking` — the criteria that failed, comma separated, or `none`.
- `route` — the single next phase.

Routing rules, first match wins:

1. R6 fails, or R1 fails unrepairably → `route=stage:spec`
2. R4 fails → `route=stage:design`
3. Everything applicable passes → `route=stage:architecture`

Post the verdict as an issue comment, then swap `stage:ready` for the label it routes to.

Precede the verdict with Layer 1 of Phase closeout in `WORKFLOW.md`: whether the issue is
ready, and each blocker described as the missing behavior, never as R4 or AC2. The per-criterion
list is Layer 3, printed on request.

## Success Condition

The issue on the remote now contains observable acceptance criteria and an identifier
contract, an acceptance test derived from those criteria is committed on the feature branch,
and a `DOR VERDICT:` line names the route. If a run produces a verdict but no committed test
and no issue amendment, the gate did not do its job.

## What this skill must not do

- **Do not invent requirements.** When the issue does not say what should happen, route to
  `/spec`. A confidently fabricated acceptance criterion is worse than a blocked issue,
  because it passes DoR and gets built.
- **Do not weaken an acceptance criterion to make it observable.** "Search returns results
  ranked by relevance" does not become "search returns results." Say it needs a definition of
  relevance and route out.
- **Do not skip R7 because the feature is hard to test.** If the acceptance criteria cannot be
  expressed as a test, they are not acceptance criteria, and the issue is not ready. Difficulty
  is not an exemption. Repo class is: read R7's Scope note before applying R7 in a config,
  docs, or scripts repo.

## Dependencies

- `gh` or `glab`, whichever the remote uses
- `ios-ui-tester` skill for the AXe test schema and conventions
- `${CLAUDE_PLUGIN_ROOT}/skills/implement/scripts/create_feature_branch.sh` for branch naming

## Next Phase

Whatever `route=` says: `stage:spec` to fix the specification, `stage:design` to design it,
`stage:architecture` to plan the build. The build closes with `/dod`, which runs the test committed
here and prints the `DOD VERDICT` line that answers this gate.

When a criterion fails in a way that means an earlier phase should have caught it, that is a
`/retro`, not just a reroute.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.