Agent skill

Agent Prompt Quality Bar

by mastra-ai in mastra-ai/mastra

Universal quality bar and final audit rubric for any agent system prompt.

Custom licenceAuto-check passedAI & LLM Engineering

Install Agent Prompt Quality Bar

skills CLI
$ npx skills add mastra-ai/mastra --skill agent-prompt-quality-bar -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mastra-ai/mastra agent-prompt-quality-bar --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mastra-ai/mastra.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar .claude/skills/agent-prompt-quality-bar && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-prompt-quality-bar
GitHub stars
29k
Token cost
~2k tokens
SKILL.md length
1,047 words
Files
1
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Universal quality bar and final audit rubric for any agent system prompt.

  • Works in 9 steps: Role and outcome → Trigger and input → Decision rules → …
  • Tasks that involve Prompt engineering
  • SKILL.md covers Required run contract, Non-negotiable sections, Mandatory final audit rubric and Universal anti-patterns to…, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agent Prompt Quality Bar is an agent skill from mastra-ai/mastra. 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.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Prompt engineering, Structured output and tool calling and Quizzes and assessments. The repository describes itself as: Mastra is the modern TypeScript framework for AI-powered applications and agents.

When your agent uses it

  • Tasks that involve Prompt engineering
  • Tasks that involve Structured output and tool calling
  • Tasks that involve Quizzes and assessments

Example prompts

  • “/agent-prompt-quality-bar”

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Role and outcome
  2. Trigger and input
  3. Decision rules
  4. Capability awareness
  5. Missing-capability fallback
  6. Communication style and final response format
  7. Refusals and escalations
  8. Completion criteria
  9. Worked example

What it can do on your machine

Read from SKILL.md and the folder at commit b98829a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Prompt Quality Bar loads about 2k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 1,047 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,047 words (~1,970 tokens).

“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.”

— opening of SKILL.md by mastra-ai, Custom licence
name
agent-prompt-quality-bar

Read the full SKILL.md on GitHub

Files

Just SKILL.md in packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar of mastra-ai/mastra.

Open the folder on GitHubat commit b98829a

Compare with similar skills

Agent Prompt Quality Bar next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Prompt Quality Bar compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Prompt Quality Bar this skillmastra-ai/mastra29k—~2kAutomated safety check: PassCustom licence
Prompt LabMathews-Tom/armory329—~2.1kAutomated safety check: PassMIT
Generate Verifiers Envadithya-s-k/FineEnvs4611 repos~2.3kAutomated safety check: PassApache-2.0
Prompt Engineering Patternswshobson/agents40k—~1.3kAutomated safety check: PassMIT
Kayba Stage 2 Domain Contextkayba-ai/agentic-context-engine2.6k—~1.9kAutomated safety check: PassApache-2.0
Lintlanghermes-labs-ai/lintlang140—~719Automated safety check: PassApache-2.0

Similar skills

  • Prompt Lab

    Mathews-Tom/armory

    LLM prompt engineering: analyzes failure modes, generates variants (direct, few-shot, CoT), designs rubrics, produces test suites.

    329 GitHub stars~2.1k tokensUpdated 5 days ago
    AI & LLM EngineeringAuto-check passed
  • Generate Verifiers Env

    adithya-s-k/FineEnvs

    Builds a Verifiers (PrimeIntellect) variant of an RL environment.

    461 GitHub starsUsed in 1 repo~2.3k tokens
    EducationAuto-check passed
  • Reference for designing and tuning production LLM prompts: few-shot examples, chain-of-thought, structured outputs, templates and system prompts.

    40k GitHub stars~1.3k tokensUpdated 6 days ago
    AI & LLM EngineeringAuto-check passed
  • Kayba Stage 2 Domain Context

    kayba-ai/agentic-context-engine

    Gather domain context about the repository and agent — system prompt, tool definitions, domain docs, and behavior patterns from traces.

    2.6k GitHub stars~1.9k tokensUpdated 17 days ago
    AI & LLM EngineeringAuto-check passed
  • Lintlang

    hermes-labs-ai/lintlang

    A skill your agent uses when writing or reviewing AI agent configs, system prompts, or tool definitions (JSON/YAML/Python) and you need to catch ambiguous tool descriptions, missing stop conditions…

    140 GitHub stars~719 tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Lintlang Audit

    hermes-labs-ai/lintlang

    Audit a named AI agent config, system prompt, tool definition, or instruction file (YAML, JSON, Markdown, text, or Python) with the released LintLang CLI in GitHub Copilot CLI.

    140 GitHub stars~1.9k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed

