Code Quality

Automatically triggered when setting up Python code quality tooling, configuring linters, adding type checking, improving code standards, running code quality checks, setting up pre-commit hooks, or auditing Python code for quality issues. Applies when discussing: ruff setup, mypy configuration, code formatting, linting rules, cyclomatic complexity, dead code detection, file length limits, pre-commit hooks, Makefile targets for quality, uv-based workflows, pyproject.toml configuration, or "check my code quality". Also triggers on: "set up linting", "add type checking", "configure ruff", "forma

38 stars 4 forksSoftware Development Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add sam-dumont/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sam-dumont/claude-skills --skill code-quality
Manual install
git clone --depth 1 https://github.com/sam-dumont/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/plugins/code-quality/skills/code-quality ~/.claude/skills/code-quality

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Python Code Quality Skill

This skill sets up and enforces comprehensive Python code quality using a battle-tested
toolchain. Based on real production Makefiles using `uv` for fast dependency management.

## Philosophy

- **Fast feedback**: Use `uv run` and `uvx` for instant tool execution — no global installs
- **Layered checks**: Lint → Format → Typecheck → Complexity → Dead Code → File Length
- **CI-ready**: Every check is a Makefile target that returns non-zero on failure
- **Opinionated defaults**: Start strict, relax only with justification

---

## Tool Stack

| Tool | Purpose | Config Location |
|------|---------|-----------------|
| **ruff** | Linting + formatting (replaces flake8, isort, black) | `pyproject.toml` |
| **mypy** | Static type checking | `pyproject.toml` |
| **xenon** | Cyclomatic complexity gating | CLI flags |
| **vulture** | Dead code detection | CLI flags |
| **pre-commit** | Git hook automation | `.pre-commit-config.yaml` |

---

## Setup: pyproject.toml Configuration

When setting up code quality for a Python project, add these sections to `pyproject.toml`:
Read the full skill on GitHub

Details

Skill name
code-quality
Path
plugins/code-quality/skills/code-quality/SKILL.md
License
MIT
Repo updated
3 November 2026

FAQ

What does the Code Quality skill do?

Automatically triggered when setting up Python code quality tooling, configuring linters, adding type checking, improving code standards, running code quality checks, setting up pre-commit hooks, or auditing Python code for quality issues. Applies when discussing: ruff setup, mypy configuration, code formatting, linting rules, cyclomatic complexity, dead code detection, file length limits, pre-commit hooks, Makefile targets for quality, uv-based workflows, pyproject.toml configuration, or "check my code quality". Also triggers on: "set up linting", "add type checking", "configure ruff", "forma

How do I install the Code Quality skill?

Claude Code plugin: /plugin marketplace add sam-dumont/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Code Quality popular?

It lives in sam-dumont/claude-skills, which has 38 GitHub stars and 4 forks.

Related skills

Advanced Code Quality

38

sam-dumont/claude-skills

Use when going beyond basic linting to enforce advanced Python code quality gates. Triggers on: cognitive complexity, code duplication detection, architectural enforcement, import boundaries, dependency hygiene, test quality beyond coverage, mutation testing, docstring coverage, type coverage, AI-generated code detection, AI slop detection, complexipy, jscpd, import-linter, deptry, diff-cover, mutmut, interrogate, sloppylint, refurb, pylint design checks, wily, radon maintainability, pytestarch, griffe, "bulletproof Python", "tighten quality gates", "advanced quality checks", "beyond ruff and

Software Development

Code Security

38

sam-dumont/claude-skills

Automatically triggered when running security scans, auditing code for vulnerabilities, checking dependencies for CVEs, reviewing code for security issues, or hardening Python applications. Applies when discussing: security audit, vulnerability scan, bandit, pip-audit, dependency vulnerabilities, OWASP, injection, path traversal, secrets detection, insecure deserialization, auth bypass, or "is this code secure?". Also triggers on: "run security checks", "find vulnerabilities", "security review", "check for CVEs", "audit dependencies", "security lint", "pen test this code", "harden this applica

Security

Outcome Engineering

38

sam-dumont/claude-skills

Use when starting significant features, evaluating build-vs-buy decisions, reframing failed approaches, or when the user mentions "outcome engineering", "o16g", "outcome-first", "what's the outcome", or "frame this as an outcome". Also use proactively when a task description focuses on implementation ("build X", "add Y") without defining the desired outcome or verification criteria.

Finance & Crypto

Code Walkthrough

36

dariia-m/my_claude_skills

Interactive step-by-step code walkthrough for entire codebases (single or multi-file). Explains each section's logic, assumptions, and data transformations, then RUNS the code and shows actual output - dataframe dimensions, head(), model summaries, plot descriptions, file previews. Pauses after each section for questions. Use whenever the user says "walk through", "explain", "go through", "break down", "review", "understand", "what does this code do", "help me understand this script", "annotate", "explain step by step", or "walk me through the codebase". Also trigger if someone just points at

Software Development11

Brainstorming Ideas Into Designs

43

obra/clank

Interactive idea refinement using Socratic method to develop fully-formed designs

Software Development26

Commenting Intent

43

obra/clank

Comment WHY code exists and non-obvious decisions, not WHAT code does (mechanics)

Software Development26

Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.