Skip to content

Commit 3026c55

Browse files
committed
update
1 parent 65bb77c commit 3026c55

2 files changed

Lines changed: 6 additions & 14 deletions

File tree

.claude/CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## Project Overview
44
Rust library for NP-hard problem reductions. Implements computational problems with reduction rules for transforming between equivalent formulations.
55

6+
## Skills
7+
When resolving an issue with pull request, please use [issue-to-pr](skills/issue-to-pr.md) skill to convert the issue into a pull request with a plan.
8+
69
## Commands
710
```bash
811
make help # Show all available targets

.claude/skills/issue-to-pr.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ description: Use when you have a GitHub issue and want to create a PR with an im
77

88
Convert a GitHub issue into an actionable PR with a plan that auto-triggers Claude execution.
99

10-
## Usage
11-
12-
```
13-
/issue-to-pr <issue-number-or-url>
14-
```
15-
1610
## Workflow
1711

1812
```dot
@@ -24,15 +18,13 @@ digraph issue_to_pr {
2418
"Research references" [shape=box];
2519
"Write plan file" [shape=box];
2620
"Create branch and PR" [shape=box];
27-
"PR triggers [action]" [shape=doublecircle];
2821
2922
"Receive issue number" -> "Fetch issue with gh";
3023
"Fetch issue with gh" -> "Check the rules to follow";
3124
"Check the rules to follow" -> "Verify completeness";
3225
"Verify completeness" -> "Research references";
3326
"Research references" -> "Write plan file";
3427
"Write plan file" -> "Create branch and PR";
35-
"Create branch and PR" -> "PR triggers [action]";
3628
}
3729
```
3830

@@ -156,16 +148,15 @@ git commit -m "Add plan for #<number>: <title>"
156148
# Push
157149
git push -u origin issue-<number>-<slug>
158150

159-
# Create PR with [action] at the BEGINNING
160-
gh pr create --title "Fix #<number>: <title>" --body "[action]
151+
# Create PR
152+
gh pr create --title "Fix #<number>: <title>" --body "
161153
162154
## Summary
163155
<Brief description from brainstorming>
164156
165157
Closes #<number>"
166158
```
167159

168-
**CRITICAL:** The PR body MUST start with `[action]` on the first line. This triggers automated plan execution.
169160

170161
## Example
171162

@@ -181,17 +172,15 @@ All required info is present. I'll create the plan...
181172
182173
[Writes docs/plans/2026-02-09-independentset-to-qubo.md]
183174
[Creates branch, commits, pushes]
184-
[Creates PR with body starting with "[action]"]
175+
[Creates PR]
185176
186177
Created PR #45: Fix #42: Add IndependentSet → QUBO reduction
187-
The [action] trigger will automatically execute the plan.
188178
```
189179

190180
## Common Mistakes
191181

192182
| Mistake | Fix |
193183
|---------|-----|
194184
| Issue template incomplete | Ask contributor to fill in missing sections before proceeding |
195-
| `[action]` not at start | PR body must BEGIN with `[action]` |
196185
| Including implementation code in initial PR | First PR: plan only |
197186
| Generic plan | Use specifics from the issue |

0 commit comments

Comments
 (0)