Run the fetch script to retrieve PR metadata, review comments, and changed
files:
python3 \
"$(git rev-parse --show-toplevel)/.skills/scripts/FetchPrComments.py" \
<number> [--repo owner/repo]
- Extract the PR number from the user's message.
- Pass
--repo owner/repoif the user specifies a repo or says "upstream"
(for SpECTRE, upstream is sxs-collaboration/spectre).
After fetching the PR data:
- Summarize the review before starting work: list the total number of
threads, how many are unresolved, and the files affected.
- Prioritize UNRESOLVED threads -- these are the comments that still need
to be addressed. Start with unresolved, non-outdated threads first.
- Group by file -- work through comments file-by-file rather than jumping
around, since multiple threads often apply to the same file.
- Use the diff hunk context -- each inline comment includes the surrounding
diff hunk so you can understand exactly what code the reviewer is referring
to.
- Check OUTDATED threads -- these refer to code that has since changed.
Verify whether the concern still applies before making changes.
- Skip resolved threads unless the user specifically asks about them.