docs: add one-PR-one-concern rule to git conventions#281
Conversation
|
Claude finished @carlos-alm's task —— View job Reviewing PR #281Todo List:
🚨 CRITICAL VIOLATION: Scope Creep Anti-PatternThe Core ProblemThis PR perfectly demonstrates the scope creep problem it claims to solve. The branch is named What Actually Happened
This is exactly what good engineering practices prohibit. Each commit here should have been a separate PR. Phase 2: Configuration Changes ✅
Phase 3: Test Integrity
|
Greptile SummaryAdded a scope creep prevention rule to Git Conventions: each PR should address a single feature, fix, or refactor.
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 0ba8aab |
| @@ -170,6 +170,7 @@ Multiple Claude Code instances run concurrently in this repo. **Every session mu | |||
|
|
|||
| - Never add AI co-authorship lines (`Co-Authored-By` or similar) to commit messages. | |||
| - Never add "Built with Claude Code", "Generated with Claude Code", or any variation referencing Claude Code or Anthropic to commit messages, PR descriptions, code comments, or any other output. | |||
| - **One PR = one concern.** Each pull request should address a single feature, fix, or refactor. Do not pile unrelated changes into an existing PR — open a new branch and PR instead. If scope grows during implementation, split the work into separate PRs before pushing. | |||
There was a problem hiding this comment.
Ironic: this PR violates the very rule it introduces. The PR description claims to only add this documentation line, but actually includes:
- Removing 5 CLI commands (
explain,hotspots,manifesto,batch-query) - Adding a new
pathcommand - Fixing a reexports query bug in
queries.js - Adding 157 lines of new test code in
exports.test.js - Reordering imports in
mcp.js
This should have been split into separate PRs:
- Documentation rule only
- CLI consolidation refactor
- Bug fix for reexports
- New exports test coverage
There was a problem hiding this comment.
Fixed — the branch was rebased onto main and now only contains the single CLAUDE.md commit (0ba8aab). The extra changes you flagged were from inherited branch history before the rebase.
There was a problem hiding this comment.
Fixed — the branch was rebased onto main and now only contains the single CLAUDE.md commit (). The extra changes you flagged were from inherited branch history before the rebase.
7c35494 to
0ba8aab
Compare
|
Claude finished @carlos-alm's task —— View job Reviewing PR #281Todo List:
🎯 SIGNIFICANT IMPROVEMENT: Scope CorrectedRoot Cause AnalysisProblem Being Solved: Adding a development guideline to prevent scope creep in PRs Key ObservationThe automated reviews from both Greptile and previous Claude sessions were commenting on an earlier version of this PR that included multiple unrelated changes (CLI refactoring, bug fixes, new tests). However, the current state of the PR has been properly cleaned up to contain only:
Phase 2: Configuration Changes ✅
Phase 3: Test Integrity ✅
Phase 4: Code Quality ✅
Content AnalysisThe added rule at CLAUDE.md:173 states:
This is excellent guidance that will help prevent exactly the type of scope creep the previous reviewers identified. Final Recommendation
Meta-observation: This PR is now a perfect example of what the rule it introduces advocates for - a focused, single-concern change that's easy to review and understand. |
Summary
Test plan