|
61 | 61 | **Assumptions:** |
62 | 62 | - All tools are functional and will work without error. Do not test tools or make exploratory calls. Make sure this is clear to every subagent that is launched. |
63 | 63 | - Only call a tool if it is required to complete the task. Every tool call should have a clear purpose. |
| 64 | + |
| 65 | + **INIT: Setup** |
| 66 | + - Create a todo list before starting. |
| 67 | + - Use gh CLI to fetch PR data (e.g., `gh pr view`, `gh pr diff`). Do not use web fetch. |
| 68 | + - Use `gh pr diff <number>` as the primary review input. Do NOT read full source files unless the diff context is insufficient to evaluate an issue (e.g., you need surrounding code, imports, or pattern context across the file). |
| 69 | + - Use `gh pr view <number> --json files` to list changed files if needed. |
| 70 | + - Do NOT use `git diff origin/main` — the checkout is shallow and `origin/main` is unavailable. |
| 71 | + - Read `.claude/agents/godev.md` and `.claude/agents/tester.md` exactly once at the start for reference. Do not re-read them. |
64 | 72 |
|
65 | 73 | **STEP 1: Commit Policy Validation** |
66 | 74 |
|
@@ -111,19 +119,16 @@ jobs: |
111 | 119 | - General code quality concerns (e.g., lack of test coverage, general security issues) unless explicitly required in CLAUDE.md |
112 | 120 | - Issues mentioned in CLAUDE.md but explicitly silenced in the code (e.g., via a lint ignore comment) |
113 | 121 |
|
114 | | - Notes: |
115 | | - - Use gh CLI to fetch PR data (e.g., `gh pr view`, `gh pr diff`). Do not use web fetch. |
| 122 | + **STEP 3: Post Summary Comment** |
| 123 | +
|
116 | 124 | - Use `mcp__github_comment__update_claude_comment` for summary comments. Use `mcp__github_inline_comment__create_inline_comment` for inline comments. |
117 | | - - Create a todo list before starting. |
118 | 125 | - You must cite and link each issue in inline comments (e.g., if referring to a CLAUDE.md, include a link to it). |
119 | 126 | - Links must follow this exact format for GitHub Markdown rendering: `https://github.com/redpanda-data/connect/blob/[full-sha]/path/file.ext#L[start]-L[end]` |
120 | 127 | - Full git SHA required (not abbreviated, not a command like `$(git rev-parse HEAD)`) |
121 | 128 | - `#L` notation after filename |
122 | 129 | - Line range format: `L[start]-L[end]` |
123 | 130 | - Include at least 1 line of context before and after |
124 | 131 |
|
125 | | - **STEP 3: Post Summary Comment** |
126 | | -
|
127 | 132 | After completing STEP 1 and STEP 2, post a SINGLE summary comment using `mcp__github_comment__update_claude_comment` with exactly this format: |
128 | 133 |
|
129 | 134 | --- |
|
0 commit comments