ralph-starter init
Initialize Ralph Playbook in an existing project.
Synopsis
ralph-starter init [options]
Description
The init command sets up Ralph Playbook files in the current directory. These files guide AI agents in understanding and building your project.
Options
| Option | Description |
|---|---|
-n, --name <name> | Project name |
Files Created
| File | Description |
|---|---|
AGENTS.md | Agent instructions and validation commands |
PROMPT_plan.md | Planning mode prompt template |
PROMPT_build.md | Building mode prompt template |
IMPLEMENTATION_PLAN.md | Task list (initially empty) |
specs/ | Directory for specification files |
Examples
# Initialize in current directory
ralph-starter init
# With project name
ralph-starter init --name my-awesome-app
# In a new project
mkdir my-project && cd my-project
git init
ralph-starter init --name my-project
Generated Files
AGENTS.md
# AGENTS.md
## Project: my-project
### Validation Commands
- test: npm test
- lint: npm run lint
- build: npm run build
### Agent Instructions
[Instructions for AI agents...]
PROMPT_plan.md
# Planning Mode
Read the specs in `specs/` and create an implementation plan.
[Planning instructions...]
PROMPT_build.md
# Building Mode
Execute tasks from IMPLEMENTATION_PLAN.md.
[Building instructions...]
When to Use
Use ralph-starter init when:
- Starting a new project - Set up Ralph Playbook from scratch
- Adding to existing project - Integrate ralph-starter into current codebase
- Manual workflow - When not using the interactive wizard
Workflow
After initialization:
- Write specs in
specs/directory - Run
ralph-starter planto create implementation plan - Run
ralph-starter runto start building