ワンクリックで
implement-issue
Implement a GitHub issue interactively - asks about branch, PR target, and phases/steps before starting work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Implement a GitHub issue interactively - asks about branch, PR target, and phases/steps before starting work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create a git branch from a base and set its upstream at once, so a later push can never land on the base branch. Use when starting work that needs its own branch.
Create a well-structured GitHub issue with duplicate detection, code verification, and auto-labeling
Root-cause a bug or a failed fix with evidence, not guesses - brainstorm causes, research them in parallel, confirm one with logs before changing code. Use when a reported behavior needs root-causing or a fix attempt has failed.
Rename or refactor a symbol safely by searching every naming-case variant across code, tests, docs, configs, and JSON. Use when renaming any identifier so no reference is missed.
Launch N parallel research agents that explore different improvement approaches, cross-pollinate ideas, and converge on a unified plan
Review PR comments, apply or reject each one with evidence, and post replies directly to GitHub
| name | implement-issue |
| description | Implement a GitHub issue interactively - asks about branch, PR target, and phases/steps before starting work |
| argument-hint | ["issue-number"] |
Implement a GitHub issue by interactively gathering configuration through questions, then processing steps sequentially with automated PR creation and review cycles.
$ARGUMENTS contains an issue number, use it as ISSUE.$ARGUMENTS is empty, ask the user using AskUserQuestion:
"Which GitHub issue do you want to implement?"
gh issue view $ISSUE --json title,body,number
Display the issue title to the user so they can confirm context.
Parse the issue body to extract:
#<number> references if any.Use AskUserQuestion to ask:
"Do you want to implement the changes in a new branch or use the current one?"
Options:
<current-branch-name>) - Work on the branch you're already on.If the user picks option 1:
git checkout <branch> && git pull origin <branch>git checkout -b <branch> && git push -u origin <branch>
Store the chosen branch as WORK_BRANCH.
Use AskUserQuestion to ask:
"Which branch should PRs target?"
Options:
<WORK_BRANCH>) - PRs will target the working branch.Store the chosen branch as PR_TARGET_BRANCH.
Present the detected structure to the user and ask using AskUserQuestion:
"This issue has steps. Which one do you want to implement?"
Options (up to 4):
Store the chosen step as TARGET_STEP.
Analyze the issue body to determine if it makes sense to split it into multiple implementation steps. Consider:
If splitting makes sense, present the proposed steps to the user using AskUserQuestion:
"This issue doesn't have explicit steps, but I'd suggest splitting it into steps:"
- <Step 1 summary>
- <Step 2 summary>
"Should I proceed with these steps?"
Options:
If the user chooses step by step, ask which step to implement (same as 5a).
If splitting does NOT make sense (simple, focused issue), proceed directly to implementation as a single unit.
Before starting any work:
git checkout $WORK_BRANCH && git pull origin $WORK_BRANCH
flutter analyze to ensure a clean starting state:
cd menu_management && flutter analyze
For each step, one at a time:
Create a branch from $WORK_BRANCH:
git checkout -b <issue-number>-<short-slug> $WORK_BRANCH
git push -u origin <issue-number>-<short-slug>
Spawn an implementation agent (using Agent tool with isolation: "worktree") with this prompt:
You are implementing GitHub issue # for the Menu Management Flutter app.
Issue Details
Step to implement
Instructions
- Read the project's
AGENTS.mdfor conventions and verification commands.- Run the pattern-scout agent before writing any code to find existing patterns.
- Diagnose first: Search the codebase for relevant files. Identify the exact locations that need changing. Explain the reasoning before writing any code.
- Plan if complex: If the fix involves more than 2 files, create a checklist of all required changes before starting.
- Implement the changes following the patterns found and the requirements in the issue.
- If you modified any Freezed model, run:
cd menu_management && dart run build_runner build --delete-conflicting-outputs- Run verification:
cd menu_management && flutter analyze- Fix any lint or analysis errors before finishing.
- Create commits for your changes.
- Push your branch:
git push origin HEADBranch
Work on branch:
<issue-number>-<short-slug>Base branch:$WORK_BRANCHScope
Only implement what is described in the step. Do not modify code outside the scope.
Wait for the agent to complete.
Create a PR (always include waiting-for-human-check label and self-assign):
gh label create "waiting-for-human-check" --description "No human has verified this yet -- direct AI output" --color "D93F0B" 2>/dev/null || true
gh pr create \
--base $PR_TARGET_BRANCH \
--head <issue-number>-<short-slug> \
--title "<short title>" \
--assignee @me \
--label "waiting-for-human-check" \
--body "$(cat <<'PREOF'
## Summary
Closes #<ISSUE_NUMBER>
<1-3 bullet points summarizing what was done>
## Test plan
- [ ] `flutter analyze` passes
- [ ] App runs without errors
- [ ] Manual verification of the feature
🤖 Generated with [Claude Code](https://claude.com/claude-code)
PREOF
)"
$WORK_BRANCH (no sub-branch needed).$PR_TARGET_BRANCH.For each PR, run a review cycle using a local file to keep the feedback loop fast.
The review file path is: .reviews/<issue-number>-review.md
Spawn a new agent without prior context to review the PR:
You are reviewing a pull request for the Menu Management Flutter app.
PR Details
- PR number: <PR_NUMBER>
- Branch: <BRANCH_NAME>
Instructions
- Fetch the PR details:
gh pr view <PR_NUMBER> --json title,body,url,headRefName,baseRefName- Fetch the full diff:
gh pr diff <PR_NUMBER>- Read the project's
AGENTS.mdfor conventions.- Review the code changes for:
- Correctness: Does the code do what the issue asks?
- Patterns: Does it follow existing codebase patterns (Provider, Freezed, etc.)?
- Types: Are all types explicit? Does it match analysis_options.yaml rules?
- Scope: Are changes limited to what the issue requires? No over-engineering?
- Style: Double quotes, package imports, 150-char line width?
- Write your review to
.reviews/<PR_NUMBER>-review.md:Create# Review: PR #<PR_NUMBER> -- <PR title> ## Verdict: APPROVED | CHANGES_REQUESTED ## Summary <1-3 sentence assessment> ## Issues <!-- Leave empty if APPROVED --> ### Issue 1: <short title> - **File:** `<file-path>` - **Line(s):** <line number or range> - **Severity:** critical | high | medium | low - **Description:** <what's wrong and why> - **Suggestion:** <how to fix it>.reviews/if it doesn't exist:mkdir -p .reviews
Read the review file. If verdict is CHANGES_REQUESTED:
APPROVED (max 3 iterations).Once approved:
rm -f .reviews/<PR_NUMBER>-review.md
rmdir .reviews 2>/dev/null || true
Notify the user that the review passed.
Do not merge the PR. Wait for the user to review, approve, and merge manually.
After all steps are done, report:
All steps complete. PRs are ready for human review.
If there are remaining steps, report:
Step complete. Remaining steps: Run
/implement-issue <ISSUE>to continue.
main directly. All work goes through branches and PRs.flutter analyze before pushing.AskUserQuestion to gather configuration. Never assume defaults silently.