Learn From PR Feedback Command
Analyzes patterns in pull request feedback from code review tools (CodeRabbit, SonarQube) and human reviewers, then recommends configuration updates to catch similar issues locally before PR submission.
Procedure
- Authentication Check — Verifies GitHub CLI auth
- PR Discovery — Fetches recent PRs (default: 5 merged)
- Feedback Collection — Gathers review comments, PR reviews, discussion comments; categorizes as automated or human
- Pattern Analysis — Groups recurring themes: code style, logic errors, security concerns, performance, testing gaps, documentation
- Configuration Discovery — Searches for .editorconfig, linter configs, CLAUDE.md, identifies enforcement gaps
- Recommendations — Proposes specific config updates, prioritizing earliest intervention point
- Summary Report — Copy-paste-ready configuration snippets by file type
Key Principle
"This command only suggests changes, never modifies files" — focuses on issues appearing multiple times across PRs.