.claude/skills/fetch-tcl-source/SKILL.md
Download and extract Tcl source trees (8.4, 8.5, 8.6, 9.0) to tmp/ for test suites and bytecode reference. Idempotent — skips versions already present.
npx skillsauth add bitwisecook/tcl-lsp fetch-tcl-sourceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Downloads Tcl source tarballs from SourceForge and extracts them to tmp/
so that test suites, bytecode snippets, and reference data are available
without bundling Tcl source in the repository.
bash .claude/skills/fetch-tcl-source/fetch_tcl_source.sh <version|all|status>
| Command | What it does |
|---|---|
| 84 or 8.4 | Fetch Tcl 8.4.20 source |
| 85 or 8.5 | Fetch Tcl 8.5.19 source |
| 86 or 8.6 | Fetch Tcl 8.6.16 source |
| 90 or 9.0 | Fetch Tcl 9.0.3 source |
| all | Fetch all four versions |
| status | Show which versions are present in tmp/ |
After fetching, the following directories are available:
| Directory | Key contents |
|---|---|
| tmp/tcl8.4.20/tests/ | Tcl 8.4 test suite (for reference capture) |
| tmp/tcl8.5.19/tests/ | Tcl 8.5 test suite |
| tmp/tcl8.6.16/tests/ | Tcl 8.6 test suite |
| tmp/tcl9.0.3/tests/ | Tcl 9.0 test suite (primary reference) |
Each source tree also contains generic/, library/, doc/, and build files.
scripts/capture_reference_test_results.shscripts/capture_reference_bytecode.shtmp/ is gitignored — downloads are local onlyfetch_tcl_source.sh when new
patch releases come out$ARGUMENTS
development
Apply LSP optimiser suggestions to a Tcl file and explain why each optimisation is safe and beneficial. Covers constant folding, propagation, dead code elimination, strength reduction, and expression canonicalisation. Use when optimising Tcl code, improving .tcl file performance, refactoring Tcl scripts for efficiency, or applying language server optimisation suggestions.
development
Apply LSP optimiser suggestions to an F5 iRule and explain why each optimisation is safe and beneficial. Covers constant folding, propagation, dead code elimination, strength reduction, and expression canonicalisation. Use when optimising iRule code, improving iRule performance, applying F5 iRule optimisations, or refactoring iRules for efficiency.
development
Create Tk GUI code from a description with proper widget hierarchy. Generates the code, validates with the LSP analyser (including TK-specific checks), and iterates until clean. Use when creating Tk GUIs, generating Tcl/Tk code from descriptions, building Tk widget layouts, or scaffolding Tk applications.
development
Run full LSP validation on a Tcl file and produce a categorised report of all issues: errors, security, style, and optimiser suggestions. Use when validating Tcl code, linting .tcl files, checking Tcl script quality, or running static analysis on Tcl scripts.