code-review
Skill2 starsChanged 11 days agoMITView on GitHub
Comprehensive code review across style rubrics, spec compliance, and bug/security checklists with team preference learning and extensible multi-language support.
194 other projects use a version of this.
Adopted by
Most recently taken up by
- canonical/mirtheir own version, first seen Nov 30, 2026
- dotnet/machinelearningtheir own version, first seen Nov 30, 2026
- canonical/multipasstheir own version, first seen Nov 29, 2026
- Forget-C/Jellyfishtheir own version, first seen Nov 29, 2026
- ceph/cephtheir own version, first seen Nov 29, 2026
- dotnet/aspnetcoretheir own version, first seen Nov 29, 2026
Used with
Projects with it also use close-spec, design-with-images and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
PydanticSkilladd-new-model
Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry. Also use when Anthropic, OpenAI or Google deprecates or retires a model, to update the deprecation tables.
Also in 10 projects that use this
Microsoft AzureSkillazsdk-common-apiview-feedback-resolution
Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.
Also in 6 projects that use this
Microsoft AzureSkillazsdk-common-generate-sdk-locally
Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.
Also in 6 projects that use this
- +4 more from dzhng
- +3 more from Azure
Other versions194 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 194
- mattpocock/skills★ 335ksame name
- TheAlgorithms/Python★ 226ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- ggml-org/llama.cpp★ 137ksame name
- supabase/supabase★ 116ksame name
- storybookjs/storybook★ 92ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- vectorize-io/hindsight★ 64ksame name
184 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- devcontainer-bridgeSkill
- newsletter-summarySkill
- process-delegate-tasksSkill
- implement-taskSkill
- investigate-issueSkill
- request-featureSkill
- write-prdSkill
- evolution-logSkill
- flow-tracerSkill
- rcaSkill
- bond-etf-relative-valuationSkill
- equity-valuationSkill
- agent-rules-reviewerSkill
- skill-context-refactorSkill
- tech-deconstructorSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 186 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
Cognitive Classification: Read references/template.md as schema contract.
- Very specific: line 95
When a learned preference in memory/preferences.md contradicts a baseline style guide rule in references/<lang>.md:
- Distinctive: line 106
Confidence Threshold: Only report findings where you are >80% confident that a real defect or violation exists.
“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Review Skill
A standalone, composable skill that performs comprehensive code review across three dimensions: language-specific coding style enforcement via standardized rubrics, specification compliance against RFCs/Plans, and general bug/security/test verification. The skill learns project-specific team preferences from GitHub PR comments, supports polyglot pull requests, and provides an on-demand cognitive onboarding workflow for expanding to new languages.
1. Invocation Modes
The skill supports four invocation modes:
| Mode | Trigger | Input | Output |
| Internal | Invocation from implement-task or engineer agent | git diff + optional RFC/Plan path | Structured findings returned in-memory to caller |
| PR URL | User provides GitHub PR URL (gh pr review) | gh pr diff + optional RFC/Plan path | Summary review + inline comments posted to GitHub |
| Learn | User requests learning from PR comments | gh api PR review comments | Propose-then-confirm entries appended to preferences.md |
| Onboard | User asks to add or transform a language style guide | Raw upstream guide (URL, file, text) | Propose-then-confirm rubric written to references/<lang>.md |
Mode 1: Internal Mode (Pipeline Review)
- Diff Input: Capture local changes via
git diff --staged,git diff HEAD~1, orgit diff $(git merge-base HEAD main)..HEAD. - Spec Input: RFC or Plan path provided in prompt (e.g.,
docs/rfcs/rfc_feature.mdordocs/plans/plan_feature.md). - Output: Returns the formatted Markdown review directly to the calling agent or pipeline.
Mode 2: PR URL Mode (GitHub Native)
- Diff Input: Retrieve PR diff using GitHub CLI:
gh pr diff <pr_number> -R <owner/repo>. - Posting Review (Hybrid Model):
- Post the summary table review comment:
gh pr review <pr_number> -R <owner/repo> --comment --body "<summary_markdown>" - Post inline comments for HIGH and CRITICAL findings only:
gh api repos/{owner}/{repo}/pulls/<pr_number>/reviews \ -f event="COMMENT" \ -f body="## Code Review Summary: Style & Critical Findings" \ -f 'comments[][path]=path/to/file.go' \ -f 'comments[][line]=42' \ -f 'comments[][body]=[STYLE] R-GO-01: Use %w for error wrapping'
- Post the summary table review comment:
Mode 3: Learn Mode (Preference Memory)
- Fetch Comments: Query review comments on PR:
gh api repos/{owner}/{repo}/pulls/<pr_number>/comments \ --jq '.[] | {id, body, path, line: .original_line, user: .user.login}' - Learning Procedure:
- Filter out automated bot comments and extract human feedback.
- Classify feedback: distinguish enduring team preferences from one-off situational remarks.
- Formulate proposed entries conforming to
memory/preferences.mdstructure. - Present proposed rules to the user via a propose-then-confirm gate.
- Append confirmed rules to
.agents/skills/code-review/memory/preferences.md.
Mode 4: Style Guide Onboarding Mode (Language Expansion)
- Trigger: User asks to add, import, or transform a style guide for
<lang>(e.g., "Add Python style guide from<source>"). - Onboarding Procedure (5-Step SOP):
- Fetch & Ingest: Save raw guide to
sources/<lang>.mdwith header provenance (URL, commit/tag, date). - Strict Linter Exclusion: Omit mechanical formatting (indentation, line length, quote style) and simple AST checks (unused variables, import order) enforced by standard formatters/linters (
gofmt,prettier,ruff,eslint). Focus exclusively on semantic idioms, error contracts, resource safety, and concurrency boundaries. - Cognitive Classification: Read
references/template.mdas schema contract. Extract binary pass/fail rules intoR-<LANG>-xxand judgment-based guidelines intoC-<LANG>-xx. - Propose-Then-Confirm Gate: Present draft rubric to user for review in chat or an artifact.
- Write & Register: Upon confirmation, write to
references/<lang>.mdand register the extension in the registry below.
- Fetch & Ingest: Save raw guide to
2. Style Guide Selection & Polyglot Routing
Extension-to-Language Registry
| File Extensions | Language Key | Reference Path |
.go | golang | references/golang.md |
.ts, .tsx, .js, .jsx | typescript | references/typescript.md |
.py | python | references/python.md |
.rs | rust | references/rust.md |
.sql | sql | references/sql.md |
.sh, .bash | shell | references/shell.md |
Language Auto-Detection & Polyglot Partitioning
- Inspect file extensions across all changed files in the diff.
- For each detected language with a guide in
references/:- Load
references/<lang>.md. - Hunk Partitioning: Evaluate each changed file strictly against its matching language rubric (e.g. Go files against
references/golang.md, TypeScript files againstreferences/typescript.md). Never test rules of one language against another.
- Load
- For file extensions without a dedicated style guide, fall back to
references/common-review.mdand log:"No style guide available for
<ext>files. Applied common review checklist."
Reference & Memory Loading Order
- Load matching
references/<lang>.mdfiles for detected languages. - Load
references/common-review.md(language-agnostic bug, security, and test checklist). - Load
memory/preferences.md(learned project preferences). - Load target RFC or Plan document if supplied.
3. Runtime Preference Precedence Rules
When a learned preference in memory/preferences.md contradicts a baseline style guide rule in references/<lang>.md:
- Immutable Baseline: The style guide file (
references/<lang>.md) is never modified or overwritten on disk. - Runtime Precedence: During review evaluation (in memory), the agent adopts the preference over the baseline rule.
- Scoring Alignment: Code conforming to the project preference is scored as compliant.
- Audit Transparency: Note any active override in the review report:
Rule <ID> superseded at review time by project preference: <Preference Title>. - Reversibility: Deleting an entry from
preferences.mdrestores baseline rule enforcement immediately.
4. Confidence-Based Filtering
To eliminate review fatigue and noise, strictly apply these filtering rules:
- Confidence Threshold: Only report findings where you are >80% confident that a real defect or violation exists.
- Changed Code Only: Focus strictly on modified lines and immediate call sites. Do not flag pre-existing issues in untouched code unless they are CRITICAL security vulnerabilities.
- Convention Driven: Stylistic findings must cite a specific rubric rule (
R-<LANG>-xx) or learned preference. - Consolidation: Consolidate repetitive occurrences of the same issue into a single finding listing all affected locations.
5. Multi-Dimensional Review Process
Execute review across three distinct dimensions:
Dimension 1: Style Review (Scored)
- Rubric Rules (
R-<LANG>-xx): Strict binary pass/fail checks contributing to the numerical score: $$\text{Style Score} = \left(\frac{\text{Passed Rubric Rules}}{\text{Total Evaluated Rubric Rules}}\right) \times 100%$$ - Contextual Guidelines (
C-<LANG>-xx): Qualitative guidelines requiring engineering judgment, output as advisory notes.
Dimension 2: Spec Compliance (Optional)
- Extract discrete requirements from RFC/Plan and verify against diff:
✅ Implemented: Requirement fully met.⚠️ Partial: Incomplete edge-case handling or partial implementation.❌ Missing: Requirement specified in RFC/Plan but absent in diff.
Dimension 3: Bugs, Security & Tests
- Check against
references/common-review.md:- Security (CRITICAL): Hardcoded secrets, injection (SQL/command), XSS, path traversal, auth bypasses.
- Bugs (HIGH): Logic flaws, nil/null dereferences, race conditions, unhandled errors, resource leaks.
- Test Coverage (MEDIUM): Untested new execution branches, missing edge cases.
6. Verdict and Review Output Format
Approval Criteria
- Approve: 0 CRITICAL, 0 HIGH, style rubric pass rate >= 80%, spec compliance >= 90%.
- Warning: 0 CRITICAL, but HIGH issues exist or style pass rate < 80%.
- Block: 1+ CRITICAL issues found, or major spec requirements missing.
Output Structure
## Code Review: <PR / Branch Title>
### Style: <Passed>/<Total> rubric rules passed (<Score>%)
<!-- For polyglot PRs, show per-language breakdown: -->
- Go: 9/10 passed (90%)
- TypeScript: 5/6 passed (83%)
| Rule | Language | Severity | Verdict | Location |
|------|----------|----------|---------|----------|
| R-GO-01: Error Wrapping | Go | HIGH | ❌ | pkg/handler.go:42 |
| R-GO-09: Avoid Mutable Globals | Go | HIGH | ✅ | — |
| R-TS-01: No Unsafe Type Assertions | TypeScript | HIGH | ❌ | web/app.tsx:18 |
*Active Overrides:* Rule R-GO-04 superseded by project preference: Prefer errors.Wrap
### Spec Compliance: <RFC/Plan Path>
| Requirement | Status | Location |
|-------------|--------|----------|
| JWT authentication middleware | ✅ Implemented | auth/middleware.go:15 |
| Rate limiting (100 req/min) | ❌ Missing | — |
### Bugs & Security
| # | Severity | Category | File | Issue | Suggestion |
|---|----------|----------|------|-------|------------|
| 1 | CRITICAL | SECURITY | config.go:12 | Hardcoded API key | Move credential to environment variable |
| 2 | HIGH | BUG | store.go:88 | Potential nil pointer dereference | Add nil guard before dereferencing |
### Advisory Notes (Contextual, No Score Impact)
- C-GO-01: `pkg/handler.go:28` — Consider pointer receiver for large struct methods.
### Summary
| Severity | Count | Status |
|----------|:---:|:---:|
| CRITICAL | 1 | block |
| HIGH | 2 | warn |
| MEDIUM | 0 | pass |
| LOW | 0 | pass |
**Verdict**: ⛔ BLOCK — 1 CRITICAL issue must be resolved before merge.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

