Irule diagram

From bitwisecook/tcl-lsp · View interactive version

Irule diagram is an AI agent skill from the GitHub repository bitwisecook/tcl-lsp. Generate a Mermaid flowchart of an iRule's logic flow. Extracts structured data from the compiler IR and produces a visual diagram with event subgraphs, decision points, and actions. Use when visualising iRule logic, generating F5 iRule flowcharts, diagramming iRule event flow, or documenting iRule

How to use this skill

Skill file

iRule Diagram

Steps

  1. Read ../_prompts/irules_system.md, then the iRule.
  2. Call mcp__tcl-lsp__diagram with the contents as source. On a tool

error report it and suggest fixes.

  1. Draw the flowchart from the structured data (authoritative) with the

source for reference.

Mermaid rules

name, in firing order; a non-default priority (not 500) in the label

pattern or condition on each edge); [Action] rectangles for pool,

HTTP::respond, HTTP::redirect, HTTP::header, log, …; (Return) for

return; ([Loop]) for loops

long strings abbreviated with "..."; labels with special characters

double-quoted

Output

The diagram in a ```mermaid fence, then two to four paragraphs: firing order

and cross-event data flow, the key decisions and routing, any

security-relevant actions.

$ARGUMENTS

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.