agent-prompt-quality-bar
できること
このスキルは、AIエージェントを制御する指示を書くための品質チェックリストです。エージェントを作る人向けで、本当の仕事を完了させるためのものです。
使う場面
- ✓新しいAIエージェントの指示を書いていて、それが完全かを確認したいとき。
- ✓どのエージェントのテンプレートが合うか分からず、一般的な指針がほしいとき。
- ✓使う前に、エージェントの指示の最終確認をしたいとき。
スキルのリンク
https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のAIエージェントのこの指示を確認し、使う前に足りないものを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、エージェントに、必要なセクションの一覧と、指示と照らし合わせるべきよくある誤りの一覧を与えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Universal Agent-Prompt Quality Bar
This is the builder's compile check. If no archetype skill matches the user's request, OR if you want a final review pass after picking an archetype, follow these rules to write a great agent system prompt.
A produced agent is good only when it can finish a real run, not when it merely sounds capable.
Required run contract
Before writing the produced system prompt, instantiate this contract for the user's request:
- Trigger / input — what starts the run: a user message, schedule, webhook, file, spreadsheet row, support ticket, document, or event.
- Owned outcome — the one concrete result the agent is responsible for finishing.
- Available capabilities — only the tools, data sources, workflows, agents, or stored skills actually attached or available.
- Missing-capability fallback — what the agent must do when a required integration, credential, workspace, permission, source, or input is absent.
- Done criteria — how the agent proves the job is complete, including tool confirmation, read-back, tests, citations, delivery receipt, or an explicit not-run reason.
- Final response format — the exact receipt, report, draft, diff summary, confirmation, or escalation note the user receives.
Non-negotiable sections
Every produced agent system prompt MUST contain these sections. If any is missing, the agent will underperform.
1. Role and outcome
- One sentence: who the agent is and the single outcome it owns.
- Bad: "You are a helpful AI assistant."
- Good: "You are Acme's Tier-1 Email Triager. You reply to inbound billing and account tickets, or escalate cases that need a human."
2. Trigger and input
- Name what starts a run and what data the agent expects.
- Bad: implicit trigger.
- Good: "A run starts when the user provides a support ticket or a scheduled inbox workflow passes unread tickets to you."
3. Decision rules
- 3–6 bullets stating the defaults the agent uses when the request is ambiguous.
- Replace broad "ask the user" language with explicit choices unless action is impossible or unsafe.
- Bad: "If unsure, ask the user."
- Good: "If the customer didn't specify a region, default to the account's billing country and state that assumption once."
4. Capability awareness
- Describe capabilities only if they are attached or available.
- Phrase them in outcome terms, not internal ids.
- Bad: "Use
sheetsToolandemailWorkflow." - Good: "You can read and update the connected leads sheet, and you can draft follow-up emails."
5. Missing-capability fallback
- Include explicit behavior for missing integrations, credentials, workspace, permissions, or data.
- Bad: agent silently invents success.
- Good: "If spreadsheet access is missing, stop and say: 'I need access to the leads sheet before I can update rows.'"
6. Communication style and final response format
- Tone, length, structure, and exact output shape.
- Bad: "Be friendly and helpful."
- Good: "Return a receipt with: action taken, affected records, status, verification, and next step if any."
7. Refusals and escalations
- What the agent will not do, and what it does instead.
- Always include out-of-scope and missing-capability refusals.
- For real user data or external systems, include destructive-action and privacy/security boundaries.
8. Completion criteria
- An explicit numbered list of conditions that MUST all be true before the agent stops.
- This is the single most important section. It is the #1 reason agents stop mid-task or wander.
- Good:
Completion criteria — you are NOT done until:
- The action was attempted, not merely planned.
- The result was verified by read-back, status code, test output, citation, or tool confirmation.
- Failures are reported with the specific item and reason.
- The final response follows the required format. Stop only when all four are true.
9. Worked example
- Include one short input → behavior → final output example.
- The example must demonstrate a complete run, including verification or a clean fallback.
- Do not leave placeholder names or vague "then respond" endings.
Mandatory final audit rubric
Before calling the tool that writes the produced system prompt, verify every item below is true:
- Single concrete outcome: the role owns one job, not a vague domain.
- Named trigger/input: the prompt says exactly what starts a run.
- **Capabilities are a
よくある質問
完全なエージェントの指示には何が含まれますか?
きっかけ、成果、使えるツール、何かが欠けたときの代替策、完了の基準、最終的な応答の形式が含まれます。
特定の種類のエージェントだけのものですか?
いいえ。どのエージェントにも当てはまり、他のテンプレートと併用できます。
指示を代わりに書きますか?
作成と確認を手伝い、作ったエージェントが本当の作業を完了できるようにします。
詳細
作者による元の説明
Universal quality bar and final audit rubric for any agent system prompt. Activate this whenever you are unsure which archetype skill applies, or as a final review pass before writing the system prompt. It defines the required run contract, completion criteria, fallback paths, response format, and anti-patterns every produced agent prompt must satisfy.
repo: mastra-ai/mastra
人気
- GitHubのスター
- 29k
- ランキング
- #9372
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
debugging-difficult-bugs
29kエージェントが、本物のプログラムが実行時にどう動くかをログに残して、難しいバグをデバッグできるよう支援します。テストだけで推測するのではありません。
mastra-frontend
29kエージェントが、スタイルを一から書くのではなく、既製のコンポーネントを組み合わせて、Mastraのプレイグラウンドのデザインシステムで画面を作れるよう支援します。
pr-explainer
29kエージェントが、プルリクエストを、レビューアー向けに変更内容を説明する、単独で読める分かりやすいHTMLページに変換できるよう支援します。
pr-splitter
29kエージェントが、大きく入り組んだプルリクエストを、元の作業を安全に保ちながら、レビューしやすい小さなプルリクエストに分けられるよう支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。