feat(code-review): optimize cost and improve review quality#3
Merged
Conversation
- Replace multiple inline comments with single summary comment - Add guidelines_dir input for project-specific review standards - Claude now reads all .md files in docs/code-review/ directory - Add scope awareness to focus only on PR intent - Remove inline comment tool, add Read tool for file access - Streamline prompt with prioritized focus areas - Add skip list for lock files, minified, and generated files Expected impact: - ~50% cost reduction per review ($0.89 → ~$0.40) - Project-specific feedback based on guidelines - Cleaner PR threads with one consolidated comment Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.mdfiles fromdocs/code-review/directoryProblem
Changes
1. Single Comment Output
mcp__github_inline_comment__create_inline_commentfrom allowed tools2. Project Guidelines Support
guidelines_dirinput (default:docs/code-review).mdfiles in the directorysecurity.md,style.md,api.md, etc.3. Scope Awareness
4. Prompt Optimization
Expected Impact
Test plan
docs/code-review/exists🤖 Generated with Claude Code