iRule Diagram
Steps
- Read
../_prompts/irules_system.md, then the iRule. - Call
mcp__tcl-lsp__diagramwith the contents assource. On a tool
error report it and suggest fixes.
- Draw the flowchart from the structured data (authoritative) with the
source for reference.
Mermaid rules
flowchart TD; one subgraph per event handler labelled with the event
name, in firing order; a non-default priority (not 500) in the label
{Decision}diamonds forif/switch(the subject in the diamond, the
pattern or condition on each edge); [Action] rectangles for pool,
HTTP::respond, HTTP::redirect, HTTP::header, log, …; (Return) for
return; ([Loop]) for loops
- Called procs are their own subgraphs linked from the call site
- Meaningful node IDs (
hr_switch, notA1); labels under 40 characters,
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