Skip to content

Commit 75c4a74

Browse files
committed
Squashed commit of the following:
commit de76807241bff35af08c042266eb927665e68cb3 Author: Tianzhou <t@bytebase.com> Date: Sun Feb 22 21:20:35 2026 -0800 chore: add PR creation step to fix-bug skill Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> commit 272fc92 Author: Tianzhou <t@bytebase.com> Date: Sun Feb 22 21:15:31 2026 -0800 Add search_path support in TOML config for PostgreSQL non-public schemas Closes #243 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8a44ac4 commit 75c4a74

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

.claude/skills/fix-bug/SKILL.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: Use when given a GitHub issue URL or number to investigate and impl
77

88
## Overview
99

10-
Systematic workflow for turning a GitHub issue into a working fix: fetch context, reproduce, locate root cause, plan fix, implement, verify.
10+
Systematic workflow for turning a GitHub issue into a working fix: fetch context, reproduce, locate root cause, plan fix, implement, verify, and create a PR.
1111

1212
## Workflow
1313

@@ -23,8 +23,9 @@ digraph fix_bug {
2323
plan [label="5. Plan the fix\n(EnterPlanMode for non-trivial)"];
2424
implement [label="6. Implement fix"];
2525
verify [label="7. Verify fix\n(run tests, check repro)"];
26+
pr [label="8. Create PR\n(commit, push, gh pr create)"];
2627
27-
fetch -> analyze -> locate -> reproduce -> plan -> implement -> verify;
28+
fetch -> analyze -> locate -> reproduce -> plan -> implement -> verify -> pr;
2829
}
2930
```
3031

@@ -86,6 +87,50 @@ For simple fixes (single function, clear root cause): proceed directly.
8687
- Run new test (if written in step 4): confirm it passes
8788
- Review the diff: does it address the issue fully?
8889

90+
### 8. Create PR
91+
92+
Once the fix is verified:
93+
94+
1. **Create a branch** (if not already on one):
95+
```bash
96+
git checkout -b fix/issue-123
97+
```
98+
99+
2. **Commit changes** with a descriptive message referencing the issue:
100+
```bash
101+
git add <changed-files>
102+
git commit -m "Fix: <short description>
103+
104+
Closes #123"
105+
```
106+
107+
3. **Push and create the PR**:
108+
```bash
109+
git push -u origin fix/issue-123
110+
gh pr create --title "Fix: <short description>" --body "$(cat <<'EOF'
111+
## Summary
112+
<What was broken and how this fixes it>
113+
114+
## Changes
115+
<Bullet list of changes>
116+
117+
Closes #123
118+
119+
## Test plan
120+
- [ ] Existing tests pass
121+
- [ ] New test covers the bug scenario (if applicable)
122+
EOF
123+
)"
124+
```
125+
126+
4. **Return the PR URL** to the user.
127+
128+
Key points:
129+
- Reference the issue number with `Closes #N` so it auto-closes on merge
130+
- Keep the PR title concise (under 70 characters)
131+
- Include a test plan in the PR body
132+
- If the issue is from another repo, link it manually in the body
133+
89134
## Parsing Issue References
90135
91136
| Input | How to fetch |

0 commit comments

Comments
 (0)