Skip to content
auto-ralph logo

Auto Ralph

auto-ralph

PROACTIVELY activates for ANY task with clear success criteria. This skill should be used when the user provides tasks like: "fix the bug", "add tests", "implement feature X", "refactor Y". Explicit triggers: "ralph this", "auto ralph", "loop it", "iterate". Auto-detects Ralph-suitable tasks (score >= 3/4): - Clear success criteria (tests pass, error gone, feature works) - Benefits from iteration (not one-shot) - Well-defined scope (specific files/functions) - Verifiable completion (can honestly output promise) Does NOT activate for: explanations, questions, vague requests. Output: Romanian. Input: Any (ro/en/ru/mixed).

SKILL.md

Full skill instructions

auto-ralph

Skill proactiv care detectează automat task-uri potrivite pentru Ralph Loop și le execută.

Prefix de Activare (OBLIGATORIU)

Când skill-ul activează, PRIMUL lucru afișat trebuie să fie:

(AUTONALYK) ═══════════════════════════════════
  Task detectat: [tip task]
  Scor: [X]/​4 → [Ralph mode / Normal mode]
═══════════════════════════════════════════════

Exemple:

(AUTONALYK) ═══════════════════════════════════
  Task detectat: bug fix
  Scor: 4/​4 → Ralph mode
═══════════════════════════════════════════════
(AUTONALYK) ═══════════════════════════════════
  Task detectat: întrebare
  Scor: 1/​4 → Normal mode
═══════════════════════════════════════════════

De ce prefix:

  • Utilizatorul știe imediat că skill-ul a activat
  • Transparență totală despre decizia scoring
  • Debugging ușor dacă ceva merge prost

Faza 0: Verificare Loop Activ (OBLIGATORIU - P0 FIX)

ÎNAINTE de orice scoring, verifică dacă Ralph Loop e deja activ:

if [[ -f ".claude/​ralph-loop.local.md" ]]; then
    # STOP - nu porni alt loop!
fi

Dacă loop activ:

(AUTONALYK) ═══════════════════════════════════
  ⚠️  Ralph Loop DEJA ACTIV!
  Iterația curentă: [citește din fișier]

  Opțiuni:
  1. Așteaptă să termine
  2. /​cancel-ralph pentru a opri
  3. Adaugă cerința la loop-ul curent (manual)
═══════════════════════════════════════════════

NU încerca să pornești al doilea loop - va corupe starea!

Workflow Automat

USER INPUT → CHECK ACTIVE LOOP → SCORING → (>= 3?) → CONTEXT → PROMPT → CONFIRM → EXECUTE
                    ↓                         ↓
              (loop activ?)              (< 3?) → RĂSPUNS NORMAL
                    ↓
              AVERTIZARE + STOP

ZERO întrebări până la confirmarea finală.

Faza 1: Scoring Automat

Calculează scor 0-4 pentru fiecare task:

Criteriu+1 punct dacă
Criterii clareKeywords pozitive detectate (vezi tabel mai jos)
Iterație utilăBug fix, feature, refactor (nu întrebări)
Scop definitFișiere/​funcții specificate
VerificabilTeste disponibile sau eroare concretă

Keywords Multilingve (P1 FIX)

IMPORTANT: Recunoaște keywords în TOATE limbile:

LimbaKeywords Pozitive (+1)Keywords Negative (0)
ENfix, repair, add, implement, create, build, test, refactorexplain, help, what, why, how, understand
ROrepară, fixează, adaugă, implementează, creează, fă, fă-mi, testează, refactorizeazăexplică, ce face, cum, de ce, ajută-mă
RUисправь, добавь, создай, сделай, протестируй, рефакторобъясни, что, как, почему, помоги

Exemple:

  • "fă-mi un API" → "fă-mi" = RO pentru "make me" → +1 criteriu clar
  • "repară bug-ul" → "repară" = RO pentru "fix" → +1 criteriu clar
  • "ce face funcția?" → "ce face" = întrebare → 0 puncte

Decizie:

  • Scor >= 3 → AUTO-RALPH
  • Scor < 3 → Răspuns normal Claude

Faza 1.5: Pre-Analiză cu Explore Agent (OPȚIONAL)

Când să folosești Explore ÎNAINTE de Ralph Loop:

ScorTask TypeExplore?Motiv
4/​4Bug fix cu stack trace clarNUDirect Ralph - context evident
4/​4Refactor >500 liniiDAMapează dependențe înainte
3/​4Feature în cod necunoscutDAÎnțelege arhitectura
3/​4Test funcție izolatăNUScop mic, direct Ralph

Regula simplă: Explore când ai nevoie să înțelegi structura ÎNAINTE de a modifica.

Template-uri Explore

Bug Fix Explore:

Task(subagent_type="Explore", prompt="Investigate [ERROR]: 1) Find source file, 2) Map call chain, 3) Identify related tests, 4) Find similar patterns")

Feature Explore:

Task(subagent_type="Explore", prompt="Plan feature [NAME]: 1) Find similar implementations, 2) Map integration points, 3) Identify test patterns, 4) Check config files")

Refactor Explore:

