ralph-loop
Ralph Loop
Autonomous development loop that continues working until all tasks are complete.
Workflow
When triggered, execute this loop:
┌─────────────────────────────────────────────────────────┐
│ RALPH LOOP │
├─────────────────────────────────────────────────────────┤
│ 1. Check TodoWrite for pending tasks │
│ 2. If no pending tasks → output "COMPLETE" and exit │
│ 3. Pick highest priority pending task │
│ 4. Mark task as in_progress │
│ 5. Execute the task │
│ 6. Mark task as completed │
│ 7. Go to step 1 │
└─────────────────────────────────────────────────────────┘
Exit Condition
Output exactly COMPLETE (on its own line) when:
- All tasks in the todo list are marked as completed
- No more pending tasks remain
Execution Rules
- Task Priority: Process tasks in order (top to bottom)
- One at a Time: Only one task should be
in_progressat any moment - Immediate Update: Mark tasks completed immediately after finishing
- No Skipping: Complete each task fully before moving to the next
- Error Handling: If a task fails, log the error and continue to next task
Status Block
After each task completion, output a status block:
RALPH_STATUS:
completed: <task description>
remaining: <number of pending tasks>
EXIT_SIGNAL: <true if no more tasks, false otherwise>
Example
User: 全部完成
Claude: [Invokes ralph-loop skill]
Checking todo list...
- [x] Task 1 (completed)
- [-] Task 2 (in_progress) ← Working on this
- [ ] Task 3 (pending)
RALPH_STATUS:
completed: Task 2
remaining: 1
EXIT_SIGNAL: false
[Continues to Task 3...]
RALPH_STATUS:
completed: Task 3
remaining: 0
EXIT_SIGNAL: true
COMPLETE
More from xfstudio/skills
baoyu-post-to-wechat
Posts content to WeChat Official Account (微信公众号) via Chrome CDP automation. Supports article posting (文章) with full markdown formatting and image-text posting (图文) with multiple images. Use when user mentions "发布公众号", "post to wechat", "微信公众号", or "图文/文章".
18last30days
Research a topic from the last 30 days on Reddit + X + Web, become an expert, and write copy-paste-ready prompts for the user's target tool.
15ui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
133d-web-experience
Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences. Use when: 3D website, three.js, WebGL, react three fiber, 3D experience.
12frontend-design
Create distinctive, production-grade frontend interfaces with intentional aesthetics, high craft, and non-generic visual identity. Use when building or styling web UIs, components, pages, dashboards, or frontend applications.
11backend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
10