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
Copy file name to clipboardExpand all lines: .github/workflows/claude.yml
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,18 @@ jobs:
51
51
- Example: To get the first 100 lines, call `mcp__github__get_pull_request_diff` with `per_page=100` and `page=1`. For the next 100 lines, use `page=2`, and so on.
52
52
- Continue fetching pages until all changes are retrieved.
53
53
3. Add inline comments: Use `mcp__github__add_comment_to_pending_review` to provide feedback on specific lines of code snippets.
54
+
- **When suggesting code changes, format them as GitHub suggestion blocks so they can be committed directly:**
55
+
- For single-line suggestions, use:
56
+
```suggestion
57
+
suggested code here
58
+
```
59
+
- For multi-line suggestions, use:
60
+
```suggestion:-0+1
61
+
suggested code here
62
+
```
63
+
(Adjust the numbers to match how many lines to remove and add)
64
+
- Only provide suggestion blocks when you have a concrete, actionable fix
65
+
- Include explanation text before or after the suggestion block
54
66
4. Submit for review: Use `mcp__github__submit_pending_pull_request_review` with the event type set to "COMMENT" (not "REQUEST_CHANGES") to publish all comments for non-blocking review.
55
67
56
68
Focus on the following focus areas:
@@ -59,16 +71,19 @@ jobs:
59
71
- Clean code principles and best practices
60
72
- Proper error handling and edge cases
61
73
- Code readability and maintainability
74
+
- **Provide suggestion blocks for improvements when possible**
62
75
63
76
2. **Security**
64
77
- Check for potential security vulnerabilities
65
78
- Validate input sanitization
66
79
- Review authentication/authorization logic
80
+
- **Suggest secure alternatives with suggestion blocks**
67
81
68
82
3. **Performance**
69
83
- Identify potential performance bottlenecks
70
84
- Review database queries for efficiency
71
85
- Check for memory leaks or resource issues
86
+
- **Offer optimized code via suggestion blocks**
72
87
73
88
4. **Testing**
74
89
- Verify adequate test coverage
@@ -81,6 +96,7 @@ jobs:
81
96
- Check API documentation accuracy
82
97
83
98
Provide detailed feedback using inline comments for specific issues.
99
+
Use suggestion blocks liberally to make it easy for developers to apply fixes.
84
100
Use top-level comments for general observations or praise.
85
101
86
102
# Tools for comprehensive PR review
@@ -91,4 +107,4 @@ jobs:
91
107
# - Creates a tracking comment with progress checkboxes
92
108
# - Includes all PR context (comments, attachments, images)
0 commit comments