跳到正文
Skillpedia
提示词与 LLM29k · #9372

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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:

  1. Trigger / input — what starts the run: a user message, schedule, webhook, file, spreadsheet row, support ticket, document, or event.
  2. Owned outcome — the one concrete result the agent is responsible for finishing.
  3. Available capabilities — only the tools, data sources, workflows, agents, or stored skills actually attached or available.
  4. Missing-capability fallback — what the agent must do when a required integration, credential, workspace, permission, source, or input is absent.
  5. 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.
  6. 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 sheetsTool and emailWorkflow."
  • 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:

    1. The action was attempted, not merely planned.
    2. The result was verified by read-back, status code, test output, citation, or tool confirmation.
    3. Failures are reported with the specific item and reason.
    4. 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能