/maruda:gh-issue-plannerfrom maruda
Fetches a GitHub Issue via gh CLI, investigates related code, proposes a structured response plan (policy, impact scope, implementation steps), and posts the agreed plan as a comment. Accepts multiple issues at once.
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.
Fetch a GitHub Issue, analyze its content, investigate related code in the repository, and present a structured response plan to the user. After the user confirms, post the agreed plan as a comment on the issue. Implementation and PR creation are out of scope — use gh-issue-resolver for those steps (or gh-batch-runner when several Issues ship together).
Several Issues may be planned in one pass. The agreed-plan granularity never changes: one comment per Issue, so every downstream skill keeps reading exactly one plan per Issue. See Step 7.
Run the following command (replace <id> with the issue number):
gh issue view <id> --json number,title,body,labels,assignees,state,url,comments
When several Issue numbers were given, run this once per Issue and keep the results side by side — the investigation in Step 3 is shared, the plans in Step 4 are not.
If no repository context is clear, also run:
gh repo view --json nameWithOwner
Extract from the response:
Pre-scoped Issues: if the body contains <!-- gh-issue-drafter:scoped-issue -->,
the Issue was drafted via gh-issue-drafter and its scope is author-approved. Treat its
sections as binding input to the plan. The Issue is written in the user's language, so
find each section by meaning (e.g. Done / Out of scope / Design constraints), not by the
Japanese heading — those are only the template's names:
Do not re-ask the user about scope that these sections already answer — raise open questions only for genuinely new information discovered during investigation.
Epics are not planned. If the body contains <!-- gh-issue-drafter:epic -->, its Done
conditions live in the children. Do not
produce a plan for it — list its sub-issues (Step 1.5) and offer to plan those instead.
Dependencies and parent/child links live on the Issue, not in the plan. Read the current state — they may have been recorded after the Issue was filed:
gh api repos/{owner}/{repo}/issues/<id>/dependencies/blocked_by --jq '.[].number'
gh api repos/{owner}/{repo}/issues/<id>/sub_issues --jq '.[].number'
If the investigation uncovers a dependency that is not recorded yet, record it before
planning around it. 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:
blocker_id=$(gh api repos/{owner}/{repo}/issues/<blocker-number> --jq .id)
gh api -X POST repos/{owner}/{repo}/issues/<id>/dependencies/blocked_by -F issue_id="$blocker_id"
A plan that silently assumes an unrecorded dependency is a plan the batch and stacked flows cannot reproduce.
Determine issue type to guide the investigation strategy:
| Label / Signal | Type | Investigation Focus |
|---|---|---|
| bug, error, crash | Bug fix | Error paths, edge cases, affected callers |
| feature, enhancement | New feature | Insertion points, interface contracts, related modules |
| refactor, tech-debt | Refactoring | Current usage sites, test coverage |
| docs, documentation | Docs update | Existing docs, code references |
Extract keywords from the title and body, then search the codebase:
code_search with natural-language queries derived from the issuegrep_search for specific function/class/variable names mentionedread_file to deeply understand the most relevant filesFocus on:
The drafter checks size before filing, but only from the intent; the investigation is
where size actually shows. If the impact scope turns out too large for one Issue — the
Done conditions would be covered by unrelated changes, or the parts could ship apart —
stop before writing a plan and offer the same three choices as gh-issue-drafter
Step 2.5, recommended one first:
gh-batch-runner)For b or c, hand the filing back to gh-issue-drafter, passing what the investigation
found as the rough intent. The planner never creates Issues itself — drafting and
filing are the drafter's job. Plan the new Issues once they exist.
Before writing the plan, run the check before building (作る前の確認) in order and stop at the first item that is enough. Where you stopped goes into the plan's どこまで作るか section:
However little the plan builds, never cut security boundaries, data-loss protection,
authorization, input validation, error handling, or accessibility — list what the plan
keeps under 削らないもの. The strength is full by default; a project that wants a
different one says so in its CLAUDE.md.
Present the following structured plan to the user in their preferred language:
## Issue #<id>: <title>
### 対応方針 (Approach)
<What will be done and why — 2-4 sentences>
### どこまで作るか (How far to build)
- 結論: <what will be built>(作る前の確認の<1–7>番目: <why this is enough>)
- 作らないもの: <higher-cost options considered and dropped>
- 削らないもの: <safety properties kept however little is built>
### 影響範囲 (Impact Scope)
- **変更対象ファイル**: list of files to modify
- **影響を受けるモジュール**: related modules that may be affected
- **テスト**: existing tests to update + new tests to add
### 実装方法 (Implementation Steps)
1. <Concrete step>
2. <Concrete step>
3. ...
### 懸念事項・確認事項 (Open Questions)
- <Any ambiguity or assumption that needs user confirmation>
After the user confirms the plan, post it as a comment on the GitHub Issue:
gh issue comment <id> --body "$(cat <<'EOF'
## 対応方針
<agreed approach>
## どこまで作るか
- 結論: <what will be built>(作る前の確認の<1–7>番目: <why this is enough>)
- 作らないもの: <options dropped>
- 削らないもの: <safety properties kept>
## 影響範囲
- **変更対象ファイル**: <files>
- **影響を受けるモジュール**: <modules>
- **テスト**: <tests>
## 実装方法
1. <step>
2. <step>
---
<!-- gh-issue-planner:agreed-plan -->
*Generated by `gh-issue-planner` — this comment represents the agreed implementation plan. Use `gh-issue-resolver` to implement it.*
EOF
)"
When more than one Issue was given, investigate once (Step 3) and then produce one
agreed-plan comment per Issue — never a single combined plan. Each comment keeps the
<!-- gh-issue-planner:agreed-plan --> marker, so gh-issue-resolver and
gh-batch-runner read plans exactly as they do for a single Issue.
Present all plans together in one message so the user confirms once.
Make sure each plan's 影響範囲 states what it shares with its siblings — overlapping files are what turns an individual flow into a batch.
Ask "do these ship together?" — the answer picks the flow, not the dependency graph. Skip the question when the repository default in CLAUDE.md already answers it:
| Answer | Flow | Hand off to |
|---|---|---|
| Yes, one release | batch | gh-batch-runner |
| No, and they are independent | individual | gh-issue-resolver per Issue |
| No, but one depends on another | stack | gh-issue-resolver with the dependency's branch as base |
Record any dependency found while planning (Step 1.5) before handing off.
Post each comment only after the user confirms (Step 6, once per Issue).
This completes the planner workflow. If implementation is required, hand off to the gh-issue-resolver skill, which uses the posted comment as its agreed plan — or to gh-batch-runner when the Issues ship together.
blocked_by / sub-issues), never only in proseWhat SKILL.md sets; muted values are Claude Code's defaults
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-batch-runnerRun several planned GitHub Issues as one unit: collect them under an Epic Issue with sub-issues, implement each on a shared epic/ branch in dependency order, verify the branch as a whole, and open a single Pull Request into the integration branch. Use when the user wants several Issues fixed, verified and released together. Triggers include requests such as Issue1,2,3をまとめて対応して / まとめて修正してリリースしたい / この3件を一緒に出して, 'batch these issues', 'do issues 1 2 3 together', 'ship these issues as one release'. Prerequisite: every member Issue needs an agreed plan comment from gh-issue-planner. For a single Issue, or for Issues that ship separately, use gh-issue-resolver instead./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-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.