agent-prompt-quality-bar
What it does
This skill is a quality checklist for writing the instructions that control an AI agent. It is for people who build agents and want them to finish real jobs.
When to use it
- βWhen you are writing instructions for a new AI agent and want to check they are complete.
- βWhen you are not sure which agent template fits your request and need a general guide.
- βWhen you want a final review of an agent's instructions before you use them.
Skill link
https://github.com/mastra-ai/mastra/blob/main/packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCheck these instructions for my AI agent and tell me what is missing before I use it.β
5 new skills a week. 1 minute to read.
How it works
The skill gives the agent a list of required sections and common mistakes to check against the instructions.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What does a complete agent instruction include?
It names the trigger, the outcome, the available tools, a fallback when something is missing, the done criteria and the final response format.
Is this only for one type of agent?
No. It applies to any agent, and other templates can be used alongside it.
Does it write the instructions for me?
It helps build and check them, so the agent you create can finish a real run.
Details
Original description by the author
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
Popularity
- GitHub stars
- 29k
- Ranking position
- #9372
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
debugging-difficult-bugs
29kHelps your agent debug a hard bug by logging what the real program does at runtime, instead of guessing from tests alone.
mastra-frontend
29kHelps your agent build app screens with the Mastra playground design system by combining its ready-made components, rather than styling from scratch.
pr-explainer
29kHelps your agent turn a pull request into a clear, self-contained HTML page that explains the change to reviewers.
pr-splitter
29kHelps your agent break a large, messy pull request into smaller, reviewable pull requests while keeping the original work safe.
Similar skills
writing-skills
311kTeaches your agent to write new skills and test each one first, checking that the skill actually changes how the agent behaves.
writing-for-agents
310kExplains how to write clear instructions for AI agents, including skills, AGENTS.md, and CLAUDE.md files, so the agent behaves predictably.
bengali-nlp
280kHas your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.