Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add liatrio-labs/ai-prompts --skill mastra-apigit clone --depth 1 https://github.com/liatrio-labs/ai-promptsWrote 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.
[](https://agentmods.dev/skills/liatrio-labs/ai-prompts/mastra-api)<a href="https://agentmods.dev/skills/liatrio-labs/ai-prompts/mastra-api"><img src="https://agentmods.dev/badge/skills/liatrio-labs/ai-prompts/mastra-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/liatrio-labs/ai-prompts/mastra-api"><img src="https://agentmods.dev/badge/skills/liatrio-labs/ai-prompts/mastra-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.01249 |
| Opus 5 | $0.00040 | $0.00624 |
| Sonnet 5 | $0.00016 | $0.00250 |
| Haiku 4.5 | $0.00008 | $0.00125 |
Grade A, and why
mastra-api scanned grade A with 1 finding 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 11d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl --globoff -sS \ How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mastra Development API
Interact with the Mastra dev server API to debug agents, view conversations, inspect tools and workflows, and access observability data.
Quick Start
Agent Debugging
Run these scripts/... commands from the skills/mastra-api/ directory. From repo root, prefix them with skills/mastra-api/.
# Get latest conversation
scripts/get_latest_thread.sh <agent-id> [port]
# Debug errors
scripts/debug_agent_error.sh <agent-id> [port]
# View thread messages
curl --globoff -sS \
"http://localhost:4111/api/memory/threads/THREAD_ID/messages?page=0&perPage=50&agentId=my-agent&orderBy[field]=createdAt&orderBy[direction]=DESC" \
| jq '.'
Tools and Workflows
Run these scripts/... commands from the skills/mastra-api/ directory. From repo root, prefix them with skills/mastra-api/.
# List all tools
scripts/list_tools.sh [port]
# List all workflows
scripts/list_workflows.sh [port]
# Get workflow details
scripts/get_workflow_details.sh <workflow-name> [port]
# Get workflow runs
scripts/get_workflow_runs.sh <workflow-name> [port]
Resource Listing
# List all agents
curl -sS http://localhost:4111/api/agents | jq 'keys'
# List all tools
curl -sS http://localhost:4111/api/tools | jq 'keys'
# List all workflows
curl -sS http://localhost:4111/api/workflows | jq 'keys'
Common Tasks
Debug Agent Failures
- Get latest thread:
scripts/get_latest_thread.sh my-agent - Check for errors:
scripts/debug_agent_error.sh my-agent - Inspect message content for error details
Inspect Available Resources
# See what tools an agent can use
curl -sS http://localhost:4111/api/agents | \
jq '.["my-agent"].tools | keys'
# See what workflows an agent can invoke
curl -sS http://localhost:4111/api/agents | \
jq '.["my-agent"].workflows | keys'
# List all registered tools
scripts/list_tools.sh
# List all registered workflows
scripts/list_workflows.sh
Debug Workflows
# Get workflow structure and steps
scripts/get_workflow_details.sh my-workflow
# Check workflow execution history
scripts/get_workflow_runs.sh my-workflow
# Find failed workflow runs
scripts/get_workflow_runs.sh my-workflow | \
jq '.runs[] | select(.status == "failed")'
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/api_endpoints.md 3.9 KB
- references/tools_and_workflows.md 4.9 KB
- scripts/debug_agent_error.sh 2.8 KB runs code
- scripts/get_latest_thread.sh 2.5 KB runs code
- scripts/get_workflow_details.sh 643 B runs code
- scripts/get_workflow_runs.sh 1.1 KB runs code
- scripts/list_tools.sh 953 B runs code
- scripts/list_workflows.sh 946 B runs code
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.
- 11d ago First seen · 185 lines · 80 tokens per session scan A 1e1d4a529edd
mastra-api is a skill published in the GitHub repository liatrio-labs/ai-prompts (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 80 tokens to every session and 1,249 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
openocd
A toolkit for programming and debugging microcontrollers through hardware probes such as ST-Link or CMSIS-DAP. OpenOCD can act as a GDB Server, allowing a debugger to inspect source code, registers, memory, breakpoints, and program execution.
jlink
A tool for using a SEGGER J-Link probe to connect a computer to an embedded chip for programming and debugging.
serial
A tool for communicating with devices over serial ports, such as USB-to-UART connections. It can find ports, watch incoming data, send messages, save logs, and display raw bytes in hexadecimal form.
eide
A build tool for EIDE projects, an embedded-development extension for Visual Studio Code. It finds EIDE project settings and builds firmware using ARM CC or GCC.
net
A toolkit for diagnosing network connections and traffic in embedded systems. A packet capture is a recorded sample of network traffic, and this tool can create or analyze captures in formats such as pcap and pcapng.
can
A debugging tool for CAN and CAN-FD, communication systems used by vehicles and embedded devices. It can find interfaces, monitor and send messages, record logs, decode DBC database files, and report bus statistics.