Task(subagent_type="Explore", prompt="Analyze [TARGET]: 1) Find all usages, 2) Map dependencies, 3) Assess test coverage, 4) Identify risk areas")

Vezi references/​explore-patterns.md pentru template-uri complete și exemple.

Faza 2: Detecție Context

Rulează ${CLAUDE_SKILL_DIR}/​scripts/​detect-context.sh [directory] pentru:

  • Git status (fișiere modificate)
  • Framework test disponibil (sau NO_TESTS_DETECTED)
  • Erori recente (npm, yarn, pytest, generic logs)
  • Structură proiect
  • Docker status (P2 FIX) - docker-compose, containere, logs

Notă: Scriptul verifică automat dacă jq e instalat și afișează instrucțiuni dacă lipsește.

Faza 3: Generare Prompt

Selectează template din references/​prompt-patterns.md:

  • Bug fix → Pattern bug-fix
  • Feature → Pattern feature
  • Test → Pattern test
  • Refactor → Pattern refactor
  • Generic → Template general

Template include:

  • Task-ul original (în limba userului)
  • Context detectat
  • Criterii de succes auto-inferate
  • Promise: <promise>GATA</​promise>
  • Reminder: /​cancel-ralph pentru anulare

Faza 4: Confirmare (SINGURA ÎNTREBARE)

Prezintă prompt-ul generat și întreabă:

Prompt generat pentru Ralph Loop:
────────────────────────────────
[preview prompt]
────────────────────────────────

Execut? (max 25 iterații)
[Da - Recomandat] [Modifică prompt] [Nu]

Faza 5: Execuție

Dacă "Da":

/​ralph-loop "<prompt>" --max-iterations 25 --completion-promise "GATA"

Reguli Limbă

  • Output: MEREU Română
  • Input: Acceptă orice (ro/​en/​ru/​mixed) fără întrebări
  • Promise: "GATA" (standard)

Exemplu:

User: "fix the auth bug, нужно чтобы работал login"

(AUTONALYK) ═══════════════════════════════════
  Task detectat: bug fix
  Scor: 4/​4 → Ralph mode
═══════════════════════════════════════════════

Generez prompt...

Triggers Explicite (override scoring)

Activare forțată Ralph:

  • "ralph this", "auto ralph", "loop it"
  • "iterate", "keep trying", "until done"

Dezactivare forțată:

  • "just answer", "don't loop"
  • "explain first", "one time"

Resurse

  • references/​detection-rules.md - Reguli complete scoring
  • references/​prompt-patterns.md - Template-uri prompt
  • scripts/​detect-context.sh - Script detecție context
  • examples/ - Exemple prompt-uri generate

Exemple Rapide

Task potrivit (scor 4)

User: "fix the failing tests in auth module"

(AUTONALYK) ═══════════════════════════════════
  Task detectat: bug fix (teste)
  Scor: 4/​4 → Ralph mode
═══════════════════════════════════════════════

Detectez context... [git, teste, erori]
Generez prompt...

Prompt generat pentru Ralph Loop:
────────────────────────────────
[preview]
────────────────────────────────

Execut? (max 25 iterații) [Da/​Modifică/​Nu]

Task nepotrivit (scor 1)

User: "ce face funcția asta?"

(AUTONALYK) ═══════════════════════════════════
  Task detectat: întrebare/​explicație
  Scor: 1/​4 → Normal mode
═══════════════════════════════════════════════

[Răspuns normal Claude, fără Ralph]

Safety

  1. Max iterations - Default 25, MEREU setat
  2. Confirmare - Un click "Da" înainte de execuție
  3. Escape - /​cancel-ralph menționat în fiecare prompt
  4. Promise onestă - Instrucțiuni clare să NU mintă

Anti-Patterns (CE NU FACE)

  • NU întreabă despre limbă
  • NU întreabă "quick sau thorough"
  • NU cere clarificări inutile
  • NU execută fără confirmare finală
  • NU ignoră scor < 3 (răspunde normal)

Settings Persistence

Auto-ralph citește configurația din ~/​.claude/​auto-ralph.local.md:

Structură Settings File

---
max_iterations: 25
score_threshold: 3
skip_explore_for_score: 4
default_language: ro
auto_execute: false
docker_analysis: true
---

# Notes
Any markdown notes here.

Parametri Disponibili

ParametruDefaultDescriere
max_iterations25Iterații maxime Ralph Loop
score_threshold3Scor minim pentru Ralph mode
skip_explore_for_score4Scor la care se sare peste Explore
default_languageroLimba output (ro/​en/​ru)
auto_executefalsetrue = fără confirmare finală
docker_analysistrueInclude Docker în context detection

Override

Parametrii expliciți din comandă au prioritate peste settings:

User: "ralph this cu max 50 iterații"
→ Override max_iterations=50, ignoră settings

Citire Settings

Script-ul detect-context.sh include funcție read_settings():

read_settings() {
    local sf="$HOME/​.claude/​auto-ralph.local.md"
    if [[ -f "$sf" ]]; then
        sed -n '/^---$/,/^---$/​p' "$sf" | grep -v '^---$'
    fi
}

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View