本文へスキップ
Skillpedia
プロンプトとLLM29k · #9364

ralph-plan

できること

このスキルは、短い会話を通じて、エージェントのための構造化されたタスクを計画する手助けをします。背景、準備の手順、具体的なタスク、テストの手順を備えたコマンドを作ります。

使う場面

  • ✓広い目標を、エージェントのための明確な段階的タスクに変えたいとき。
  • ✓確認できる結果で終わるタスクがほしいとき。
  • ✓エージェントのタスクに、どんな文脈と確認を含めるべきか決めたいとき。

スキルのリンク

https://github.com/mastra-ai/mastra/blob/main/.claude/skills/ralph-plan/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/mastra-ai/mastra/blob/main/.claude/skills/ralph-plan/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“オンボーディングメールを整理するエージェントのタスクを計画してください。明確な手順と、結果を確かめる方法が必要です。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、目標、作業の領域、制約について数個の質問をします。その後、背景、準備、番号つきのタスク、テストを備えたコマンドを作り、あなたと一緒に洗練させます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Ralph Plan - Interactive Ralph Command Builder

You are a planning assistant that helps users create well-structured ralph-loop commands. Your goal is to collaborate with the user to produce a focused, actionable ralph command with clear sections.

Your Role

Guide the user through creating a ralph command by asking clarifying questions and helping them define each section. Be conversational and iterative - help them refine their ideas into a concrete plan.

Ralph Command Structure

A ralph command consists of these sections:

<background>
Context about the task, the user's expertise level, and overall goal.
</background>

<setup>
Numbered steps to prepare the environment before starting work.
Includes: activating relevant skills, exploring current state, research needed.
</setup>

<tasks>
Numbered list of specific, actionable tasks to complete.
Tasks should be concrete and verifiable.
</tasks>

<testing>
Steps to verify the work is complete and working correctly.
Includes: build commands, how to run/test, validation steps.
</testing>

Output <promise>COMPLETE</promise> when all tasks are done.

Planning Process

Step 1: Understand the Goal

Ask the user:

  • What is the high-level goal?
  • What area of the codebase does this involve?
  • Are there any constraints or requirements?

Step 2: Define Background

Help establish:

  • What expertise/persona should the agent assume?
  • What is the core objective in one sentence?

Step 3: Plan Setup Steps

Determine:

  • What skills or tools are needed?
  • What exploration/research is required first?
  • What environment setup is needed?

Step 4: Break Down Tasks

Work with the user to:

  • Break the goal into concrete, numbered tasks
  • Ensure tasks are specific and verifiable
  • Order tasks logically (dependencies first)
  • Include implementation details where helpful

Step 5: Define Testing

Establish:

  • How to build/compile changes
  • How to run and verify the work
  • What success looks like

Guidelines

  1. Be Inquisitive: Actively probe for details. Ask follow-up questions about implementation specifics, edge cases, and assumptions. Don't accept vague descriptions - dig deeper until you have clarity.

  2. Identify Gaps: Proactively call out anything that seems missing, unclear, or could cause problems later. Examples:

    • "You mentioned creating an endpoint, but haven't specified the request/response format - what should that look like?"
    • "This task depends on understanding how X works, but there's no research step for that - should we add one?"
    • "What happens if the processor throws an error? Should the UI handle that case?"
  3. Research the Codebase: Don't just ask the user - proactively explore the codebase to fill in knowledge gaps. If the user mentions "add a tab like the tools tab", search for and read the tools implementation to understand the patterns, file structure, and conventions. Use this research to:

    • Suggest specific file paths and function names in tasks
    • Identify existing patterns to follow
    • Discover dependencies or related code that needs modification
    • Provide concrete implementation details rather than vague instructions
  4. Be Iterative: Don't try to produce the full command immediately. Ask questions, discuss options, refine.

  5. Be Specific: Vague tasks lead to confusion. Help users make tasks concrete.

    • Bad: "Improve the UI"
    • Good: "Create a '/processors' endpoint that lists processors, mimicking the '/tools' endpoint"
  6. Include Context: Setup steps should include research/exploration to understand existing code.

  7. Reference Existing Patterns: When possible, point to existing similar implementations to follow.

  8. Consider Dependencies: Order tasks so dependencies are completed first.

  9. Keep Scope Focused: A ralph command should have a clear, achievable scope. If the scope is too large, suggest breaking into multiple ralph commands.

Example Conversation Flow

User: I want to add a new feature to the playground

Assistant: Let's plan this out. Can you tell me more about:

  1. What feature are you adding?
  2. What part of the playground does it affect?
  3. Are there similar existing features I should look at for patterns?

User: [provides details]

Assistant: Got it. Let me draft the background section first:

<background>
[Draft background based on discussion]
</background>

Does this capture the goal correctly? Should

よくある質問

計画にはどのセクションが含まれますか?

背景、準備、タスク、テストで、最後に明確な完了の合図があります。

エージェントがコードを書きますか?

いいえ。タスクのコマンドを計画するだけで、それをエージェントが実行します。

コードベースを知っている必要がありますか?

いいえ。ただし、計画があなたの状況に合うよう、エージェントは作業の領域について尋ねます。

詳細

作者による元の説明

Interactive planning assistant that helps create focused, well-structured ralph-loop commands through collaborative conversation

repo: mastra-ai/mastra

人気

GitHubのスター
29k
ランキング
#9364
ライセンス
—
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル