code-analyzer

Scan multilingual codebases and output JSON with structure, markers, and Git metadata.

13|2|Updated Aug 9, 2025
One-click install
npx skills add https://github.com/petbrains/mvp-builder --skill code-analyzer-petbrains
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-analyzer
Source: https://github.com/petbrains/mvp-builder/tree/main/.claude/skills/code-analyzer
Command: npx skills add https://github.com/petbrains/mvp-builder --skill code-analyzer-petbrains

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Creates a comprehensive mental model of a codebase to guide reviews, documentation, and agent generation.

Core Features & Use Cases

  • Scan project structure and markers
  • Detect dependencies and shared modules
  • Build a dependency graph and architecture overview

Quick Start

Run the scanner at .claude/skills/code-analyzer/scripts/scan-codebase.sh to generate a JSON context.

Frequently Asked Questions about code-analyzer

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

FAQPage Schema
How do I map out my codebase structure and dependencies?

Codebase mapping analyzes your project's file organization, module relationships, and dependency graph to create a mental model of architecture. Run the code analyzer scanner to generate JSON output containing structure, dependencies, and implementation context without external tools.

Can I scan a multilingual codebase for architecture and dependencies?

Yes, the analyzer handles multilingual codebases using deterministic Bash scanning. It identifies project structure, detects dependencies, builds dependency graphs, and applies exclusions across any language stack to output comprehensive JSON context.

How do I find code markers like AICODE-TODO and AICODE-NOTE across my project?

The scanner locates markers such as AICODE-NOTE, AICODE-TODO, and AICODE-FIX throughout your codebase and includes them in JSON output. This helps surface action items, notes, and fixes embedded in code for review and agent preparation.

What output does the codebase analyzer produce?

The scanner outputs JSON containing project structure, marker locations, dependency relationships, Git metadata, and readiness status. This JSON context prepares your codebase for reviews, documentation generation, memory systems, or AI agent creation.

Do I need external dependencies to run the codebase analyzer?

No external dependencies are required. The analyzer uses only Bash for deterministic scanning, making it lightweight and portable across environments. Run the scan script directly to generate complete codebase analysis.

Can I exclude specific files or directories from the codebase scan?

Yes, the analyzer applies specified exclusions during scanning to focus analysis on relevant code. Configure exclusions to tailor the JSON output to your project's structure and skip non-essential paths.