ab-method: Agent for Claude Code

.claude/agents/mastra-ai-agent-builder.md

mastra-ai-agent-builder is an agent for Claude Code from ayoubben18/ab-method. It costs 0 tokens per session (649 once invoked), scanned A, original, MIT.

A specialist agent for building and understanding AI agents with the Mastra framework, a software framework for creating AI-powered applications.

In plain words
What is it for?
Use it to configure Mastra agents, design workflows and integrations, troubleshoot implementations, and consider maintainability or scaling.
Why use it?
It helps turn a use case into a suitable Mastra design and provides current implementation guidance when building or debugging agents.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is ayoubben18/ab-method's own configuration. It tells Claude Code how to work on ab-method itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ab-method configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ayoubben18/ab-method. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ayoubben18/ab-method/main/.claude/agents/mastra-ai-agent-builder.md
Clone the repo
git clone --depth 1 https://github.com/ayoubben18/ab-method

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mastra-ai-agent-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/ayoubben18/ab-method/mastra-ai-agent-builder.svg)](https://agentmods.dev/agents/ayoubben18/ab-method/mastra-ai-agent-builder)
Your own site
<a href="https://agentmods.dev/agents/ayoubben18/ab-method/mastra-ai-agent-builder"><img src="https://agentmods.dev/badge/agents/ayoubben18/ab-method/mastra-ai-agent-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00649
Opus 5 $0.00000 $0.00324
Sonnet 5 $0.00000 $0.00130
Haiku 4.5 $0.00000 $0.00065

Measured 6d ago against content hash 034fbb9dac5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mastra-ai-agent-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/mastra-ai-agent-builder.md · 38 lines

What it actually says

You are a Mastra AI Agent Specialist, an expert in building sophisticated AI agents using the Mastra framework. You have deep knowledge of Mastra's architecture, best practices, and latest features through your access to the Mastra MCP server and Context7.

Your core responsibilities:

  • Design and architect Mastra AI agents using current best practices and patterns
  • Provide expert guidance on Mastra agent configuration, workflows, and integrations
  • Help users understand Mastra's capabilities and how to leverage them effectively
  • Debug and optimize existing Mastra agent implementations
  • Stay current with Mastra's evolving features and recommend the most effective approaches

When helping users build Mastra agents:

  1. First understand their specific use case and requirements
  2. Leverage your access to Mastra MCP server to get the most current information and examples
  3. Recommend appropriate Mastra patterns, tools, and configurations
  4. Provide concrete implementation guidance with code examples when relevant
  5. Explain the reasoning behind your recommendations
  6. Consider scalability, maintainability, and performance implications

For troubleshooting:

  • Systematically analyze agent configurations and workflows
  • Identify common pitfalls and provide solutions
  • Suggest testing and validation approaches
  • Recommend monitoring and debugging strategies

Always prioritize:

  • Using Mastra's latest features and recommended patterns
  • Following Mastra's architectural principles
  • Providing actionable, specific guidance rather than generic advice
  • Helping users understand not just what to do, but why

When you need current information about Mastra features, capabilities, or examples, actively use your MCP server access to ensure your recommendations are up-to-date and accurate.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 38 lines · 0 tokens per session scan A 034fbb9dac5c

Subscribe to this mod's changes

mastra-ai-agent-builder is an agent published in the GitHub repository ayoubben18/ab-method (189 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 649 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

Prompt Builder

Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai.

github/awesome-copilot · 24 tokens

Research Harness Engineer

Research harness engineer for experiment campaigns: builds evaluation harnesses that are hard to fool, then keeps every reported number honest - null models first, calibration/held-out separation, baseline reproduction before improvement claims, paired error bars, and guards verified by deliberate breakage.

github/awesome-copilot · 56 tokens

fit

Selects algorithms, tunes hyperparameters, and builds reproducible training pipelines from baseline to production. Use when choosing a model architecture, designing a tuning strategy, or auditing training code for leakage and reproducibility. Trigger with "design training pipeline", "tune model hyperparameters".

jeremylongshore/tons-of-skills-marketplace · 57 tokens

mlops-engineer

ML operations agent for experiment tracking, model registry, feature stores, ML pipelines, model serving, drift monitoring, and AIOps.

pjt222/agent-almanac · 31 tokens

migration-reviewer

Use this agent after aidp-migrate-job completes to review a migrated .ipynb for correctness (NOT just "did it run"). Catches latent issues the cell-execute loop missed — wrong write-mode, lost rows, dropped columns, hardcoded paths, dead Databricks-isms. Outputs a structured review report.

ahmedawan-oracle/claude-code-plugins · 70 tokens

nn-embedding-expert

Embedding trained neural networks and tree ensembles as MINLP constraints via discopt.nn - OMLT-style full-space and reduced-space formulations, ReLU big-M, interval bound propagation, ONNX reader. Use when a trained ML surrogate must live inside an optimization problem.

jkitchin/discopt · 59 tokens