
learn-from-prs
Analyzes PR feedback from CodeRabbit, SonarQube, and reviewers to tune local checks before pushing.
- version
- 1.0.0
- GitHub stars
- 365
What it does
- Adds the
/learn-from-prscommand, which reviews past PR comments to find recurring issues - Covers feedback from CodeRabbit, SonarQube, and human reviewers in a single analysis pass
- Suggests configuration updates so the same issues get caught locally before a pull request opens
- Designed for teams that repeatedly receive the same review comments on their pull requests
Analyze PR feedback patterns from CodeRabbit, SonarQube, and reviewers to suggest config updates that catch issues locally
Add marketplace
/plugin marketplace add NTCoding/claude-skillzRun it inside Claude Code once, then install the plugin below.
Install
/plugin install learn-from-prs@claude-skillzRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceLearn From PR Feedback
Analyze feedback from recent PRs (CodeRabbit, SonarQube, developer comments) and suggest updates to project configuration to catch these issues before PR review.
Arguments
ARGUMENTS: $ARGUMENTS
--count <n>: Number of PRs to analyze (default: 5)--state <state>: PR state to fetch - merged, closed, or all (default: merged)
Procedure
Step 1: Verify Prerequisites
Check that gh CLI is authenticated:
gh auth status
If not authenticated, stop and inform user to run gh auth login.
Step 2: Fetch Recent PRs
gh pr list --state <state> --limit <count> --json number,title,url,mergedAt,closedAt
If no PRs found, report "No PRs found matching criteria" and stop.
Report:
Found X PRs to analyze:
1. #123: PR title
2. #124: PR title
...
Step 3: Collect All Feedback
For each PR, fetch ALL comments and reviews:
PR review comments (inline code comments):
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments --paginate
PR reviews (approval/request changes with body):
gh api repos/{owner}/{repo}/pulls/{pr_number}/reviews --paginate
Issue-style comments (general discussion):
gh api repos/{owner}/{repo}/issues/{pr_number}/comments --paginate
Extract from each comment:
body: The actual feedback textuser.login: Who wrote it (helps identify bots like CodeRabbit, SonarQube)pathandline: Where in code (if applicable)created_at: When
Categorize by source:
- Automated tools: Identify by user.login or body markers (CodeRabbit, SonarQube, Codacy, DeepSource, etc.)
- Human reviewers: Everything else
Report:
Collected feedback from PR #X:
- [Tool name]: Y comments
- Human reviewers: Z comments
Step 4: Analyze Patterns
Group all collected feedback and identify patterns:
Look for recurring themes such as:
- Code style and formatting issues
- Logic errors and edge cases
- Security concerns
- Performance issues
- Testing gaps
- Architecture and design feedback
- Documentation issues
- Language-specific best practices
For each pattern found:
- Count occurrences across all PRs
- Note specific examples (file, line, comment text)
- Identify the source (which tool/reviewer caught it)
Prioritize by:
- Frequency (appears in multiple PRs)
- Source consistency (caught by multiple reviewers/tools)
- Severity (security > bugs > style)
Report top patterns:
## Feedback Patterns Found
### High Frequency (appeared in 3+ PRs)
1. [Pattern]: [X occurrences] - caught by [sources]
Example: "[actual comment snippet]"
### Medium Frequency (appeared in 2 PRs)
...
### Single Occurrence (but notable)
...
Step 5: Discover Current Config
Search the project for ANY configuration files that might be relevant:
find . -maxdepth 3 -type f \( \
-name "CLAUDE.md" -o \
-name ".claude" -o \
-name ".*rc" -o \
-name ".*rc.json" -o \
-name ".*rc.yaml" -o \
-name ".*rc.yml" -o \
-name "*.config.js" -o \
-name "*.config.ts" -o \
-name "*.config.json" -o \
-name ".pre-commit-config.yaml" -o \
-name ".editorconfig" -o \
-name "Makefile" -o \
-name "pyproject.toml" -o \
-name "setup.cfg" -o \
-name "tox.ini" -o \
-name ".rubocop.yml" -o \
-name "Gemfile" -o \
-name "go.mod" -o \
-name "Cargo.toml" -o \
-name "composer.json" \
\) 2>/dev/null | head -50
Also check for .claude/ directory contents.
For each relevant config, note:
- What it currently enforces
- What gaps exist relative to PR feedback patterns
Report:
## Current Configuration
Found these config files:
- [file]: [brief summary of what it controls]
...
Step 6: Generate Recommendations
For each high-frequency pattern, propose specific config updates:
Format for each recommendation:
### [Pattern Name]
**Problem:** [What the PR feedback consistently caught]
**Frequency:** [X occurrences across Y PRs]
**Caught by:** [Tool names, specific reviewers]
**Examples from PRs:**
- PR #123: "[comment snippet]"
- PR #456: "[comment snippet]"
**Suggested fixes:**
**Option A: CLAUDE.md** (catches during Claude Code sessions)
```markdown
[Exact text to add to CLAUDE.md]
Option B: [Relevant tool/config for this project]
[Exact config to add, appropriate to the project's language/tooling]
Option C: Pre-commit hook (catches before commit)
[Hook configuration if applicable]
Recommended: [Which option and why]
### Step 7: Present Summary
```markdown
# PR Feedback Analysis Complete
## PRs Analyzed
- Count: X
- Date range: [oldest] to [newest]
- Feedback sources: [list tools and reviewer count]
## Key Findings
### Patterns That Should Be Caught Locally
| Pattern | Frequency | Top Source | Recommended Fix |
|---------|-----------|------------|-----------------|
| [name] | X times | [source] | [config type] |
## Detailed Recommendations
[Full recommendations from Step 6]
## Quick Wins (Copy-Paste Ready)
### Add to CLAUDE.md:
```markdown
[All CLAUDE.md additions consolidated]
Add to [other relevant config]:
[Additions consolidated by config file]
Analysis based on PRs: #X, #Y, #Z...
Run /learn-from-prs again after implementing changes to verify improvement
## Notes
- This command only suggests changes, never modifies files
- Focus recommendations on issues that appeared multiple times
- For single-occurrence issues, mention them but deprioritize
- Recommend fixes appropriate to the project's actual language and tooling
- When a pattern could be caught by multiple tools, recommend the earliest in the pipeline
- If feedback is vague or unclear, note it but don't force a recommendation
From the NTCoding/claude-skillz README
Claude Skills & Composable Personas
Reusable skills and composable system prompts for Claude Code.
Claude Launcher
Interactive system prompt and model selector for Claude Code.
Start Claude with your chosen persona and model in seconds:
# Interactive 2-step selection (persona → model)
$ cl
# Direct shortcuts (order-independent)
$ cl tdd opus # Super TDD Developer + Opus
$ cl opt sonn # Claude Code Optimizer + Sonnet
$ cl haik # Generalist Robot + Haiku (default persona + model)
# Model-only (uses generalist-robot)
$ cl sonn
$ cl opus
Features:
- Order-independent shortcuts:
cl tdd sonn=cl sonn tdd - Frontmatter-based shortcuts (add your own personas instantly)
- Automatic skill loading via @ references
- Conflict detection with prominent warnings
- Exports CLAUDE_PERSONA for status line display
Setup:
alias cl='python3 /path/to/claude-skillz/claude-launcher/claude-launcher.py'
# Optional: Install fzf for interactive fuzzy search
brew install fzf # macOS
See available personas below. You can add your own.
OpenCode Launcher
Generates OpenCode agents from the same personas used by Claude Launcher.
This repo contains system prompts that work with both Claude Code and OpenCode:
- Claude Launcher (
cl) - for Claude Code - OpenCode Launcher - generates agents for OpenCode
# Generate OpenCode agents (run once or after changing personas)
python3 opencode-launcher/generate-opencode-agents.py
# Then use OpenCode - agents appear in agent selector
opencode
See opencode-launcher/README.md for details.
Installation
Per-project
Add the plugin to your settings.json. See Claude Plugin Settings.
Globally Setup Marketplace
Local:
/plugin marketplace add file:///absolute/path/to/claude-skillz
GitHub:
/plugin marketplace add ntcoding/claude-skillz
Install Plugins
Interactive:
- Run
/plugin - Select
Browse and install plugins - Select
claude-skillzmarketplace - Select desired plugin
- Select
Install now
Direct:
/plugin install <plugin-name>@claude-skillz
Available Skills
Skills are reusable behavioral instructions loaded into personas. Load them with @ references in your system prompts.
Research & Evidence
- independent-research - Research-driven investigation. Never guess—validate solutions before presenting. Use WebFetch, WebSearch, testing.
- confidence-honesty - Force honest confidence assessment. Express confidence as percentage, explain gaps, validate assumptions before presenting.
Communication & Output
- concise-output - Signal-over-noise. Eliminate verbose phrases, prioritize density. Every word must carry information.
- critical-peer-personality - Professional, skeptical communication. Challenge constructively, propose instead of asking, coach rather than serve.
- questions-are-not-instructions - Answer questions literally. Don't interpret as hidden instructions. STOP after answering, let user decide.
Code & Design
- software-design-principles - Object calisthenics, dependency inversion, fail-fast error handling, feature envy detection, intention-revealing naming.
- lightweight-implementation-analysis-protocol - Trace execution paths before implementing. Create lightweight diagrams. Prevent wasted effort from assumptions.
- lightweight-design-analysis - Systematic design review across 8 dimensions: Naming, Object Calisthenics, Coupling & Cohesion, Immutability, Domain Integrity, Type System, Simplicity, Performance.
Development Processes
- tdd-process - Strict TDD state machine: red-green-refactor with 11 enforced rules. Meaningful failures, minimum implementations, full verification.
- writing-tests - Principles for effective tests. Naming conventions, assertion best practices, comprehensive edge case checklists (based on BugMagnet).
- observability-first-debugging - Systematic debugging. Add instrumentation to gather specific data. Evidence before hypothesis.
Workflows & Tools
- switch-persona - Mid-conversation persona switching without restart. Lists personas, reads file, switches immediately.
- lightweight-task-workflow - Task list state machine for multi-session work. Tracks status, prevents auto-advancement, enforces state transitions.
- create-tasks - Convert requirements into actionable tasks following a structured template. Engineering-ready work items.
Specialized
- data-visualization - Build charts, graphs, dashboards. Visual execution, technical implementation, perceptual foundations, chart selection, layout algorithms, library guidance.
- typescript-backend-project-setup - NX monorepo setup for TypeScript backend projects optimized for AI-assisted development.
System Prompts
12 pre-built personas ready to use via cl shortcuts:
Composability
System prompts use @ references to load skills. See CLAUDE.md for composability guidelines and launcher docs for creating custom personas.a
Plugins
- track-and-improve - Capture mistakes and improvement opportunities with automatic 5 whys root cause analysis
- automatic-code-review - Automatic semantic code review on session stop with configurable project-specific rules. Auto-initializes with default rules, supports any language.
Details
- Marketplace
- NTCoding/claude-skillz
- Source
- learn-from-prs
- Category
- Development
- Keywords
- pr-review, feedback, learning, code-quality, conventions
- Listed since
- Apr 7, 2026
More from NTCoding/claude-skillz
All 13Similar to learn-from-prs
More Code Review & Quality
automatic-code-reviewNTCoding/claude-skillz365 starsAutomatic code review on session stop with configurable rules
full-codebase-reviewNTCoding/claude-skillz365 starsPeriodic full codebase review using automatic-code-review rules. Reviews entire codebase, not just modified files.
code-reviewopenshift-eng/ai-helpers123 starsAutomated code quality review with language-aware analysis, pre-commit verification, and multi-specialist deep review
code-review-assistantrohitg00/awesome-claude-code-toolkit2.8K starsAutomated code review with severity levels and actionable feedback