Skip to content
Back to skills

Shipwrights Spec Approve

ASecurity

Approve a drafted spec so the build pipeline can proceed. Re-runs strict citation enforcement against the manifest, flips frontmatter status to `approved`, commits the marker. Invoked as /shipwrights-spec-approve <S-id>.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 27, 2026
data-aigo

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add shipwrights/core --skill shipwrights-spec-approve --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shipwrights Spec Approve?

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

Security grade badge for Shipwrights Spec Approve
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shipwrights-shipwrights-spec-approve/badge)](https://www.skillsdirectory.com/skills/shipwrights-shipwrights-spec-approve)

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: shipwrights-spec-approve
description: Approve a drafted spec so the build pipeline can proceed. Re-runs strict citation enforcement against the manifest, flips frontmatter status to `approved`, commits the marker. Invoked as /shipwrights-spec-approve <S-id>.
---

# /shipwrights-spec-approve — accept a drafted spec

You have read the plan document at `<spec.output_dir>/<id>-*.md` and decided it's good to build.

## What you do

1. Validate the spec exists and is at `status: drafted`.
2. Re-run citation enforcement on the plan body against the manifest at `.shipwrights/specs/<id>.manifest.json`. This catches the case where the user edited the plan between draft and approve and introduced uncited claims.
3. Flip frontmatter `status: drafted` → `status: approved`.
4. Commit on a small chore branch: `chore(spec): approve <id>`.
5. Print next-step: hand off to the standard build pipeline (which works against the approved spec the same way it works against an approved epic).

## Hard rules

- Refuse if the spec isn't `drafted`. Other statuses need different handling (revise, cancel, or simply later in the pipeline).
- Refuse if the working tree is dirty. The approve commit should be a clean marker.
- Honour `spec.enforcement`. Strict mode blocks on uncited claims; loose mode warns.

## Failure modes

| Symptom | What to do |
|---|---|
| Spec at `approved`/`building`/... | Refuse; suggest the right next slash command for that state |
| Manifest missing | In strict mode, refuse; in loose mode, warn and proceed |
| Dirty working tree | Refuse; ask user to commit/stash |
| Edits to the plan introduced uncited claims | List them; suggest revise |

## Output

```
✓ Spec <id> approved.
Next: /shipwrights-spec-build <id>
```

The CLI implementation lives at `lib/commands/spec-approve.mjs` — same behaviour either way.

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.

Comments

Loading comments…

Newsletter

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