You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace fixed sleep with CI poll loop (30s intervals, 15min max)
- Use gh pr merge --auto to avoid CI/merge race condition
- Detect existing PRs from previous runs and resume instead of re-plan
- Clean stale branches before starting a new issue
- Add batch-mode note: auto-approve sub-skill confirmation prompts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .claude/skills/meta-power/SKILL.md
+68-46Lines changed: 68 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ Batch-process open `[Model]` and `[Rule]` issues end-to-end: plan, implement, re
11
11
12
12
You are the **outer orchestrator**. For each issue you invoke existing skills and shell out to subprocesses. You never implement code directly — `make run-plan` does the heavy lifting in a separate Claude session.
13
13
14
+
**Batch context:** When invoking sub-skills (like `issue-to-pr`), you are running in batch mode. Auto-approve any confirmation prompts from sub-skills — do not wait for user input mid-batch.
15
+
14
16
## Step 0: Discover and Order Issues
15
17
16
18
```bash
@@ -20,13 +22,19 @@ gh issue list --state open --limit 50 --json number,title
20
22
21
23
Filter to issues whose title contains `[Model]` or `[Rule]`. Partition into two buckets, sort each by issue number ascending. Final order: **all Models first, then all Rules**.
22
24
25
+
**Check for existing PRs:** For each issue, check if a PR already exists:
26
+
```bash
27
+
gh pr list --search "Fixes #<number>" --state open --json number,headRefName
28
+
```
29
+
If a PR exists, mark the issue as `resume` — skip Step 1 (plan) and jump to Step 2 (execute) or Step 4 (fix loop) depending on whether the PR already has implementation commits.
30
+
23
31
Present the ordered list to the user for confirmation before starting:
24
32
25
33
```
26
34
Batch plan:
27
35
Models:
28
36
#108 [Model] LongestCommonSubsequence
29
-
#103 [Model] SubsetSum
37
+
#103 [Model] SubsetSum (has open PR #115 — will resume)
30
38
Rules:
31
39
#109 [Rule] LCS → MIS
32
40
#110 [Rule] LCS → ILP
@@ -46,6 +54,15 @@ For the current issue:
46
54
git checkout main && git pull origin main
47
55
```
48
56
57
+
**Check for stale branches:** If a branch `issue-<number>-*` exists with no open PR, delete it to start fresh:
58
+
```bash
59
+
STALE=$(git branch --list "issue-<number>-*"| head -1 | xargs)
0 commit comments