bitwisecook/tcl-lsp/tcl-refactor

Claude Code and agent skill by bitwisecook/tcl-lsp

Trust tier 2
  • community
LLM review pending
Source check pending

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-refactor

SKILL.md

Tcl Refactor

Steps

  1. Read the file.
  2. Call mcp__tcl-lsp__refactor with the contents as source and the

selection (start_line, start_character, end_line, end_character) covering the code of interest. On a tool error report it.

  1. Apply the refactoring the user asked for; otherwise list the available

ones and ask which.

  1. Apply each edit with Edit and say in a sentence why it is safe and what

it gains.

  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bitwisecook/tcl-lsp/tcl-refactor/badge)](https://verified-skill.com/skills/bitwisecook/tcl-lsp/tcl-refactor)

Something wrong with this skill or its page? Tell us.