code-analyzer

Analyze Python and JavaScript/TypeScript code for smells, complexity, and refactoring opportunities.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/cdman28/antigravity-devkit --skill code-analyzer-cdman28
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-analyzer
Source: https://github.com/cdman28/antigravity-devkit/tree/main/.agent/skills/code-analyzer
Command: npx skills add https://github.com/cdman28/antigravity-devkit --skill code-analyzer-cdman28

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes code quality to identify smells, measure complexity, and surface refactoring opportunities to improve maintainability and reduce bugs.

Core Features & Use Cases

  • Complexity Analysis: compute cyclomatic complexity and maintainability indexes for Python and JavaScript/TypeScript projects.
  • Code Smell Detection: identify duplicate code, long functions, excessive parameters, and deep nesting to guide refactoring.
  • Static Analysis: run type checks, security checks, and lint/type checks across languages to surface quality issues.
  • Refactoring Suggestions: provide concrete refactorings, including structured data models and safer abstractions.

Quick Start

Run the analyzer on your source directory to generate a code-quality report and concrete refactoring suggestions.

Frequently Asked Questions about code-analyzer

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

FAQPage Schema
How do I measure cyclomatic complexity and detect code smells in Python?

To detect code smells in Python, static analysis tools like pylint and radon measure cyclomatic complexity and identify duplicate code or long functions, providing a maintainability index to guide refactoring.

What's the best way to analyze code quality for JavaScript and TypeScript projects?

The best way to analyze code quality for JavaScript and TypeScript projects is running static analysis with eslint to detect deep nesting, excessive parameters, and type issues, generating a report with actionable refactoring suggestions.

Does static analysis require type checking tools to surface refactoring opportunities?

Static analysis for refactoring opportunities does require type checking tools like mypy or eslint to validate type safety, identify complexity issues, and surface concrete abstractions for cleaner, maintainable code.

Can I integrate code smell detection into a pre-release workflow?

You can integrate code smell detection into a pre-release workflow by running static analysis during development or testing phases to identify deep nesting and excessive parameters, outputting a code-quality report with refactor recommendations.

Why does my code quality report recommend refactoring for duplicate code?

Code quality reports recommend refactoring for duplicate code because static analysis detects these patterns as code smells, calculating high cyclomatic complexity and suggesting structured data models to improve maintainability and reduce bugs.