ralph-loop
БесплатноБез исполняемых скриптовНе проверенIterative development loop methodology for autonomous AI work. Configure self-correcting coding loops that iterate until completion criteria are met…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Ralph Loop: Iterative Development Methodology
Configure and run self-correcting iterative development loops for autonomous AI coding. Ralph loops iterate until completion criteria are met, with proper state management and handoff support.
Triggers
Use this skill when:
- Running autonomous coding sessions
- Implementing self-correcting workflows
- Building iterative development pipelines
- Creating loops that validate and fix their own work
- Setting up background coding tasks
- Keywords: ralph, iterative, loop, autonomous, self-correcting, iteration, background, continuous
Concept Overview
RALPH LOOP CYCLE
┌─────────────────────────────────────────────┐
│ │
│ ┌──────────┐ │
│ │ Start │ │
│ │ Iteration│ │
│ └────┬─────┘ │
│ │ │
│ v │
│ ┌──────────┐ ┌──────────┐ │
│ │ Work │────>│ Validate │ │
│ │ │ │ │ │
│ └──────────┘ └────┬─────┘ │
│ │ │
│ ┌───────────┴───────────┐ │
│ │ │ │
│ v v │
│ [FAIL] [PASS] │
│ │ │ │
│ │ v │
│ │ ┌──────────┐ │
│ │ │ Complete?│ │
│ │ └────┬─────┘ │
│ │ │ │
│ │ ┌────────┴────────┐│
│ │ │ ││
│ v v v│
│ [Fix Issue] [NO] [YES]│
│ │ │ ││
│ └─────────┘ EXIT │
│ │ │
└────────────────────┘ │
│
<promise>COMPLETE</promise>
Setup Wizard
Phase 1: Project Selection
# Query Archon for projects
projects = find_projects(masters_only=True, include_hierarchy=True)
Present options:
## Select Project
| # | Project | Description | Tasks |
|---|---------|-------------|-------|
| 1 | [Project Name] | [Description] | [X] todo |
| 2 | [Project Name] | [Description] | [X] todo |
Enter project number (or 'new' to create):
Phase 2: Task Selection
# Get tasks for selected project
tasks = find_tasks(
filter_by="project",
filter_value=PROJECT_ID,
include_closed=False
)
Present options:
## Select Task
### TODO Tasks (Recommended)
| # | Task | Feature | Priority |
|---|------|---------|----------|
| 1 | [Task Title] | [Feature] | [Order] |
| 2 | [Task Title] | [Feature] | [Order] |
### In Progress (Continue existing)
| # | Task | Feature | Assignee |
|---|------|---------|----------|
| 3 | [Task Title] | [Feature] | [Assignee] |
Enter task number (or 'new' to create, 'custom' for custom prompt):
Phase 3: Prompt Configuration
Auto-Generated Prompt Template:
# Ralph Loop: [TASK_TITLE]
## Objective
[From task description]
## Requirements
[Extracted from task]
## Acceptance Criteria
[From task if available]
## Self-Correction Loop
For each iteration:
1. Review previous work in files and git history
2. Run validation: `[TEST_COMMAND]`
3. If validation fails:
- Analyze failure output
- Fix the issue
- Re-run validation
4. If validation passes:
- Check against acceptance criteria
- Continue to next requirement
5. When all requirements met:
- Run full validation suite
- Update Archon task to "done"
- Output: <promise>COMPLETE</promise>
## Validation Commands
```bash
[BUILD_COMMAND]
[TEST_COMMAND]
Archon Context
- Project: [PROJECT_ID]
- Task: [TASK_ID]
Escape Hatch
After 15 iterations without progress:
- Update Archon task with blocker details
- Document what was attempted
- Output:
BLOCKED
### Phase 4: Options Configuration
```markdown
## Loop Options
### Iteration Limits
| Setting | Default | Your Choice |
|---------|---------|-------------|
| Max iterations | 50 | ___ |
| Timeout per iteration (min) | 0 (unlimited) | ___ |
| Pause between iterations (sec) | 0 | ___ |
### Completion Settings
| Setting | Default | Your Choice |
|---------|---------|-------------|
| Completion promise | "COMPLETE" | ___ |
| Complete on Archon task done | Yes | Yes / No |
| Complete on tests pass | No | Yes / No |
### Execution Mode
- [ ] **Background** - Fully autonomous (recommended for tested prompts)
- [ ] **Manual** - You trigger each iteration
- [ ] *
Установить ralph-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ralph-loop?
Iterative development loop methodology for autonomous AI work. Configure self-correcting coding loops that iterate until completion criteria are met, integrate with Archon for task tracking, and support multiple execution modes. Use when running autonomous coding sessions, implementing self-correcting workflows, or building iterative development pipelines.
Как установить скилл ralph-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ralph-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic