A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A Claude Code skill that extracts engineering best practices from PR review history.
A pipeline that extracts generalizable best practices from GitHub PR review threads, validates them against the live codebase, and synthesizes them into a curated library with full provenance. The library can be compiled into automated review rules for tools like Cursor's Bugbot.
For detailed architecture and design rationale, see the companion blogpost.
repo scope for PR comments).pyyaml (see pyproject.toml).# 1. Copy the skill into your target repo
cp -r skills/ /path/to/your-repo/.claude/skills/mine-best-practices/
# 2. Configure
cd /path/to/your-repo/.claude/skills/mine-best-practices/
cp config.example.yaml config.yaml
# Edit config.yaml: set github_repo and scopes for your codebase
Then invoke the skill from Claude Code:
/mine-best-practices --since 2024-06-01 --scope backend
The skill orchestrates the full pipeline — fetching threads, launching parallel extraction/validation/synthesis subagents, and building the library. See SKILL.md for the complete workflow and all invocation options.
All repo-specific settings live in config.yaml. See config.example.yaml for the full reference.
| Field | Required | Description |
|---|---|---|
github_repo | yes | Full repo path (e.g., "my-org/my-repo") |
scopes | yes | Named path prefixes for filtering threads and routing rules |
scopes[].name | yes | Scope name used in --scope flag (e.g., "backend") |
scopes[].path_prefix | yes | File path prefix to match (e.g., "src/") |
scopes[].rules_target | no | Output path for compiled review rules |
default_scope | no | Default scope when none specified (default: "all") |
extraction_start_date | no | Earliest PR merge date for --full refresh (default: "2024-01-01") |
library_dir | no | Where threads, insights, and practices are stored (default: "code_insights") |
tmp_dir | no | Temporary working directory for batch files (default: "tmp") |
sections_output_dir | no | Where to write markdown section files (default: ".cursor/rules/sections") |
rules_dedup_file | no | Root rules file for dedup when building scope-specific rules (default: ".cursor/BUGBOT.md") |
The pipeline alternates between deterministic scripts (batching, aggregation, validation) and AI agent steps (extraction, validation, topic assignment, synthesis). Each stage pauses for human review before proceeding.
| Artifact | Path | Description |
|---|---|---|
| Threads | {library_dir}/threads.yaml | Raw PR review threads with metadata |
| Insights | {library_dir}/insights.yaml | Extracted insights with status tracking |
| Library | {library_dir}/library/*.yaml | Per-topic practices with PR provenance |
| Sections | Configured sections_output_dir | Markdown files for AI review tool consumption |
| Rules | Configured scopes[].rules_target | Scope-specific automated review rules |
The pipeline launches parallel subagents. Rough expectations per stage:
| Stage | Calls | Input |
|---|---|---|
| Extraction | ~1 per 30 threads | Thread batches |
| Validation | ~1 per 20 insights | Insight batches |
| Topic Assignment | 1-2 | All validated insights |
| Synthesis | 1 per topic | Per-topic insights |
For a repo with 5,000 review threads: ~170 extraction calls, ~25 validation calls, ~30 synthesis calls.
tmp/mining_{scope}_{date} first if you need a fresh run.Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
AI image generation skill for Claude Code -- Creative Director powered by Gemini
A Claude Code skill by Hao (駱君昊) that learns your Facebook voice and auto-posts to FB / IG / Threads / X with a 14-day c
Universal SEO skill for Claude Code. 25 sub-skills + 18 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, bac