command-router

Route and validate sdd-run commands to fullstack-typescript skills or system CLIs.

39|3|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/LiorCohen/sdd --skill command-router
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-router
Source: https://github.com/LiorCohen/sdd/tree/main/plugin/fullstack-typescript/skills/command-router
Command: npx skills add https://github.com/LiorCohen/sdd --skill command-router

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Route and validate sdd-run commands to the appropriate fullstack-typescript skill or system CLI.

Core Features & Use Cases

  • Dispatch table maps namespaces to handlers.
  • Supports both skill-handled namespaces (e.g., local-env, config) and pass-through namespaces (e.g., database, contract).
  • Loads orchestration skills for certain routes and enforces validation, sub-help display, and safe execution.
  • Defines the system CLI path for pass-through commands.

Quick Start

Invoke a sample command like '/sdd-run database setup main-db' to dispatch the request to the appropriate skill or system CLI after validation.

Frequently Asked Questions about command-router

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I route sdd-run commands to the correct skill or system CLI?

You route sdd-run commands using a dispatch table that maps namespaces like local-env, database, contract, and config to either a fullstack-typescript skill handler or a direct system CLI execution path.

What is command routing validation for sdd-run namespaces?

Command routing validation ensures sdd-run requests map to the correct handler, enforcing path resolution to the system CLI, sub-help loading, and safeguards against destructive actions before execution.

Can I use command routing to dispatch both skill-handled and pass-through namespaces?

Yes, command routing supports both skill-handled namespaces like local-env and config, as well as pass-through namespaces like database and contract that execute directly on the system CLI.

How do I execute a database setup command using sdd-run?

You execute a database setup command by invoking sdd-run with the namespace and arguments, such as '/sdd-run database setup main-db', which the router validates and dispatches to the system CLI.

Does command routing include safeguards for destructive actions?

Yes, the command router implements destructive action safeguards to ensure safe execution, preventing unintended damage when dispatching validated commands to skills or the system CLI.

Why does my sdd-run command fail to resolve to the system CLI path?

An sdd-run command fails to resolve when the namespace is not mapped in the dispatch table, preventing the router from determining the correct skill handler or system CLI execution path.