Generate professional architecture diagrams from code, files, or natural language descriptions.
Works with
Supports five diagram types: flowcharts, entity-relationship diagrams, cloud architecture, sequence diagrams, and BPMN swimlane diagrams
Analyzes infrastructure files (Terraform, AWS, Azure) and code to extract architecture information and automatically generate Eraser DSL
Returns rendered diagram images with links to edit in the Eraser web editor
Requires ERASER_API_KEY environment var
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioneraser-diagramsExecute the skills CLI command in your project's root directory to begin installation:
Fetches eraser-diagrams from eraserlabs/eraser-io and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate eraser-diagrams. Access via /eraser-diagrams in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
14
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
14
stars
Generates professional architecture diagrams directly from code, infrastructure files, or natural language descriptions using the Eraser API.
Activate this skill when:
Eraser supports five types of diagrams, each optimized for different use cases. For detailed DSL syntax and examples, refer to the appropriate reference file:
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
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
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
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
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.
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:
claudecursorchatgptgemini{
"imageUrl": "https://storage.googleapis.com/eraser-images/...",
"createEraserFileUrl": "https://app.eraser.io/new?requestId=abc123&state=xyz789",
"renderedElements": [...]
}
| 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:
diagramType matches the DSL content (e.g., sequence DSL with sequence-diagram)When the user requests a diagram:
Extract Information
Generate Eraser DSL
Create Element Definition
type: "diagram"id: "diagram-1" (or generate a unique ID)code: "<your generated DSL code>"diagramType: "<appropriate type>"Make the HTTP Request
IMPORTANT: You MUST execute this curl command after generating the DSL. Never stop after generating DSL without making the API call.
CRITICAL: Replace eraser-skill in the X-Skill-Source header with your actual AI agent name (see API Integration section above for values).
curl -X POST https://app.eraser.io/api/render/elements \
-H "Content-Type: application/json" \
-H "X-Skill-Source: eraser-skill" \
-H "Authorization: Bearer ${ERASER_API_KEY}" \
-d '{
"elements": [{
"type": "diagram",
"id": "diagram-1",
"code": "<your generated DSL>",
"diagramType": "cloud-architecture-diagram"
}],
"scale": 2,
"theme": "${ERASER_THEME:-dark}",
"background": true
}'
Track Sources During Analysis
As you analyze files and resources to generate the diagram, track:
infra/main.tf - VPC and subnet definitions)Handle the Response
CRITICAL: Minimal Output Format
Your response MUST always include these elements with clear headers:
Diagram Preview: Display with a header
## Diagram

Use the ACTUAL imageUrl from the API response.
Editor Link: Display with a header
## Open in Eraser
[Edit this diagram in the Eraser editor]({createEraserFileUrl})
Use the ACTUAL URL from the API response.
Sources section: Brief list of files/resources analyzed (if applicable)
## Sources
- `path/to/file` - What was extracted
Diagram Code section: The Eraser DSL in a code block with eraser language tag
## Diagram Code
```eraser
{DSL code here}
Learn More link: You can learn more about Eraser at https://docs.eraser.io/docs/using-ai-agent-integrations
Additional content rules:
The default output should be SHORT. The diagram image speaks for itself.
Error Handling
[label: "VPC 10.0.0.0/16"]diagramType for the contentX-Skill-Source header with your AI agent name (claude, cursor, chatgpt, etc.)createEraserFileUrl is always returned (works for both free and paid tiers) and allows users to edit diagrams in the Eraser web editorMake data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Useful defaults in eraser-diagrams — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
eraser-diagrams is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Solid pick for teams standardizing on skills: eraser-diagrams is focused, and the summary matches what you get after install.
eraser-diagrams reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend eraser-diagrams for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
eraser-diagrams has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: eraser-diagrams is the kind of skill you can hand to a new teammate without a long onboarding doc.
eraser-diagrams fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Solid pick for teams standardizing on skills: eraser-diagrams is focused, and the summary matches what you get after install.
I recommend eraser-diagrams for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 39