agentleFS
holgerleichsenringholgerleichsenring/specification-first-agentic-development/skills/deliver-spec/SKILL.md

deliver-spec

Skill9 starsChanged 57 days agoMITView on GitHub

Deliver a finished phase: run the context's verify stages, commit as 'feat: … ({id})', push the phase branch and open the pull request. Triggers after apply-spec, or when the user says 'deliver the phase', 'ship it' or 'open the PR'.

  • Commits and pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. chrisbanes/skills★ 1.1ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If gh auth status fails, stop before pushing and tell the user: gh must be installed and authenticated to open the pull request.

    line 18
  2. Very specific:

    Read verify: from every .{project}/contexts/*/context.yaml.

    line 22
  3. Very specific:

    Keep ({id}) exactly — the id in parentheses is what a project's commit gate keys on.

    line 39
  4. Distinctive:

    Write the body from the spec, in this order:

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deliver Spec

The one owner of a phase's commit. Run it in the phase's worktree (branch phase/{id}) once apply-spec has verified the done criteria. Stop at the first failure and report it; never push past one.

1. Check the preconditions

git branch --show-current          # must be phase/{id}
gh auth status                     # must succeed

If gh auth status fails, stop before pushing and tell the user: gh must be installed and authenticated to open the pull request.

2. Run the verify stages

Read verify: from every .{project}/contexts/*/context.yaml. Each stage is {label, command, when_present?}. For each stage, in order, from the repository root:

  • when_present set and that path (relative to the repository root) absent: skip the stage and say so — skipped {label}: {when_present} not present.
  • Otherwise run command through the shell. A non-zero exit stops delivery: report the label, the command and the tail of its output, then fix and re-run from the first stage.

No verify: stages anywhere: say "no verify stages declared — relying on the project's own gate" and go on. A project's commit hook, if any, runs at step 3.

3. Commit

Stage the phase's work — code, tests, the spec now in phases/done/, decisions/{id}.yaml, the context.yaml entry — and commit once:

git add -A
git status --short                 # nothing unrelated may ride along
git commit -m "feat: {short description} ({id})"

Keep ({id}) exactly — the id in parentheses is what a project's commit gate keys on. If the gate blocks, fix the cause and commit again; never bypass it.

4. Push and open the pull request

git push -u origin phase/{id}
gh pr create --base {default-branch} --head phase/{id} \
  --title "feat: {short description} ({id})" --body-file {body.md}

Write the body from the spec, in this order:

  • Goal — the spec's goal:.
  • Done — each done: criterion with how it was confirmed.
  • Tests — each tests: entry and the verify stages run (or skipped, with why).
  • Decisions — one line per entry of decisions/{id}.yaml (chose / over).

Report the PR URL to the user. Removing the worktree after merge is the user's call: git worktree remove {path}.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.