Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

ralphRalph 助手

Agent Skill

ralph 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

321

周安装

13

GitHub Stars

公开资料未说明

下载量

101
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add millionthodin16/clawd-explorations --skill "ralph"

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于 Ralph 助手相关信息的搜索与整理。
  • 通过 npx skills add millionthodin16/clawd-explorations --skill "ralph" 命令安装。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • ralph 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Ralph Loop Skill

Spec-driven development for autonomous agent workflows. Transform vague feature ideas into executable specs, then execute task-by-task with fresh context.

When to Use This Skill

Use when you need to:

  • Build features systematically: Research → Requirements → Design → Tasks → Implementation
  • Execute complex multi-step tasks: Task-by-task with progress persistence
  • Handle long-running implementations: Fresh context per task prevents context overflow
  • Parallelize independent tasks: Mark tasks with [P] for concurrent execution
  • Maintain quality gates: [VERIFY] checkpoints and POC-first workflow

Quick Start

# Smart entry: resume or create new spec
/ralph:start feature-name Add JWT authentication

# Quick mode: auto-generate all specs and execute
/ralph:start "Add user auth" --quick

# Step-by-step
/ralph:new user-auth Add JWT authentication
/ralph:research
/ralph:requirements
/ralph:design
/ralph:tasks
/ralph:implement

Commands

CommandPurpose
/ralph:start [name] [goal]Smart entry: resume existing or create new
/ralph:start [goal] --quickQuick mode: auto-generate and execute
/ralph:new <name> [goal]Create new spec, start research
/ralph:researchRun/re-run research phase
/ralph:requirementsGenerate requirements from research
/ralph:designGenerate technical design
/ralph:tasksBreak design into executable tasks
/ralph:implementExecute tasks one-by-one (or parallel)
/ralph:statusShow all specs and progress
/ralph:switch <name>Change active spec
/ralph:cancelCancel loop, cleanup state
/ralph:helpShow help

The Ralph Loop

Feature Request
      |
      v
+-----------------+
|    Research     |  <- Analyzes feasibility, codebase, web search
+-----------------+
      |
      v
+-----------------+
|  Requirements   |  <- User stories, acceptance criteria
+-----------------+
      |
      v
+-----------------+
|     Design      |  <- Architecture, patterns, decisions
+-----------------+
      |
      v
+-----------------+
|     Tasks       |  <- POC-first task breakdown
+-----------------+
      |
      v
+-----------------+
|  Implementation |  <- Task-by-task with fresh context
+-----------------+
      |
      v
   Feature Done

Parallel Task Execution

Mark tasks with [P] for parallel execution:

- [ ] 1.1 [P] First parallel task
- [ ] 1.2 [P] Second parallel task (runs with 1.1)
- [ ] 1.3 [P] Third parallel task (runs with 1.1, 1.2)
- [ ] 1.4 Sequential task (breaks group, runs alone)
- [ ] 1.5 [VERIFY] Checkpoint (never parallel)

Rules

  • Consecutive [P] tasks form a parallel group
  • Non-[P], [VERIFY], or [SEQUENTIAL] tasks break the group
  • [VERIFY] and [SEQUENTIAL] override [P] if on same line
  • Max 3 concurrent executors per batch
  • Partial failures preserve successful task progress

Sub-Agents

AgentFileRole
research-analystagents/research-analyst.mdWeb search, codebase analysis
product-manageragents/product-manager.mdUser stories, acceptance criteria
architect-revieweragents/architect-reviewer.mdTechnical design, architecture
task-planneragents/task-planner.mdPOC-first task breakdown
spec-executoragents/spec-executor.mdAutonomous task implementation
qa-engineeragents/qa-engineer.mdQuality verification
plan-synthesizeragents/plan-synthesizer.mdPlan synthesis

Project Structure

