Irule fix

From bitwisecook/tcl-lsp · View interactive version

Irule fix is an AI agent skill from the GitHub repository bitwisecook/tcl-lsp. Fix issues in an F5 iRule using LSP diagnostics. Runs an iterative analyse-fix-reanalyse loop until clean or stable. Use when fixing iRule errors, resolving iRule warnings, auto-fixing iRule lint issues, or cleaning up F5 iRule diagnostics.

How to use this skill

Skill file

iRule Fix

Steps

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

error report it; if there are no errors or warnings, report the file is

clean.

  1. Fix only what the diagnostics flag, in one pass where possible, following

the security rules and preserving behaviour and intent. Codes:

docs/generated/diagnostic_codes.md.

  1. Re-read and re-analyse; repeat up to 5 iterations.
  2. Report what was fixed and what remains, with a reason for anything that

cannot be auto-fixed (e.g. needs an architectural change).

$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.