tcl-refactor

Community

Refactor Tcl code safely

Authorbitwisecook
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of improving Tcl code quality and maintainability through safe, mechanical refactorings, reducing the risk of introducing bugs during code updates.

Core Features & Use Cases

  • Automated Refactoring: Applies common Tcl code transformations like variable extraction/inlining, converting conditional chains to switches, and improving expression bracing.
  • LSP Integration: Leverages the Tcl Language Server Protocol's refactoring engine for reliable and precise code modifications.
  • Use Case: Refactor a complex if/elseif structure in a Tcl script into a more readable switch statement to improve clarity and reduce potential errors.

Quick Start

Use the tcl-refactor skill to convert if/elseif chains to switch statements in the file main.tcl.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: tcl-refactor
Download link: https://github.com/bitwisecook/tcl-lsp/archive/main.zip#tcl-refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.