diagram
GitHub根据代码库结构或用户请求,生成清晰的 ASCII 架构图、流程图或组件关系图。支持多种图表类型,注重可读性与对齐,并自动保存结果文件。
Trigger Scenarios
Install
npx skills add n0an/VivaDicta --skill diagram -g -y
SKILL.md
Frontmatter
{
"name": "diagram",
"description": "Create ASCII diagrams representing component architecture, data flow, or codebase structure",
"disable-model-invocation": true
}
diagram
You are given the following context: $ARGUMENTS
Instructions
Create a clear ASCII diagram representing the requested component, model, or codebase structure. The user wants to visualize architecture, relationships, or flow.
Guidelines:
- Use ASCII box drawing characters for clean visuals
- Include labels and arrows to show relationships
- Keep diagrams readable and well-aligned
- Add legend if needed for clarity
- Focus on the specific component/area requested
Diagram Types:
- Architecture diagrams: Show layers, components, and their relationships
- Flow diagrams: Illustrate data flow or process sequences
- Class/Model diagrams: Display properties, methods, and relationships
- Component diagrams: Show how modules interact
- State diagrams: Represent state transitions
ASCII Characters to Use:
- Boxes:
┌ ┐ └ ┘ ─ │ ├ ┤ ┬ ┴ ┼ - Arrows:
→ ← ↑ ↓ ↔ ⇒ ⇐ - Connectors:
+ - | / \ - Alternative boxes:
+---+style if Unicode isn't supported
Example Format:
┌─────────────┐
│ Component │
└──────┬──────┘
↓
┌──────┴──────┐
│ Service │
└─────────────┘
Analyze the codebase structure first, then create the most appropriate diagram type for what's being asked. Include a brief description of what the diagram represents.
Save resulting diagram and explanations in some file in the project
Version History
- c5601d4 Current 2026-07-25 08:15


