Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sam-dumont/claude-skills --skill advanced-code-qualitygit clone --depth 1 https://github.com/sam-dumont/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sam-dumont/claude-skills/advanced-code-quality)<a href="https://agentmods.dev/skills/sam-dumont/claude-skills/advanced-code-quality"><img src="https://agentmods.dev/badge/skills/sam-dumont/claude-skills/advanced-code-quality/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sam-dumont/claude-skills/advanced-code-quality"><img src="https://agentmods.dev/badge/skills/sam-dumont/claude-skills/advanced-code-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00190 | $0.04322 |
| Opus 5 | $0.00095 | $0.02161 |
| Sonnet 5 | $0.00038 | $0.00864 |
| Haiku 4.5 | $0.00019 | $0.00432 |
Grade A, and why
advanced-code-quality scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 509 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Advanced Python Code Quality
Goes beyond the basic stack (ruff, mypy, xenon, vulture, pre-commit) to cover every remaining quality dimension. Each section maps a gap to specific tools with exact configuration and thresholds.
Core insight: AI-generated code doesn't need different tools — it needs tighter thresholds on existing tools.
Quick Reference: Tool Inventory
| Gap | Tool | Install | Threshold |
|---|---|---|---|
| Cognitive complexity | complexipy | pip install complexipy |
≤10 per function |
| Complexity trends | wily | pip install wily |
No regression vs base branch |
| Maintainability Index | radon mi | Already installed (via xenon) | MI ≥ 20 (rank A) |
| Code duplication | jscpd | npm install -g jscpd |
≤5% duplication |
| Pylint design checks | pylint | pip install pylint |
max-args=6, max-branches=10 |
| Modernization | refurb | pip install refurb |
Zero warnings |
| Custom lint rules | fixit | pip install fixit |
Project-specific |
| Architectural boundaries | import-linter | pip install import-linter |
Zero contract violations |
| Architecture tests | pytestarch | pip install pytestarch |
All tests pass |
| Dependency hygiene | deptry | pip install deptry |
Zero DEP001–DEP005 |
| Dependency conflicts | pipdeptree | pip install pipdeptree |
--warn fail |
| Diff coverage | diff-cover | pip install diff-cover |
≥95% on changed lines |
| Mutation testing | mutmut | pip install mutmut |
≥75% mutation score |
| Performance regression | pytest-benchmark | pip install pytest-benchmark |
≤10% regression |
| Docstring coverage | interrogate | pip install interrogate |
≥95% coverage |
| API breaking changes | griffe | pip install griffe |
Zero breaking changes |
| Type completeness | pyright | pip install pyright |
--verifytypes |
| Type bootstrap | MonkeyType | pip install MonkeyType |
N/A (dev tool) |
| AI hallucinated imports | sloppylint | pip install sloppylint |
Zero violations |
| Platform tracking | SonarCloud | Free for OSS | Sonar way quality gate |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 509 lines · 190 tokens per session scan A 85e0892c5b93
advanced-code-quality is a skill published in the GitHub repository sam-dumont/claude-skills (39 stars, last pushed 5mo ago), licensed MIT. It adds 190 tokens to every session and 4,322 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
autoreview
Pre-commit/ship code review: Codex default; optional Claude or Pi.
rework-rate
Measure and interpret PR rework rate — the emerging 5th DORA metric.
omh-code-review
This is a Hermes-native code-review workflow skill.
revdiff-plan
Review the last Codex assistant message (plan, analysis, or proposal) with inline annotations in a TUI overlay. Extracts the most recent response from Codex rollout files and opens it in revdiff for review and annotation. Activates on "revdiff-plan", "review plan with revdiff", "annotate plan", "review last response"…
code-reviewer
Code review specialist focused on patterns, bugs, security, and performance.
agent-teams-simplify-and-harden
Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…