A generic-agent skill for orchestrating development through Ralph + Claude Code. The agent collects requirements, prepares the project files Ralph needs, starts ralph, tracks progress, and reports results. If the executor is Claude Code, it acts as an auditor and task splitter only, creating sub-agents for implementation. All business-code writing is delegated to those sub-agents. It works with Codex, Claude Code, Cursor, and similar agents.
Supported agent styles: Codex, Claude Code, Cursor, and other agents that can follow structured instructions and run terminal commands.
- Standardize the workflow from requirement intake to Ralph configuration to Claude Code execution to status reporting
- Keep the responsibility boundary between the current agent and Ralph explicit
- Provide reusable templates and complete examples for open-source distribution or internal team reuse
- Collect feature requests or bug reports
- Check whether
ralphis installed and whether the target project is initialized - Create or update
CLAUDE.md - Create or update
.ralph/fix_plan.md - Append completion-signal rules to
.ralph/PROMPT.mdin an idempotent way - Start
ralph --monitor - Watch for completion, timeout, or crashes and notify the user
- Write business code
- Modify application source files directly
- Diagnose the root cause of bugs or design the implementation plan on Ralph's behalf
.
├── SKILL.zh-CN.md # Chinese generic-agent skill
├── SKILL.md # English generic-agent skill
├── templates/ # Reusable project templates
├── examples/
│ ├── basic-web-app/ # Chinese example project
│ └── basic-web-app-en/ # English example project
├── README.md # English README
├── README.zh-CN.md # Chinese README
└── LICENSE
- Install
ralph-claude-codeand its dependencies. - Import SKILL.md into your agent as a skill, rules file, or system prompt.
- Send your agent a request like this:
Add a task management module to /Users/me/projects/todo-api:
- Node.js + Express + PostgreSQL
- Need task CRUD
- Need JWT login
- The agent checks the environment, prepares the docs and
.ralph/files, then startsralph. - Ralph invokes Claude Code to audit, split tasks, and coordinate sub-agents while the agent reports progress and outcomes.
- Keep
CLAUDE.mdshort and use it only for project summary, stack, conventions, and doc pointers - Put module details, schema notes, and API contracts under
docs/ - Keep
fix_plan.mdconcrete and executable, not vague - Add explicit completion rules to
PROMPT.mdso the agent can reliably detect when Ralph is done - If the executor is Claude Code, it should only audit, split tasks, create sub-agents, and verify results. It should not edit business code directly
- Before starting Ralph, make sure the target project's
.ralphrccontainsALLOWED_TOOLS="*"andCLAUDE_ALLOWED_TOOLS="*". Otherwise Claude Code can be interrupted by permission restrictions - The skill should check
.ralphrcbefore each run. If either value is missing, the agent should warn the user and ask whether it should be changed to*
- Chinese skill: SKILL.zh-CN.md
- English skill: SKILL.md
- Chinese example: examples/basic-web-app
- English example: examples/basic-web-app-en
The example projects show what an agent-initialized Ralph workspace looks like, including:
CLAUDE.md.ralph/fix_plan.md.ralph/PROMPT.mddocs/project.mddocs/modules/*.mddocs/database/*.mddocs/api/*.mddocs/skills/*.md
They are intended as reference output, not as directly runnable applications.
- Clear behavioral boundary for the skill
- Complete examples that make the output structure easy to understand
- Templates and examples are separated, so users can both copy and inspect them
- MIT license for easy reuse
- Add bilingual templates
- Add multi-stack examples for Node, Python, and Go
- Add
.githubissue and PR templates - Add a bootstrap script that copies
templates/into a target project
MIT