iRule Create
Generate an iRule from a description, validate with the LSP, iterate until
clean.
Steps
- Read
../_prompts/irules_system.md. - Generate the iRule: the right
whenhandlers, braced expressions,--
terminators, no eval on user data, comments on the logic, K&R braces,
4-space indent.
- Write it to a
.tclfile (ask for a name or pick a sensible default),
then call mcp__tcl-lsp__analyze with the contents as source. On a
tool error report it and adjust the code.
- Fix errors and warnings and re-validate, up to 5 iterations; then report
what remains and why.
- Show the final iRule in a ```tcl fence with the validation result and
iteration count.
$ARGUMENTS