From superpowers
Execute task groups from GitHub issue plan and create pull requests - reads issue, parses groups, executes tasks directly, creates PR linking back to issue
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers:execute-with-prsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Execute task group from GitHub issue plan and create pull request for human review.
Execute task group from GitHub issue plan and create pull request for human review.
Core principle: Each task group becomes a PR for independent review and merge.
Announce at start: "I'm using the execute-with-prs skill to execute group [N] from issue #[number]."
Before using this skill:
plan-to-issue)using-git-worktrees first)gh CLI installed and authenticatedCheck required context:
# Check gh CLI
gh --version
# Check in git worktree
git worktree list
# Verify issue exists
gh issue view [issue_number] --json title,body
# Fetch issue content
issue_body=$(gh issue view [issue_number] --json body --jq '.body')
Extract plan section from issue body (between ## Plan heading and next heading).
Split plan on --- markers:
Determine which group to execute:
Announce: "Executing group [N] tasks: [task_titles]"
Execute each task in the group directly:
After completing all tasks in the group:
# Generate PR title from group summary
title="Group [N]: [concise summary of changes]"
# Generate PR body
body="Implements tasks from #[issue_number]
## Changes
[bulleted list of tasks completed]
## Testing
[test commands from plan verification section]"
# Create PR
gh pr create \
--title "$title" \
--body "$body" \
--base main
Capture PR number and URL.
Output:
Group [N] executed successfully.
PR created: #[pr_number]
URL: [pr_url]
Review the PR and provide feedback as comments.
When ready to address feedback, say: "Address feedback on #[pr_number]"
| Error | Action |
|---|---|
| Issue not found | Verify issue number, check repo |
| No task groups in plan | Plan format error, needs --- markers |
| Group number invalid | List available groups, ask which to execute |
| Executor fails | Report error, ask whether to retry or investigate |
| Tests fail after execution | Report failures, don't create PR |
| PR creation fails | Show gh error, check branch/permissions |
user: "Execute group 1 from #42"
claude: "I'm using the execute-with-prs skill to execute group 1 from issue #42."
claude: [Reads issue #42, parses groups]
claude: "Executing group 1 tasks: Database schema, User model"
claude: [Executes tasks directly]
claude: [Verifies implementation]
claude: [Creates PR #15]
claude: "Group 1 executed successfully.
PR created: #15
URL: [url]
Review the PR and provide feedback as comments."
user: "Execute next group from #42"
claude: [Reads issue #42]
claude: [Checks PRs: #15 merged, execute group 2]
claude: "I'm using the execute-with-prs skill to execute group 2 from issue #42."
claude: [Continues as above]
Feedback handling is NOT part of this skill. Human initiates:
user: "Address feedback on #15"
claude: "I'm using the receiving-code-review skill to address feedback."
claude: [Uses receiving-code-review skill]
#[number])Called by:
Requires:
plan-to-issue - Creates source issueusing-git-worktrees - Provides isolated workspacePairs with:
receiving-code-review - Addresses PR feedback (human-initiated)verification-before-completion - Final validationnpx claudepluginhub mikeyobrien/superpowersCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.