skills/ralph/
├── SKILL.md                    <- This file
├── agents/                     <- Sub-agent definitions
│   ├── research-analyst.md
│   ├── product-manager.md
│   ├── architect-reviewer.md
│   ├── task-planner.md
│   ├── spec-executor.md
│   ├── qa-engineer.md
│   └── plan-synthesizer.md
├── commands/                   <- Slash command definitions
│   ├── start.md
│   ├── new.md
│   ├── research.md
│   ├── requirements.md
│   ├── design.md
│   ├── tasks.md
│   ├── implement.md
│   ├── status.md
│   ├── switch.md
│   └── cancel.md
├── templates/                  <- Spec file templates
│   ├── research.md
│   ├── requirements.md
│   ├── design.md
│   ├── tasks.md
│   └── progress.md
├── schemas/                    <- Validation schemas
│   └── spec.schema.json
├── hooks/                      <- Lifecycle hooks
│   └── hooks.json
└── scripts/                    <- Utility scripts (future)

Spec Files Location

Specs live in ./specs/ in your project:

./specs/
├── .current-spec              <- Active spec name
└── my-feature/
    ├── .ralph-state.json      <- Loop state (deleted on completion)
    ├── .progress.md           <- Progress tracking
    ├── research.md
    ├── requirements.md
    ├── design.md
    └── tasks.md

State Management

  • .ralph-state.json - Runtime state: phase, taskIndex, parallelGroup, taskResults
  • .progress.md - Learnings, completed tasks, current status
  • tasks.md - Task list with checkboxes [] / [x]

POC-First Workflow (Mandatory)

All specs follow 4 phases:

  1. Phase 1: Make It Work - POC validation, skip tests
  2. Phase 2: Refactoring - Code cleanup
  3. Phase 3: Testing - Unit, integration, e2e
  4. Phase 4: Quality Gates - Lint, types, CI, PR

Quality checkpoints ([VERIFY]) inserted every 2-3 tasks.

Task Format

- [ ] 1.1 Task name
  **Do**: Exact implementation steps
  **Files**: File paths to create/modify
  **Done when**: Success criteria
  **Verify**: Command to verify completion
  **Commit**: Conventional commit message

Task Completion Protocol

Spec-executor must output TASK_COMPLETE for the stop-handler to advance. If missing, task retries up to 5 times then blocks with error.

Verification Layers

The stop-handler enforces:

  1. Contradiction detection - Rejects completion if output mentions manual action
  2. Uncommitted files check - Validates tasks.md and.progress.md are committed
  3. Checkmark verification - Confirms task marked [x] in tasks.md
  4. Signal verification - Requires TASK_COMPLETE

Parallel Execution Flow

  1. Coordinator parses tasks.md for [P] markers
  2. Detects consecutive parallel groups
  3. Spawns multiple spec-executors via Task tool (all in ONE message)
  4. Each executor writes to isolated .progress-task-N.md
  5. Coordinator merges temp files after batch completes
  6. Advances taskIndex past entire group

Example Workflow

# Start a new spec
/ralph:start analytics-dashboard Build real-time analytics dashboard

# Research phase (auto-runs in quick mode)
/ralph:research

# Generate requirements
/ralph:requirements

# Create design
/ralph:design

# Break into tasks
/ralph:tasks

# Execute (parallel tasks marked with [P])
/ralph:implement

# Check status
/ralph:status

# Switch to different spec
/ralph:switch another-feature

Tips

  • Use --quick flag for rapid prototyping
  • Use [VERIFY] for quality checkpoints
  • Use [P] for independent tasks that can run in parallel
  • Use [SEQUENTIAL] to force sequential execution even if [P] is present
  • Progress persists across sessions via spec files
  • Cancel and start fresh with /ralph:cancel

Framework Execution Rules (MANDATORY)

The Non-Negotiable Rules

  1. DELEGATION IS MANDATORY

- You MUST invoke scripts/spec-executor.py for task execution - You MUST NOT execute tasks yourself directly - Even simple tasks require delegation

  1. GIT COMMIT DISCIPLINE

- Every task = one commit - Use EXACT commit message from Commit field - Commit tasks.md, progress file, and code together

  1. TASK_COMPLETE SIGNAL

- spec-executor MUST output exactly TASK_COMPLETE - No output = task not complete - The stop-hook checks for this signal

  1. STATE FILE MANAGEMENT

- Only scripts/coordinator.py modifies .ralph-state.json - spec-executor MUST NOT touch state file - Read-only access only

  1. PROGRESS FILE UPDATES

