Install
$ agentstack add skill-dbinky-dbinky-skill-set-spec-to-design ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Spec to Design
You are running the automated implementation pipeline. Given a feature spec and its design docs, you will:
- Align design docs to the spec
- Produce detailed implementation plans
- Align implementation plans to each other and the spec
- Execute the implementation via parallel subagents
This skill requires zero user interaction. The user is unavailable. Do all work autonomously, committing at each phase.
Arguments
Parse the following from the user's command or calling skill:
SPEC_PATH(required): Path to the feature spec (e.g.,docs/specs/user-auth-spec.md)DESIGN_GLOB(optional): Glob for design phase docs (default: derived from spec path — replace-spec.mdwith-design-phase-*.mdindocs/superpowers/specs/)PLAN_GLOB(optional): Glob for plan docs (default: derived from spec path — replace-spec.mdwith-implementation-phase-*-task-*.mdindocs/superpowers/plans/)--slug SLUG(optional): Feature slug for commit messages and file naming (default: derived from spec filename)
Prerequisites
- Verify
SPEC_PATHexists. If not, notify Teams and stop. - Verify at least one file matches
DESIGN_GLOB. If not, notify Teams and stop. - Read all input files to confirm they're valid markdown.
Phase 1: Design Alignment
Purpose: Ensure design phase docs are coherent with the spec and with each other.
Steps:
- Read the spec at
SPEC_PATHthoroughly. - Read ALL design docs matching
DESIGN_GLOB. - Review holistically for:
- Alignment to the spirit of the spec (not just surface conformance)
- Internal consistency across design phases (terminology, data models, use cases)
- End-to-end coherence (does Phase 1's output feed correctly into Phase 2's input?)
- Integration seams between phases
- Fix any contradictions, inconsistencies, or misalignments directly in the design docs.
- If no issues found, note that alignment is clean.
- Commit:
git add docs/superpowers/specs/
git commit -m "docs: align {SLUG} design phases to spec"
On failure: Send Teams notification:
ralph-o-matic notify --message "Pipeline failed at design alignment for {SLUG}. Error: {ERROR}. Resume: /spec-to-design --spec {SPEC_PATH}"
Phase 2: Implementation Plan Production
Purpose: Generate detailed, task-level implementation plans for each design phase.
Steps:
- For each design phase doc, invoke the
superpowers:writing-plansskill. - Each design phase may produce multiple task files.
- Output naming:
docs/superpowers/plans/{SLUG}-implementation-phase-{N}-task-{M}.md
- N = design phase number
- M = task number within that phase
- Write ALL plans in one concerted effort — do not stop between phases.
- Commit:
git add docs/superpowers/plans/
git commit -m "docs: write {SLUG} implementation plans"
On failure: Send Teams notification:
ralph-o-matic notify --message "Pipeline failed at plan production for {SLUG}. Error: {ERROR}. Resume: invoke superpowers:writing-plans manually for remaining design phases."
Phase 3: Plan Alignment
Purpose: Ensure implementation plans are coherent with the spec, designs, and each other.
Steps:
- Read the spec at
SPEC_PATH. - Read ALL design docs matching
DESIGN_GLOB. - Read ALL plan docs matching
PLAN_GLOB. - Review holistically for:
- Alignment to the spec's intent and the design docs
- Internal consistency across all plan tasks (shared types, function signatures, API contracts)
- Dependency ordering (does Task 2 depend on types defined in Task 1?)
- No duplicate work across tasks
- No gaps (every design requirement has a corresponding plan task)
- Fix contradictions in the plan docs directly.
- Commit:
git add docs/superpowers/plans/ docs/superpowers/specs/
git commit -m "docs: align {SLUG} implementation plans"
On failure: Send Teams notification:
ralph-o-matic notify --message "Pipeline failed at plan alignment for {SLUG}. Error: {ERROR}. Resume: /spec-to-design --spec {SPEC_PATH} (will re-run from alignment)"
Phase 4: Draft Implementation
Purpose: Execute all implementation plans via parallel subagents.
Steps:
- Read ALL plan docs matching
PLAN_GLOB. - Analyze dependencies between phases and tasks:
- Identify which tasks can run in parallel (no shared files, no dependency)
- Identify which tasks must be sequential (Task B depends on Task A's output)
- Invoke
superpowers:subagent-driven-developmentto execute the plans:
- Spawn a fresh subagent for each task
- Each subagent uses
superpowers:executing-planswith its task file - Parallelize independent tasks, sequence dependent ones
- The user is unavailable — do not stop for review or permissions
- After all subagents complete, run the full test suite:
make test
- If tests fail, investigate and fix. Run tests again until they pass.
- Commit all implementation:
git add -A
git commit -m "feat: implement {SLUG} via automated pipeline"
On failure: Send Teams notification:
ralph-o-matic notify --message "Pipeline failed at implementation for {SLUG}. Error: {ERROR}. Artifacts so far are committed. Resume manually or re-run /spec-to-design."
Completion
After all 4 phases succeed, output:
spec-to-design complete for {SLUG}:
Phase 1: Design alignment ✓
Phase 2: Plan production ✓ ({N} plans across {M} phases)
Phase 3: Plan alignment ✓
Phase 4: Implementation ✓ (tests passing)
All code committed. Ready for /auto-ralph-prep.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: dbinky
- Source: dbinky/dbinky-skill-set
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.