Agent skill

CLI Wiring

by bradygaster in bradygaster/squad

Checklist and patterns for wiring new CLI commands into cli-entry.ts

MITAuto-check passed

Install CLI Wiring

skills CLI
$ npx skills add bradygaster/squad --skill cli-wiring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install bradygaster/squad cli-wiring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/bradygaster/squad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.copilot/skills/cli-wiring .claude/skills/cli-wiring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cli-wiring
GitHub stars
3.3k
Token cost
~501 tokens
SKILL.md length
165 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

Checklist and patterns for wiring new CLI commands into cli-entry.ts

  • Works in 4 steps: Create command file in… → Add routing block in… → Add help text in the help section of… → …
  • SKILL.md covers Checklist — Adding a New CLI…, Wiring Patterns by Command Type, Common Import Pattern and History
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

CLI Wiring is an agent skill from bradygaster/squad. Checklist and patterns for wiring new CLI commands into cli-entry.ts

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Squad: AI agent teams for any project. The licence is MIT.

Example prompts

  • “/cli-wiring”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Create command file in packages/squad-cli/src/cli/commands/.ts
  2. Add routing block in packages/squad-cli/src/cli-entry.ts inside main()
  3. Add help text in the help section of cli-entry.ts (search for Commands:)
  4. Verify both exist — the recurring bug is doing step 1 but missing steps 2-3.

What it can do on your machine

Read from SKILL.md and the folder at commit d2364df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

CLI Wiring loads about 501 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 165 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~501

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from bradygaster/squad at commit d2364df, republished under its MIT licence (© bradygaster). 165 words, ~501 tokens.

Download SKILL.mdSave it as .claude/skills/cli-wiring/SKILL.md (or your agent's skills folder).
name
cli-wiring
description
Checklist and patterns for wiring new CLI commands into cli-entry.ts
domain
cli
confidence
high
source
extracted

Skill: CLI Command Wiring

Bug class: Commands implemented in packages/squad-cli/src/cli/commands/ but never routed in cli-entry.ts.

Checklist — Adding a New CLI Command

  1. Create command file in packages/squad-cli/src/cli/commands/<name>.ts

    • Export a run<Name>(cwd, options) async function (or class with static methods for utility modules)
  2. Add routing block in packages/squad-cli/src/cli-entry.ts inside main():

    ts
    if (cmd === '<name>') {
      const { run<Name> } = await import('./cli/commands/<name>.js');
      // parse args, call function
      await run<Name>(process.cwd(), options);
      return;
    }
  3. Add help text in the help section of cli-entry.ts (search for Commands:):

    ts
    console.log(`  ${BOLD}<name>${RESET}     <description>`);
    console.log(`             Usage: <name> [flags]`);
  4. Verify both exist — the recurring bug is doing step 1 but missing steps 2-3.

Wiring Patterns by Command Type

TypeExampleHow to wire
Standard commandexport.ts, build.tsrun*() function, parse flags from args
Placeholder commandloop, cast (alias: hire)Inline in cli-entry.ts, prints pending message
Utility/check modulerc-tunnel.ts, copilot-bridge.tsWire as diagnostic check (e.g., isDevtunnelAvailable())
Subcommand of anotherinit-remote.tsAlready used inside parent + standalone alias

Common Import Pattern

ts
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).

History

  • #237 / PR #244: 4 commands wired (rc, copilot-bridge, init-remote, rc-tunnel). aspire, link, loop, cast (née hire) were already present.

© bradygaster, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .copilot/skills/cli-wiring of bradygaster/squad.

Open the folder on GitHubat commit d2364df

Compare with similar skills

CLI Wiring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

CLI Wiring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
CLI Wiring this skillbradygaster/squad3.3k—~501Automated safety check: PassMIT
Changelog Entrysickn33/agentic-awesome-skills47k1 repos~1.1kAutomated safety check: PassMIT
Redundant Entrythedaviddias/Front-End-Checklist74k—~520Automated safety check: PassMIT
Wiringparcadei/Continuous-Claude-v33.9k1 repos~1.7kAutomated safety check: PassMIT
Write Changelog Entryflet-dev/flet17k—~1.7kAutomated safety check: PassApache-2.0
SenseNova PPT EntryOpenSenseNova/SenseNova-Skills5.7k—~2.7kAutomated safety check: NotesMIT

