ralph-prompt-builder
課題の内容を分析し、ラルフ・ウィガム風のプロンプトを生成する適切なジェネレーター(単一タスク、複数タスク、プロジェクト、リサーチ)を自動で選択・実行することで、あらゆるラルフのループプロンプト作成を支援するSkill。
📜 元の英語説明(参考)
Master orchestrator for generating Ralph Wiggum-compatible prompts. Analyzes task requirements and routes to appropriate generator (single-task, multi-task, project, or research). Use when you need to create any Ralph loop prompt and want automatic selection of the right generator.
🇯🇵 日本人クリエイター向け解説
課題の内容を分析し、ラルフ・ウィガム風のプロンプトを生成する適切なジェネレーター(単一タスク、複数タスク、プロジェクト、リサーチ)を自動で選択・実行することで、あらゆるラルフのループプロンプト作成を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ralph-prompt-builder.zip https://jpskill.com/download/9478.zip && unzip -o ralph-prompt-builder.zip && rm ralph-prompt-builder.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9478.zip -OutFile "$d\ralph-prompt-builder.zip"; Expand-Archive "$d\ralph-prompt-builder.zip" -DestinationPath $d -Force; ri "$d\ralph-prompt-builder.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ralph-prompt-builder.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ralph-prompt-builderフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Ralph Prompt Builder (マスターオーケストレーター)
概要
Ralph Wiggum 自律ループテクニックに最適化されたプロンプトを生成するためのマスタースキルです。このオーケストレーターは、あなたのタスク記述を分析し、適切な専門ジェネレーターにルーティングします。
| タスクタイプ | ジェネレーター | 最適な用途 |
|---|---|---|
| 単一の焦点が絞られたタスク | ralph-prompt-single-task |
バグ修正、単一の機能、リファクタリング |
| 複数の関連タスク | ralph-prompt-multi-task |
CRUD、複数ステップの機能、マイグレーション |
| 完全なプロジェクト | ralph-prompt-project |
グリーンフィールドアプリ、ライブラリ、ツール |
| 調査/分析 | ralph-prompt-research |
監査、計画、調査 |
クイックスタート
Ralph プロンプトを生成する:
ralph-prompt-builder を使用して、次のプロンプトを作成してください: [タスクを記述]
例:
ralph-prompt-builder を使用して、次のプロンプトを作成してください: Express API 用の JWT を使用したユーザー認証の実装
このスキルは次のことを行います:
- タスクを分類する
- 適切なジェネレーターにルーティングする
- 必要な入力をガイドする
- すぐに使用できる Ralph プロンプトを出力する
タスクの分類
タスクの分類方法
| 指標 | 分類 | ジェネレーター |
|---|---|---|
| 修正、修理、単一の変更、1つのモジュール | 単一タスク | ralph-prompt-single-task |
| 複数の機能、CRUD、複数のエンドポイント | 複数タスク | ralph-prompt-multi-task |
| スクラッチからの構築、新しいアプリ、ツールの作成 | プロジェクト | ralph-prompt-project |
| 分析、監査、比較、計画、調査 | 調査 | ralph-prompt-research |
分類に関する質問
タスクを分類するには、以下を考慮してください。
-
これは、何かをスクラッチから新しく作成するのか、それとも既存のコードを修正するのか?
- スクラッチから新しく作成 → プロジェクトまたは複数タスク
- 既存のコードを修正 → 単一タスクまたは複数タスク
-
いくつの異なる成果物があるか?
- 1つの成果物 → 単一タスク
- 2〜5個の関連する成果物 → 複数タスク
- 完全なアプリケーション/ツール → プロジェクト
- 分析ドキュメント → 調査
-
アクションの前に調査が必要か?
- はい、調査が必要 → 調査
- いいえ、実装に重点を置く → 単一/複数/プロジェクト
-
完了基準は何か?
- テストに合格 → 単一タスク
- 複数の機能が動作 → 複数タスク
- 完全なアプリが実行 → プロジェクト
- ドキュメントが作成 → 調査
分類例
単一タスクの例
- "トークンリフレッシュの競合状態を修正する"
- "ユーザーエンドポイントにページネーションを追加する"
- "データベースクエリをリファクタリングして async/await を使用する"
- "認証モジュールのテストを作成する"
- "画像アップロード機能を最適化する"
複数タスクの例
- "Products リソースの CRUD を実装する"
- "ログイン、サインアップ、ログアウト、パスワードリセットを追加する"
- "lint、test、build、deploy を使用して CI/CD パイプラインをセットアップする"
- "API にバリデーション、エラー処理、ロギングを追加する"
- "ユーザー、プロファイル、設定エンドポイントを作成する"
プロジェクトの例
- "ToDo リストアプリケーション用の REST API を構築する"
- "データベースマイグレーション用の CLI ツールを作成する"
- "URL 短縮サービスを構築する"
- "Markdown ドキュメントジェネレーターを作成する"
- "認証マイクロサービスを構築する"
調査の例
- "コードベースのセキュリティ脆弱性を分析する"
- "React vs Vue vs Svelte をニーズに合わせて比較する"
- "MongoDB から PostgreSQL への移行計画を作成する"
- "古いパッケージの依存関係を監査する"
- "現在の API アーキテクチャを文書化する"
ワークフロー
ステップ 1: タスクを記述する
次の内容を含む説明を提供します。
- 何をする必要があるか
- どのような技術/コンテキストか
- 具体的な要件
- 望ましい結果
テンプレート:
Task: [何を達成したいか]
Context: [関連する背景 - 技術スタック、既存のコードなど]
Requirements: [特定の要件または制約]
Outcome: [成功とはどのような状態か]
ステップ 2: 分類を確認する
オーケストレーターはタスクを分類し、その理由を説明します。
CLASSIFICATION: [タスクタイプ]
REASONING: [この分類の理由]
GENERATOR: ralph-prompt-[type]
この分類は正しいように見えますか?正しくない場合は、希望するタイプを指定してください。
ステップ 3: ジェネレーターの入力を提供する
各ジェネレーターには特定の入力が必要です。
単一タスク:
- タスクの説明
- 成功基準 (検証方法)
- 完了プロミステキスト
複数タスク:
- タスクのリスト
- タスク間の依存関係
- 最終完了プロミス
プロジェクト:
- プロジェクトの説明
- 技術スタック
- 機能リスト
- 完了プロミス
調査:
- 調査目的
- スコープ (範囲内/範囲外)
- 成果物の形式
- 完了プロミス
ステップ 4: 生成とレビュー
適切なジェネレーターがプロンプトを作成します。レビューしてカスタマイズします。
- 要件が完了していることを確認する
- 検証コマンドが正しいことを確認する
- 完了基準がニーズに一致することを確認する
- 最大イテレーションの推奨値を調整する
ステップ 5: Ralph で実行する
/ralph-wiggum:ralph-loop "[生成されたプロンプト]" --completion-promise "[YOUR_PROMISE]" --max-iterations [推奨]
ジェネレーターの概要
ralph-prompt-single-task
目的: 明確な成功基準を持つ焦点が絞られたタスク
構造:
- タスクのタイトルと目的
- コンテキスト
- 要件
- 成功基準 (チェックボックス)
- コマンドによる検証ステップ
- TDD アプローチ
- 完了条件
- 行き詰まった場合のガイダンス
ベストプラクティス:
- 実際のテストコマンドを含める
- 基準をバイナリ (合格/不合格) にする
- TDD ループを含める
推奨イテレーション: 15-35
ralph-prompt-multi-task
目的: フェーズで編成された複数の関連タスク
構造:
- タスクインベントリテーブル
- フェーズの内訳 (基礎 → コア → 拡張 → 検証)
- 成果物を含むフェーズごとのタスク
- フェーズのチェックポイント
- 進捗状況の追跡
- 最終検証
ベストプラクティス:
- タスクを論理的なフェーズにグループ化する
- 明確な依存関係
- チェックポイントを文書化する
推奨イテレーション: 35-100
ralph-prompt-project
目的: スクラッチからの完全なプロジェクト
構造:
- プロジェクトのビジョンと仕様
- 6つのフェーズ:
- フェーズ 0: セットアップ
- フェーズ 1: アーキテクチャ
- Ph
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Ralph Prompt Builder (Master Orchestrator)
Overview
Master skill for generating prompts optimized for the Ralph Wiggum autonomous loop technique. This orchestrator analyzes your task description and routes to the appropriate specialized generator:
| Task Type | Generator | Best For |
|---|---|---|
| Single focused task | ralph-prompt-single-task |
Bug fixes, single features, refactoring |
| Multiple related tasks | ralph-prompt-multi-task |
CRUD, multi-step features, migrations |
| Complete project | ralph-prompt-project |
Greenfield apps, libraries, tools |
| Research/Analysis | ralph-prompt-research |
Audits, planning, investigations |
Quick Start
Generate any Ralph prompt:
Use ralph-prompt-builder to create a prompt for: [describe your task]
Example:
Use ralph-prompt-builder to create a prompt for: Implementing user authentication with JWT for our Express API
The skill will:
- Classify your task
- Route to the appropriate generator
- Guide you through required inputs
- Output a ready-to-use Ralph prompt
Task Classification
How Tasks Are Classified
| Indicators | Classification | Generator |
|---|---|---|
| Fix, repair, single change, one module | Single Task | ralph-prompt-single-task |
| Multiple features, CRUD, several endpoints | Multi-Task | ralph-prompt-multi-task |
| Build from scratch, new app, create tool | Project | ralph-prompt-project |
| Analyze, audit, compare, plan, investigate | Research | ralph-prompt-research |
Classification Questions
To classify your task, consider:
-
Is this creating something new from scratch or modifying existing code?
- New from scratch → Project or Multi-Task
- Modifying existing → Single Task or Multi-Task
-
How many distinct deliverables?
- One deliverable → Single Task
- 2-5 related deliverables → Multi-Task
- Complete application/tool → Project
- Analysis document → Research
-
Does it involve investigation before action?
- Yes, research required → Research
- No, implementation focus → Single/Multi/Project
-
What's the completion criteria?
- Tests pass → Single Task
- Multiple features working → Multi-Task
- Complete app running → Project
- Document produced → Research
Classification Examples
Single Task Examples
- "Fix the race condition in token refresh"
- "Add pagination to the users endpoint"
- "Refactor database queries to use async/await"
- "Write tests for the auth module"
- "Optimize the image upload function"
Multi-Task Examples
- "Implement CRUD for Products resource"
- "Add login, signup, logout, and password reset"
- "Set up CI/CD pipeline with lint, test, build, deploy"
- "Add validation, error handling, and logging to API"
- "Create user, profile, and settings endpoints"
Project Examples
- "Build a REST API for a todo list application"
- "Create a CLI tool for database migrations"
- "Build a URL shortener service"
- "Create a markdown documentation generator"
- "Build an authentication microservice"
Research Examples
- "Analyze the codebase for security vulnerabilities"
- "Compare React vs Vue vs Svelte for our needs"
- "Create a migration plan from MongoDB to PostgreSQL"
- "Audit dependencies for outdated packages"
- "Document the current API architecture"
Workflow
Step 1: Describe Your Task
Provide a description including:
- What needs to be done
- What technology/context
- Any specific requirements
- Desired outcome
Template:
Task: [What you want to accomplish]
Context: [Relevant background - tech stack, existing code, etc.]
Requirements: [Specific requirements or constraints]
Outcome: [What success looks like]
Step 2: Review Classification
The orchestrator will classify your task and explain why:
CLASSIFICATION: [Task Type]
REASONING: [Why this classification]
GENERATOR: ralph-prompt-[type]
Does this classification look correct? If not, specify your preferred type.
Step 3: Provide Generator Inputs
Each generator requires specific inputs:
Single Task:
- Task description
- Success criteria (how to verify)
- Completion promise text
Multi-Task:
- List of tasks
- Dependencies between tasks
- Final completion promise
Project:
- Project description
- Tech stack
- Feature list
- Completion promise
Research:
- Research objective
- Scope (in/out)
- Deliverable format
- Completion promise
Step 4: Generate & Review
The appropriate generator creates the prompt. Review and customize:
- Verify requirements are complete
- Check verification commands are correct
- Confirm completion criteria match your needs
- Adjust max-iterations recommendation
Step 5: Execute with Ralph
/ralph-wiggum:ralph-loop "[generated prompt]" --completion-promise "[YOUR_PROMISE]" --max-iterations [recommended]
Generator Summaries
ralph-prompt-single-task
Purpose: Focused tasks with clear success criteria
Structure:
- Task title and objective
- Context
- Requirements
- Success criteria (checkboxes)
- Verification steps with commands
- TDD approach
- Completion conditions
- If stuck guidance
Best practices:
- Include actual test commands
- Make criteria binary (pass/fail)
- Include TDD loop
Recommended iterations: 15-35
ralph-prompt-multi-task
Purpose: Multiple related tasks organized in phases
Structure:
- Task inventory table
- Phase breakdown (Foundation → Core → Enhancement → Validation)
- Per-phase tasks with deliverables
- Phase checkpoints
- Progress tracking
- Final verification
Best practices:
- Group tasks into logical phases
- Clear dependencies
- Document checkpoints
Recommended iterations: 35-100
ralph-prompt-project
Purpose: Complete projects from scratch
Structure:
- Project vision and specs
- Six phases:
- Phase 0: Setup
- Phase 1: Architecture
- Phase 2: Core
- Phase 3: Features
- Phase 4: Testing
- Phase 5: Documentation
- Per-phase tasks and deliverables
- Final verification
- Progress tracking
Best practices:
- Define non-goals explicitly
- Complete all phases in order
- Don't skip testing/documentation
Recommended iterations: 60-200
ralph-prompt-research
Purpose: Analysis, audits, planning, investigations
Structure:
- Research objective and scope
- Five phases:
- Phase 1: Discovery
- Phase 2: Analysis
- Phase 3: Synthesis
- Phase 4: Recommendations
- Phase 5: Documentation
- Deliverables at each phase
- Evidence-based conclusions
Best practices:
- Define scope boundaries clearly
- Create artifacts as you go
- Support conclusions with evidence
Recommended iterations: 30-100
Common Patterns
Choosing a Completion Promise
Good promises are:
- Specific to the task
- Verifiable (you can check if it's true)
- Action-oriented
Examples:
| Task Type | Good Promise | Why |
|-----------|--------------|-----|
| Bug fix | AUTH_FIX_COMPLETE | Specific to what was fixed |
| CRUD | PRODUCT_CRUD_DONE | Names the resource |
| Project | TODO_API_V1_COMPLETE | Identifies the project |
| Research | SECURITY_AUDIT_DELIVERED | References deliverable |
The Ralph Philosophy
The Ralph Wiggum technique is built on a key insight: failures are deterministic and fixable.
- Deterministically bad: When prompts fail, they fail in predictable ways
- Fixable through iteration: Each failure provides data to improve
- Prompt tuning > tool changing: Fix failures by improving the prompt, not switching approaches
This means: Don't fear failures. They're expected and correctable. The loop will iterate until success.
Setting Max Iterations
Base recommendations by complexity:
| Complexity | Single Task | Multi-Task | Project | Research |
|---|---|---|---|---|
| Simple | 15 | 35 | 60 | 30 |
| Medium | 25 | 50 | 100 | 50 |
| Complex | 35 | 70 | 150 | 80 |
| Very Complex | - | 100 | 200 | 100 |
Adjust based on:
- Familiarity with codebase (-20%)
- External dependencies (+30%)
- Unclear requirements (+50%)
- Comprehensive testing needed (+25%)
Splitting Large Tasks
If task feels too large, consider splitting:
Project → Multiple Projects:
Instead of: "Build complete e-commerce platform"
Split into:
1. Project: User authentication service
2. Project: Product catalog API
3. Project: Shopping cart service
4. Project: Order processing service
Multi-Task → Separate Multi-Tasks:
Instead of: "Build full admin dashboard"
Split into:
1. Multi-Task: User management (CRUD + roles)
2. Multi-Task: Analytics dashboard
3. Multi-Task: Settings panel
Troubleshooting
Task Won't Complete
Symptoms: Hitting max iterations without completion
Causes and fixes:
- Scope too large → Split into smaller tasks
- Unclear criteria → Make success criteria more specific
- External dependencies → Document or mock dependencies
- Infinite tests → Check for flaky tests
Wrong Generator Selected
Fix: Specify the generator explicitly:
Use ralph-prompt-single-task (not multi-task) for: [task]
Prompt Too Vague
Fix: Ensure your input includes:
- Specific files/modules affected
- Actual test commands
- Concrete success criteria
- Technology context
Integration with Ralph Loop
After generating a prompt:
# Copy the generated prompt to a file or use directly
/ralph-wiggum:ralph-loop "[YOUR_GENERATED_PROMPT]" \
--completion-promise "YOUR_PROMISE" \
--max-iterations 50
# Monitor progress
head -10 .claude/ralph-loop.local.md
# Cancel if needed
/ralph-wiggum:cancel-ralph
Best Practices
DO:
- Start with the right generator for your task type
- Provide complete context and requirements
- Include specific verification commands
- Set appropriate max-iterations for complexity
- Review generated prompts before running
DON'T:
- Use vague task descriptions
- Skip the classification step
- Ignore the "If Stuck" guidance in generated prompts
- Set max-iterations too low (iterations are normal)
- Expect first-try perfection—Ralph embraces iteration
Quick Reference
Task Type Decision Tree
Is this research/analysis/planning?
├─ YES → ralph-prompt-research
└─ NO → Is this building a complete app from scratch?
├─ YES → ralph-prompt-project
└─ NO → Are there multiple related deliverables?
├─ YES → ralph-prompt-multi-task
└─ NO → ralph-prompt-single-task
Input Checklist
Before generating, have ready:
- [ ] Clear task description
- [ ] Technology context (language, framework)
- [ ] Success criteria (how to verify done)
- [ ] Completion promise text
- [ ] Any specific requirements
Output Checklist
Before running the prompt:
- [ ] All requirements captured
- [ ] Verification commands are correct
- [ ] Success criteria are binary (pass/fail)
- [ ] TDD/iteration approach included
- [ ] "If Stuck" guidance provided
- [ ] Max iterations set appropriately
Specialized Generators:
ralph-prompt-single-task- Single focused implementationsralph-prompt-multi-task- Multiple related tasksralph-prompt-project- Complete projectsralph-prompt-research- Analysis and planning
Ralph Loop Commands:
/ralph-wiggum:ralph-loop- Start a loop/ralph-wiggum:cancel-ralph- Cancel active loop/ralph-wiggum:help- Get help