This skill should be used when the user wants to convert completed CCSDD specs into Ralph execution artifacts. Use when user says "bridge spec to ralph", "convert sdd to ralph", "sdd to ralph", "generate ralph from spec", "prepare spec for ralph", or wants to take a cc-sdd feature spec and run it through Ralph for autonomous implementation.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
Instruções da origem · Visualização somente leitura
name
sdd-to-ralph
description
This skill should be used when the user wants to convert completed CCSDD specs into Ralph execution artifacts. Use when user says "bridge spec to ralph", "convert sdd to ralph", "sdd to ralph", "generate ralph from spec", "prepare spec for ralph", or wants to take a cc-sdd feature spec and run it through Ralph for autonomous implementation.
allowed-tools
Read, Write, Glob, AskUserQuestion
SDD to Ralph Bridge
Convert completed CCSDD (cc-sdd) spec artifacts into Ralph execution artifacts for autonomous implementation.
Verify both systems are installed before proceeding:
Ralph enabled: .ralph/ directory and .ralphrc file exist
If missing: instruct user to run ralph-enable
CCSDD installed: .kiro/ directory exists with at least one spec
If missing: instruct user to run npx cc-sdd@latest --claude
If either prerequisite fails, stop and report the issue.
Step 1: Detect and Select Feature Spec
Glob for .kiro/specs/*/spec.json to find available specs.
If 0 specs found:
If `tasks.md` does not exist or is empty, stop and report: "Cannot generate fix_plan.md without tasks. Run `/kiro:spec-tasks ` first."
- Summarize, don't dump — Ralph reads PROMPT.md every loop, so it must be concise
- Full specs are in `.ralph/specs/` for reference when Ralph needs detail
- Include version numbers for all technologies
- Make principles actionable — things Claude can verify
- Keep Requirements Summary to titles and key criteria only
- Design Reference should focus on architecture decisions that affect implementation
The operational instructions section is MANDATORY. Without it:
- Claude won't output the RALPH_STATUS block that Ralph parses for exit signals
- Claude won't know when to set EXIT_SIGNAL: true vs false
- Ralph will either never exit or exit prematurely
- The circuit breaker and response analyzer depend on structured status output
- Only include leaf tasks — parent tasks are organizational groupings, not implementable units
- Preserve the task ordering from tasks.md (respects dependency structure via P0/P1/P2 ordering)
- The /kiro:validate-impl task is always last — it closes the spec→implementation→validation loop
Error: "No CCSDD specs found in .kiro/specs/"
Instruct: "Run /kiro:spec-init <description> to create a feature spec first"
If a file doesn't exist, note it and proceed with what's available. At minimum, tasks.md must exist (it provides the fix_plan content).
Step 4: Generate PROMPT.md
Create .ralph/PROMPT.md with two parts.
Part 1: Project-Specific Content
Synthesize from the CCSDD artifacts read in Step 3:
# Ralph Development Instructions## Context
[2-3 sentences from design.md overview/summary section describing what is being built]
You are Ralph, building [brief description].
## Technology Stack
[Extract from design.md "Technology Stack" section or .kiro/steering/tech.md]
[Include version numbers when available]
- [Language] [version]
- [Framework] [version]
- [Library] [version] - [purpose]
## Key Principles
[Extract top 5 design decisions/principles from design.md]
- [Principle 1]
- [Principle 2]
## Current Objectives
[Extract high-level requirement titles from requirements.md — NOT full EARS criteria]
1. [Requirement group title] - [brief description]
2. [Requirement group title] - [brief description]
## Requirements Summary
[Numbered list with brief descriptions — point to full specs for detail]
1. [Requirement name] ([N] acceptance criteria)
- [Key criteria summary]
2. [Requirement name] ([N] acceptance criteria)
- [Key criteria summary]
Full EARS-format requirements: `.ralph/specs/requirements.md`## Design Reference
[Key architecture decisions from design.md, ~500 words max]
[Include architecture diagram if present (Mermaid syntax)]
Full technical design: `.ralph/specs/design.md`## Quality Standards
[Extract testing/quality requirements from design.md or requirements.md]
- [Standard 1]
- [Standard 2]
Do NOT modify: MAX_CALLS_PER_HOUR, CLAUDE_TIMEOUT_MINUTES, SESSION_CONTINUITY, SESSION_EXPIRY_HOURS, circuit breaker thresholds, or any other existing settings.
Write updated .ralphrc.
Step 7: Copy Spec Files to Ralph
Create .ralph/specs/ directory if it doesn't exist. Copy CCSDD spec files so Ralph can reference them during implementation: