# Code quality audit

> Code quality audit is an open-source agent skill for developer tools. Audits code for smells, error-handling gaps and maintainability issues with fixes. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/tansuasici/claude-code-kit/tree/main/.claude/skills/code-quality-audit
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** code-quality-audit
- **Collection:** https://github.com/tansuasici/claude-code-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides the agent through a read-only code-quality review of a codebase. It maps the project's stack and source directories first, then looks for complexity, duplication, coupling and naming smells, along with swallowed errors, over-broad catches, missing cleanup and user-facing error leaks. Complexity findings are weighted against existing coverage reports rather than judged on size alone, and the skill asks before running any test suite or installing tools.

The output is a severity-ranked report with file and line references for each finding, a metrics section and a list of positive patterns worth keeping. Changes are only made when the user explicitly asks for fixes. Unrelated issues are logged for later instead of acted on.

It works as a general pass and is meant to be used without project-specific rules. Architecture questions and test-quality measurement are handled by other skills, and security issues are flagged for separate review.

## When your agent uses it

> Audit code for smells, error-handling gaps, and maintainability issues with actionable fixes. Use for a general code-quality pass not tied to project rules. To audit against the project's golden-principles.yaml use /quality-audit instead.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/code-quality-audit)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/code-quality-audit)

## Features

- **Code smell detection:** Scans for complexity, duplication, coupling and naming problems in source files.
- **Error handling review:** Checks for swallowed errors, over-catching, missing cleanup and leaked internal errors.
- **Coverage-weighted complexity:** Weights complex functions by existing coverage reports instead of flagging size alone.
- **Maintainability assessment:** Rates readability, testability, changeability and consistency across the codebase.
- **Severity-ranked report:** Groups findings into critical, major and minor tables with file and line references.
- **Report-only by default:** Reads code without editing it unless the user explicitly asks for fixes.

## Good for

- Review a codebase for code smells before a refactoring sprint
- Assess the health of a project you are onboarding to
- Run a general code-quality pass before a code review
- Find accumulated technical debt after rapid development
- Check error handling for swallowed or over-broad exceptions

## Install

### Claude Code

This skill ships in the `claude-code-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add tansuasici/claude-code-kit
/plugin install claude-code-kit@claude-code-kit
```

Or copy only this skill to `~/.claude/skills/code-quality-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-quality-audit &&
cp -R "$tmp/.claude/skills/code-quality-audit" ~/.claude/skills/code-quality-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-quality-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-quality-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-quality-audit &&
cp -R "$tmp/.claude/skills/code-quality-audit" ~/.agents/skills/code-quality-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-quality-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-quality-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-quality-audit &&
cp -R "$tmp/.claude/skills/code-quality-audit" ~/.cursor/skills/code-quality-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-quality-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/tansuasici/claude-code-kit.git --path .claude/skills/code-quality-audit
```

Or copy the folder to `~/.gemini/skills/code-quality-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-quality-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-quality-audit &&
cp -R "$tmp/.claude/skills/code-quality-audit" ~/.copilot/skills/code-quality-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-quality-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/tansuasici/claude-code-kit.git
```

Then copy `claude-code-kit/.claude/skills/code-quality-audit` into your agent's skills folder as `code-quality-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Code quality audit change my code?

No. It is report-only by default and only modifies files when the user explicitly asks to implement, fix, apply or refactor.

### When should I use this instead of /quality-audit?

Use this skill for a general code-quality pass not tied to project rules. To audit against the project's golden-principles.yaml, the skill description directs you to /quality-audit.

### Does Code quality audit run my test suite or install tools?

It does not generate coverage on its own. It reads existing coverage reports if present. Running the test suite or installing an analysis tool is opt-in and requires asking first.

### Which languages does Code quality audit support?

The skill text does not list supported languages. Its optional computed-metrics tools cover Clojure, Java, Go, TypeScript, Rust and Python, but not C#.

### How do I install Code quality audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-quality-audit to use it in all your projects, or to .claude/skills/code-quality-audit in one project. Or install the claude-code-kit plugin, which includes it: /plugin marketplace add tansuasici/claude-code-kit, then /plugin install claude-code-kit@claude-code-kit.

### Does Code quality audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code quality audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code quality audit?

The closest alternatives to Code quality audit are Code review, Thermo nuclear code quality review, Go code review, Code review expert and Code quality analysis.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Code review](https://ai-powered.com/skills/code-review-kripu77): Code review is an open-source agent skill for developer tools.
- [Thermo nuclear code quality review](https://ai-powered.com/skills/thermo-nuclear-code-quality-review-michael-denyer): Thermo nuclear code quality review is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Code quality analysis](https://ai-powered.com/skills/code-quality-analysis): Code quality analysis is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-arjunrajlaboratory): Review is an open-source agent skill for developer tools.
- [Code review and quality](https://ai-powered.com/skills/code-review-and-quality): Code review and quality is an open-source agent skill for developer tools.
- [Quality audit](https://ai-powered.com/skills/quality-audit): Quality audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-quality-audit
