К основному содержанию
скилл CX Codex

describe-design — скилл для Claude Code: архитектурная документация

Скилл исследует кодовую базу и пишет markdown-документ о том, как устроена фича или система. Пригодится для онбординга и передачи знаний.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add posit-dev/skills --skill describe-design -a claude-code
Открыть на GitHub

Что делает describe-design

Скилл проходит пять этапов. Сначала уточняет, что именно документировать и для кого, потом бегло осматривает репозиторий: структуру каталогов, README, конфиги, точки входа. Дальше показывает черновой план разделов и ждёт подтверждения — без ответа «yes» глубокое исследование не начинается.

На этапе глубокого разбора скилл прослеживает пути кода от точек входа, отмечает зависимости между компонентами, находит места хранения данных и собирает индекс ссылок на файлы и функции. Останавливаться он советует тогда, когда получается провести типичный запрос от начала до конца без пробелов и нарисовать схему без пустых блоков. Готовый документ содержит обзор, диаграммы Mermaid, таблицу компонентов, поток данных, настройки и глоссарий.

Код в документ не копируется: скилл ссылается на относительные пути от корня репозитория и имена функций вместо номеров строк, потому что номера ломаются при каждом коммите. Перед записью файла он обязан получить от вас подтверждение пути — предложит docs/architecture/ или ARCHITECTURE.md, но сам ничего не создаст. Если путь вы задали заранее, это и считается подтверждением.

Какие задачи решает

  • описать, как работает фича, для нового разработчика
  • собрать обзор архитектуры системы с диаграммами
  • объяснить структуру кода при передаче проекта
  • подготовить документацию, по которой сможет ориентироваться ИИ-агент
  • разобраться в незнакомом репозитории перед правками

Примеры запросов агенту

  • Задокументируй, как работает авторизация в этом проекте
  • Сделай обзор архитектуры платёжного модуля с диаграммой Mermaid
  • Опиши структуру кода для онбординга нового разработчика

Как установить describe-design

1Через Skills CLI (Vercel)

npx skills add posit-dev/skills --skill describe-design -a claude-code

2Вручную: положить файлы

~/.claude/skills/describe-design/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/describe-design/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о describe-design

Как установить describe-design в Claude?

Выполните npx skills add posit-dev/skills --skill describe-design -a claude-code. Скилл окажется в ~/.claude/skills/describe-design/SKILL.md.

Что делает describe-design?

Исследует кодовую базу и создаёт markdown-документ с описанием того, как устроена фича или система: обзор, диаграммы Mermaid, компоненты, поток данных, настройки и ссылки на код.

Куда скилл записывает готовый документ?

Путь нужно подтвердить. Скилл может предложить вариант вроде docs/architecture/ или ARCHITECTURE.md, но без вашего согласия файл не создаёт.

Исходный текст

SKILL.md · MIT
---
name: describe-design
description: "Research a codebase and create architectural documentation describing how features or systems work. Use when the user asks to: (1) Document how a feature works, (2) Create an architecture overview, (3) Explain code structure for onboarding or knowledge transfer, (4) Research and describe a system's design. Produces markdown documents with Mermaid diagrams and stable code references suitable for humans and AI agents."
metadata:
  author: Garrick Aden-Buie (@gadenbuie)
  version: "1.1"
license: MIT
---

# Describe Design

Research a codebase and produce an architectural document describing how features or
systems work. The output is a markdown file organized for both human readers and
future AI agents.

## Workflow

### Stage 1: Scope Definition

Understand what to document before exploring:

1. Ask what feature, system, or component to document.
2. Clarify the target audience (developers, AI agents, or both).
3. Confirm the codebase location if not obvious from context.

### Stage 2: Initial Exploration

Explore the codebase broadly to build a mental model. Use lightweight, fast exploration
methods when available (for example, use a fast Explore subagent if your harness supports subagents):

1. Scan directory structure and identify key entry points.
2. Read README, config files, and existing documentation.
3. Identify the main files and modules related to the feature.
4. Build a mental model of codebase organization.

