architecture-diagrams — скилл для Claude Code: как установить
Скилл помогает генерировать схемы архитектуры, потоки данных и C4-диаграммы в текстовом формате Mermaid или PlantUML. Пригодится при оформлении технической документации прямо в чате с агентом.
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a claude-codeЧто делает architecture-diagrams
Скилл учит агента создавать читаемые схемы системного дизайна с помощью Mermaid и PlantUML. Набор охватывает C4 context diagrams, схемы компонентов, развёртывания, классов и последовательностей вызовов. Текстовый код диаграмм сразу готов к версионированию в Git вместе с остальным проектом.
Внутри репозитория есть каталог references/ с подробными руководствами под каждый тип схемы. Правила скилла требуют логической группировки через подграфы subgraphs, осмысленной цветовой кодировки и явных пояснений к связям между блоками.
Здесь принципиально исключены бинарные картинки. Работа идёт только с текстовыми форматами, поэтому диаграммы не рассинхронизируются с кодовой базой при правках.
Какие задачи решает
- визуализировать микросервисную архитектуру и слои приложения в Mermaid
- составить C4-диаграмму контекста или компонентов для технической документации
- описать последовательность вызовов API и взаимодействия сервисов
- зафиксировать схему потоков данных и структуру базы данных
Примеры запросов агенту
- Построй Mermaid-диаграмму для микросервисов заказа и оплаты с очередью RabbitMQ и базой PostgreSQL
- Нарисуй диаграмму последовательности для процесса аутентификации пользователя через API Gateway
- Составь C4-диаграмму компонентов для сервиса уведомлений
Как установить architecture-diagrams
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a claude-code2Вручную: положить файлы
~/.claude/skills/architecture-diagrams/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/architecture-diagrams/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a codex2Вручную: положить файлы
.agents/skills/architecture-diagrams/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a cursor2Вручную: положить файлы
.cursor/skills/architecture-diagrams/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts architecture-diagrams2Вручную: положить файлы
.github/skills/architecture-diagrams/SKILL.md1Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a gemini-cli2Командой платформы
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/architecture-diagramsВручную: положить файлы
.devin/skills/architecture-diagrams/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора118
Похожие
Рядом в теме «Тексты и документация»
Всё по теме «Тексты и документация» →Вопросы о architecture-diagrams
Как установить architecture-diagrams в Claude Code?
Выполните команду npx skills add aj-geddes/useful-ai-prompts --skill architecture-diagrams -a claude-code. Также файл скилла можно сохранить вручную по пути ~/.claude/skills/architecture-diagrams/SKILL.md.
Что делает architecture-diagrams?
Скилл задаёт правила генерации архитектурных диаграмм в коде Mermaid и PlantUML. Он поддерживает C4-модели, схемы классов, развёртывания и потоков данных.
В каких форматах создаются схемы?
Инструмент ориентирован только на текстовые форматы Mermaid и PlantUML. Это позволяет хранить схемы в репозитории и редактировать их как обычный исходный код.
Исходный текст
SKILL.md · MIT
---
name: architecture-diagrams
description: >
Create system architecture diagrams using Mermaid, PlantUML, C4 model,
flowcharts, and sequence diagrams. Use when documenting architecture, system
design, data flows, or technical workflows.
---
# Architecture Diagrams
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Create clear, maintainable architecture diagrams using code-based diagramming tools like Mermaid and PlantUML for system design, data flows, and technical documentation.
## When to Use
- System architecture documentation
- C4 model diagrams
- Data flow diagrams
- Sequence diagrams
- Component relationships
- Deployment diagrams
- Infrastructure architecture
- Microservices architecture
- Database schemas (visual)
- Integration patterns
## Quick Start
Minimal working example:
```mermaid
graph TB
subgraph "Client Layer"
Web[Web App]
Mobile[Mobile App]
CLI[CLI Tool]
end
subgraph "API Gateway Layer"
Gateway[API Gateway<br/>Rate Limiting<br/>Authentication]
end
subgraph "Service Layer"
Auth[Auth Service]
User[User Service]
Order[Order Service]
Payment[Payment Service]
Notification[Notification Service]
end
subgraph "Data Layer"
UserDB[(User DB<br/>PostgreSQL)]
OrderDB[(Order DB<br/>PostgreSQL)]
Cache[(Redis Cache)]
Queue[Message Queue<br/>RabbitMQ]
end
// ... (see reference guides for full implementation)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [System Architecture Diagram](references/system-architecture-diagram.md) | System Architecture Diagram |
| [Sequence Diagram](references/sequence-diagram.md) | Sequence Diagram |
| [C4 Context Diagram](references/c4-context-diagram.md) | C4 Context Diagram |
| [Component Diagram](references/component-diagram.md) | Component Diagram |
| [Deployment Diagram](references/deployment-diagram.md) | Deployment Diagram |
| [Data Flow Diagram](references/data-flow-diagram.md) | Data Flow Diagram |
| [Class Diagram](references/class-diagram.md) | Class Diagram |
| [Component Diagram](references/component-diagram-2.md) | Component Diagram |
| [Deployment Diagram](references/deployment-diagram-2.md) | Deployment Diagram |
## Best Practices
### ✅ DO
- Use consistent notation and symbols
- Include legends for complex diagrams
- Keep diagrams focused on one aspect
- Use color coding meaningfully
- Include titles and descriptions
- Version control your diagrams
- Use text-based formats (Mermaid, PlantUML)
- Show data flow direction clearly
- Include deployment details
- Document diagram conventions
- Keep diagrams up-to-date with code
- Use subgraphs for logical grouping
### ❌ DON'T
- Overcrowd diagrams with details
- Use inconsistent styling
- Skip diagram legends
- Create binary image files only
- Forget to document relationships
- Mix abstraction levels in one diagram
- Use proprietary formats
© aj-geddes · MIT · aj-geddes/useful-ai-prompts