mastra-review

Review Mastra agents, tools, and workflows for correctness and tenant-safety regressions.

1|Updated Sep 15, 2026
One-click install
npx skills add https://github.com/amoai-tech/mdeai --skill mastra-review-amoai-tech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mastra-review
Source: https://github.com/amoai-tech/mdeai/tree/main/.claude/skills/mastra-review
Command: npx skills add https://github.com/amoai-tech/mdeai --skill mastra-review-amoai-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reviewing changes to Mastra-based AI agents is risky because subtle defects in authorization, memory scoping, or workflow persistence can cause cross-tenant data leaks or unsafe side effects. This Skill provides a structured review checklist that catches material correctness and tenant-safety regressions before they ship. ## Core Features & Use Cases - Authority and Tenant-Safety Review: Verifies that server-verified user, tenant, and request context is preserved through agent, tool, and workflow execution, and that browser IDs or model output never establish authority. - Workflow Integrity Checks: Validates HITL approval binding, resume/callback rejection of stale or foreign authority, durable workflow persistence, and stop/abort behavior for protected side effects. - Package API Verification: Requires claims about Mastra beta package behavior to be proven against installed source/types or official migration guidance rather than stale examples. - Use Case: When a pull request modifies an MDE Mastra agent's memory configuration, use this Skill to confirm the memory/thread/resource scope cannot bleed data across users or tenants, with a concrete tenant A to tenant B failure case for any defect found. ## Quick Start Review this pull request's changes to the Mastra agent and tool definitions for tenant-safety and correctness regressions using the mastra-review checklist.

Frequently Asked Questions about mastra-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Mastra agent code for security issues?

Check that server-verified user, tenant, and request context flows through agent, tool, and workflow execution, and that consequential tools enforce server-side authorization with replay-safe side effects. Never treat browser IDs, memory contents, or model output as authority.

What is RequestContext in Mastra and is it authorization?

RequestContext carries request metadata through Mastra execution but is not authorization by itself. Consequential operations still require server or domain-level authorization checks independent of the context object.

How do I prevent cross-tenant memory leaks in Mastra agents?

Scope memory, threads, and resources by verified user and tenant identifiers so one tenant cannot read another's data. Reviews should include a concrete tenant A to tenant B failure case proving the boundary holds.

Can I trust Mastra beta documentation examples for API behavior?

No. MDE uses beta Mastra packages, so API behavior must be verified against the installed @mastra/* source and types or current official migration guidance, never inferred from stale examples.

What should HITL approval bind to in agent workflows?

Human-in-the-loop approval must bind to the exact validated artifact, revision, or hash being approved. Resume and callback paths must reject stale, duplicate, foreign, or malformed authority to prevent replay attacks.