Plans and runs a build: slices and tickets, a plan accepted before code, tests where a break does damage, each slice seen working in the app, review. Use when breaking a spec into work or tickets, implementing, reviewing, or recording a demo.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Delivery Discipline?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mariomile-delivery-discipline)
---
name: delivery-discipline
description: "Plans and runs a build: slices and tickets, a plan accepted before code, tests where a break does damage, each slice seen working in the app, review. Use when breaking a spec into work or tickets, implementing, reviewing, or recording a demo."
---
# Delivery Discipline
Phase 5 turns a spec into working, tested, instrumented software and proves it: a plan a person accepts before any code, then a **captured** execution record the gate judges against the criteria, the change and the plan.
**Mode.** Standalone decomposition produces the plan (step 3) from the supplied spec and stops there. A standalone implementation plans first and waits for acceptance unless the request already authorized going straight to code; a standalone review applies the two axes and the severity scale of step 5. The lifecycle runs every step and gate 5. Both per [operating modes](../../references/operating-modes.md).
Read [the build method](references/build-method.md) for the detail. Two modes also run alone: **tickets** ([tickets](references/tickets.md), `to-tickets` by name) and **demo**, a video of a feature from a passing end-to-end test ([feature demo](references/feature-demo.md)). Load `tracking-standards` and `gate-checks` when needed.
## Procedure
1. **Read `SPEC.md`, `TECH.md`.** The build uses the spec's `## Stack` and `## Architecture`, and the tokens and kit in `SPEC.md` → Design → Visual direction, applied per the [interface details](../ux-architecture/references/interface-details.md). A layer still open, or a **structural** addition found later (framework, database, hosted service, paid API, runtime), pauses the slice for a `system-design` (stack) card to the person. Done when the spec exists and every layer the work touches is decided.
2. **Record the test baseline** before any code: run `TECH.md` → Verify through `run-check` and note passes, failures and duration. A suite already red: list each failure under `## Pre-existing failures` and in `TECH.md` → Known failing; gate 5.2 then compares the final run against this baseline. An empty Verify is filled first; no suite means slice one creates it. What the baseline finds missing (no guardrail, no production) goes into the plan as slice zero (step 3). Work on the branch the plan names; a slow suite uses `TECH.md` → Test (fast) per slice ([where the work lives](references/build-method.md#slow-suites-and-where-the-work-lives)). Done when the baseline capture exists and every failure in it is listed.
3. **Write the plan, reading only:** spec, `TECH.md`, codebase, in the host's read-only planning mode where one exists; the baseline writes only evidence files. The plan holds the **seams** (each module this work creates or changes, its interface, what it hides, where its tests sit, per [the build method](references/build-method.md#seams)), with the central module designed twice; slices with files, criteria and blocking edges, per the [slice rules](references/build-method.md#slice-rules) and [tickets](references/tickets.md) (expand–contract for a wide refactor); **slice zero** when the baseline found them missing: the cheapest guardrail running Verify with the automatic quality checks per [Guardrails](references/build-method.md#guardrails) (gates 5.8, 5.10; where the CI belongs to someone else, the plan asks them), and production online behind a door with a preview per change per `release-ops` (production) (gate 5.16); the critical path; risks with mitigations; rejected alternatives with why each lost; a planned test for every numbered criterion. Slices are **tracer bullets**, each end to end, sized to one fresh session. Open it with `**In plain words:**`: what gets built, in what order, what the person can try after each slice, and the riskiest step. Done when an engineer new to this conversation could build from it without asking.
4. **Get the plan accepted.** Present `**In plain words:**` first. Quiz the person on the slices per [tickets](references/tickets.md), section 3, until they approve the breakdown; then the riskiest step and what was rejected. Record `**Accepted:** {who} · {ISO timestamp}` from the person's own words, or quote an earlier standing instruction that named the build, with its date. On the `build` track the plan is the slices with their files and the person's go on them, quoted; seams, risks and the plain-words summary are written only where they help. Code starts after that line. Publish one ticket per slice per [tickets](references/tickets.md), section 4, and name where under `**Tickets:**`. Done when the plan carries the person's acceptance and the tickets exist.
5. **Run the loop per slice**, one slice per branch and pull request (a draft from the first commit, pushed at the end of every session; a commit of documents alone is not progress), in order:
1. **Test first where a break does damage:** a criterion touching one customer's data reaching another, money, an action leaving the product or its approval, a migration, or outside text reaching a model gets its test first, by number, at a seam the plan names, and you watch it fail. Every other criterion is tried by hand in step 3 and mapped `by hand: {capture}` (gates 5.1, 5.20). An untestable damage criterion returns to phase 4.
2. **Write the least code that passes, then refactor with the tests green.** Per slice run the tests of the files touched and the typecheck; the whole Verify runs after a batch of merges, or in CI.
3. **Try it in the running app:** start it, walk the real flow as its user would, fix what breaks, and capture a screenshot or a 30-second video. That capture closes the slice.
4. **Verify the slice's instrumentation** fires in a real environment with the tracking plan's properties.
5. **Delegate at most one agent per slice**, for long work only, reporting every 30 minutes in plain words. An hour without a commit means circling: tell the person what works, what you tried, where you are stuck, two ways forward; unless they asked for a long run.
6. **Review on two axes**, one reviewer per pull request,, tagging each finding **standards** (good code, true to `## Maintainability`, 5.19?) or **spec conformance** (the specified thing?): behavior against each criterion the slice claims, including phase 4's enumerated states, and the diff against the plan. It runs in a fresh context given spec, plan and diff only; inline, reread the diff as someone else's. **Important** findings, per the [severity scale](references/build-method.md#two-axis-review) (a threat-model mitigation violated counts too), are fixed now; list at most five **nits** and count the rest. A finding seen a second time becomes a check (lint rule, test or hook) in the same pull request, named in `TECH.md` ([Guardrails](references/build-method.md#guardrails)).
7. **Report the slice to the person** (gate 5.18) in plain words and in their language, kept in `LOG.md` → Reports per [the template](references/build-plan-template.md): what to open now first, then done, how, `**Seen:**` with the capture, next, needed from them. Mark the slice in `PLAN.md`, and its `WORK.md` row to try.
A bug found on the way runs `bug-diagnosis`. **Fix the code, keep the test:** change a test only when it encodes behavior the spec does not require, citing the spec line. Done when Verify, captured after the slice's last change, is green on every criterion the slice owns and no important finding is open.
6. **Keep the plan true.** A deviation (an unnamed file, a split slice, a risk that turned real) updates the plan in the same change, with the reason. Done when the plan describes the diff as it is.
7. **Check scope creep** (gate 5.4): the diff against the phase 4 out-of-scope list, item by item. Anything built from it is removed, or promoted deliberately as a logged, visible override. Done when every out-of-scope item has a verdict.
8. **Verify instrumentation end to end** (gate 5.3): per tracking-plan event, trigger the action, confirm arrival with its properties at the destination, record the evidence tagged by source. Done when every event in the tracking plan has its evidence.
9. **Look at what was built, then check security and speed** (gates 5.9, 5.12 to 5.14), on the startup path and where the track calls them in, per [closing checks](references/build-method.md#closing-checks). Done when `## Interface review`, `## Craft critique`, `## Security review` and `## Performance` each hold what happened, or the gate skips them.
10. **Put it in the person's hands and show it working** (gates 5.17, 5.15) per [closing checks](references/build-method.md#closing-checks). Done when `## Tried` quotes the person and `## Demo` has its test, run and recording, or the gate skips them.
11. **Write, gate, and leave the code legible.** Complete `PLAN.md` (one row per slice with its status) and `LOG.md` (runs, reviews, demo, what was tried) per [the build-plan template](references/build-plan-template.md), headings, bold labels and tables exact, every status claim backed by a `run-check` capture from the final change. Run gate 5 and record it (`scripts/bos.mjs record 5 --judged "{judge-id}=pass|fail,..."` where commands run). Update `TECH.md`: Map (gate 5.11 checks every path), Verify, conventions, traps, recurring findings, and each must-always-hold rule with its deterministic check. Then run [retro](../agents-md/references/retro.md) on the build sessions and list the changes under `**Environment:**`; a finding about `AGENTS.md` or `CLAUDE.md` runs `agents-md`. Done when gate 5 is recorded, `TECH.md` matches the code, and the retro's changes are listed.
A planning-only run produces the accepted plan and leaves gate 5 for later.
## Watch for
| Do | Instead of |
|---|---|
| Capture the final run and have coverage judged | Pasting green output |
| Close a slice on a capture of it working in the app | Closing it on green tests alone |
| Test what a break would damage, try the rest by hand | A red-green test per criterion, copy and layout included |
| Test the criterion where its surface lives, or return it to phase 4 | Mapping it to "no test, reasoned exception" |
| Plan reading only, get acceptance, then build | Code before the `**Accepted:**` line |
## Capabilities
| Capability | Used for | Floor if absent |
|-----------|----------|-----------------|
| `repo.read` | Codebase, tests, patterns | Phase 5 needs it; say so and stop at the plan's questions |
| `shell.exec` | Verify through `run-check` | Deliver the plan, say what must run; gate 5.2 waits for a capture |
| `analytics.events` / `analytics.query` | Events arriving with properties | Emission log or code path, tagged weaker |
| `ui.capture` | Screenshots of each state of the built interface (step 9) | The person opens the routes and says what they see |
| `subagent.dispatch` | The fresh-context review, the loop | Run it inline, slice by slice |
| `files.read` / `files.write` | Artifacts, state | Required |
## Output Contract
`## BUILD VERIFIED` with `PLAN.md` and `LOG.md` complete per the template (the accepted plan, every criterion to its test, the captured runs, the reviews, the demo, who tried it) and the gate result.