self-documenting-cli

self-documenting-cli is a skill for Claude Code from gtrabanco/agentic-workflow. It costs 52 tokens per session (969 once invoked), scanned A, original, MIT.

A usage guide for a command-line tool with many subcommands. It explains which command family to use and tells the agent to ask the tool's built-in help for exact command spelling.

In plain words
What is it for?
Use it to choose and chain commands in the agentic-workflow CLI, and to look up valid flags and arguments before running a command.
Why use it?
Guessing command options causes avoidable failures, while a list of options does not explain which command solves a particular task. This separates task guidance from the command's own syntax help.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the agentic-workflow plugin — 33 skills shipped together

Good fit Use it to choose and chain commands in the agentic-workflow CLI, and to look up valid flags and arguments before running a command.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gtrabanco/agentic-workflow/self-documenting-cli
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.

Any agent
npx skills add gtrabanco/agentic-workflow --skill self-documenting-cli
Clone the repo
git clone --depth 1 https://github.com/gtrabanco/agentic-workflow

Made for: Claude Code.

Or install agentic-workflow, the plugin that ships this one along with the rest of its 33 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-documenting-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/self-documenting-cli/github.svg)](https://agentmods.dev/skills/gtrabanco/agentic-workflow/self-documenting-cli)
Your own site
<a href="https://agentmods.dev/skills/gtrabanco/agentic-workflow/self-documenting-cli"><img src="https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/self-documenting-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-documenting-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/gtrabanco/agentic-workflow/self-documenting-cli"><img src="https://agentmods.dev/badge/skills/gtrabanco/agentic-workflow/self-documenting-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 969 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00052 $0.00969
Opus 5.5 $0.00021 $0.00388
Sonnet 5.5 $0.00010 $0.00194
Haiku 4.5 $0.00005 $0.00097

Measured 5d ago against content hash 3fed90f19cf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-documenting-cli 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 5d 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.

skills/self-documenting-cli/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Self-documenting CLI (the usage layer)

The universal CLI (@gtrabanco/agentic-workflow) ships 73 subcommands behind one pin. Its grammar has exactly one owner: runner help. This skill owns the other half — when to reach for which family, in what order — because that is the part a model gets wrong repeatedly and the part no flag list answers.

The conduct rule (read this before guessing)

Before guessing a flag, query the CLI's own help. A guessed flag does not fail quietly and it does not fail memorably: it produces a refusal the next session must re-derive. runner help <subcommand> costs one command and answers with the subcommand's usage, its closed ops and its flags.

  • A bare runner help prints the index grouped by family.
  • runner help --json prints the same facts as machine data.
  • Every subcommand answers --help and -h with the identical block.

Never cite a flag from memory. Never read the crate README to learn a signature — the README explains what a command is for, and help tells you how to spell it. When the two ever disagree, help is the machine's answer and the README is the defect.

Which family solves which problem

You are… Reach for Recipe
writing a document through a typed, schema-checked receipt the editing family — unit-doc, roadmap, section, doc read/edit, verify references/editing.md
reading state without changing anything the sensor family — workflow-status, phase-lint, needs-input, test-impact, coverage-gap references/sensors.md
deciding whether an action is allowed the guard family — guard-command, diff-guard, git-identity-check references/sensors.md
moving a delivery unit through its own state machine the lane family — unit-route, ceremony, relay, audit-pr-gate, gate-receipt references/lane.md
reading or writing a pull request, issue or review the forge family — forge-read, fullauto-merge, turn-contract references/forge.md
searching the documentation corpus or the session journal the knowledge family — doc, journal, findings-corpus, repository-state references/knowledge.md
fixing the host, the toolchain or the CLI itself the tooling family — doctor, setup, setup-env, runner, config, help references/tooling.md

Read the full file on GitHub · 67 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed · -3 tokens per session 3fed90f19cf2
  2. 6d ago First seen · 67 lines · 55 tokens per session scan A 01fe7a49f705

Subscribe to this mod's changes

self-documenting-cli is a skill published in the GitHub repository gtrabanco/agentic-workflow (25 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 969 once invoked, about $0.0002 per session on Opus 5.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-11-24.

Related

self-documenting-cli compared with skills from other repositories

self-documenting-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-documenting-cligtrabanco/agentic-workflowSkill25todayMITA52Claude Code
conscientiousnesspjt222/agent-almanacSkill462d agoMITA108Claude Code
breathepjt222/agent-almanacSkill462d agoMITA89Claude Code
bounded-delegationn-n-code/n-n-code-skillsSkill428d agoMITA67Claude Code, Codex
file-organizerjjmartres/ai-coding-agentsSkill481mo agoMITA46Claude Code, Codex
think-like-mekakha13/think-like-meSkill137mo agononeA88Claude Code, Codex
session-starttroykelly/claude-skillsSkill1210mo agononeA33Claude Code