Skip to content
Skill

Quality audit

Audits a codebase against project-specific golden principles and records a quality score

Quality audit is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Quality audit

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (13 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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):

/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:

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Quality audit 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.

More from tansuasici/claude-code-kit

  1. Audits UI code against WCAG 2.1 AA for semantics, keyboard use, contrast and ARIA

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Audits a codebase's structure for SOLID violations, coupling and module boundary issues

    • Open source
    • 6 GitHub stars
    • Developer tools
  3. Lists the skills, agents, hooks and modules installed in a kit-enabled project

    • Open source
    • 6 GitHub stars
    • Developer tools
  4. Audits code for smells, error-handling gaps and maintainability issues with fixes

    • Open source
    • 6 GitHub stars
    • Developer tools
  5. Guides the agent to write and extend a project's golden-principles.yaml rule file

    • Open source
    • 6 GitHub stars
    • Developer tools
  6. Finds unused functions, dead imports, orphan files and unreachable branches in a codebase

    • Open source
    • 6 GitHub stars
    • Developer tools