/maruda:gh-issue-drafterfrom maruda
Turns a rough, hand-written intent into a well-scoped GitHub Issue before planning starts. Proposes missing structure (Done definition, Out of scope, Design constraints), gets approval, then creates the Issue via gh CLI with a scoped-issue marker for gh-issue-planner. Splits oversized intents into independent Issues or an Epic.
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.
The quality of everything downstream — the plan, the reviews, the implementation, the CI verification — is capped by the quality of the Issue that starts it. A rough, one-line Issue forces every later step to guess at the author's intent.
This skill takes the user's rough intent (the What) and, without slowing them down,
proposes the three things a hand-written Issue almost always omits: a machine-checkable
Done definition, an explicit Out of scope, and optional Design constraints.
The user approves or edits the proposal, then the skill creates a structured GitHub
Issue tagged with a marker that gh-issue-planner recognizes.
Scope boundary: this skill only drafts and files the Issue. It does not investigate
code, propose a response plan, or implement anything. Hand off to gh-issue-planner
once the Issue exists.
If the user's input already contains a clear Done definition and scope (e.g. they pasted
a fully-formed Issue, or a report-to-issues output), do not re-interrogate them — just
confirm and file. The goal is to fill gaps, not to add ceremony to Issues that are
already well-formed. The size check (Step 2.5) follows the same rule: no signal, no
question.
Take the user's input as the raw What. Do not ask them to rewrite it or expand it themselves — capturing intent cheaply is the whole point. If the input is a single line, that is fine.
If repository context is unclear, establish it:
gh repo view --json nameWithOwner
Infer the Issue type to guide the Done definition and label. Keep it lightweight — one signal is enough.
| Signal in the intent | Type | Label | Done tends to look like |
|---|---|---|---|
| broken, error, crash, regression | Bug fix | bug | a failing case now passes / reproduces no longer |
| add, support, new, want | Feature | feature | new behavior is exercised by a test |
| clean up, restructure, extract, rename | Refactor | refactor | behavior unchanged, tests still green |
| doc, readme, explain | Docs | docs | the doc reflects current code |
Judge the size from the intent and your draft only — do not read code (Stay in your lane). Consider splitting when any of these signals is present:
No signal → go straight to Step 3 and ask nothing. With a signal, name the signals you saw and offer three choices as a draft, recommended one first, so the user only approves:
| Choice | When | Result |
|---|---|---|
| a. Keep one Issue | Not big enough to be worth splitting | Continue with Step 3 as usual |
| b. Split into independent Issues | The parts may ship separately | Several scoped Issues, no Epic |
| c. Epic + sub-issues | The parts should ship together | An Epic holding scoped sub-issues — the entry point to gh-batch-runner |
Size alone never makes an Epic. gh-batch-runner treats an Epic as Issues that ship
together, so choose c only for that; a large request whose parts ship separately is b.
For b and c, draft every child Issue in the Step 3 format (やること / 完了条件 / 触らない範囲 / 設計方針) and present them all at once — one approval files them all.
This is the core of the skill. From the rough intent, draft the following and present it for the user to approve or edit. The user's job shrinks from writing to approving.
gh-issue-planner plans against and that the
post-implementation review checks for consistency (did the implementation match the
declared Done?).Present the draft in the user's language:
## <proposed title>
### やること (What)
<the user's rough intent, lightly tidied — not expanded>
### 完了条件 (Done)
- <machine-checkable condition 1>
- <condition 2, if any>
### 触らない範囲 (Out of scope)
- <what must not change / boundaries to preserve>
### 設計方針 (Design constraints)
- 作る前の確認: 要るか → 既にあるか → 標準ライブラリ → プラットフォーム → 既存の依存 → 1行 → 最小の実装、の順に確かめ、足りたところで止める
- <the author's non-functional intent, if any>
---
提案です。このまま起票して良いですか? 修正があれば指定してください。
(Proposal — file as-is, or tell me what to change.)
gh issue create --label fails if the label does not exist in the repository. Check
first and create if missing (same approach as report-to-issues Phase 5):
gh label list --json name | jq -r '.[].name'
gh label create "<label>" --color "<hex>"
| Label | Color |
|---|---|
bug | #d73a4a |
feature | #a2eeef |
refactor | #cfd3d7 |
docs | #0075ca |
epic | #3e4b9e |
After approval, create the Issue. Embed the marker comment so gh-issue-planner can
recognize a pre-scoped Issue.
gh issue create \
--title "<title>" \
--label "<type-label>" \
--body "$(cat <<'EOF'
## やること
<what>
## 完了条件
- <done 1>
- <done 2>
## 触らない範囲
- <out of scope>
## 設計方針
- 作る前の確認: 要るか → 既にあるか → 標準ライブラリ → プラットフォーム → 既存の依存 → 1行 → 最小の実装、の順に確かめ、足りたところで止める
- <the author's design constraints, if any>
---
<!-- gh-issue-drafter:scoped-issue -->
*Generated by `gh-issue-drafter` — Done/Out-of-scope/constraints were author-approved. Use `gh-issue-planner` to produce the response plan.*
EOF
)"
Check the exit code. On failure, report the error to the user instead of retrying blindly.
Report the created Issue number and URL back to the user, and offer the handoff:
Issue # を起票しました。続けて
gh-issue-plannerで対応方針を立てますか?
b — independent Issues. Create each child exactly as in Step 6, then hand off:
Issue #, # を起票しました。それぞれ
gh-issue-plannerで対応方針を立てますか?
c — Epic + sub-issues. Create each child as in Step 6 (scoped-issue marker and all),
then the Epic. The Epic uses the same label and title as gh-batch-runner Step 1, but a
marker of its own: it holds the overall goal and the member list only — the Done
conditions live in the children.
gh issue create --title "Epic: <what ships together>" --label epic --body "$(cat <<'EOF'
## 目的
<the overall goal, in one or two sentences>
## 子 Issue
- #<n1> <title>
- #<n2> <title>
依存順は gh-issue-planner で確定する。
---
<!-- gh-issue-drafter:epic -->
*Generated by `gh-issue-drafter`. Membership is the sub-issue list; plan the child Issues, not this one.*
EOF
)"
Attach each child exactly as gh-batch-runner does — the REST integer id, with -F:
sub_id=$(gh api repos/{owner}/{repo}/issues/<child-number> --jq .id)
gh api -X POST repos/{owner}/{repo}/issues/<epic-number>/sub_issues -F sub_issue_id="$sub_id"
Record blocked_by only for a dependency the user stated, or a tentative one the user
approved — otherwise leave it to gh-issue-planner. Then hand off:
Epic #(子 Issue: #, #)を起票しました。子 Issue をそれぞれ
gh-issue-plannerで計画してから、gh-batch-runnerに Epic # を渡してください。
gh-issue-planner and
report-to-issues: no side effects before the user says yes.gh-issue-planner.What 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-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-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.