- Write to .progress.md (or .progress-task-N.md for parallel) - Follow exact format: ## Completed Tasks, ## Current Task, ## Learnings, ## Next - Include commit hash for each completed task

Helper Scripts

These scripts ENFORCE Ralph framework rules:

scripts/new-spec.py

python /home/opc/clawd/skills/ralph/scripts/new-spec.py <name> [goal]

Creates new spec with all required files and initializes state.

scripts/coordinator.py

python /home/opc/clawd/skills/ralph/scripts/coordinator.py <spec-name>

Coordinator implementation:

  • Reads state to determine current task
  • Invokes spec-executor for each task (DELEGATION)
  • Updates state after each task
  • Handles parallel task groups

scripts/spec-executor.py

python /home/opc/clawd/skills/ralph/scripts/spec-executor.py <spec-name> <task-index> [progress-file]

Spec-executor implementation:

  • Executes ONE task from tasks.md
  • Runs verification command
  • Commits with exact commit message
  • Updates progress file
  • Outputs TASK_COMPLETE

Correct Execution Pattern

# WRONG ❌ - What I did before:
# - Executed tasks myself
# - No git commits
# - No TASK_COMPLETE signals
# - Modified state directly

# CORRECT ✅ - How to use Ralph framework:
1. python scripts/new-spec.py my-feature "Add auth"
2. Fill in research.md, requirements.md, design.md, tasks.md
3. python scripts/coordinator.py my-feature
   └── Invokes spec-executor.py for each task
   └── spec-executor.py:
       - Executes task
       - Verifies
       - Commits (exact message)
       - Updates progress
       - Outputs TASK_COMPLETE
   └── coordinator.py checks for TASK_COMPLETE
   └── coordinator.py advances taskIndex
4. Repeat until all tasks complete

Related Files

  • Templates: templates/*.md - Spec file structures
  • Schema: schemas/spec.schema.json - State validation
  • Agents: agents/*.md - Sub-agent definitions
  • Commands: commands/*.md - Command implementations
  • Scripts: scripts/*.py - Helper scripts that enforce rules

Testing

Run unit tests to verify spec-executor functionality:

python /home/opc/clawd/skills/ralph/scripts/test_spec_executor.py

Tests cover:

  • Function extraction from Do field
  • Python code generation
  • File name parsing
  • Task section parsing
  • Integration tests

Troubleshooting

Verification Fails

  • Check that Verify command runs correctly in the spec directory
  • Ensure dependencies are installed
  • Verify the generated code matches requirements

Task Not Found

  • Check that tasks.md uses proper format (- [] 1.1)
  • Ensure task hasn't already been marked complete

Commit Failed

  • Verify git is initialized
  • Check that files exist before committing

State File Issues

  • Never edit .ralph-state.json manually
  • Let coordinator.py manage state
  • If stuck, delete state file and restart

Quick Reference

Command Cheat Sheet

CommandScriptPurpose
Create specnew-spec.py <name> <goal>Initialize new spec
Execute taskscoordinator.py <name>Run all tasks
Single taskspec-executor.py <name> <idx>Run one task
Testtest_spec_executor.pyRun unit tests

File Locations

skills/ralph/
├── SKILL.md           ← Main documentation
├── agents/            ← 7 sub-agent definitions
├── commands/          ← 13 slash commands
├── templates/         ← 5 spec templates
├── schemas/           ← JSON schema validation
├── hooks/             ← Stop handler
└── scripts/           ← Python utilities
    ├── new-spec.py
    ├── coordinator.py
    ├── spec-executor.py
    ├── test_spec_executor.py
    └── quick-start.py

Common Issues

IssueSolution
Verification failsCheck verify command syntax
Git lock timeoutWait 30s, git operation in progress
State file stuckDelete .ralph-state.json and restart
Parallel tasks failEnsure tasks marked [P] consecutively

Environment Variables

None required. All paths are absolute.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

28.47%
按下载量换算29

Claude Code

20.55%
按下载量换算21

Antigravity

16.43%
按下载量换算17

Gemini CLI

13.43%
按下载量换算14

windsurf

8.29%
按下载量换算8

OpenCode

3.45%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills