一键导入
execute-issues
Execute a list of GitHub issues sequentially. Scans issues upfront, refines as needed, implements each one, creates PRs, and merges them in order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute a list of GitHub issues sequentially. Scans issues upfront, refines as needed, implements each one, creates PRs, and merges them in order.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Refine and plan a GitHub issue for implementation. Reads the issue, explores the codebase, creates a UX mockup if needed, writes a step-by-step implementation plan, and updates the issue body.
Conduct a structured bug investigation and post-mortem analysis. Traces the root cause of production bugs, verifies deployment status, analyzes logs, identifies guardrail gaps, and produces actionable artifacts (bug fix issue + guardrail updates).
Create or update a pull request. Use when the user wants to create a PR, submit changes for review, or merge their work. Handles git operations, tests, CI monitoring, and PR creation.
Add a feature notification to announce new features, improvements, or bug fixes to users. Use when the user wants to broadcast a change, add a notification, or announce a new feature after completing work on a PR.
| name | execute-issues |
| description | Execute a list of GitHub issues sequentially. Scans issues upfront, refines as needed, implements each one, creates PRs, and merges them in order. |
You are executing a list of GitHub issues sequentially. The argument is a space-separated list of issue numbers (e.g., /execute-issues 340 341 342).
Before implementing anything, scan ALL listed issues upfront to assess readiness.
For each issue number provided, run gh issue view <number> and check:
## Implementation Plan section?Issues without an ## Implementation Plan section must NOT be autonomously refined. This is a hard gate.
Classification rules:
/refine./refine — the plan quality depends on human judgment for non-trivial work.For issues that have an implementation plan, check if the plan is stale:
## Implementation Plan section.git log --oneline --since="$(gh issue view <number> --json updatedAt -q .updatedAt)" -- <file1> <file2> ... to check if any referenced files were modified after the plan was written.Present a summary table to the user:
| Issue | Title | Has Plan? | Trivial? | Stale? | Action |
|-------|-------|-----------|----------|--------|--------|
| #340 | ... | Yes | No | No | Ready to execute |
| #341 | ... | No | No | N/A | BLOCKED — needs /refine first |
| #342 | ... | Yes | No | Yes | STALE — files changed since plan was written |
| #343 | ... | No | Yes | N/A | Ready (trivial, no plan needed) |
/refine on them first, or confirm you'd like to skip them."Wait for the user's response before continuing to Phase 2.
Each issue is executed in its own sub-agent (using the Task tool with subagent_type: "general-purpose"). This gives each issue a fresh context window, preventing context exhaustion when executing many issues.
IMPORTANT: Issues must still run sequentially — wait for the sub-agent to complete and return its result before launching the next one.
For EACH issue in the provided order:
Run gh issue view <number> to understand the requirements at a high level. Note:
Use the Task tool to launch a sub-agent with the following configuration:
subagent_type: "general-purpose"
description: "Execute issue #<number>"
The prompt to the sub-agent MUST include ALL of the following context so it can work autonomously. Use this as a template (replace placeholders with actual values):
You are implementing GitHub issue #NUMBER end-to-end. Work autonomously — do not ask the user any questions.
Issue Details: PASTE_FULL_GH_ISSUE_VIEW_OUTPUT_HERE
Instructions:
Refine If Needed: EITHER "Run the /refine NUMBER skill first to create an implementation plan. If /refine asks clarifying questions, use context from the issue body and codebase to answer with your best judgment." OR "Skip — this issue already has an implementation plan."
Create a Worktree: From the main repo directory, run:
cd MAIN_REPO_DIR git checkout main && git pull git worktree add ../praxis-note-issue-NUMBER -b feat/issue-NUMBER-SHORT_DESCRIPTION cd ../praxis-note-issue-NUMBERAll implementation work must be done inside this worktree directory.
Implement: Follow the implementation plan step by step. Write the code, create tests as specified, and ensure everything compiles.
Functional Verification: Before creating the PR, manually verify the feature works by running the dev stack and using browser automation to exercise the primary user flow. For UI features, this means: navigate to the feature, interact with it (click, type, toggle), and verify the expected result appears in the DOM. If the feature does not work as expected, fix it before proceeding.
Create PR and Merge: Run the /pr skill to create a PR, run tests, monitor CI, address review comments, and merge. Override these /pr steps:
- /pr Step 3 (Broadcast): EITHER "Run /broadcast automatically (no user prompt) — this is a user-facing change." OR "Skip broadcast — this is a minor/internal change."
- /pr Step 11 (Merge Approval): Merge immediately without waiting for user approval. Do NOT ask the user. Note: Step 10 (Pre-Merge Verification) is NON-SKIPPABLE — all PR checkboxes, acceptance criteria, and review comment acknowledgments must be verified before merge regardless of autonomous mode.
Pre-Merge Verification (after /pr completes CI and reviews but before merge is final):
- Verify ALL checkboxes in the PR body are checked (
[x]) — test plan items and any other checklists- Verify ALL acceptance criteria on the linked GitHub issue are checked off
- Verify ALL review comments (CodeRabbit, Copilot, any reviewer) have been acknowledged with a 👍 reaction or a reply
- If any of these are incomplete, address them before the merge proceeds. This is a hard gate — do not merge with unchecked boxes or unacknowledged comments.
Verify and Clean Up: After merge, confirm the PR state with
gh pr view --json state,number,url. Then clean up the worktree:cd MAIN_REPO_DIR git worktree remove ../praxis-note-issue-NUMBER git pullReport Back: When done, report a single summary line with: issue number, PR number, PR URL, and status (Merged/Failed). If you created a broadcast notification, mention that too.
Critical Rules:
- Do NOT ask the user any questions. Work fully autonomously.
- If tests or CI fail, fix and retry. Only report failure if you are truly stuck after multiple attempts.
- Broadcast decisions and merge approvals are autonomous — no user prompts.
When the sub-agent returns:
"Issue #<number> complete. Moving to issue #<next>." or "Issue #<number> complete. All issues finished."After ALL issues are complete, present a final summary table:
| Issue | Title | PR | Status | Broadcast |
|-------|-------|----|--------|-----------|
| #340 | ... | #N | Merged | Yes |
| #341 | ... | #N | Merged | Skipped (minor bug fix) |
| #342 | ... | #N | Merged | Yes |
Include links to each merged PR.
Task tool, giving it a fresh context window. The main agent orchestrates and tracks results.git worktree add) branching off the latest main. The main repo stays on main at all times. Worktrees are removed after merge./refine asks a clarifying question, answer with best judgment from the issue body and codebase. Only escalate to the user if genuinely undecidable.