# craft review

> A strict read-only quality gate that enforces complexity limits, SOLID principles, and design patterns.

craft review is a free AI agent skill on Agensi by Yamil Lanz, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Yamil Lanz](https://www.agensi.io/creators/yamil-lanz)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-12); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/craft-review
- Tags: code-review, typescript, static-analysis, refactoring, solid-principles

## About this skill

Standard AI coding assistants often provide vague suggestions without checking your specific team standards. This skill acts as a strict, read-only quality gate that enforces hard metrics and architectural principles on every pull request or file change. It eliminates the subjectivity of code reviews by measuring exact complexity, nesting depth, and SOLID violations.

### What it does
- **Hard Metric Validation** measures function length, cyclomatic complexity, nesting levels, and callback depth against defined thresholds.
- **Architectural Auditing** scans for SOLID principle violations and specific code smells at the diff boundary.
- **Pattern Enforcement** identifies missed opportunities for design patterns or flags speculative generality where patterns are applied without a trigger.
- **Automated Verdicts** issues a formal `APPROVED` or `CHANGES_REQUIRED` status based on the count of blockers and major findings.

### How it works
1. **Target Identification** analyzes specified files or runs `git diff` to determine the scope of the review.
2. **Contextual Analysis** reads callers and callees to ensure domain logic is separated from IO and infrastructure.
3. **Metric Calculation** performs static analysis to generate a report of lines, nesting, and complexity for every function.
4. **Gate Evaluation** checks findings against the gate rulebook and any user-provided acceptance criteria.

### Frameworks & tools
This skill works with any codebase where static analysis can be performed. It uses tools like `lint`, `tsc --noEmit`, and complexity analyzers to gather raw data before applying its internal logic.

### Why this beats prompting it yourself
Generic prompts often miss subtle architectural rot or fail to provide the exact line counts needed for a objective gate. This skill forces a structured output that cites specific rules, ensuring reviews are consistent, data-driven, and repeatable across different developers.

### Use cases
- **CI/CD Gating** to block merges that exceed complexity thresholds.
- **Refactoring Audits** to ensure new changes don't introduce technical debt.
- **Architectural Reviews** to verify SOLID compliance in domain layers.
- **Acceptance Verification** to confirm all feature requirements are met.

### Known limitations
Requires read access to the local file system and basic dev tools like git or compilers for full context. It does not perform auto-fixes or modify code.

## Requires

- Git

## 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 craft review skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does 'craft review' differ from standard AI coding assistants?

This skill acts as an automated, read-only quality gate that enforces strict metrics like cyclomatic complexity and SOLID principles to eliminate subjective or vague feedback during code reviews.

### Which programming languages and AI agents are supported?

The skill works with any codebase where static analysis can be performed and is compatible with major AI agents that have local file system and CLI access (e.g., git, compilers).

### Can this skill automatically refactor my code to fix the violations it finds?

No, this is a read-only auditing tool designed to prevent 'ghost changes.' It identifies blockers and issues verdicts, but it will never modify your source code.

### What is required to get this skill up and running in my environment?

Setup is minimal: once the skill is added to your agent, you simply provide read access to your local directory and ensure your standard build tools (like tsc or lint) are accessible.

### Can I customize the complexity thresholds and rules used for the review?

Yes, you can define specific thresholds for function length, nesting depth, and other metrics within your gate rulebook to match your team's specific coding standards.

### What exactly is included in the purchase of this skill?

The purchase includes the full 'craft review' skill logic, the gate rulebook framework, and access to all future version updates as new architectural patterns are added.

---

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.
