Refactor code review prompt into modular policy and output files#142
Merged
Refactor code review prompt into modular policy and output files#142
Conversation
|
Automated Code Review | Commit: ee14428 | 2026-03-21T22:00:00Z | Status: Approved Findings: Critical: 0 | Important: 0 | Suggestion: 0 AGENTS.md Compliance: TypeScript strict mode: N/A | No any types: N/A | Biome: N/A | Tests: N/A | Workflow syntax: OK | Concatenation order: OK Summary: Clean structural refactoring splitting code-review-prompt.md into three focused files (orchestration, policy, output). Workflow correctly concatenates them in order. No functional changes to review logic; no security, correctness, or maintainability issues found. Automated review by Claude Code - View CI Run |
c5a3a30 to
11cd714
Compare
|
🎉 This PR is included in version 2.68.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Split the monolithic
code-review-prompt.mdinto three focused, composable files that are concatenated at runtime. This improves maintainability by separating concerns: orchestration logic, review policy, and output formatting.Changes
code-review-prompt.md: Removed inline policy and output sections; now serves as the orchestration layer with references to the split filescode-review-policy.md: New file containing review standards, severity definitions, multi-pass analysis methodology, confidence thresholds, and deduplication algorithmcode-review-output.md: New file containing comment formatting requirements, summary template structure, review decision logic, and final checklistclaude-code-review.yml: Modified workflow to concatenate all three prompt files into theREVIEW_PROMPTenvironment variable, preserving the complete review contextImplementation Details
https://claude.ai/code/session_01Y4tzQdiagBngNn4Ty9926c