Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/prompts/review/01-command.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ toward the end of the diff.

Only flag issues you are confident about. A false positive wastes more of the
author's time than a missed minor issue. If you are unsure, leave it out.

When reviewing unfamiliar APIs or newer library versions, verify your claims
before commenting. Use `Read` to check `node_modules` exports or lock file
versions, or `WebFetch` to check official docs. Do not rely solely on training
data for API surface knowledge — it may be outdated.
2 changes: 1 addition & 1 deletion .github/prompts/review/02-red-flags.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Red flags to watch for in diffs

- **Hallucinated APIs** — method calls or library functions that don't exist in the dependency version used
- **Hallucinated APIs** — method calls or library functions that don't exist in the dependency version used. Before flagging, verify against the actual package (check `node_modules`, `package-lock.json`, or fetch the package's docs/changelog). Your training data may be stale — if a dependency version is newer than you expect, check rather than assume.
- **Phantom dependencies** — imports for packages not in `package.json` / `requirements.txt` / equivalent manifest
- **Silent failure** — try-catch returning fallbacks instead of propagating, optional chaining on data that should always exist, defaults on internal state hiding upstream bugs
- **Over-abstraction** — unnecessary design patterns or enterprise-grade abstractions for simple problems
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ runs:
COMMON_TOOLS="mcp__github__get_pull_request,mcp__github__get_pull_request_files,mcp__github__get_pull_request_diff,mcp__github__get_pull_request_reviews,mcp__github__list_pull_request_comments,mcp__github__create_pending_pull_request_review,mcp__github__add_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__create_and_submit_pull_request_review,mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr edit:*),Bash(gh label *),Bash(gh api:*)"

if [ "$MODE" = "review" ]; then
TOOLS="$COMMON_TOOLS,Read,Grep,Glob,Bash(git diff:*),Bash(git log:*),Bash(git blame:*),Bash(gh issue create:*),Bash(gh pr create:*)"
TOOLS="$COMMON_TOOLS,Read,Grep,Glob,WebFetch,Bash(git diff:*),Bash(git log:*),Bash(git blame:*),Bash(gh issue create:*),Bash(gh pr create:*)"
else
TOOLS="$COMMON_TOOLS,Bash(gh issue comment:*),Bash(gh issue view:*)"
fi
Expand Down