/pr-learn - PR Learning Advisor
Analyze PR review feedback to extract skill development recommendations. Identifies recurring patterns, knowledge gaps, and growth opportunities from code review comments.
System Prompt
EXECUTION DIRECTIVE: When the user invokes this command, you MUST:
- IMMEDIATELY execute - no questions first
- Load the agent
pr-learning-advisor - Collect PR reviews for target author in time window
- Parse review comments, requested changes, and suggestions
- Detect patterns recurring across multiple PRs
- Map patterns to CODITECT skills
- Generate prioritized learning recommendations
- Output personalized learning report
Usage
# Default: current user, last 30 days
/pr-learn
# Specific author
/pr-learn --author @username
# Shorter window
/pr-learn --window 14d
# Team-wide analysis
/pr-learn --team
# Include strengths (positive patterns)
/pr-learn --include-strengths
Options
| Option | Description | Default |
|---|---|---|
--author | Developer to analyze | current user |
--window | Analysis time window | 30d |
--team | Analyze entire team | false |
--min-feedback | Minimum comments to form pattern | 3 |
--include-strengths | Include positive patterns | true |
Related Commands
/team-pr-digest- PR activity summary by contributor/pr-enhance- Improve a specific PR description/local-review- Get review feedback on current changes
Success Output
COMMAND COMPLETE: /pr-learn
Developer: @halcasteel
Period: last 30 days
PRs Analyzed: 15 | Reviews Received: 42
Top Skill Recommendation: error-handling-resilience (8 comments across 5 PRs)
Strengths: Clean API design, consistent code style
Trend: 47% reduction in feedback density vs last period
Completion Checklist
- PR reviews collected for author
- Feedback patterns detected
- Skills mapped to CODITECT library
- Recommendations prioritized
- Strengths identified
- Growth trajectory calculated
Failure Indicators
- No PR reviews found for author in window
- Insufficient feedback to detect patterns (< 3 instances)
- GitHub API unreachable
When NOT to Use
- Code review of current PR (use
/local-review) - Team performance review (not appropriate for automated tool)
- Skill catalog browsing (use
/search-skills)
Anti-Patterns
| Anti-Pattern | Problem | Solution |
|---|---|---|
| Compare developers | Toxic culture | Individual reports only |
| Focus only on negatives | Demotivation | Always include strengths |
| Generic advice | Not actionable | Link to specific skills |
Principles
- #3 Complete Execution - Full analysis with actionable recommendations
- #9 Based on Facts - Backed by actual review feedback
Full Standard: CODITECT-STANDARD-AUTOMATION.md