code-analyzer

Analyze codebases to extract metrics and detect design patterns.

1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Postalocity/template-microsite --skill code-analyzer-postalocity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-analyzer
Source: https://github.com/Postalocity/template-microsite/tree/main/.opencode/skills/code-analyzer
Command: npx skills add https://github.com/Postalocity/template-microsite --skill code-analyzer-postalocity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates deep code analysis to surface complexity hotspots, maintainability concerns, and architectural patterns across codebases.

Core Features & Use Cases

  • Analyze codebases to generate metrics (e.g., complexity, maintainability) and detect recurring patterns.
  • Identify hotspots, code smells, and dependencies to inform refactoring and architectural decisions.
  • Use cases include software reviews, onboarding new codebases, and guiding modernization efforts.

Quick Start

Run the knowledge skill against your repository to start analyzing code.

Frequently Asked Questions about code-analyzer

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

FAQPage Schema
How do I analyze code complexity and maintainability metrics across a codebase?

To analyze code complexity metrics across a codebase, run static analysis to compute maintainability scores and identify recurring design patterns. This extracts deep code metrics to surface architectural hotspots and inform refactoring planning.

Can I detect code smells and architectural patterns for refactoring planning?

Yes, static analysis detects code smells and architectural patterns by scanning source code to identify dependencies and recurring structures. This highlights maintainability concerns and guides modernization efforts or targeted refactoring.

Do I need a local Node.js environment to run static analysis on my source code?

Yes, you need a local Node.js environment and direct access to the project's source code. This environment executes the static analysis computations required to identify design patterns and extract codebase metrics.

What's the best way to identify complexity hotspots when onboarding a new codebase?

The best way to identify complexity hotspots in a new codebase is running deep code analysis to extract metrics and detect recurring patterns. This surfaces maintainability concerns and dependencies, accelerating architectural assessments.

Does this code analysis support multiple programming languages?

Yes, the static analysis and pattern detection capabilities apply across multiple languages. It computes codebase metrics and identifies design patterns regardless of the specific programming languages used in the source.

Why does static analysis fail to compute metrics without source access?

Static analysis fails without source access because it requires direct reads of the project's files to compute metrics and identify patterns. Ensuring the local Node.js environment has proper permissions resolves this limitation.