eraser-diagrams
БесплатноБез исполняемых скриптовНе проверенGenerates architecture diagrams from code, infrastructure, or descriptions. Use when user asks to visualize, diagram, or document system architecture.
Об этом скилле
Eraser Diagram Generator
Generates professional architecture diagrams directly from code, infrastructure files, or natural language descriptions using the Eraser API.
When to Use
Activate this skill when:
- User asks to create, generate, or visualize a diagram
- User wants to document architecture from code
- User has Terraform, AWS, Azure, or infrastructure files
- User describes a system and wants it visualized
- User mentions "diagram", "architecture", "visualize", or "draw"
How It Works
- Analyze the source: Extract architecture information from code, files, or descriptions
- Generate Eraser DSL: Create Eraser DSL code that describes the diagram
- Call the Eraser API: Make an HTTP POST request to render the diagram
- Return the result: Present the image URL and editor link to the user
Diagram Types and Syntax
Eraser supports five types of diagrams, each optimized for different use cases. For detailed DSL syntax and examples, refer to the appropriate reference file:
Flow Charts
Visualize process flows, user flows, and logic flows represented as nodes, groups, and relationships. Diagrams are created using simple syntax.
Use for: Process flows, user journeys, decision trees, business process documentation
diagramType: "flowchart-diagram"
Reference: Flowchart Syntax
Entity Relationship Diagrams (ERD)
Visualize data models represented as entities, attributes, and relationships. Diagrams are created using simple syntax.
Use for: Database schema design, data modeling, understanding entity relationships, documenting data structures
diagramType: "entity-relationship-diagram"
Reference: ERD Syntax
Cloud Architecture Diagrams
Visualize cloud infrastructure represented as nodes, groups, and connections. Diagrams are created using simple syntax.
Use for: Cloud infrastructure visualization, AWS/Azure/GCP architectures, system architecture documentation, data flow visualization
diagramType: "cloud-architecture-diagram"
Reference: Architecture Syntax
Sequence Diagrams
Visualize system flows using sequence diagrams. Each vertical column represents an entity (e.g. user, server, DB) and arrows between the columns represent the flow of information or requests. Diagrams are created using simple syntax.
Use for: API request/response flows, system interactions, user workflows, message passing between services, process flows over time
diagramType: "sequence-diagram"
Reference: Sequence Syntax
BPMN Diagrams (Swimlane Diagrams)
Visualize business processes represented as pools, lanes, and flow objects such as tasks, events, and gateways. Diagrams are created using simple syntax.
Use for: Business process documentation, workflow visualization, process improvement, cross-functional processes, swimlane diagrams showing roles/responsibilities
diagramType: "bpmn-diagram"
Reference: BPMN Syntax
Each reference file contains complete syntax documentation, property references, and practical examples.
API Integration
Endpoint
POST https://app.eraser.io/api/render/elements
Content-Type: application/json
Authorization: Bearer ${ERASER_API_KEY}
X-Skill-Source: eraser-skill
Note: The X-Skill-Source header identifies the AI agent. You MUST replace eraser-skill with your actual agent name:
- If you are Claude (Anthropic), use:
claude - If you are running in Cursor, use:
cursor - If you are ChatGPT (OpenAI), use:
chatgpt - If you are Gemini (Google), use:
gemini - Otherwise, use your model/agent name in lowercase
Response Format
{
"imageUrl": "https://storage.googleapis.com/eraser-images/...",
"createEraserFileUrl": "https://app.eraser.io/new?requestId=abc123&state=xyz789",
"renderedElements": [...]
}
Error Responses
| Status | Error | Cause | Solution |
|---|---|---|---|
| 400 | Diagram element has no code |
Missing code field in element |
Ensure element has valid DSL code |
| 400 | Diagram element has no diagramType |
Missing diagramType field |
Add valid diagramType to element |
| 400 | Invalid diagramType |
Unsupported diagram type | Use one of the supported types listed above |
| 401 | Unauthorized |
Invalid or expired API key | Check ERASER_API_KEY is valid |
| 500 | Internal server error |
Server-side issue | Retry the request; if persistent, contact support |
Error Response Format:
{
"error": {
"message": "Diagram element has no code",
"status": 400
}
}
Troubleshooting Tips:
- Verify DSL syntax is correct before making the API call
- Ensure
diagramTypematches the DSL content (e.g., sequence DSL withsequence-diagram) - For auth errors, verify the API key is set correctly as an environment variable
Установить eraser-diagrams в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBash(curl:*)Вложенные файлы
FAQ
Что делает скилл eraser-diagrams?
Generates architecture diagrams from code, infrastructure, or descriptions. Use when user asks to visualize, diagram, or document system architecture.
Как установить скилл eraser-diagrams?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл eraser-diagrams запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic