extract-command-router-from-tool-handler

Community

Modularize tool handlers, maintainable routing with Handlers

Authorruskibeats
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill unit addresses the challenge of managing and scaling the command routing logic in monolithic tool handler files. It allows developers to modularize code and maintain clear, maintainable routing with Handler types.

Core Features & Use Cases

  • Modular Routing: Extracts command routing logic from tool handler files, allowing developers to manage larger tool files and separate concerns.
  • Handler Types: Utilizes a Handler type and handler records to maintain and add new subcommands with ease.
  • Use Case: For instance, if you have a complex command-line tool that grows beyond 200 lines and starts mixing command routing with execution logic, this Skill helps you refactor it for better maintainability.

Quick Start

To start, create a new file for the Handler, e.g., router.ts, and import it into your original tool file.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: extract-command-router-from-tool-handler
Download link: https://github.com/ruskibeats/t1d/archive/main.zip#extract-command-router-from-tool-handler

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 620,000+ vetted skills library on demand.