# Code Quality Audit

> Execute internal code quality audits with local progress tracking and timestamped delta reports.

Code Quality Audit is a paid AI agent skill on Agensi by Artak Kolyan, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Artak Kolyan](https://www.agensi.io/creators/artak-kolyan)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/code-quality-audit
- Tags: code-review, python, static-analysis, refactoring, typescript

## About this skill

Maintaining code quality in large repositories is difficult when architectural drift and technical debt go unmonitored. This skill executes a deep, internal code quality audit across nine specific properties, ranging from architectural consistency to observability, without modifying your source code.

### What it does
- **Architectural Audit** verifies code adherence to in-repository architectural decisions and style guides.
- **Deduplication Engine** identifies both exact and near-duplicate code blocks that increase maintenance burden.
- **Concern Isolation** flags violations in separation of concerns and identifies non-pure functions.
- **Literal Extraction** detects hardcoded domain values that should be modularized.
- **Complexity Analysis** pinpointing units with high cognitive load or poor modularity.
- **Live Monitoring** serves a local progress page to track the audit status without polluting chat history.

### How it works
1. **Initialization** starts a local Python-based progress server and resolves the workspace path.
2. **Environment Check** detects project languages and identifies missing linting or analysis tools.
3. **Automated Analysis** runs internal scripts to collect tool output and scan the source tree.
4. **Report Generation** produces timestamped Markdown reports for each property in a dedicated audit folder.

### Frameworks & tools
The skill utilizes a suite of Python-based utility scripts including `progress.py`, `detect_languages.py`, `check_tools.py`, and `run_tools.py`. It integrates with standard language-specific static analysis tools and reads internal project guides for observability and architecture.

### Why this beats prompting it yourself
Manual prompts often result in vague suggestions or missed edge cases in large files. This skill follows a strict nine-point inspection protocol, maintains a delta baseline between runs to track new vs. existing issues, and provides specific "Why it is bad" justifications rooted in actual code logic.

### Use cases
- Auditing a legacy repository to prioritize refactoring efforts based on risk.
- Checking architectural compliance after a large feature merge.
- Finding near-duplicate logic that should be unified into a shared utility.
- Validating observability coverage against internal logging standards.

### Known limitations
Does not support creating tasks or tickets directly from reports. Requires user permission to install missing third-party analysis tools. Only reads source code and tool outputs, ignoring markdown documentation and comments.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Code Quality Audit skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which programming languages and AI agents is this skill compatible with?

The skill supports any environment where the agent has access to a local Python runtime and the project workspace. It is designed to work across major programming languages by detecting your specific project stack and leveraging relevant static analysis tools.

### How does this audit differ from simply asking an AI to review my code?

Unlike a standard prompt, this skill runs an internal multi-step pipeline that tracks progress via a local server and generates timestamped delta reports. It follows a strict nine-point inspection protocol to ensure consistency, whereas manual prompting often misses edge cases in large repositories.

### Will this skill automatically refactor my code or make changes to my files?

No, the skill operates in a strictly read-only mode regarding your source code. It scans your files and generates analysis reports in a separate audit folder, ensuring your codebase remains untouched while providing actionable insights.

### Can I track how my code quality improves over time using this skill?

The audit provides a "delta" report that compares current results against previous runs. This allows you to distinguish between long-standing technical debt and new issues introduced in recent commits or feature merges.

### Are there any specific technical requirements or permissions needed to run the audit?

The skill requires a Python environment to run its internal progress and analysis scripts. During the 'Environment Check' phase, it will notify you if specific third-party linting or analysis tools are missing and will request your permission before attempting to install them.

### What exactly is included in the purchase of the 'han code quality audit' skill?

You receive the full suite of Python-based utility scripts, including the progress server and language detection engines, along with the nine-point inspection protocol. This includes all necessary logic to generate the Markdown-based delta reports and architectural compliance audits.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
