Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计异常

ralph-wiggum拉尔夫·维格姆

Agent Skill

ralph-wiggum 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

18,238

周安装

745

GitHub Stars

224

下载量

5,841
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ralph-wiggum(拉尔夫·维格姆)
来源仓库:https://github.com/fstandhartinger/ralph-wiggum
仓库路径:skills/ralph-wiggum
安装命令:
npx skills add https://github.com/fstandhartinger/ralph-wiggum --skill ralph-wiggum
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/fstandhartinger/ralph-wiggum --skill ralph-wiggum

简介

规范驱动的自主 AI 编码,使用迭代 bash 循环为每个任务提供新鲜的上下文。

  • 实施 Geoffrey Huntley 的方法,其中每次循环迭代都会使用干净的上下文窗口启动一个新的代理进程,从而防止长时间会话导致性能下降
  • 要求规范文件中有明确的、可测试的验收标准;代理输出 <promise>DONE</promise>
  • 仅当所有标准均已验证且测试通过时
  • 通过specs/维护磁盘上的共享状态, ralph_history.txt
  • 和可选的 IMPLMENTATION_PLAN.md
  • 跨迭代的持久性
  • 支持两种模式:构建(默认,用于实施)和计划(用于任务分解);与 Claude Code 和 Codex CLI 配合使用

SKILL.md

Ralph Wiggum

Autonomous AI coding with spec-driven development

What is Ralph Wiggum?

Ralph Wiggum combines Geoffrey Huntley's iterative bash loop with spec-driven development for fully autonomous AI-assisted software development.

The key insight: Fresh context each iteration. Each loop starts a new agent process with a clean context window, preventing context overflow and degradation.

When to Use This Skill

Use Ralph Wiggum when:

  • You have multiple specifications/features to implement
  • You want the AI to work autonomously through tasks
  • You need consistent, verifiable completion of acceptance criteria
  • You want to avoid context window problems in long sessions

How It Works

┌─────────────────────────────────────────────────────────────┐
│                     RALPH LOOP                              │
├─────────────────────────────────────────────────────────────┤
│  Loop 1: Pick spec A → Implement → Test → Commit → DONE    │
│  Loop 2: Pick spec B → Implement → Test → Commit → DONE    │
│  Loop 3: Pick spec C → Implement → Test → Commit → DONE    │
│  ...                                                        │
│                                                             │
│  Each iteration = Fresh context window                      │
│  Shared state = Files on disk (specs, plan, history)        │
└─────────────────────────────────────────────────────────────┘

Installation

Quick Install (via Skill Installers)

# Using Vercel's add-skill
npx add-skill fstandhartinger/ralph-wiggum

# Using OpenSkills
openskills install fstandhartinger/ralph-wiggum

Full Setup (Recommended)

For full Ralph Wiggum setup with constitution and interview:

# Tell your AI agent:
"Set up Ralph Wiggum using https://github.com/fstandhartinger/ralph-wiggum"

The agent will guide you through a lightweight, pleasant setup:

  1. Quick Setup (~1 min) — Create directories, download scripts
  2. Project Interview — Focus on your vision and goals (not tech details)
  3. Constitution — Create a guiding document for all sessions
  4. Next Steps — Clear guidance on creating specs and starting Ralph

For existing projects, the agent detects your tech stack automatically. The interview prioritizes understanding *what you're building and why*.

Core Concepts

1. Fresh Context Each Loop

Each iteration of the Ralph loop starts a new AI agent process. This means:

  • No context window overflow
  • No degradation over time
  • Clean slate for each task

2. Shared State on Disk

State persists between loops via files:

  • specs/ — Feature specifications with acceptance criteria
  • ralph_history.txt — Log of breakthroughs, blockers, learnings
  • IMPLEMENTATION_PLAN.md — Optional detailed task breakdown

3. Completion Signal

The agent outputs <promise>DONE</promise> ONLY when:

  • All acceptance criteria are verified
  • Tests pass
  • Changes are committed and pushed

The bash loop checks for this phrase. If not found, it retries.

4. Backpressure via Tests

Tests, lints, and builds act as guardrails. The agent must fix issues before outputting the completion signal.

Usage

Creating Specifications

The key to success: Each spec needs clear, testable acceptance criteria. This is what tells Ralph when a task is truly "done."

# Feature: User Authentication

## Requirements
- OAuth login with Google
- Session management
- Logout functionality

## Acceptance Criteria
- [ ] User can log in with Google
- [ ] Session persists across page reloads
- [ ] User can log out
- [ ] Tests pass

**Output when complete:** `<promise>DONE</promise>`

Good criteria: "User can log in with Google and session persists" Bad criteria: "Auth works correctly"

The more specific your acceptance criteria, the better Ralph performs.

Running the Loop

# Start building (Claude Code)
./scripts/ralph-loop.sh

# With max iterations
./scripts/ralph-loop.sh 20

# Using Codex CLI
./scripts/ralph-loop-codex.sh

Logging (All Output Captured)

Every loop run writes all output to log files in logs/:

  • Session log: logs/ralph_*_session_YYYYMMDD_HHMMSS.log (entire run, including CLI output)
  • Iteration logs: logs/ralph_*_iter_N_YYYYMMDD_HHMMSS.log (per-iteration CLI output)
  • Codex last message: logs/ralph_codex_output_iter_N_*.txt

Two Modes

ModePurposeCommand
build (default)Pick spec, implement, test, commit./scripts/ralph-loop.sh
plan (optional)Create detailed task breakdown./scripts/ralph-loop.sh plan

Key Principles

Let Ralph Ralph

Trust the AI to self-identify, self-correct, and self-improve. Observe patterns and adjust prompts.

YOLO Mode

For Ralph to work effectively, enable full autonomy:

  • Claude Code: --dangerously-skip-permissions
  • Codex: --dangerously-bypass-approvals-and-sandbox

⚠️ Use at your own risk. Only in sandboxed environments.

Links

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.31%
按下载量换算1,595

OpenCode

23.15%
按下载量换算1,352

Cursor

15.78%
按下载量换算922

Gemini CLI

12.83%
按下载量换算749

Antigravity

6.59%
按下载量换算385

Codex

3.02%
按下载量换算176

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills