원클릭으로
gh-bulk-issues
Orchestrate parallel Mastra Code headless instances to debug and fix multiple GitHub issues simultaneously
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Orchestrate parallel Mastra Code headless instances to debug and fix multiple GitHub issues simultaneously
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Collaboratively investigate a GitHub issue or bug — trace history, understand architecture, diagnose root cause
Guided interactive PR review — understand the history and context before forming opinions
React performance optimization guidelines from Mastra Engineering. This skill should be used when writing, reviewing, or refactoring React code to ensure optimal performance patterns. Triggers on tasks involving React components, data fetching, bundle optimization, or performance improvements.
REQUIRED and PRIMARY testing approach for packages/playground and packages/playground-ui. Triggers on: adding or modifying hooks, pages, route components, data-fetching code, React Query interactions, or any test work in these packages. Generates Vitest tests that drive the real @mastra/client-js + React Query stack through MSW handlers and typed fixtures derived from @mastra/client-js response types. This is the #1 way to test the playground packages — ABOVE Playwright E2E. Use Playwright only for cross-page user journeys that MSW cannot model.
Interactive documentation quality review for Mastra docs. Use when auditing, reviewing, or critiquing Mastra documentation; checking docs against source code; validating code examples, API accuracy, or property completeness; checking whether docs follow the styleguide and deterministic linters; or evaluating whether a beginner or agent can follow a doc to complete a job. This skill keeps humans in the loop with ask_user and submit_plan, then always runs an agent-build eval after approved fixes.
How to build Mastra frontend interfaces with the @mastra/playground-ui design system. This skill should be used when creating or modifying any application UI — pages, components, styling, or tokens — in this repo or in an external consumer of the design system. The docs site has its own styling and is out of scope.
| name | gh-bulk-issues |
| description | Orchestrate parallel Mastra Code headless instances to debug and fix multiple GitHub issues simultaneously |
| goal | true |
Orchestrate parallel mc (mastracode) headless instances to debug and fix multiple GitHub issues simultaneously. You act as the supervisor — spawning workers, monitoring progress, reviewing output, and creating PRs.
$ARGUMENTS should be a space-separated list of GitHub issue numbers, e.g. 1234 5678 9012.
If no arguments are provided, use the GH CLI and the user's contribution history to recommend issues:
RUN gh issue list --state open --limit 50 --json number,title,labels,assignees RUN git log --author="$(git config user.name)" --pretty=format:'' --name-only --since="6 months ago" | sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -20
Summarize the user's contribution areas and match them to open issues. Ask the user which issues to work on before proceeding.
For each issue number in the list:
Create a git worktree with a dedicated branch:
git worktree add ../$(basename $PWD)-issue-<NUMBER> -b fix/issue-<NUMBER>
Install and build in the worktree. Run 2 worktrees at a time to manage CPU:
cd ../$(basename $PWD)-issue-<NUMBER> && pnpm i && pnpm build
Spawn an mc headless instance in each worktree with a generous timeout (30 minutes):
cd ../$(basename $PWD)-issue-<NUMBER> && pnpx tsx <path-to-mastracode>/src/main.ts --timeout 1800 --prompt "Activate the understand-issue skill for issue <NUMBER>"
Run all instances as background processes with a matching timeout on execute_command. Track each PID.
Create a reports/ directory in the main project root. For each issue, maintain a reports/issue-<NUMBER>.md file with:
Check all processes every 3 minutes. For each check:
mc instance finishes or times outgit diff --stat in the worktree to see what changed--prompt that says "Continue working on issue #." and summarizes where it left off based on the diff and last output/gh-new-pr conventions:
fix: ... or feat(pkg): ...Closes #<NUMBER>After PRs are created, spawn mc instances with /gh-pr-comments <PR_NUMBER> to handle CodeRabbit and reviewer feedback. If an instance times out, restart it with context about which comments still need addressing.
After pushing a PR (and after each subsequent push from comment fixes), check CI status:
gh pr checks <PR_NUMBER>
If any checks are failing, spawn an mc instance in the worktree with /gh-fix-ci to diagnose and fix the failures. If it times out, restart it with context about which checks failed and what was already attempted.
pnpm buildmc instances can run in parallel — they're IO-bound, not CPU-boundmc instance benefits from.mc output before creating PRs — subagent work is untrusted