mylukin/ralph-dev/phase-3-implement
Claude Code and agent skill by mylukin/ralph-dev
- community
Checking that the SKILL.md file is still in the repository.
Autonomous implementation loop with TDD, fresh agents per task, and self-healing
Install
npx vskill@latest install mylukin/ralph-dev/phase-3-implementSKILL.md
Phase 3: Implementation Loop
Goal
Autonomously implement all tasks using TDD workflow, spawning fresh agents per task, with automatic healing on failure.
Input
- Tasks directory:
.ralph-dev/tasks/ - Task index:
.ralph-dev/tasks/index.json - Language config from index metadata
Workflow
Step 0: Initialize CLI (Automatic)
IMPORTANT: This skill requires the Ralph-dev CLI. It will build automatically on first use.
Step 1: Verify Baseline Tests
CRITICAL: Ensure tests pass before starting.
Step 2: Implementation Loop
Loop until all tasks are completed or failed.
Step 3: Spawn Implementer Agent (Per Task)
CRITICAL: Use Task tool to spawn fresh agent for each task.
FIRST — resolve the task file path so the implementer can read the full enriched contract (Context, Interface/Contract, TDD, Edge Cases & Failure Modes, Definition of Done, …). The JSON projection only carries lightweight metadata; the rich body lives in the file:
Implementer Prompt Must Include:
- The task file path (`{TASK_FILE}`) with an instruction to read it first —
it holds the full contract, not just the description
- Task ID, description, acceptance criteria
- TDD workflow: RED → GREEN → REFACTOR
- Autonomous decision-making (no questions allowed)
- Verification: run tests before reporting
- Output format:
report_implementation_resulttool call
Implementer Output (Tool Call):
Step 4: Handle Failure → Invoke Healing
If implementer fails:
- If heal succeeds →
ralph-dev tasks done "$TASK_ID" - If heal fails →
ralph-dev tasks fail "$TASK_ID" --reason "..."
Step 5: Update State & Return Result
REQUIRED Output Format:
TDD Workflow (For Implementer Agent)
Implementer Agent Rules
MUST:
- Follow TDD (test first, then implement)
- Run tests before reporting completion
- Make autonomous decisions (no questions)
- Return structured result via tool call
MUST NOT:
- Ask questions (blocks the loop)
- Skip writing tests
- Report success without verification
- Modify files outside task scope
Safety Limits
| Limit | Value | Purpose | |
|---|---|---|---|
| Loop timeout | 24 hours | Prevent infinite loops | |
| Max heal attempts | 3 per task | Prevent retry storms | |
| CI=true | Always | Prevent interactive mode hangs |
Constraints
- NEVER implement tasks in main session (always spawn subagent)
- NEVER rely on memory counters (always query CLI)
- NEVER exit loop until
completed + failed == total - ALWAYS use
CI=truewhen running tests - ALWAYS return structured PHASE RESULT block
Error Handling
| Error | Action | |
|---|---|---|
| No tasks found | Prompt to run Phase 2 | |
| Implementer fails | Invoke Phase 4 heal | |
| Heal fails 3x | Mark task failed, continue | |
| All tasks fail | Continue to Phase 5, report failures | |
| Agent no result | Mark task failed (possible crash/question) |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/phase-3-implement/SKILL.md
Popularity
- Repository stars
- 34
- Repository forks
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mylukin/ralph-dev/phase-3-implement)