ascii
3
总安装量
3
周安装量
#60750
全站排名
安装命令
npx skills add https://github.com/skinnyandbald/fish-skills --skill ascii
Agent 安装分布
github-copilot
3
claude-code
3
mcpjam
2
kilo
2
windsurf
2
zencoder
2
Skill 文档
ASCII Diagram Generator
Create ASCII diagrams for flows, architectures, and processes.
Arguments: $ARGUMENTS
Instructions
Generate an ASCII diagram based on the user’s description provided in $ARGUMENTS.
If no arguments provided, ask the user what they want diagrammed.
Phase 1: Analyze the Request
- Parse the
$ARGUMENTSto understand what flow/diagram is needed - Identify the type of diagram:
- Flow diagram: Sequential steps with arrows
- Architecture diagram: Boxes representing components
- Sequence diagram: Interactions between entities
- Tree/hierarchy: Parent-child relationships
- State machine: States and transitions
Phase 2: Create the Diagram
Generate a clean ASCII diagram using these conventions:
Boxes:
âââââââââââââââ
â Label â
âââââââââââââââ
Arrows:
- Horizontal:
âââ>or<âââ - Vertical:
âwithâ¼orâ² - Bidirectional:
<ââ>
Flow connections:
âââââââââ âââââââââ
â Step1 âââââ>â Step2 â
âââââââââ âââââââââ
Decision points:
âââââââââ
â Check â
âââââ¬ââââ
â
ââââââ´âââââ
â¼ â¼
âââââââ âââââââ
â Yes â â No â
âââââââ âââââââ
Guidelines:
- Keep boxes aligned and evenly spaced
- Use consistent widths where possible
- Add labels to arrows when needed:
ââ(label)ââ> - Use comments/notes outside the diagram for context
- Keep it readable â don’t overcrowd
Phase 3: Present the Diagram
Display the completed ASCII diagram in a code block:
[Your ASCII diagram here]
Phase 4: Ask About Saving
After showing the diagram, ask the user what they’d like to do:
What would you like to do with this diagram?
1. Save to a new markdown file
2. Add to an existing file
3. Don't save (just viewing)
Use the AskUserQuestion tool with these options:
- Save to new file: Ask for filename, create
[filename].mdwith the diagram in a code block - Add to existing file: Ask which file, then append the diagram to that file
- Don’t save: Acknowledge and end
Saving Behavior
New file format:
# [Title based on diagram content]
[ASCII diagram in code block]
---
*Generated with /ascii*
Appending to existing file:
- Add a newline separator
- Insert the diagram in a code block
- Don’t modify existing content
Examples
Input: /ascii user login flow
Output:
ââââââââââââ ââââââââââââââ ââââââââââââââââ
â User âââââ>â Login Form âââââ>â Validate â
ââââââââââââ ââââââââââââââ ââââââââ¬ââââââââ
â
ââââââââ´âââââââ
â¼ â¼
âââââââââââ âââââââââââ
â Success â â Error â
ââââââ¬âââââ ââââââ¬âââââ
â â
â¼ â¼
âââââââââââ âââââââââââ
âDashboardâ â Retry â
âââââââââââ âââââââââââ
Input: /ascii api request lifecycle
Output:
ââââââââââ ââââââââââââââ ââââââââââââââ ââââââââââââ
â Client ââââ>â Middleware ââââ>â Controller ââââ>â Service â
ââââââââââ ââââââââââââââ ââââââââââââââ ââââââ¬ââââââ
â² â
â â¼
â ââââââââââââ
â â Database â
â ââââââ¬ââââââ
â â
ââââââââââââââââââââââââââââââââââââââââââââââââââ
Response