More from mastra-ai/mastra

All 44 skills in this repo
  • Docs Audit

    mastra-ai/mastra

    Autonomous, report-only documentation review for Mastra docs.

    29k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Builder Smoke Test

    mastra-ai/mastra

    Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current worktree).

    29k GitHub stars~11k tokensUpdated today
    Auto-check: notes
  • Mastra Smoke Test

    mastra-ai/mastra

    Smoke test Mastra projects locally or deploy to staging/production.

    29k GitHub stars~4k tokensUpdated today
    Auto-check: notes
  • React Best Practices

    mastra-ai/mastra

    React performance optimization guidelines from Mastra Engineering.

    29k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Content Writer Agent

    mastra-ai/mastra

    Authoring playbook for building agents that draft written content — blog posts, marketing copy, social media posts, newsletters, product descriptions, landing pages, or ad copy.

    29k GitHub stars~1.3k tokensUpdated today
    Auto-check passed

Questions about Agent Prompt Quality Bar

What does Agent Prompt Quality Bar do?

Universal quality bar and final audit rubric for any agent system prompt. Agent Prompt Quality Bar is an agent skill from mastra-ai/mastra. Universal quality bar and final audit rubric for any agent system prompt.

When should I use Agent Prompt Quality Bar?

Agent Prompt Quality Bar fits situations like: tasks that involve Prompt engineering; tasks that involve Structured output and tool calling; tasks that involve Quizzes and assessments.

How do I install Agent Prompt Quality Bar in Claude Code?

Run `npx skills add mastra-ai/mastra --skill agent-prompt-quality-bar -a claude-code`. Or copy the skill folder (packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar in mastra-ai/mastra) into .claude/skills/agent-prompt-quality-bar in your project. Claude Code loads it when a task matches its description.

How do I install Agent Prompt Quality Bar in Codex?

Run `npx skills add mastra-ai/mastra --skill agent-prompt-quality-bar -a codex`. Or copy the skill folder (packages/editor/src/ee/workspace/skills/agent-prompt-quality-bar in mastra-ai/mastra) into .agents/skills/agent-prompt-quality-bar in your project. Codex loads it when a task matches its description.

Can I use Agent Prompt Quality Bar in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mastra-ai/mastra --skill agent-prompt-quality-bar -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-prompt-quality-bar, .gemini/skills/agent-prompt-quality-bar, .github/skills/agent-prompt-quality-bar and .opencode/skills/agent-prompt-quality-bar in your project.

What does Agent Prompt Quality Bar need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Prompt Quality Bar is instructions for the agent only.

Does Agent Prompt Quality Bar access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Prompt Quality Bar safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Prompt Quality Bar use?

Agent Prompt Quality Bar has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Agent Prompt Quality Bar use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Prompt Quality Bar?

Skills that share tags, products or a category with Agent Prompt Quality Bar: Prompt Lab (Mathews-Tom/armory, 329 stars), Generate Verifiers Env (adithya-s-k/FineEnvs, 461 stars), Prompt Engineering Patterns (wshobson/agents, 40k stars) and Kayba Stage 2 Domain Context (kayba-ai/agentic-context-engine, 2.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Prompt Quality Bar?

mastra-ai (a GitHub organization) maintains it in mastra-ai/mastra, which has 28,698 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 11, 2026.

Source: mastra-ai/mastra on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.