advanced-code-quality

advanced-code-quality is a skill for Claude Code from sam-dumont/claude-skills. It costs 190 tokens per session (4,322 once invoked), scanned A, original, MIT.

A set of advanced checks for Python code quality beyond ordinary formatting and basic linting. It covers complexity, duplication, architecture, dependency hygiene, tests, documentation, types, and code modernization.

In plain words
What is it for?
Use it to enforce project quality gates, measure complexity and duplication, check imports and architecture, test whether code changes break expected behavior, and review generated Python code.
Why use it?
It helps catch code that passes basic checks but is difficult to maintain, duplicates existing logic, breaks architectural boundaries, or becomes harder to test and understand.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the advanced-code-quality plugin — 1 skill shipped together

Good fit Use it to enforce project quality gates, measure complexity and duplication, check imports and architecture, test whether code changes break expected behavior, and review generated Python code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sam-dumont/claude-skills/advanced-code-quality
Install

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.

Any agent
npx skills add sam-dumont/claude-skills --skill advanced-code-quality
Clone the repo
git clone --depth 1 https://github.com/sam-dumont/claude-skills

Made for: Claude Code.

Or install advanced-code-quality, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for advanced-code-quality

README.md
[![agentmods](https://agentmods.dev/badge/skills/sam-dumont/claude-skills/advanced-code-quality/github.svg)](https://agentmods.dev/skills/sam-dumont/claude-skills/advanced-code-quality)
Your own site
<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.

agentmods 80×15 button for advanced-code-quality

Your own site · 80×15
<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>
Per session 190 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 85e0892c5b93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

plugins/advanced-code-quality/skills/advanced-code-quality/SKILL.md · 509 lines

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

Read the full file on GitHub · 509 lines

Changes

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.

  1. 9d ago First seen · 509 lines · 190 tokens per session scan A 85e0892c5b93

Subscribe to this mod's changes

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.