New: AI Tutors for KS3 & GCSE — ten Socratic tutors, one for every subject.Meet the Tutors
Ralph Mode - Autonomous Development Loops: Development & Code Tools for Claude Code | AI Skill Market | AI Skill Market
Ralph Mode - Autonomous Development Loops
Autonomous development loops with iteration, backpressure gates, and completion criteria. Use for sustained coding sessions that require multiple iterations, test validation, and structured progress t
Skills give you superpowers. Install in 30 seconds.
Ralph Mode - Autonomous Development Loops
Ralph Mode implements the Ralph Wiggum technique adapted for OpenClaw: autonomous task completion through continuous iteration with backpressure gates, completion criteria, and structured planning.
When to Use
Use Ralph Mode when:
Building features that require multiple iterations and refinement
Working on complex projects with acceptance criteria to validate
Need automated testing, linting, or typecheck gates
Want to track progress across many iterations systematically
Prefer autonomous loops over manual turn-by-turn guidance
## Completion Check - UX Quality
Criteria: Navigation is intuitive, primary actions are discoverable
Test: User can complete core flow without confusion
Completion Check - Design Quality
Criteria: Visual hierarchy is clear, brand consistency maintained
Test: Layout follows established patterns
NEW: Session Initialization Best Practices (2025-02-07)
Problem: Sub-agents spawn but don't execute
Evidence: Empty session logs (2 bytes), no tool calls, 0 tokens used
Root Causes
Instructions too complex - Overwhelms isolated session initialization
No clear execution trigger - Agent doesn't know to start
Branching logic - "If X do Y, if Z do W" confuses task selection
Multiple files mentioned - Can't decide which to start with
Fix: SIMPLIFIED Ralph Task Template
## Task: [ONE specific thing]
File: exact/path/to/file.ts
What: Exact description of change
Validate: Exact command to run
Then: Update PROGRESS.md and exit
Rules
Do NOT look at other files
Do NOT "check first"
Make the change, validate, exit
BEFORE (Bad - causes stalls):
Fix all TypeScript errors across these files:
- lib/db.ts has 2 errors
- lib/proposal-service.ts has 5 errors
- route.ts has errors
Check which ones to fix first, then...
AFTER (Good - executes):
Fix lib/db.ts line 27:
Change: PoolClient to pg.PoolClient
Validate: npm run typecheck
Exit immediately after
CRITICAL: Single File Rule
Each Ralph iteration gets ONE file. Not "all errors", not "check then decide". ONE file, ONE change, validate, exit.
CRITICAL: Update PROGRESS.md
MANDATORY: After EVERY iteration, update PROGRESS.md with:
## Iteration [N] - [Timestamp]
Status: Complete ✅ | Blocked ⛔ | Failed ❌
What Was Done
[Specific changes made]
Validation
[Test/lint/typecheck results]
Next Step
[What should happen next]
Why this matters: Cron job reads PROGRESS.md for status updates. If not updated, status appears stale/repetitive.
Debugging Ralph Stalls
If Ralph stalls:
Check session logs (should show tool calls within 60s)
If empty after spawn → instructions too complex
Reduce: ONE file, ONE line number, ONE change
Shorter timeout forces smaller tasks (300s not 600s)
Fixing Stale Status Reports
If cron reports same status repeatedly:
Check PROGRESS.md was updated by sub-agent
If not updated → sub-agent skipped documentation step
Update skill: Add "MANDATORY PROGRESS.md update" to prompt
Manual fix: Update PROGRESS.md to reflect actual state
Summary
Ralph works when: Single file focus + explicit change + validate + exit
Ralph stalls when: Complex decisions + multiple files + conditional logic