skillit-cli-docs

A set of documentation rules for command-line programs built with Commander, a TypeScript and JavaScript library for defining terminal commands. It explains how to document commands, options, arguments, usage examples, and configuration links.

In plain words
What is it for?
Use it when improving Commander descriptions, help text, positional argument documentation, option descriptions, environment-variable notes, or routing guidance.
Why use it?
It helps generated agent skills explain a command-line tool accurately, including when a command should or should not be used.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/pradeepmouli/skillit/skillit-cli-docs
Any agent
npx skills add pradeepmouli/skillit --skill skillit-cli-docs
Clone the repo
git clone --depth 1 https://github.com/pradeepmouli/skillit

Made for: Claude Code, Codex.

Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00032 $0.00420
Opus 5 $0.00016 $0.00210
Sonnet 5 $0.00006 $0.00084
Haiku 4.5 $0.00003 $0.00042

Measured 2d ago against content hash 228345a98dc2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

skillit-cli-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/cli/skills/skillit-cli-docs/SKILL.md · 49 lines

What it actually says

CLI Documentation Conventions

Use this skill when documenting command-line programs for @skillit/cli.

Focus Areas

  • .description() text on commands and subcommands
  • .option() and --help descriptions for every flag
  • .argument() descriptions for positional inputs
  • .usage() strings and example help text
  • Environment-variable documentation and config-surface JSDoc correlation

Routing Tags via Option Interfaces

For routing tags (@useWhen, @avoidWhen, @never), add them as JSDoc on a <PascalCommandName>Options interface in a TypeScript source file. The interface needs no properties — only the JSDoc block matters:

/**
 * @useWhen - Server advertises callHierarchyProvider capability
 * @avoidWhen - Server doesn't support call hierarchy; lsproxy will error
 * @never - NEVER invoke without verifying server supports this capability. Fix: check --help output or use `lsproxy call` to probe the server first
 */
interface CallHierarchyOptions {}

CliRefineSource discovers these interfaces via the source glob (**/*.ts) and correlates their tags onto the corresponding command in the generated skill. Create one per command that needs routing guidance; the filename is arbitrary (e.g. src/command-options.ts). After adding the interface, re-run skillit gen to regenerate — resolveTargetLocation will now resolve and skillit refine can write tags into the interface directly.

Fix Patterns

  • Describe command intent in one sentence, not just the verb
  • Explain what each option changes in behavior
  • Document positional arguments with expected format or values
  • Mention env vars explicitly when an option supports them
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 32 tokens per session scan A 228345a98dc2

Subscribe to this mod's changes

skillit-cli-docs is a skill published in the GitHub repository pradeepmouli/skillit (7 stars, last pushed 16d ago), licensed MIT. It adds 32 tokens to every session and 420 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

release

Prepare and publish Perigon.CLI patch releases, including versioning, release notes, bilingual docs, validation, and the nuget-branch CI handoff.

AterDev/Perigon.CLI · 34 tokens

docs

Use for Perigon documentation work across this workspace, especially Perigon.docs/Content/docs/Perigon bilingual and versioned docs, syncing zh-CN and en-US content, updating docs from Perigon.CLI, Perigon.template, and Perigon.Modules changes, and deciding whether to revise existing pages or add new documentation.

AterDev/Perigon.CLI · 67 tokens

blazor

Use for Blazor Server development with Fluent UI Blazor, Razor components, layouts, pages, scoped UI services, culture switching, localization, forms, loading/empty/error states, and Studio-style dashboard workflows.

AterDev/Perigon.CLI · 45 tokens

cli

Use for .NET command-line tool development with Spectre.Console/Spectre.Console.Cli, Microsoft.Extensions.Hosting, dependency injection, localized help text, command settings, aliases, examples, terminal output, exit codes, and stdio-safe command paths.

AterDev/Perigon.CLI · 52 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

dotnet

Use for .NET application development involving services, managers, dependency injection, Microsoft.Extensions.Hosting, dependency direction, MiniDb persistence, DTOs, Mapster mapping, shared entities/helpers, MCP tools, module workflows, solution analysis, cancellation, logging, and logic shared by CLI and Blazor.

AterDev/Perigon.CLI · 61 tokens