Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codebase-architecture-analysis

БесплатноБез исполняемых скриптовНе проверен

Analyze a GitHub codebase to create comprehensive architecture documentation including ASCII diagrams, component relationships, data flow, hosting…

thomasgauvinот thomasgauvin★ 44 звезды на GitHub20 установок в других каталогах

Об этом скилле

Codebase Architecture Analysis

When to use this skill

Use this skill when you need to understand the high-level architecture and structure of a codebase. Specifically, use it when you need to:

  • Create architecture diagrams for documentation
  • Understand component relationships and dependencies
  • Assess hosting infrastructure and deployment architecture
  • Generate comprehensive architectural overviews
  • Document data flow between system components
  • Create visual representations of code organization

Overview

This skill guides a specialized agent through a comprehensive analysis of a GitHub repository to produce detailed architecture documentation. The analysis includes ASCII diagrams, component maps, infrastructure details, and file-level assessments.

Workflow

Step 1: Repository Setup

Input required:

  • GitHub repository URL or owner/repo format
  • Optional: Specific branch or commit to analyze

Actions:

  1. Clone the repository using the GitHub PAT from environment variables
  2. Verify the repository is cloned successfully
  3. Document the repository metadata (language, size, structure)

YOU MUST CLONE THE REPOSITORY AND INSPECT THE FILES USING BASH TOOLS AND GIT CLI RATHER THAN MCP.

Step 2: Codebase Discovery and Assessment

Analyze the directory structure:

  1. Map the complete directory tree
  2. Identify major components/modules/packages
  3. Classify directories by purpose (src, config, tests, build, etc.)
  4. Count files by type (TypeScript, Python, JSON, etc.)
  5. Identify entry points and main application files

For each file, assess:

  • File type and purpose
  • Size and complexity
  • Key imports and dependencies
  • What module/component it belongs to
  • Role in the overall system

Step 3: Create Architecture Diagrams

Create multiple ASCII diagrams:

  1. System Architecture Diagram

    • High-level components and their relationships
    • External systems and services
    • Data flow between components
  2. Deployment Architecture

    • Hosting infrastructure (cloud platform, containers, etc.)
    • Service relationships
    • Network and database layers
  3. File Structure Diagram

    • Directory hierarchy showing major components
    • Key files and their purposes
    • Organization by feature or layer
  4. Data Flow Diagram

    • How data moves through the system
    • API endpoints and their interactions
    • Database access patterns

Example ASCII diagram structure:

┌─────────────────────────────────────────────────┐
│                  Client (React)                  │
├─────────────────────────────────────────────────┤
│  - Components                                    │
│  - Pages                                         │
│  - State Management                              │
└────────────────┬────────────────────────────────┘
                 │ HTTP/WebSocket
┌────────────────▼────────────────────────────────┐
│            Backend Server (Node.js)              │
├─────────────────────────────────────────────────┤
│  - API Routes                                    │
│  - Authentication                                │
│  - Business Logic                                │
└────────────────┬────────────────────────────────┘
                 │
┌────────────────▼────────────────────────────────┐
│            Database & External APIs              │
├─────────────────────────────────────────────────┤
│  - PostgreSQL / MongoDB                          │
│  - Third-party Services                          │
└─────────────────────────────────────────────────┘

Step 4: Component Analysis

For each major component, document:

  • Purpose and responsibilities
  • Key files and entry points
  • External dependencies
  • Interactions with other components
  • API surface (if applicable)

Document component categories:

  • Frontend Components: UI components, pages, layouts
  • Backend Services: API endpoints, middleware, handlers
  • Business Logic: Core algorithms, processing
  • Infrastructure: Configuration, build, deployment
  • Testing: Test utilities, test files
  • Documentation: READMEs, specs, guides

Step 5: Technology Stack Assessment

Identify and document:

  • Programming languages used
  • Key frameworks and libraries
  • Database systems
  • External services and APIs
  • Development tools and build systems
  • Container/deployment technologies
  • Version numbers where significant

Step 6: Hosting and Infrastructure Analysis

Assess the deployment architecture:

  1. Identify hosting platform (AWS, GCP, Vercel, Cloudflare, etc.)
  2. Document service configuration
    • Environment variables
    • Build processes
    • Deployment scripts
  3. Identify infrastructure-as-code files (Terraform, Docker, etc.)
  4. Document scaling considerations
  5. Identify external service dependencies

Step 7: Generate Final Documentation

Create a comprehensive architecture document including:

  1. Executive Summary
    • Project purpose
    • High-level
Полный SKILL.md на GitHub

Установить codebase-architecture-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл codebase-architecture-analysis?

Analyze a GitHub codebase to create comprehensive architecture documentation including ASCII diagrams, component relationships, data flow, hosting infrastructure, and file structure assessment.

Как установить скилл codebase-architecture-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл codebase-architecture-analysis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить codebase-architecture-analysis с