MCP.so
ログイン
自動化manual

Ralph Story Executor

Fresh-context loop: pick one incomplete story from prd.json, implement it, run backpressure checks, commit, and update progress before the next iteration.

関連記事: Ralph Loop を解説

起動プロンプト

Start the "Ralph Story Executor" loop.

Goal: every story in .ralph/prd.json has passes: true
Max iterations: 20
Between iterations run: npm test && npm run lint && npm run build
Exit when: no stories remain with passes: false (respond "ALL STORIES ARE COMPLETE")

Step 1: Read .ralph/prd.json and .ralph/progress.md. Pick one incomplete story, implement it, run backpressure checks, commit, update prd.json and progress.md, then stop this iteration.

Self-pace this loop. Each iteration does exactly one story. State lives on disk, not in chat history.

基本情報

カテゴリ

自動化

目標

every story in .ralph/prd.json has passes: true

最大反復回数

20

検査コマンド

npm test && npm run lint && npm run build

退出条件

no stories remain with passes: false (respond "ALL STORIES ARE COMPLETE")

対応エージェント

Cursor, Claude Code

手順

  1. 1

    Read state

    Read .ralph/prd.json and .ralph/progress.md. Resume any story marked inProgress, else pick the lowest-priority story with passes: false.

  2. 2

    Implement one story

    Implement exactly one user story with minimal scope. Mark it inProgress in prd.json before coding.

  3. 3

    Run backpressure

    Run the project's test, lint, and build commands from AGENTS.md. Fix failures before committing.

    npm test && npm run lint && npm run build
  4. 4

    Commit and record

    Commit with a story-scoped message. Set passes: true in prd.json and append learnings to progress.md.

他の自動化のループ