Analyze and fix a GitHub issue end-to-end with plan, branch, tests, and draft PR
End-to-end GitHub issue resolver that analyzes issues, creates a plan, implements fixes with tests, and opens a draft PR. Use when you want an automated workflow from issue to PR with proper branching and testing.
/plugin marketplace add sjungling/claude-plugins/plugin install workflow@claude-pluginsissue-numberAnalyze and fix GitHub issue #$ARGUMENTS.
gh issue view "$ARGUMENTS" --json number,title,body,url,labels,assignees,state,author,createdAt,updatedAtgh issue view "$ARGUMENTS"git branch --show-currentgit status -sbgh pr list --state open --search "$ARGUMENTS in:title,body" --json number,title,url,headRefName,authorAnalysis and Clarification (use subagent)
Plan (propose and wait for confirmation)
gh issue comment $ARGUMENTS --edit-last --body-file /dev/null 2>/dev/null || true (to get template if available)/tmp/claude/issue-comment-$ARGUMENTS.md with the concise plan summarygh issue comment $ARGUMENTS --body-file /tmp/claude/issue-comment-$ARGUMENTS.mdBranch management
Code search and implementation
Tests and local verification
package.json exists: run npm run check:all and npm test if available.uvx pytest and ruff if configured.go test ./....Quality gates
Commit
PR (draft) with Problem/Solution format
/tmp/claude/pr-body-issue-$ARGUMENTS.md:
## Problem
[Describe what's broken or missing]
## Solution
[Explain what changed and why]
## Testing
[How to test these changes]
Fixes #$ARGUMENTS
gh pr create --draft --title "<type>(<scope>): <subject> (#$ARGUMENTS)" --body-file /tmp/claude/pr-body-issue-$ARGUMENTS.md