一键导入
ralph-loop
Run repeatable multi-LLM codebase hardening sweeps: map under-reviewed surfaces, get tough reviewers, patch fixes, document learnings, and loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run repeatable multi-LLM codebase hardening sweeps: map under-reviewed surfaces, get tough reviewers, patch fixes, document learnings, and loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit chezmoi dotfiles for drift, unmanaged files, and broken agent skill symlinks across Claude Code, Codex, Gemini, and other harnesses.
Scan Claude/Codex session logs to find agent behavior patterns, Toolsmith adoption gaps, repeated frustrations, and candidates for new skills/tools.
Generate user-facing changelog entries from git history — plain language, audience-segmented, with optional CHANGELOG.md update.
Consolidate/dedupe contacts from macOS, iCloud, Google, Zoho, or VCF with provenance-aware review, backups, and optional approved dossiers.
Capture a technical or product decision with chosen option, rejected alternatives, and rationale — in a format a future agent can read to reconstruct context.
Audit repos for SHA/digest dependency pinning and release cooldowns across Docker, CI, and major language ecosystems; report violations, fix with approval.
| name | ralph-loop |
| description | Run repeatable multi-LLM codebase hardening sweeps: map under-reviewed surfaces, get tough reviewers, patch fixes, document learnings, and loop. |
| display_name | RALPH Loop |
| brand_color | #C2410C |
| local_only | false |
| group | Dev Workflow |
| usage | /ralph-loop:run |
| summary | Run repeatable multi-AI hardening passes over a codebase to shake out bugs and weak spots. |
| default_prompt | Run a RALPH loop over this repo: map the next under-reviewed surfaces, get multi-LLM review, apply high-confidence fixes, document findings, and tell me the next sweep frontier. |
RALPH packages the recurring multi-LLM hardening sweep:
Recon the codebase → Assemble a review packet → Launch diverse reviewers → Patch proven findings → Handoff learnings.
Use it when the user asks for another sweep, a tough multi-LLM review, recurring codebase hardening, or “keep looking for untouched areas.” It extends second-opinions: that skill validates one change or decision; RALPH repeatedly searches the repo for the next highest-leverage surface and turns reviewer output into fixes, docs, and follow-up work.
Be tough but fair. External models are collaborators, not judges. Prefer fixes that are:
Reject reviewer suggestions that are stale, hallucinated, over-engineered, already fixed, or require product decisions.
Start from repo evidence, not vibes.
Good frontier slices:
If the repo has prior review docs, append “already swept” and “next frontier” notes to avoid orbiting the same planet until the flamingo gets dizzy.
Prefer the bundled prompt builder:
uv run "${SKILL_DIR:-${CLAUDE_SKILL_DIR}}/scripts/build_ralph_prompt.py" --focus "views, API, auth" --out-dir "$HOME/dev/agent-notes/$(basename "$PWD")"
If the environment lacks SKILL_DIR, locate the script in the skill directory or build the packet manually.
The packet should include:
Keep prompts under shell argument limits. If using a CLI wrapper that passes prompt as argv, aim for <50k chars.
Use at least three diverse reviewers when available. agent is a router, not mandatory: direct claude -p, codex exec, or any subscribed local-agent CLI is valid when it avoids paid API routes. Prefer:
agent --model x-ai/grok-4.3 for bluntness/edge cases;agent --model '~google/gemini-pro-latest' for systems/code reasoning;agent --model deepseek/deepseek-v4-pro for bug-hunting/value;ask-gemini, llm, codex, ask-copilot, etc.Run reviewers in parallel when tools allow. Store raw outputs under ~/dev/agent-notes/<repo>/ with model and date in the filename.
Prompt reviewers to include file/function, reason, suggested fix, severity, and a Reject/Do-not-do section.
Create a synthesis table:
| Reviewer item | Classification | Decision |
|---|---|---|
| Bug/security/auth/data loss | Must-fix | Patch now |
| Clear simplification/error context | Should-fix | Patch if small |
| Product/refactor idea | Follow-up | File issue |
| Hallucinated/stale/overbroad | Reject | Note why |
Important checks:
Use normal project workflow and issue tracking. Patch in small commits if possible.
Common RALPH fix patterns:
str(exc) with generic copy + Sentry capture.Create a review doc in the repo when appropriate:
docs/reviews/YYYY-MM-DD-ralph-<frontier>-review.md
Include:
Update core project instructions only for durable learnings that future agents should obey.
Run targeted tests plus the repo’s standard gates. Commit, push, close issue(s). Final answer should be concise:
Keep looping while each pass finds meaningful, distinct fixes. Stop or switch strategy when:
When stopping, name the next higher-leverage move: test suite expansion, architecture split, threat model, performance profile, visual QA, launch-sequence, etc.
second-opinions inside RALPH for reviewer fan-out and classification discipline.wide-open-brainstorm only when reviewer output reveals product/UX direction rather than concrete code hardening.trust-audit when findings cluster around privacy, permissions, auth, or destructive actions.empathy-audit when findings cluster around confusing UX, support burden, machine load, or developer maintainability.