bitwisecook/tcl-lsp/tcl-refactor
Claude Code and agent skill by bitwisecook/tcl-lsp
- community
Checking that the SKILL.md file is still in the repository.
Apply refactorings to Tcl code: extract/inline variables, convert if/elseif chains to switch, convert switch to dict lookup, and brace unbraced expr arguments. Uses the LSP refactoring engine for safe, mechanical transformations. Use when refactoring Tcl scripts, restructuring .tcl code, simplifying Tcl control flow, or applying automated Tcl code transformations.
Install
npx vskill@latest install bitwisecook/tcl-lsp/tcl-refactorSKILL.md
Tcl Refactor
Steps
- Read the file.
- Call
mcp__tcl-lsp__refactorwith the contents assourceand the
selection (start_line, start_character, end_line, end_character) covering the code of interest. On a tool error report it.
- Apply the refactoring the user asked for; otherwise list the available
ones and ask which.
- Apply each edit with Edit and say in a sentence why it is safe and what
it gains.
- Re-validate with
mcp__tcl-lsp__analyze; revert any refactoring that
introduced an issue and say why.
Refactorings
- Extract variable: expression → named variable
- Inline variable: single-use
set var value→ substituted at the use site - if/elseif → switch: chain of
$var eq "literal"tests →switch -exact - switch → dict: arms that set one variable →
dict create+dict get - Brace expr:
expr "$a + $b"→expr {$a + $b}
$ARGUMENTS
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai/claude/skills/tcl-refactor/SKILL.md
Popularity
- Repository stars
- 72
- Repository forks
- 6
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bitwisecook/tcl-lsp/tcl-refactor)