Diagrams
Open-source Codex skills library inspired by hamzafer/cursor-commands, with guardrail-first triggering for reliable workflow automation.
npx -y skills add gologo13/agent-skills --skill diagramsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Analyze the provided code, architecture, or concept and generate a clear, well-structured Me...; keywords: mermaid, diagram, git, api. Use only on explicit request; skip in routine implementation discussions.
SKILL.md
2.8 KB, as published. Nobody here has run it
Generate Mermaid Diagram
Overview
Analyze the provided code, architecture, or concept and generate a clear, well-structured Mermaid diagram that visualizes the relationships, flow, or structure.
Instructions
-
Analyze the input - Understand what the user wants to visualize (code flow, architecture, data relationships, state machines, sequences, etc).
-
Choose the appropriate diagram type:
flowchart- For process flows, decision trees, algorithmssequenceDiagram- For API calls, message passing, request/response flowsclassDiagram- For class structures, inheritance, interfaceserDiagram- For database schemas, entity relationshipsstateDiagram-v2- For state machines, lifecycle flowsgraph TD/LR- For dependency graphs, module relationshipsgitgraph- For git branching strategiesjourney- For user journeysgantt- For timelines and schedules
-
Generate the diagram with these qualities:
- Clear, descriptive node labels
- Logical grouping with subgraphs where appropriate
- Consistent styling and direction
- Meaningful relationship labels on edges
- Not overly complex - split into multiple diagrams if needed
-
Output format: Always wrap the diagram in a mermaid code block:
[diagram code here]
Diagram Style Guidelines
- Use descriptive IDs:
userServicenota1 - Add labels to relationships when they add clarity
- Use subgraphs to group related components
- Keep diagrams readable - max ~15-20 nodes per diagram
- Use appropriate arrow styles:
-->solid arrow (main flow)-.->dotted arrow (optional/async)==>thick arrow (important path)o-->circle end (aggregation)*-->diamond end (composition)
Examples
Flowchart
flowchart TD
A[Start] --> B{Is valid?}
B -->|Yes| C[Process]
B -->|No| D[Error]
C --> E[End]
D --> E
Sequence Diagram
sequenceDiagram
participant C as Client
participant S as Server
participant DB as Database
C->>S: Request
S->>DB: Query
DB-->>S: Results
S-->>C: Response
Class Diagram
classDiagram
class Animal {
String name
makeSound()
}
class Dog {
bark()
}
Animal <|-- Dog
ER Diagram
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : "ordered in"
After generating
- Explain what the diagram shows
- Offer to refine or expand specific sections
- Suggest alternative diagram types if applicable