builder-smoke-test
Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current worktree). Covers workspace…
Use when creating an approachable, self-contained HTML review aid for a pull request; explaining what changed, why it matters, how it works, and how it fits into the broader system; turning PR diffs, commits, tests, and architecture context into a local `.pr-review/` HTML page
$ npx -y skills add mastra-ai/mastra --skill pr-explainer --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pr-explainerContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when creating an approachable, self-contained HTML review aid for a pull request; explaining what changed, why it matters, how it works, and how it fits into the broader system; turning PR diffs, commits, tests, and architecture context into a local `.pr-review/` HTML page
name: pr-explainer description: Use when creating an approachable, self-contained HTML review aid for a pull request; explaining what changed, why it matters, how it works, and how it fits into the broader system; turning PR diffs, commits, tests, and architecture context into a local `.pr-review/` HTML page for reviewers; or helping reviewers understand complex code changes without dumping the full diff.
Create a local, self-contained HTML page that teaches a reviewer the PR story: what changed, why it matters, how it works, how it fits into the system, and how it was verified.
1. **Understand the PR before writing HTML**
2. **Find the explanation path**
1. problem, 2. system context, 3. before/after data or control flow, 4. key code changes, 5. proof from tests/builds/manual checks, 6. reviewer takeaway.
3. **Write for approachability**
4. **Create a local self-contained HTML file**
Use this structure unless the PR clearly needs a different teaching order:
1. **Hero**
2. **Problem**
3. **System Context**
4. **Before/After Flow**
5. **Code Walkthrough**
6. **Tests / Verification**
7. **Reviewer Takeaway**
Add diagrams when they reduce cognitive load. Prefer simple HTML/CSS diagrams over external dependencies.
Good diagram types:
Each diagram must answer: “What does this help the reviewer understand faster?”
Show snippets along the explanation path, not giant patches. Each important snippet should include:
Use this pattern:
<div class="diff"> <div class="diff-title">packages/example/src/file.ts</div> <pre> <span class="del">- old behavior</span> <span class="add">+ new behavior</span> </pre> </div>
A reviewer should understand the PR without opening GitHub, but the page should not replace the final full diff review.
End with proof. Include exact commands when available, for example:
pnpm --filter @scope/package test path/to/test.ts -- --run pnpm turbo build --filter ./packages/package
If verification was not run, say so clearly and list the recommended commands.
Before calling the page done, confirm it has:
When asked to create a PR explainer, produce or update a `.pr-review/*.html` file and summarize:
1. output path, 2. PR story covered, 3. key sections included, 4. verification evidence included, 5. whether `.pr-review/` remains untracked or excluded.
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack. It includes everything you need to go from early prototypes to production-ready applications.
Repo: 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). Covers workspace…
Use early when debugging a medium or hard bug, especially when tests alone may not reveal the real runtime failure. Trigger this before extended TDD iteration…
Autonomous, report-only documentation review for Mastra docs. Use when auditing changed docs against source, validating contextual code examples or API…
Convert existing docs diagram images to Mermaid, and author new Mermaid diagrams for Mastra docs. Use when replacing an Excalidraw or PNG/JPG/SVG diagram with…
REQUIRED when modifying any file in packages/playground-ui or packages/playground. Triggers on: React component creation/modification/refactoring, UI changes,…
Review open mastra-ai/mastra GitHub issues, identify direct @mastra/core bugs, and apply the @mastra/core label. Use when auditing issues for core ownership,…