ln-624-code-quality-auditor

Audit code quality for complexity, nesting, and anti-patterns with structured findings.

534|73|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-624-code-quality-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ln-624-code-quality-auditor
Source: https://github.com/levnikolaevich/claude-code-skills/tree/main/ln-624-code-quality-auditor
Command: npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-624-code-quality-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill audits code quality with emphasis on complexity, nesting, long methods, god classes, and inefficiencies. It returns findings with severity, location, effort, and remediation guidance.

Core Features & Use Cases

  • Check cyclomatic complexity, nesting depth, long methods, and large modules.
  • Identify architectural smells and anti-patterns (e.g., N+1 queries, magic numbers).
  • Output a structured report and feed results to downstream quality gates.

Quick Start

Run the audit to surface code-quality hotspots and guidance for refactoring.

Frequently Asked Questions about ln-624-code-quality-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit code for cyclomatic complexity and nesting issues?

Cyclomatic complexity auditing identifies overly intricate control flows and deep nesting that reduce maintainability. This Skill scans your codebase to detect methods and functions exceeding complexity thresholds, flags nested structures, and returns findings with severity and remediation guidance to guide refactoring priorities.

What code quality issues does static analysis catch?

Static analysis detects architectural smells including long methods, god classes, O(n²) algorithms, N+1 queries, magic constants, and decentralized constants. The audit returns structured findings with location, effort estimate, and actionable recommendations for each violation across your entire codebase.

Can I use code quality auditing across multiple programming languages?

Yes, this Skill applies across language stacks by consuming tech_stack context and executing language-agnostic scanning patterns. It identifies universal code-quality violations—complexity, nesting depth, method length, class size—and returns domain-tagged findings regardless of language.

How do I integrate code audits into a quality gate workflow?

The Skill emits structured JSON payloads with domain, scan path, findings, severity, and effort estimates designed for downstream quality gates. It feeds directly into the ln-620 codebase auditing pipeline and can be invoked by the ln-620-codebase-auditor for automated quality enforcement.

What's the difference between complexity metrics and architectural anti-patterns?

Complexity metrics measure cyclomatic complexity and nesting depth within individual methods; architectural anti-patterns detect system-level smells like god classes, N+1 queries, and magic numbers. This Skill audits both to surface hotspots across structure and design.

Do I need to configure best practices before running the audit?

The Skill consumes best_practices and principles from your contextStore to configure thresholds and domain-specific rules. It derives the scan path automatically and applies domain awareness when available, requiring only tech_stack and codebase_root to begin auditing.