From workflow
Extracts GitHub PR review comments via scripts with GitHub CLI and jq, then generates Markdown best practices docs in .claude/best-practices/. Useful for initial setup or updating coding standards from reviews.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:best-practices-extractorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Extract coding best practices from PR review comments and codebase analysis to generate `.claude/best-practices/` documentation.
Extract coding best practices from PR review comments and codebase analysis to generate .claude/best-practices/ documentation.
All outputs are saved to .claude/pr-review-comments/.
For regular updates - fast and tracks state:
cd plugin/skills/best-practices-extractor
bash scripts/incremental_update.sh OWNER REPO_NAME
First run does full extraction; subsequent runs fetch only new PRs.
Output: .claude/pr-review-comments/{repo}_inline_comments.ndjson
For first-time setup or comprehensive analysis:
bash scripts/extract_pr_comments.sh REPO_NAME
Output: .claude/pr-review-comments/{repo}_inline_comments.ndjson
Organize extracted comments by directory structure:
bash scripts/sort_comments_by_filetree.sh .claude/pr-review-comments/{repo}_inline_comments.ndjson
Output: .claude/pr-review-comments/sorted/
After extracting comments:
.claude/best-practices/ files.claude/best-practices/
├── README.md # Index
├── naming-conventions.md
├── error-handling.md
├── type-safety.md
├── testing.md
└── ...
Each guideline should include:
## [Number]. [Title]
**Guideline:** [Clear statement]
**Why:** [Impact explanation]
**Example:**
```typescript
// Good
{example}
// Bad
{counter_example}
Source: PR #{number}
## Prerequisites
- **GitHub CLI (`gh`)**: Authenticated - check with `gh auth status`
- **jq**: JSON processor - check with `jq --version`
## Integration
This skill **generates** best practices. The `code-reviewer` agent and `/4_review` command **validate** against them.
Workflow:
1. Extract PR comments (this skill)
2. Analyze and generate `.claude/best-practices/`
3. Reviews automatically validate against best practices
## Additional Resources
- **`references/default-categories.md`** - Example category definitions
- **`references/scripts-guide.md`** - Detailed script documentation
npx claudepluginhub itamarzand88/claude-code-agentic-engineering --plugin workflowGuides code review practices, highlighting common issues and areas for improvement. Activates when reviewing pull requests or code changes.
Performs thorough pull request reviews with parallel agents for bugs, security issues, guideline compliance, and error handling. Provides confidence-scored feedback and batched GitHub comments.
Provides code review guidelines on checks to perform, constructive feedback techniques, and comment standards for PRs and critiques.