Tcl fix

From bitwisecook/tcl-lsp · View interactive version

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

How to use this skill

Skill file

Tcl Fix

Steps

  1. Read ../_prompts/tcl_system.md, then the file.
  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, preserving behaviour and intent,

using Edit. 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.