/maruda:gh-batch-runnerfrom maruda
Groups multiple GitHub Issues into a single release by creating an Epic Issue, implementing each on a shared branch in dependency order, verifying the whole, and opening one PR. Requires each Issue to have an agreed plan from gh-issue-planner.
Ships in maruda. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Implement several Issues as one release: one integration branch, one verification of
the whole, one Pull Request. Per-Issue implementation follows the gh-issue-resolver
contract unchanged — this skill owns only what is batch-level: membership, ordering,
whole-branch verification, and the single PR.
Use this skill only when the answer to "do these ship together?" is yes. Independent
Issues use gh-issue-resolver once per Issue; a dependency chain that ships
separately uses the stacked flow (also gh-issue-resolver, with the dependency's
branch as base).
<!-- gh-issue-planner:agreed-plan -->)
posted by gh-issue-planner. If any Issue lacks one, stop and run the planner for
that Issue first — planning several Issues in one pass is supported there.## Flow; falls back to the
default branch).The batch's membership is an Epic Issue holding the members as sub-issues — not a branch name, not a comment convention. Create the Epic if the user did not name one:
gh issue create --title "Epic: <what ships together>" --label epic --body "$(cat <<'EOF'
## まとめて対応する Issue
<one line per member Issue>
## 統合先
<integration branch>
---
<!-- gh-batch-runner:batch-plan -->
*Generated by `gh-batch-runner`. Membership is the sub-issue list; edit that, not this body.*
EOF
)"
Then attach each member. Reading takes the Issue number; writing takes the REST
integer id, which is not the same thing as the I_kwDO… node id that
gh issue view reports under id — the endpoint rejects that with HTTP 422. Use -F
rather than -f so the value stays an integer instead of becoming a string:
sub_id=$(gh api repos/{owner}/{repo}/issues/<member-number> --jq .id)
gh api -X POST repos/{owner}/{repo}/issues/<epic-number>/sub_issues -F sub_issue_id="$sub_id"
Read the current state every run — dependencies are recorded on Issues at any time, including after the batch started:
gh api repos/{owner}/{repo}/issues/<epic-number>/sub_issues --jq '.[].number'
gh api repos/{owner}/{repo}/issues/<member>/dependencies/blocked_by --jq '.[].number'
Order the members so every blocker lands before what it blocks. If the dependencies form a cycle, stop and report it — do not pick an order arbitrarily.
git branch epic/<epic-number>-<slug> <integration-branch>
git worktree add ../epic-<epic-number>-<slug> epic/<epic-number>-<slug>
The epic branch is a staging area, not a protected branch. Branch protection stays on the integration branch, and that is where the gate is.
For each member Issue, in the Step 2 order, follow gh-issue-resolver Steps 3–4 with:
<base-ref> = the epic branchgit commit -m "<type>(#<member>): <short description>"A member whose verification cannot converge stops the batch at that member (Step 7) — later members are not started on top of an unverified commit.
Per-Issue verification does not cover what the combination broke. Re-run the full verification once more against the integration branch as baseline:
Full test suite on the epic branch.
Re-run every diagnosis whose triggers fire for the combined diff
(gh-issue-resolver 8.1 table, applied to git diff <integration-branch>...HEAD).
Classify findings against the integration branch:
report-to-issues after the user approves; never fixed in this PRA regression that cannot be attributed to a single member is still the batch's: fix it in the member whose 影響範囲 covers it, or stop (Step 7) if none does.
Have the whole branch read before the PR. The per-Issue pass does not run
gh-pr-reviewer — each member is committed on the branch it would be compared with, so
its own diff is empty. The batch is reviewed once, here, as one change against every
member's agreed plan. Commit everything first and run it from the epic worktree:
/maruda:gh-pr-reviewer Issues #<member-1> #<member-2> …, base <integration-branch>
Read its header (<!-- gh-pr-reviewer:result -->) and treat its classes as the batch's:
| Review class | Treated as | Action |
|---|---|---|
| Important | regression of the batch | Fix it under the limits of item 3, as a fix(#<member>): … commit on the epic branch, then re-run the tests, every diagnosis of item 2 whose trigger the fix fires, and the review — the branch being shipped is no longer the one that was diagnosed |
| Pre-existing | pre-existing | Not fixed here — handed to report-to-issues after the user approves |
| Nit | — | Never stops the batch; record the count in the PR |
A Scope finding — a file no member's plan covers — is fixed by taking that change
back out: restoring the file to what it was when the epic branch was cut
(git checkout $(git merge-base <integration-branch> HEAD) -- <file>, or git rm when
the branch added it) is always allowed. Commit it against the member whose commit
introduced it. If a member's agreed work cannot be done without that file, that
member's plan is wrong: stop (Step 7).
Whatever fixed it — a review finding or a regression from items 2–3 — any fix commit
made after the review means the review is re-run before Step 6: the branch that is
pushed must be the branch that was read. Review fixes and diagnosis fixes spend one
three-iteration budget between them; a round that re-runs both counts once. An Important finding marked unchanged since the previous run, or one whose fix would leave the union of the members' 影響範囲, stops
the batch (Step 7). An "empty diff" result means the review saw nothing: fix the
invocation (commit, base, directory) and run it again once — that retry is not an
iteration of the budget. If the diff is still empty, stop (Step 7).
Push the epic branch first — a PR can only show commits that exist on the remote. Never force-push, never push to the integration branch itself, and if the push fails, stop and report it:
git push -u origin epic/<epic-number>-<slug>
gh pr create --base <integration-branch> --head epic/<epic-number>-<slug> \
--title "epic(#<epic-number>): <what ships together>" --body "$(cat <<'EOF'
## Summary
<what ships together and why it ships as one>
Closes #<epic-number>
Closes #<member-1>
Closes #<member-2>
## Issues in this batch
- #<member-1> — <one line>
- #<member-2> — <one line>
## Verification
- Per Issue: <PASS/FAIL summary>
- Epic branch vs <integration-branch>: <full test suite + diagnoses re-run>
- gh-pr-reviewer (whole branch): <PASS | FAIL → PASS (n Important fixed)> — nit <n>, pre-existing <n><, read not independent>
- Batch regressions fixed: <ids, or none>
EOF
)"
When the review's HUMAN-REVIEW line is not none, put this directly under ## Summary,
with the review's own categories and reasons, so the person who merges knows where to look:
> **人が必ず見るべき変更を含みます (needs a human read)**
> - <category>: <file> — <reason>
Commits added after the PR is open (a fix asked for in review) are pushed before the PR body is touched again.
This PR is the only place CI and the human review run for the batch. Do not weaken it to compensate for the epic branch being unprotected.
Stop, leave the branch and the Epic in place, and report — never merge past a failure:
gh-issue-planner for it.gh-issue-planner for that member (the rest of the batch stays unstarted).dependencies/blocked_by), then either continue with the new order or stop and
say why.✅ Batch #<epic-number> implemented and verified.
Members: #12 #15 #18 | Epic branch: epic/<n>-<slug> | PR: <url>
Tests: pass | Batch regressions fixed: 1 | Pre-existing handed off: 2
fix(#<member>): … commits when
verification or the review asks for one — and one PR per batch; the integration PR is
the gatereport-to-issues — never into this PRWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub northraystudio/maruda --plugin maruda15 skills in this plugin
/data-validationInspect a project's data for correctness and produce a read-only validation report — record counts, NULL rates, value distribution, uniqueness, referential integrity, format validity, and sampled evidence rows. Data is read only from the project's own test fixtures/seed data or from an explicitly configured connection; never from a guessed or production source. Triggers on requests like "validate the data", "check data quality", "データ検証", "データの妥当性を確認", "NULL率を調べて", "件数がおかしい", "/maruda:data-validation", or when `gh-issue-resolver` verifies a data-related change. Does NOT modify any data or code — read-only inspection only. Produces no JSON.
/dependency-auditAudit third-party dependencies for known vulnerabilities (OWASP A06) without running SAST. Scans lockfiles under a path (plus the owning workspace root lockfile) and explicitly named container images with a pinned Trivy; reports severity, package, version, fixed version, source, and reachability. Records what was scanned and marks what could not be as "not run" with the reason, never as zero. Writes a security-audit-format report for `report-to-issues` and a JSON summary. Only when the user asks, also converts each scanned target into an SBOM (CycloneDX by default, or SPDX) — never by default. Triggers on requests like "依存の脆弱性を調べて", "依存を監査して", "ロックファイルの脆弱性", "ベースイメージの脆弱性", "dependency audit", "check dependencies for CVEs", "scan the lockfile", "scan this image", "SBOMも出して", "generate an SBOM", "CycloneDX", "SPDX", "/maruda:dependency-audit", or when `vulnerability-scan` or `gh-issue-resolver` delegates the dependency audit. Read-only: never upgrades, installs, regenerates a lockfile, or builds an image.
/gh-issue-drafterTurn a rough, hand-written intent into a well-scoped GitHub Issue before planning starts. Takes a loose 'what I want' from the user, proposes the missing structure (Done definition, Out of scope, Design constraints), gets the user's approval, and creates the Issue via the gh CLI with a scoped-issue marker so gh-issue-planner can pick it up. When the intent is too large for one Issue, it proposes splitting it into independent Issues or an Epic with sub-issues. This is the human-authored counterpart to report-to-issues (which registers machine-generated findings). Use when the user wants to file a new Issue from a rough idea, is about to write an Issue by hand, or asks to turn a note/thought into an Issue. Triggers include requests like Issueを起こして / Issueを作って / ざっくり書くのでIssueにして, 'draft an issue', 'create an issue for', 'turn this into an issue', 'file an issue'. Does NOT plan or implement — hand off to gh-issue-planner for the response plan, then gh-issue-resolver for implementation./gh-issue-plannerFetch a GitHub Issue by ID using the gh CLI, investigate related code, propose a structured response plan (policy, impact scope, implementation steps), and post the agreed plan as a comment on the issue. Implementation/PR creation is out of scope — use gh-issue-resolver for that. Use when the user provides a GitHub Issue ID or asks to investigate/analyze/plan a GitHub Issue. Triggers include issue IDs like #42 or 'issue 42', requests such as Issueを調査して / Issueの対応方針を立てて, analyze issue #N, plan issue #N, investigate issue, look at issue. Accepts several Issues at once (e.g. '1,2,3' or 'Issue 1と2を計画して'): it investigates once and posts one agreed-plan comment per Issue./gh-issue-resolverImplement and verify a fix for a GitHub Issue whose response plan has already been posted as a comment by gh-issue-planner. Creates a feature branch, applies the agreed plan, runs tests, and opens a Pull Request. Use when the user asks to implement/fix/resolve a planned GitHub Issue. Triggers include requests such as Issueを実装して / Issueを修正して / Issueを対応して, implement issue #N, fix issue #N, resolve issue #N, work on issue #N. Prerequisite: an agreed plan comment must exist on the issue (run gh-issue-planner first if not)./gh-pr-reviewerReview a diff before it becomes a Pull Request (or an open PR) against the intent it was written for: the agreed plan posted by `gh-issue-planner`, the Issue's Done conditions, or the PR description. Checks that the change stays inside the agreed impact scope, covers every Done condition, keeps what the plan said must not be cut, and does not weaken tests or thresholds; then has the diff read once in a fresh context for bugs. Reports findings with `file:line`, classified Important / Nit / Pre-existing, in a fixed header `gh-issue-resolver` and `gh-batch-runner` read. Triggers on requests like "review this diff", "review the PR", "PRをレビューして", "差分をレビューして", "プラン通りか確認して", "/maruda:gh-pr-reviewer", or when `gh-issue-resolver` reviews its own change, or `gh-batch-runner` a whole epic branch, before opening a PR. Does NOT modify code, Issues or PRs — read-only. Produces no JSON.