Similar skills

  • Changelog Entry

    sickn33/agentic-awesome-skills

    Generate a properly formatted CHANGELOG.md entry in Keep a Changelog format from a commit range or PR.

    47k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Redundant Entry

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing any process that spans multiple screens, steps, or modal stages.

    74k GitHub stars~520 tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Wiring

    parcadei/Continuous-Claude-v3

    Wiring Verification

    3.9k GitHub starsUsed in 1 repo~1.7k tokens
    Testing & QAAuto-check passed
  • A skill your agent uses when asked to add, revise, or review a changelog or release-notes entry in this repo.

    17k GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • SenseNova PPT Entry

    OpenSenseNova/SenseNova-Skills

    Entry point for SenseNova presentation generation: creates a task folder, picks depth, output format and design richness, and routes to the right PPT skill.

    5.7k GitHub stars~2.7k tokensUpdated 19 days ago
    Documents & OfficeAuto-check: notes
  • Official

    Maps the state-changing entry points of a smart contract codebase and sorts them by access level, producing a structured audit report that leaves out read-only functions.

    7.4k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check: notes

More from bradygaster/squad

All 31 skills in this repo
  • Fact Checking

    bradygaster/squad

    Review and validate claims using counter-hypothesis testing.

    3.3k GitHub stars~503 tokensUpdated yesterday
    Auto-check passed
  • Architectural Review

    bradygaster/squad

    How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency

    3.3k GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Archival Integrity

    bradygaster/squad

    Preserve content when moving entries between tracked Squad state files

    3.3k GitHub stars~735 tokensUpdated yesterday
    Auto-check passed
  • CI Validation Gates

    bradygaster/squad

    Defensive CI/CD patterns: semver validation, token checks, retry logic, and draft detection

    3.3k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Enables squad agents on different machines to share work via git-based task queuing

    3.3k GitHub stars~2.7k tokensUpdated yesterday
    Auto-check passed
  • Gh Aw Reliability

    bradygaster/squad

    Validate GitHub Agentic Workflow contracts through compiled artifacts and realistic mutations

    3.3k GitHub stars~444 tokensUpdated yesterday
    Auto-check passed

Questions about CLI Wiring

What does CLI Wiring do?

Checklist and patterns for wiring new CLI commands into cli-entry.ts. CLI Wiring is an agent skill from bradygaster/squad.

How do I install CLI Wiring in Claude Code?

Run `npx skills add bradygaster/squad --skill cli-wiring -a claude-code`. Or copy the skill folder (.copilot/skills/cli-wiring in bradygaster/squad) into .claude/skills/cli-wiring in your project. Claude Code loads it when a task matches its description.

How do I install CLI Wiring in Codex?

Run `npx skills add bradygaster/squad --skill cli-wiring -a codex`. Or copy the skill folder (.copilot/skills/cli-wiring in bradygaster/squad) into .agents/skills/cli-wiring in your project. Codex loads it when a task matches its description.

Can I use CLI Wiring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bradygaster/squad --skill cli-wiring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cli-wiring, .gemini/skills/cli-wiring, .github/skills/cli-wiring and .opencode/skills/cli-wiring in your project.

What does CLI Wiring need to run?

SKILL.md names no scripts, command-line tools or credentials: CLI Wiring is instructions for the agent only.

Does CLI Wiring access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is CLI Wiring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does CLI Wiring use?

CLI Wiring is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does CLI Wiring use?

About 501 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to CLI Wiring?

Skills that share tags, products or a category with CLI Wiring: Changelog Entry (sickn33/agentic-awesome-skills, 47k stars), Redundant Entry (thedaviddias/Front-End-Checklist, 74k stars), Wiring (parcadei/Continuous-Claude-v3, 3.9k stars) and Write Changelog Entry (flet-dev/flet, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains CLI Wiring?

bradygaster (a GitHub user) maintains it in bradygaster/squad, which has 3,256 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 6, 2026.

Source: bradygaster/squad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.