Present a high-level outline to the user:

```
## Proposed Outline

1. [Component A] - Brief description
2. [Component B] - Brief description
3. [Component C] - Brief description

* Have I correctly captured the scope of the research? Reply "yes" to continue.
* Otherwise, please let me know what I've misunderstood.
```

When the user confirms the scope, move on to deep research.

### Stage 3: Deep Research

For each component in the approved outline:

1. Trace code paths from entry points.
2. Identify dependencies and interactions between components.
3. Note configuration options and where they're defined.
4. Find where data is stored or persisted.
5. Build a code reference index (file paths + key function/class names).

Try to rely on the initial code exploration for much of this information. Read
additional files as needed. If the scope changed considerably in Stage 2, you
can engage a second code exploration subagent.

#### When to Stop Exploring

**You're ready to draft when you can:**

- **Trace the happy path** — Follow a typical request/action from entry point to
  completion without gaps.
- **Name the boundaries** — Clearly state what's in scope and what's external.
- **Draw the diagram** — Sketch the architecture without placeholder boxes.
- **Answer "what talks to what?"** — For each component, you know its inputs and outputs.

**Signs you're not done:**

- Uncertainty: "I think this connects to..." or "probably calls..."
- Unresolved references: Found imports/calls to modules you haven't examined.
- Missing edges: Can't explain how data gets from component A to B.

**Signs you've gone too far:**

- Reading every file in a directory instead of representative samples.
- Tracing into external libraries or framework internals.
- Exploring implementation details that don't affect architecture.

### Stage 4: Document Draft

Generate the document following the template below. Present the draft to the user
for review and iterate based on feedback. If available, use the AskUserQuestion
tool to request user input on key decisions.

### Stage 5: Finalize

1. **Confirm the file location before writing.** You may propose a path based on repository
   conventions (e.g., `docs/architecture/`, `ARCHITECTURE.md`), but NEVER write the file
   without explicit user confirmation of the location. If the user provided a path upfront,
   that counts as confirmation.
2. Write the final document to the confirmed location.

## Document Template

The following template provides a starting point. Adapt it to fit the feature being
documented — omit sections that don't apply, add sections for unique aspects, and
adjust the structure to best serve the target audience.

````markdown
# [Feature/System Name] Architecture

## Overview

[1-2 paragraph summary of what this feature/system does and why it exists]

## Architecture Diagram

```mermaid
flowchart TD
    A[Entry Point] --> B[Component]
    B --> C[Data Store]
```

## Components

### [Component Name]

**Purpose**: [What it does]

**Location**: `path/to/file.ext`

**Key Functions**:
- `functionName()` - Brief description
- `anotherFunction()` - Brief description

**Interactions**:
- Receives input from: [Component]
- Sends output to: [Component]

## Data Flow

[Description of how data moves through the system, from input to output]

## Configuration

[How features are enabled, disabled, or configured. Include file paths and
environment variables.]

## Code References

| Component | File | Key Symbols |
|-----------|------|-------------|
| Auth | `src/auth/index.ts` | `authenticate()`, `AuthConfig` |
| Cache | `src/cache/redis.ts` | `CacheManager`, `invalidate()` |

## Glossary

| Term | Definition |
|------|------------|
| [Term] | [Project-specific definition] |
````

## Code Reference Conventions

Use stable references that survive refactoring:

- **Paths**: Use relative paths from repository root (`src/auth/login.ts`)
- **Symbols**: Reference function and class names, not line numbers
- **Format**: `path/to/file.ext` with key symbols listed separately
- **Anchors**: Use search patterns when helpful (`handleAuth function in auth/`)

Avoid:

- **Copying code**: Never paste code into the document. Code goes stale immediately;
  the document should be a guide that points readers to the source. Describe what
  code does, then reference where to find it.
- **Line numbers**: They change with every edit.
- **Absolute paths**: Use repository-relative paths only.

