code-quality
Skill531 starsChanged 3 months agoMITView on GitHub
Agents should invoke this skill for code reviews, linting/formatting setup, maintainability checks, complexity concerns, warning cleanup, coding standards, or quality gates in Rust, TypeScript, Python, shell, and mixed repos.
38 other projects use a version of this.
Adopted by
Most recently taken up by
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- hodstack/hodstacktheir own version, first seen Oct 1, 2026
- AhmedAbdelfattah0/AI-Skillstheir own version, first seen Sep 28, 2026
- notque/vexjoy-agenttheir own version, first seen Sep 26, 2026
- yogvidwankhede/vishwakarmatheir own version, first seen Sep 26, 2026
- mthines/agent-skillstheir own version, first seen Sep 25, 2026
Used with
Projects with it also use spring-boot, python and 5 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.
MindrallySkillspring-boot
Expert guidance for Spring Boot application development with best practices for RESTful APIs, testing, security, and deployment
Also in 3 projects that use this
rogue-dev-studioSkillpython
Python 3.13 with uv package manager via mise. Use when the project needs this capability or the user / team manifest asks for it. Use for specialized `python` work when listed in TEAM.yaml or explicitly requested.
Also in 3 projects that use this
0xSeroSkillsecurity
Also in 4 projects that use this
BlockSkilldebugging
Debugging guidelines and best practices
Also in 3 projects that use this
Microsoft AzureSkillgit-workflow
Squad branching model: dev-first workflow with insiders preview channel
Also in 3 projects that use this
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- piomin/claude-ai-spring-boot★ 1.3ksame name
- microsoft/winappCli★ 1.3ksame name
- notque/vexjoy-agent★ 424same name
- instructa/agent-skills★ 139same name
- hodstack/hodstack★ 70same name
- fagemx/edda★ 36same name
- georgekhananaev/claude-skills-vault★ 28same name
- sordi-ai/skill-everything★ 20same name
- PracticalSwan/agent-skills★ 18same name
- mindfortai/security-skills★ 16same name
28 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 repository53 other files it gives its agents.
- agentic-actions-auditorSkill
- agents-md-improverSkill
- agents-md-reviseSkill
- ai-slopSkill
- code-architectSkill
- code-explorerSkill
- codeqlSkill
- code-reviewerSkill
- code-reviewSkill
- design-patternsSkill
- differential-reviewSkill
- feature-devSkill
- fp-checkSkill
- frontend-designSkill
- hf-cliSkill
- hf-cloud-aws-context-discoverySkill
- hf-cloud-python-env-setupSkill
- hf-cloud-sagemaker-deployment-plannerSkill
- hf-cloud-sagemaker-iam-preflightSkill
- hf-cloud-sagemaker-production-defaultsSkill
- hf-cloud-serving-image-selectionSkill
- hf-memSkill
- huggingface-bestSkill
- huggingface-community-evalsSkill
- huggingface-datasetsSkill
- huggingface-gradioSkill
- huggingface-llm-trainerSkill
- huggingface-local-modelsSkill
- huggingface-lora-space-builderSkill
- huggingface-paper-publisherSkill
- huggingface-papersSkill
- huggingface-spacesSkill
- huggingface-tool-builderSkill
- huggingface-trackioSkill
- huggingface-vision-trainerSkill
- huggingface-zerogpuSkill
- insecure-defaultsSkill
- mcp-builderSkill
- paper-summarizerSkill
- sarif-parsingSkill
- security-reviewSkill
- security-threat-modelSkill
- semgrep-rule-creatorSkill
- semgrep-rule-variant-creatorSkill
- semgrepSkill
- sharp-edgesSkill
- skill-creatorSkill
- supply-chain-risk-auditorSkill
- train-sentence-transformersSkill
- transformers-jsSkill
- trl-trainingSkill
- variant-analysisSkill
- vuln-reportSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 37 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
All public items have rustdoc (#[warn(missing_docs)])
- Very specific: line 49
When using #[allow(...)], always add a comment explaining why
- Very specific: line 50
If no good explanation exists for #[allow(...)], fix the issue instead
- Very specific: line 71
Prefer const over let, never use var
- Distinctive: line 72
Use discriminated unions for state modeling
- Very specific: line 96
Use pathlib.Path over os.path
- Very specific: line 97
Use uv as package manager
- Very specific: line 98
No bare except: — always catch specific exceptions
- Distinctive: line 179
Use early returns / guard clauses
- Distinctive: line 181
Use strategy pattern for variant-dependent behavior
- Distinctive: line 205
When delivering a code review:
“Common” is measured: kept by at least 6 in 10 of the 37 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 Quality
Structured code review and quality enforcement across common tech stacks. Checklists, linting strategies, and metrics to keep codebases healthy.
Quick Start
Run a Code Quality Check
- Run static analysis: Linters, type checkers, formatters
- Review against checklist: Language-specific items below
- Check complexity metrics: Cyclomatic < 25, data flow < 25
- Report findings: Structured output with severity and recommendations
Linting Configurations
Rust — Clippy Config
Standard clippy configuration (in Cargo.toml or .clippy.toml):
[lints.clippy]
cognitive_complexity = "warn"
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
unwrap_used = "deny"Standard commands:
cargo fmt
cargo clippy --all-targets --all-features -- -D warnings
cargo check
cargo test -- --test-threads=1Key rules to enforce:
- No
.unwrap()in non-test code (use?or.expect("reason")) - All public items have rustdoc (
#[warn(missing_docs)]) #[must_use]on functions that return values that should be checked- When using
#[allow(...)], always add a comment explaining why - If no good explanation exists for
#[allow(...)], fix the issue instead
TypeScript — ESLint + Strict Mode
Recommended tsconfig.json strictness:
{
"compilerOptions": {
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"exactOptionalPropertyTypes": true
}
}Key rules to enforce:
- No
any— useunknownand type guards instead - No
// @ts-ignore— fix the type issue or use// @ts-expect-errorwith explanation - Prefer
constoverlet, never usevar - Use discriminated unions for state modeling
- Explicit return types on exported functions
Python — Ruff + Mypy
Recommended pyproject.toml:
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "ANN", "B", "A", "C4", "DTZ", "ISC", "PIE", "PT", "RET", "SIM", "TCH", "ARG", "PTH", "ERA"]
[tool.mypy]
strict = true
warn_return_any = true
warn_unreachable = trueKey rules to enforce:
- Type hints on all public functions and methods
- Docstrings on all public classes, functions, and methods
- Use
pathlib.Pathoveros.path - Use
uvas package manager - No bare
except:— always catch specific exceptions
Code Review Checklists
Universal Checklist (All Languages)
Correctness:
- Does the code do what it claims to do?
- Are edge cases handled (empty collections, null/None, zero, negative)?
- Are error paths handled gracefully?
- Are there any off-by-one errors?
Clarity:
- Can you understand the code without the PR description?
- Are variable/function names descriptive and consistent?
- Are complex sections commented with "why" (not "what")?
- Is the code self-documenting where possible?
Architecture:
- Does this change respect existing module boundaries?
- Is the change at the right abstraction level?
- Are dependencies reasonable (not pulling in a huge lib for one function)?
Testing:
- Are new functions/methods covered by tests?
- Do tests cover edge cases and error paths?
- Are tests readable and maintainable?
Security (flag for a security follow-up if concerns found):
- No hardcoded secrets or credentials
- User input is validated before use
- No SQL injection, XSS, or path traversal vectors
Rust-Specific Checklist
cargo fmtappliedcargo clippyclean (pedantic + nursery)- No
.unwrap()outside tests - Error handling uses
?with proper error types - Public items have rustdoc comments
#[allow(...)]includes explanatory comment- New functions have unit tests
- Cyclomatic complexity < 25 per function
- Data flow complexity < 25 per function
TypeScript/React-Specific Checklist
- No
anytypes - Strict mode compliance
- Components have clear prop types
- Hooks follow rules of hooks
- No unnecessary re-renders (check memo/callback usage)
- Bundle impact considered for new dependencies
Django/Python-Specific Checklist
- Type hints present on public interfaces
- Ruff + mypy clean
- No N+1 queries (use
select_related/prefetch_related) - Migrations are reviewed and reversible
- No business logic in views (use service layer)
Complexity Metrics
Cyclomatic Complexity
Measures the number of independent paths through code. Recommended threshold: < 25.
| Complexity | Risk Level | Action |
| 1-10 | Low | Simple, well-structured code |
| 11-20 | Moderate | Consider simplification if growing |
| 21-24 | High | Refactoring recommended |
| 25+ | Violation | Must refactor before merge |
How to reduce:
- Extract helper functions for each branch
- Use early returns / guard clauses
- Replace complex conditionals with lookup tables or pattern matching
- Use strategy pattern for variant-dependent behavior
Data Flow Complexity
Measures how many variables interact within a function. Recommended threshold: < 25.
How to reduce:
- Extract pure functions that take fewer parameters
- Group related parameters into structs/objects
- Split functions that transform data in multiple stages
Measurement Tools
| Language | Tool | Command |
| Rust | cargo clippy (cognitive_complexity) | Built into clippy config |
| TypeScript | eslint-plugin-sonarjs | Configure complexity rule |
| Python | radon | radon cc <file> -s -a |
| Python | ruff | Rule C901 (mccabe complexity) |
Review Output Format
When delivering a code review:
## Code Review: [PR/File/Module]
**Date:** YYYY-MM-DD
### Summary
[1-2 sentences: overall quality assessment]
### Findings
| # | Severity | File | Line(s) | Finding | Suggestion |
|---|---|---|---|---|---|
| 1 | High | src/app.rs | 45-67 | Cyclomatic complexity 28 (limit: 25) | Extract match arms into helper functions |
| 2 | Medium | src/ui.rs | 120 | Unwrap without context | Use `.expect("reason")` or `?` |
### Positive Observations
[What's well-written — acknowledge good code]
### Metrics
- Linter: [clean / N warnings]
- Tests: [pass / fail]
- Complexity: [within limits / violations noted above]
### Security Notes
[Items to flag for follow-up, if any]Integration
- Can run linters, formatters, and type checkers without asking, per the project's
AGENTS.md/CLAUDE.mdexecution policies. - Cross-reference: this pack's
code-reviewerskill for adversarial review of a focused change set, anddesign-patternsfor fixing complexity violations through better structure.
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.

