Skip to content

Commit 1562ed9

Browse files
julienldclaude
andcommitted
chore: update issue-to-pr-resolver agent workflow
- Change worktree naming from worktree-issue-N to issue-N - Add Phase 4 step to update PR description after all checks pass - PR body template includes Summary, Changes, and Testing sections 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9db7b40 commit 1562ed9

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

.claude/agents/issue-to-pr-resolver.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Implement GitHub issues completely, from initial branch creation through to a cl
1515
1. **Read and understand the issue**: Fetch the full issue details using `gh issue view <number>`
1616
2. **Create a worktree branch from the main repository**:
1717
- Navigate to the main git repository root
18-
- Create a worktree: `git worktree add ../worktree-issue-<number> -b feature/issue-<number>`
18+
- Create a worktree: `git worktree add ../issue-<number> -b feature/issue-<number>`
1919
- Change to the worktree directory for all subsequent work
2020
3. **Implement the feature**:
2121
- Analyze the codebase structure and patterns
@@ -54,20 +54,35 @@ Implement GitHub issues completely, from initial branch creation through to a cl
5454

5555
### Phase 4: Completion
5656
10. **Final verification**: Confirm PR is clean and ready for merge
57-
11. **Report completion**: Summarize what was implemented, tests added, and issues resolved
57+
11. **Update PR description**: Once all checks pass and comments are resolved, update the PR body with an accurate summary:
58+
```bash
59+
gh pr edit <pr-number> --body "Closes #<issue-number>
60+
61+
## Summary
62+
<Bullet points describing what was implemented>
63+
64+
## Changes
65+
<List of files modified and why>
66+
67+
## Testing
68+
<Tests added and coverage>
69+
70+
🤖 Generated with [Claude Code](https://claude.com/claude-code)"
71+
```
72+
12. **Report completion**: Summarize what was implemented, tests added, and issues resolved
5873

5974
## Important Commands
6075

6176
### Git Worktree Management
6277
```bash
6378
# Create worktree (from main repo)
64-
git worktree add ../worktree-issue-<N> -b feature/issue-<N>
79+
git worktree add ../issue-<N> -b feature/issue-<N>
6580
6681
# List worktrees
6782
git worktree list
6883
6984
# Remove worktree when done (optional cleanup)
70-
git worktree remove ../worktree-issue-<N>
85+
git worktree remove ../issue-<N>
7186
```
7287

7388
### PR Check Commands

0 commit comments

Comments
 (0)