
Prompt Pipeline
Install this when you are designing Cavekit Hunt/SDD numbered prompt files that drive Spec, Plan, and Implement without bloating each prompt with content.
Install
npx skills add https://github.com/juliusbrussee/cavekit --skill prompt-pipelineWhat is this skill?
- Greenfield 3-prompt pipeline: refs → [001] specs → [002] plans → [003] src/tests with bidirectional impl/ flow.
- Rewrite patterns documented at 6–9 numbered prompts for brownfield work.
- Shared principles: prompts define process; specs and plans hold content.
- Includes prompt engineering best practices, task templates, and time guards for Hunt phases.
- Maps each prompt file to lifecycle stages Spec, Plan, Implement, Iterate, Monitor.
Adoption & trust: 14 installs on skills.sh; 1k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Journey fit
Primary shelf is Build/pm because pipeline design happens while you structure how AI agents execute the product—before or alongside implementation, as the operating system for hunts. PM subphase fits process architecture: lightweight systemic prompts, lifecycle mapping, and guards that delegate detail to specs and plans.
Common Questions / FAQ
Is Prompt Pipeline safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Prompt Pipeline
# Prompt Pipeline Design The prompt pipeline is the engine of SDD. Each numbered prompt drives one phase of the Hunt lifecycle (Spec, Plan, Implement, Iterate, Monitor). Prompts are structured markdown files that instruct an AI agent to perform a specific phase, with detailed information delegated to specs, plans, and reference materials. **Core principle:** Prompts should be as lightweight and systemic as possible. They define the *process*, not the *content* -- specs and plans hold the content. --- ## 1. Greenfield Pattern (3-Prompt Pipeline) For new projects starting from reference materials (PRDs, language specs, design docs, research). ``` Pipeline Flow: refs/ ──> [001] ──> specs/ ──> [002] ──> plans/ ──> [003] ──> src/ + tests/ ^ | | | +── impl/ <───────────+ (bidirectional flow) ``` | Prompt File | Lifecycle Stage | Reads From | Writes To | Description | |-------------|----------------|------------|-----------|-------------| | `001-generate-specs-from-refs.md` | **Spec** | `context/refs/` | `context/kits/` | Reads reference materials, decomposes into domain-specific specs with cross-references and testable acceptance criteria | | `002-generate-plans-from-specs.md` | **Plan** | `context/kits/` + `context/impl/` | `context/plans/` | Reads specs plus implementation progress, creates framework-specific plans with feature dependencies, test strategies, and acceptance criteria | | `003-generate-impl-from-plans.md` | **Implement** | `context/plans/` + `context/kits/` | `src/`, `tests/`, `context/impl/` | Implements the highest-priority unblocked work from plans, runs tests, updates implementation tracking | ### Key behaviors - **Prompt 001** runs once or a few times to stabilize specs. It reads `context/refs/` and produces `context/kits/`. - **Prompt 002** reads specs and any existing implementation tracking (`context/impl/`). It produces plans that sequence the work. - **Prompt 003** reads plans and specs, implements code, runs validation gates, and updates `context/impl/` with progress. - **Prompts 002 and 003 modify each other's files.** This bidirectional flow is expected and healthy -- it is how the system self-corrects. ### Example prompt 001 structure ```markdown # 001: Generate Specs from Reference Materials ## Runtime Inputs - Framework: {FRAMEWORK} - Build command: {BUILD_COMMAND} - Test command: {TEST_COMMAND} ## Context Read all files in `context/refs/`. These are the source of truth. ## Task Decompose the reference materials into domain-specific specifications: 1. Create `context/kits/cavekit-overview.md` as the index file 2. Create one `context/kits/spec-{domain}.md` per domain 3. Each spec must include: Scope, Requirements with Acceptance Criteria, Dependencies, Out of Scope, Cross-References ## Exit Criteria - [ ] All domains from reference materials have corresponding spec files - [ ] Every requirement has at least one testable acceptance criterion - [ ] cavekit-overview.md indexes all spec files with one-line summaries - [ ] Cross-references link related specs ## Completion Signal <all-tasks-complete> ``` --- ## 2. Rewrite Pattern (6-9 Prompt Pipeline) For projects that start from existing code that must be reverse-engineered into specs before building a new implementation. ``` Pipeline Flow: old-code ──> [001] ──> reference/ ──> [002] ──> specs/ ──> [003] ──> validated specs