Command Palette

Search for a command to run...

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

docs-generator

БесплатноЗапускает вложенные скриптыНе проверен

Comprehensive documentation generation through automated codebase analysis, pattern detection, and diagram creation.

huseyindenizот huseyindeniz★ 15 звёзд на GitHub

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

Purpose

Generate comprehensive, up-to-date documentation by analyzing the codebase to:

  • Detect architectural patterns AND exceptions/outliers
  • Document high-level architecture and low-level implementation details
  • Analyze feature structures (core vs domain features)
  • Map state management patterns (Redux, Sagas, Slices)
  • Document component patterns and organization
  • Generate Mermaid diagrams for visual understanding
  • Create organized, navigable documentation structure
  • Output to date-based directories (docs/YYYY-MM-DD/)

Problem Solved: After major refactoring, documentation becomes obsolete. This skill regenerates comprehensive documentation automatically by analyzing the actual codebase, ensuring docs always match reality.

Target Audience: Developers who will use this React template as a starter for their projects.

Scope

  • Analyzes entire codebase structure
  • Detects patterns in:
    • Feature organization (feature-model architecture)
    • State management (Redux Toolkit + Redux Saga)
    • Component patterns and hooks abstraction
    • Dependency injection and interfaces
    • Business logic separation
    • Testing patterns
  • Generates multiple organized documentation files (NOT one god file)
  • Creates Mermaid diagrams for architecture visualization
  • Outputs to docs/YYYY-MM-DD/ (same day overwrites)
  • Incremental generation: analyze one feature at a time

Documentation Structure

docs/YYYY-MM-DD/
├── README.md                         # Main navigation and overview
├── architecture/
│   ├── README.md                     # Architecture overview
│   ├── feature-model-pattern.md      # Core architectural pattern
│   ├── dependency-injection.md       # DI and interface pattern
│   ├── state-management.md           # Redux/Saga patterns
│   ├── business-logic-separation.md  # ActionEffects pattern
│   └── diagrams/
│       ├── architecture-overview.mmd
│       ├── feature-structure.mmd
│       ├── data-flow.mmd
│       └── dependency-graph.mmd
├── features/
│   ├── README.md                     # Features overview
│   ├── core/
│   │   ├── README.md                 # Core features summary
│   │   ├── app.md                    # Application bootstrap
│   │   ├── i18n.md                   # Internationalization
│   │   ├── router.md                 # Routing infrastructure
│   │   ├── slice-manager.md          # Redux slice lifecycle
│   │   └── ui.md                     # Design system
│   └── domain/
│       ├── README.md                 # Domain features summary
│       ├── wallet.md                 # Wallet feature (3 models)
│       ├── oauth.md                  # OAuth feature (1 model)
│       └── blog-demo.md              # Blog demo (2 models)
├── patterns/
│   ├── README.md                     # Patterns overview
│   ├── component-patterns.md         # Component organization
│   ├── hook-patterns.md              # Custom hooks patterns
│   ├── testing-patterns.md           # Test organization
│   └── code-quality.md               # Code quality patterns
├── guides/
│   ├── README.md                     # Guides overview
│   ├── getting-started.md            # Quick start guide
│   ├── adding-new-feature.md         # How to add domain feature
│   ├── creating-new-model.md         # How to add model to feature
│   ├── testing-guide.md              # Testing best practices
│   └── deployment.md                 # Deployment guide
└── api-reference/
    ├── README.md                     # API reference overview
    ├── hooks.md                      # All custom hooks
    ├── services.md                   # Service implementations
    ├── types.md                      # Important type definitions
    └── utilities.md                  # Utility functions

Analysis Scripts

Each script performs specific analysis and generates structured data for documentation.

1. Feature Analysis (analyze_feature.mjs)

Purpose: Analyze a single feature's structure, patterns, and implementation.

What it detects:

  • Feature category (core vs domain)
  • Models (for domain features)
  • Directory structure and organization
  • Interfaces and their relationships
  • Redux slice structure
  • Saga patterns and action effects
  • Component organization
  • Hook abstractions
  • Exception cases and outliers

Output: JSON structure with feature metadata

Usage:

node ./.claude/skills/docs-generator/scripts/analyze_feature.mjs <feature-name>

2. Architecture Analysis (analyze_architecture.mjs)

Purpose: Analyze overall architectural patterns across all features.

What it detects:

  • Feature dependency graph
  • Core vs domain feature relationships
  • Composition root pattern usage
  • Dependency injection patterns
  • Interface architecture patterns
  • Common patterns across features
  • Architectural outliers/exceptions

Output: JSON structure with architecture metadata

3. State Management Analysis (analyze_state_management.mjs)

Purpose: Analyze Redux/Saga patterns an

Полный SKILL.md на GitHub

Установить docs-generator в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

scripts/analyze_architecture.mjsscripts/analyze_dependencies.mjsscripts/analyze_feature.mjsscripts/analyze_tech_stack.mjsscripts/generate_all_docs.mjsscripts/generate_diagrams.mjsscripts/generate_diagrams_plantuml.mjsscripts/generate_executive_docs.mjsscripts/generate_feature_docs.mjsscripts/generate_guides.mjsscripts/utils/astUtils.mjsscripts/utils/fileUtils.mjsscripts/utils/renderTemplate.mjsscripts/utils/templateUtils.mjstemplates/architecture-report.template.mdtemplates/dependencies.template.mdtemplates/feature.template.mdtemplates/tech-stack.template.md

FAQ

Что делает скилл docs-generator?

Comprehensive documentation generation through automated codebase analysis, pattern detection, and diagram creation.

Как установить скилл docs-generator?

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

Скилл docs-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить docs-generator с