Smart Ralph
Core skill for all Ralph plugins. Defines common arguments, execution modes, shared behaviors, and coordinator delegation rules.
Common Arguments
All Ralph commands support these standard arguments:
| Argument | Short | Description | Default |
|----------|-------|-------------|---------|
| --quick | | Exact token that enables persistent non-interactive generation | false |
| --interactive | | Exact token that clears persistent quick mode | - |
| --commit | -c | Commit spec/feature files locally after generation | true (normal), false (quick) |
| --no-commit | | Explicitly disable committing files | - |
| --max-task-iterations | -m | Max retries per failed task before stopping | 5 |
| --fresh | -f | Force new spec/feature, overwrite if exists | false |
Argument precedence: --no-commit > --commit > mode default.
Execution Modes
Normal Mode (Interactive)
- Exact
--interactiveclears a prior authorized quick mode - No mode flag resets legacy quick state that lacks exact
--quickauthorization - User reviews artifacts between phases
- Phase transitions require explicit commands
- Each phase sets
awaitingApproval: true - Commits spec files by default
- Research and requirements may offer the optional prototype overlay
- The user owns prototype capture, verdict, handoff, and deletion decisions
Quick Mode (`--quick`)
- Only an exact
--quickargument token enables this mode -q, settings defaults, substrings, and natural-language requests do not enable it--quickwith--interactiveis an error- Skip all interactive prompts, interviews, and approval pauses
- Run the same phase agents (research, requirements, design, tasks) sequentially
- Agents receive a "be more opinionated" directive since there is no user feedback
- spec-reviewer validates each artifact (max 3 iterations)
- Run at most one agent-owned prototype request after requirements and before design
- Take over the oldest design-blocking prototype when one exists; otherwise choose the highest-risk grounded question
- Ask no prototype question or decision and continue to design after every outcome
- Immediately start execution after all phases complete
- Do NOT commit by default (use
--committo override) - Still delegate to subagents (delegation is mandatory)
State File
All Ralph plugins use .ralph-state.json for execution state. See references/state-file-schema.md for full schema.
Key fields: phase, taskIndex, totalTasks, taskIteration, maxTaskIterations, awaitingApproval, quickMode, quickAuthorization, phaseSkillLoad, phaseInterview, and optional activePrototypes.
Prototype is an overlay. phase remains one of the five main workflow phases and is never prototype. Resolve basePath before access, treat a missing activePrototypes map as empty, and route every mutation or deletion through hooks/scripts/locked-state.py. Read