Skillit cli docs
Skill pradeepmouli/skillit/packages/cli/skills/skillit-cli-docs
CLI documentation conventions for generated skills. Use when improving Commander descriptions, help text, positional argument docs, and config-surface correlation.From its SKILL.md
npx -y skills add pradeepmouli/skillit --skill skillit-cli-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `skillit gen`.
SKILL.md
1.9 KB, 361 tokens by cl100k_base, as published. Nobody here has run it
CLI Documentation Conventions
Use this skill when documenting command-line programs for @skillit/cli.
Focus Areas
.description()text on commands and subcommands.option()and--helpdescriptions 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.