# Quality audit

> Quality audit is an open-source agent skill for developer tools. Audits a codebase against project-specific golden principles and records a quality score. 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/quality-audit
- **Repository:** https://github.com/tansuasici/claude-code-kit
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** 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 checks a codebase against a project's golden-principles.yaml file. Each principle in that file defines a deterministic detection rule, using grep, ripgrep or a shell command, along with a severity and a fix hint. The agent runs those rules, filters out likely false positives such as matches in comments, test fixtures and ignored paths, and groups the remaining findings by severity.

The result is a weighted score out of 100, with per-principle counts and file-and-line locations. The report is written into a managed block in docs/QUALITY_SCORE.md, and content outside that block is preserved. By default the skill only reports and does not change source code; edits happen only when the user explicitly asks for fixes.

The project needs a golden-principles.yaml at the repo root or under .claude/, and the skill expects a docs folder to exist for the report file. A starter YAML template is included in the skill folder. For generic code smell checks without a rules file, the skill points to a separate code-quality-audit skill.

## When your agent uses it

> Audit the codebase against the project's golden-principles.yaml — runs deterministic detection rules and updates docs/QUALITY_SCORE.md. Use to enforce project-specific principles. For a generic smell pass with no rules file use /code-quality-audit.

## 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/quality-audit)
- [License: MIT](https://github.com/tansuasici/claude-code-kit/tree/HEAD/.claude/skills/quality-audit)

## Features

- **Deterministic rule detection:** Runs grep, ripgrep or shell-command rules defined per principle in a YAML file.
- **Weighted quality score:** Converts findings into a score out of 100 using severity-based weights per match.
- **False positive filtering:** Skips matches in comments, test fixtures and configured ignore paths before reporting.
- **Severity-grouped findings:** Lists each violation with file and line, matched snippet and a suggested fix.
- **Managed report block:** Writes results into docs/QUALITY_SCORE.md while keeping hand-edited content intact.
- **Report-only by default:** Leaves source files untouched unless the user explicitly requests fixes.

## Good for

- Measure how far the codebase has drifted from the project's documented principles
- Check for hand-rolled helpers that should use shared utility packages
- Find route handlers that import database clients directly
- Run a scheduled daily or weekly drift check and track the score over time
- Turn drift findings into a refactoring backlog

## 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/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/quality-audit &&
cp -R "$tmp/.claude/skills/quality-audit" ~/.claude/skills/quality-audit &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/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/quality-audit &&
cp -R "$tmp/.claude/skills/quality-audit" ~/.agents/skills/quality-audit &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/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/quality-audit &&
cp -R "$tmp/.claude/skills/quality-audit" ~/.cursor/skills/quality-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/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/quality-audit
```

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

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/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/quality-audit &&
cp -R "$tmp/.claude/skills/quality-audit" ~/.copilot/skills/quality-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/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/quality-audit` into your agent's skills folder as `quality-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Quality audit can run?

It needs a golden-principles.yaml file at the repo root or in .claude/. If the file is missing, the skill prints a guide pointing to a starter template instead of inventing rules.

### Does Quality audit change my code?

No. By default it is report-only. It edits code only when the user explicitly asks to implement, fix, apply or refactor. Its one file write is to docs/QUALITY_SCORE.md.

### Will Quality audit create a docs folder if one is missing?

No. If docs/ does not exist, the report is printed to stdout instead and the skill does not create the folder.

### How is the score calculated?

Critical matches weigh 5 points, major 2 and minor 1. The total is subtracted from 100 and clamped between 0 and 100.

### How does it differ from a generic code quality audit?

It only reports drift that a project's own YAML rules can detect. The generic smell check is a separate skill, code-quality-audit.

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

Copy the skill folder from GitHub to ~/.claude/skills/quality-audit to use it in all your projects, or to .claude/skills/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 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 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 Quality audit?

The closest alternatives to Quality audit are Code quality audit, Validate skills, Constitution, Scoring and CLI audit.

## Where this comes from

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

## Alternatives

- [Code quality audit](https://ai-powered.com/skills/code-quality-audit): Code quality audit is an open-source agent skill for developer tools.
- [Validate skills](https://ai-powered.com/skills/validate-skills): Validate skills is an open-source agent skill for developer tools.
- [Constitution](https://ai-powered.com/skills/constitution): Constitution is an open-source agent skill for developer tools.
- [Scoring](https://ai-powered.com/skills/scoring-xiaolai-2): Scoring is an open-source agent skill for developer tools.
- [CLI audit](https://ai-powered.com/skills/cli-audit): CLI audit is an open-source agent skill for developer tools.
- [Project review](https://ai-powered.com/skills/project-review): Project review is an open-source agent skill for developer tools.
- [Documentation audit](https://ai-powered.com/skills/documentation-audit): Documentation audit is an open-source agent skill for developer tools.
- [Review skills](https://ai-powered.com/skills/review-skills): Review skills is an open-source agent skill for developer tools.

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