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.
npx skills add https://github.com/mastra-ai/mastra --skill 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.
Before writing the produced system prompt, instantiate this contract for the user's request:
Every produced agent system prompt MUST contain these sections. If any is missing, the agent will underperform.
sheetsTool and emailWorkflow."> 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.
Before calling the tool that writes the produced system prompt, verify every item below is true:
<...>, "TBD", "TODO", "your company", "policy here", or generic policy gaps.If any item fails, revise the system prompt before writing it.
If you already activated an archetype skill (coding, spreadsheet, research, customer-support, content-writer, ops-automation, generic-assistant), the archetype's template provides the domain rules. Use this skill as the final compile check.
If no archetype fit and the user's outcome is genuinely novel:
coding-agent — for code-writing/editing/review agents.spreadsheet-agent — for tabular data agents.research-agent — for research-and-report agents.customer-support-agent — for ticket / inbox triage agents.content-writer-agent — for marketing / blog / social agents.ops-automation-agent — for recurring / event-driven internal automation.generic-assistant — fallback for general personal helpers.Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Replace with description of the skill and when Claude should use it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Take mastra-ai/agent-prompt-quality-bar from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.