## Mermaid Diagrams

Use Mermaid for architecture visualizations:

**Flowcharts** for component relationships:
```mermaid
flowchart TD
    A[Client] --> B[API Gateway]
    B --> C[Service]
    C --> D[(Database)]
```

**Sequence diagrams** for request flows:
```mermaid
sequenceDiagram
    Client->>API: Request
    API->>Service: Process
    Service-->>API: Response
    API-->>Client: Result
```

Keep diagrams focused on the specific feature being documented. Avoid overcrowding
with unrelated components.

## Writing Guidelines

- **Describe, never copy**: Explain what code does and where to find it. Readers who
  need implementation details will read the actual source — which is always current.
- **Structure for scanning**: Use headers, tables, and lists for quick navigation.
- **Be specific**: Include actual file paths, function names, and config keys.
- **Serve two audiences**: Write clearly for humans; use consistent structure for AI.
- **Stay current**: Note any assumptions about code state or version.

© Garrick Aden-Buie (@gadenbuie) · MIT · posit-dev/skills

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

Всё по теме «Тексты и документация» →
codebase-summarizer patricio0312rev Скилл сканирует репозиторий и собирает ARCHITECTURE.md: точки входа, связи модулей, диаграммы и подсказки, куда лезть за правкой. CX Codex +1 394установок design-doc-mermaid SpillwaveSolutions Генерирует диаграммы Mermaid и техническую документацию по коду или описанию задачи. Подходит для оформления GitHub wiki, системных архитектур и схем баз данных. CX Codex +1 80 700установок codebase-documenter mhattingpete Разбирает незнакомый репозиторий и пишет по нему документацию: архитектура, компоненты, поток данных, гайд по разработке. Пригодится при онбординге и передаче проекта. CX Codex +1 587установок research parcadei Исследует кодовую базу и описывает текущую архитектуру без критики и рефакторинга. Запускает субагентов для анализа файлов и сохраняет отчёт в каталог thoughts. CX Codex +1 485установок mermaid-diagrams davila7 Скилл учит агента писать диаграммы Mermaid: классы, последовательности, ERD, C4, флоучарты. Пригодится, когда нужно задокументировать архитектуру или схему БД. 1 180установок deep-wiki thegovind Генерирует вики по репозиторию: страницы с диаграммами Mermaid, ссылками на исходники и сайт на VitePress. ★ 3 148звёзд репо

Из того же набора18

critical-code-reviewer Разбирает код и пул-реквесты по правильности, безопасности, доступности и тестам. Пригодится, когда нужен строгий разбор перед мержем. CX Codex +1 1 000установок brand-yml Скилл собирает и правит файлы _brand.yml, чтобы цвета, шрифты и логотипы совпадали в Shiny-приложениях и документах Quarto. CX Codex +1 912установок r-package-development Скилл ведёт агента по работе с R-пакетом: тесты через testthat, документация roxygen2, проверка R CMD check и запись в NEWS.md. CX Codex +1 807установок shiny-bslib Скилл для сборки дашбордов на Shiny с bslib и Bootstrap 5. Пригодится, когда переносите старое приложение на новые компоненты. CX Codex +1 797установок shiny-bslib-theming Скилл для оформления Shiny-приложений через bslib и Bootstrap 5: пресеты, цвета, шрифты, тёмный режим и живую подстройку темы. CX Codex +1 746установок create-release-checklist Скилл формирует чеклист подготовки релиза для R-пакета и заводит под него issue в GitHub. Пригодится мейнтейнерам перед публикацией новой версии. CX Codex +1 704установок release-post Пишет блог-пост о выпуске R или Python пакета по правилам блогов Tidyverse и Shiny. Пригодится, когда NEWS.md уже есть, а текста для сайта нет. CX Codex +1 684установок r-cli-app Помогает агенту собрать консольную утилиту на R: разбор аргументов, справка и подкоманды берутся из самого скрипта. CX Codex +1 682установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой