/squad:cli-wiringfrom squad
Checklist for wiring a new Squad CLI command: route it in cli-entry.ts, add help text, and test reachability. Prevents the common bug of implementing a command but forgetting to register it.
Ships in squad. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.
Create command file in packages/squad-cli/src/cli/commands/<name>.ts
run<Name>(cwd, options) async function (or class with static methods for utility modules)Add routing block in packages/squad-cli/src/cli-entry.ts inside main():
if (cmd === '<name>') {
const { run<Name> } = await import('./cli/commands/<name>.js');
// parse args, call function
await run<Name>(process.cwd(), options);
return;
}
Add help text in the help section of cli-entry.ts (search for Commands:):
console.log(` ${BOLD}<name>${RESET} <description>`);
console.log(` Usage: <name> [flags]`);
Verify both exist — the recurring bug is doing step 1 but missing steps 2-3.
| Type | Example | How to wire |
|---|---|---|
| Standard command | export.ts, build.ts | run*() function, parse flags from args |
| Placeholder command | loop, cast (alias: hire) | Inline in cli-entry.ts, prints pending message |
| Utility/check module | rc-tunnel.ts, copilot-bridge.ts | Wire as diagnostic check (e.g., isDevtunnelAvailable()) |
| Subcommand of another | init-remote.ts | Already used inside parent + standalone alias |
import { BOLD, RESET, DIM, RED, GREEN, YELLOW } from './cli/core/output.js';
Use dynamic await import() for command modules to keep startup fast (lazy loading).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub github/squad --plugin squad53 skills in this plugin
/agent-collaborationStandard collaboration patterns for all squad agents — worktree awareness, decisions, cross-agent communication/agent-conductShared hard rules enforced across all squad agents/architectural-proposalsHow to write comprehensive architectural proposals that drive alignment before code is written/ci-validation-gatesDefensive CI/CD patterns: semver validation, token checks, retry logic, and draft detectionOther plugins' skills for the same job