.claude/skills/code-review/SKILL.md
Comprehensive code review of pending changes in the repository. Critiques quality, simplicity, correctness, dead code, LSP/editor integration completeness, KCS currency, AI/CLI tooling, compiler explorer usage, test coverage, and Tcl dialect compatibility (8.4-9.0).
npx skillsauth add bitwisecook/tcl-lsp code-reviewInstall 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.
Perform a thorough review of the current changes in the repository. Make no modifications — only critique.
git diff main --stat
git diff main --name-only
git diff main -- <file>
Work through each area below. For each area, note findings as pass, concern, or action required. Skip areas that are not relevant to the changes.
unknown proc, shimmering, package loading, source, auto_index,
uplevel/upvar scoping, namespace eval, interp, rename, and
trace interactions.make gen-editor-settings) if
diagnostics or optimisations changed?docs/kcs/README.md updated if new notes were added?ai/claude/skills/) updated if the change affects
skill-relevant behaviour (new diagnostics, commands, features)?ai/claude/tcl_ai.py updated if new analysis capabilities were added?core/commands/registry/) updated if commands
were added or changed?explorer/) reflect it?Think through whether the solution handles these Tcl-specific concerns:
namespace eval, namespace import/export,
namespace path, nested namespaces, :: resolutioninterp alias, rename, effect on call trackingnamespace unknown, auto-loadingK combinator
idiom, performance implicationspackage require, package ifneeded, pkgIndex.tcl,
version resolution, package forgetsource path resolution, auto_path,
auto_mkindex, lazy loadinguplevel, upvar, variable, global,
namespace upvar, call stack depth implicationsnamespace ensemble, sub-command dispatch,
-map and -unknown optionscoroutine, yield, yieldto, stack behaviouroo::class, mixins, filters, method resolution orderzipfs mountOne-paragraph overview of the change quality.
Group findings by review area. For each finding:
Overall assessment: approve, approve with suggestions, or request changes. Summarise the key items that need attention.
$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.