| name | ralph-feature-bootstrap |
| description | Bootstrap a new Ralph feature pack from a source document. Use when the user asks to set up a new Ralph feature, feature pack, or loop from a document/audit/plan and wants the scaffolding created automatically. |
Ralph Feature Bootstrap
Goal
Create a new Ralph feature pack from a source document with minimal scaffolding:
specs/<slug>.md derived from the source doc
IMPLEMENTATION_PLAN.md as an empty stub (planning mode fills it)
Inputs
- Required: source document path (e.g.
docs/260130-react-audit-storage-and-vercel-review.md)
- Optional: feature slug (e.g.
react-audit-storage)
- Optional: feature title (human‑readable)
If slug/title are not provided, derive them from the source doc path.
Derive feature slug
- Start from the source doc basename (no extension).
- Remove leading
YYMMDD- if present.
- Drop common suffixes:
-review, -plan, -spec, -notes.
- Replace spaces/underscores with hyphens.
- Lowercase the result.
Files to create
Target root: scripts/ralph/features/<slug>/
scripts/ralph/features/<slug>/
IMPLEMENTATION_PLAN.md
specs/
<slug>.md
Content rules
specs/<slug>.md
Read the source doc and extract the minimum viable spec:
# <Feature title>
## Source
- `<source doc path>`
## Goals
- <2–4 bullets distilled from the doc>
## Constraints
- React frontend only (`src/`)
- Preserve existing styles and classes
- Don’t overwrite existing comments
- No UX changes beyond what the source doc calls out
## Acceptance criteria
- <3–6 bullets distilled from the doc>
Keep it concise; no extra commentary.
IMPLEMENTATION_PLAN.md
Create an empty file (no template). Planning mode generates the plan.
Execution checklist
- Create the directory structure.
- Create
specs/<slug>.md from the source doc.
- Create empty
IMPLEMENTATION_PLAN.md.
- Do not run the loop unless the user explicitly asks.