code-analyzer

oimiragieo's avatarfrom oimiragieo

Static code analysis and complexity metrics

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

The Code Analyzer skill is a powerful static analysis tool designed to enhance code quality and architectural integrity. It provides deep insights into codebase health by calculating cyclomatic complexity, maintainability indices, and identifying duplicate code patterns. By offering 90%+ context savings, it allows Claude to efficiently process large projects, pinpointing technical debt hotspots and providing actionable metrics for refactoring and optimization.

Use Cases

  • Automated Code Quality Audits: Systematically analyze files or entire projects to detect overly complex functions and maintainability issues before they reach production.
  • Technical Debt Mapping: Identify 'hotspots' within a codebase where high cyclomatic complexity and code duplication indicate a high risk of bugs and high maintenance costs.
  • Refactoring Support: Use quantitative metrics like the Maintainability Index to measure the impact of refactoring efforts and ensure code becomes cleaner over time.
  • Architectural Assessment: Evaluate project-wide trends and lines of code (LOC) metrics to assist architects in making informed decisions about system structure and scaling.
namecode-analyzer
descriptionStatic code analysis and complexity metrics
version1.0.0
contextfork: true
allowed-tools[Bash, Read, Glob]

Code Analyzer Skill

Overview

Static code analysis and metrics. 90%+ context savings.

Tools (Progressive Disclosure)

Analysis

Tool Description
analyze-file Analyze single file
analyze-project Analyze entire project
complexity Calculate complexity metrics

Metrics

Tool Description
loc Lines of code
cyclomatic Cyclomatic complexity
maintainability Maintainability index
duplicates Find duplicate code

Reporting

Tool Description
summary Get analysis summary
hotspots Find complexity hotspots
trends Analyze metric trends

Agent Integration

  • code-reviewer (primary): Code review
  • refactoring-specialist (primary): Tech debt analysis
  • architect (secondary): Architecture assessment