Tcl Create
Generate Tcl from a description, validate with the LSP, iterate until clean.
Steps
- Read
../_prompts/tcl_system.md. - Generate the code: braced expressions and bodies, list-safe APIs (
list,
lappend, lindex, dict), file join for paths, -- where a value may
start with -, comments only for non-obvious logic.
- Write it to a
.tclfile, then callmcp__tcl-lsp__analyzewith 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 it could not be resolved.
- Report the final status and a summary of the structure.
$ARGUMENTS