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 breaking a large, complex, messy, or hard-to-review pull request into multiple smaller PRs; planning stacked PRs; extracting independent changes from a branch; splitting mixed refactor and behavior changes; managing drift after review feedback; rebasing follow-up PRs as
$ npx -y skills add mastra-ai/mastra --skill pr-splitter --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pr-splitterContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when breaking a large, complex, messy, or hard-to-review pull request into multiple smaller PRs; planning stacked PRs; extracting independent changes from a branch; splitting mixed refactor and behavior changes; managing drift after review feedback; rebasing follow-up PRs as
name: pr-splitter description: Use when breaking a large, complex, messy, or hard-to-review pull request into multiple smaller PRs; planning stacked PRs; extracting independent changes from a branch; splitting mixed refactor and behavior changes; managing drift after review feedback; rebasing follow-up PRs as earlier PRs change; or preserving original branch intent while shipping incrementally.
Preserve the original PR as source material, build smaller reviewable PRs intentionally, and track drift locally as review feedback changes the stack.
1. **Snapshot before touching history**
2. **Inventory the original PR**
3. **Create a local scratchpad**
4. **Choose the split shape**
5. **Extract changes safely**
6. **Verify each PR independently**
7. **Manage drift deliberately**
8. **Use range-diff for rewritten stacks**
Keep PR descriptions concise and reviewer-facing:
## Summary This is PR N of M split from a larger change. ## Scope - ... ## Intentionally excluded - Follow-up PR will handle ... ## Verification - ...
Do not put the full split ledger in PR descriptions. Keep detailed extraction notes and drift tracking in `.notes/pr-split.md`.
# PR split scratchpad Original branch: backup/original-large-pr Base branch: main ## Planned PRs 1. branch-name - Scope: - Files/hunks extracted: - Verification: - Changeset: (package names, bump type, scoped message) - Status: ## Remaining original intent - ... ## Drift notes - Date / branch / reason:
Each split PR must carry its own changeset scoped to the changes in that PR. Do not keep the original changeset from the source branch — it covers the full combined change and does not belong in any single split PR.
After extracting changes into a split branch:
1. **Delete any changeset files carried over from the original branch.** These were written for the combined diff and will produce incorrect changelog entries. 2. **Create a new changeset for each PR** using the CLI (see `.mastracode/commands/changeset.md`):
pnpm changeset -s -m "your scoped message" (--major | --minor | --patch) pkg-name
3. **Scope the message to that PR's changes only.** The changeset message should describe what this specific PR does, not the full original feature. 4. **Include only the packages actually changed in this PR.** If the original changeset listed five packages but this PR only touches `@mastra/core`, the new changeset should only reference `@mastra/core`. 5. **Match the version bump type to the PR's scope.** A prep/refactor PR is typically `patch`; a PR introducing new API surface is `minor`; a PR with breaking changes is `major`.
Add changeset creation to the scratchpad template under each planned PR's verification checklist so it is not forgotten.
Avoid splitting by file when behavior spans files, extracting tests without code, leaving follow-up PRs uncompilable, force-pushing without a reviewer summary, deleting the original branch early, reverting review feedback while resolving stack conflicts, and keeping the original branch's changeset in every split PR instead of creating scoped changesets per PR.
When asked to split a PR, produce:
1. proposed PR sequence, 2. branch strategy, 3. scratchpad path and initial contents, 4. extraction commands, 5. verification plan for each PR, 6. drift-management plan.
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,…