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.
npx agentmods add skills/deephaven/deephaven-mcp/cli-command-addnpx skills add deephaven/deephaven-mcp --skill cli-command-addgit clone --depth 1 https://github.com/deephaven/deephaven-mcpWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00066 | $0.02867 |
| Opus 5 | $0.00033 | $0.01434 |
| Sonnet 5 | $0.00013 | $0.00573 |
| Haiku 4.5 | $0.00007 | $0.00287 |
Grade A, and why
cli-command-add 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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Apply the ref-python-coding-practices skill (rule 15 covers click + @run_async + CliError discipline), the ref-documentation-roles skill (it defines docs/CLI.md's role as the exhaustive CLI reference), the ref-cli-help-standards skill (the help-content contract every command's HelpSpec — rendering both --help and the agents manifest — must satisfy), and the ref-output-serialization-conventions skill for the command's output payload (every OutputField's value vocabulary, casing, and known carve-outs). If the command wraps an MCP tool (any verb under session/system/table/catalog/pq/docs), also apply the ref-cli-tool-wrapping skill — it owns the shared _wrapping helpers, the five wrapper categories, the type-scoping rule, the path-flag locality rule, and the wraps_tool drift contract (step 2's wrapper note has the binding details).
Steps
-
Pick or create the noun group under
src/deephaven_mcp/cli/_commands/.- The nouns, with the routing gloss you need to place a verb (run
dhcli agents treefor the live tree — it emits summaries, not "which noun should host this"):daemon(lifecycle of the local daemon),tool(inspect / invoke MCP tools — the raw escape hatch),session/system/table/catalog/pq(runtime MCP-tool wrappers — applyref-cli-tool-wrapping),docs(documentation Q&A — connects directly to the docs MCP server, no daemon),config(inspect, validate, and author the configuration tree —show/validate/get/keys/files/set/unset/edit/initplussession/systemadd/remove/list; the authoring and inspection verbs declareneeds_runtime=Falseand operate on files directly, makingconfigthe principal recovery surface when the tree is broken or empty),context(the sticky default session/system/PQ id, persisted in<runtime_dir>/context.json),self(tool self-management, e.g. shell completion — verbs here declareneeds_runtime=Falsewhen they must work without a config tree). - Not an add target:
agentsemits machine-readable metadata about the live click tree, not user actions; new commands appear there automatically. - Default to an existing noun: add a verb under an existing noun; create a new noun only for a genuinely new domain.
- Ground the naming in prior art: apply
ref-cli-design-prior-artwhen choosing a noun, verb, or flag name — follow the convention a comparable CLI already established, cite the tool and the specific behavior, and state the reason if you depart from it. - File layout: each top-level noun is exactly one module
_commands/<noun>.py, holding its group, all its verbs, any sub-groups, and its private helpers — do not create per-verb files or noun packages. - Module naming: the file is named for its noun alone (
session.py,context.py).self_cmd.pyis the sole suffixed filename, becauseselfshadows the conventional instance parameter — do not generalize that_cmdsuffix to any other noun. - If you add a noun, update the
cli/entry inref-project-referencein the same changeset — it maps the CLI package and goes stale silently otherwise.
- The nouns, with the routing gloss you need to place a verb (run
-
Add the click command. Copy the decorator stack from the model verb
tool_callincli/_commands/tool.py:@<group>.command(name, help_spec=HelpSpec(...))→ click options/arguments →@click.pass_obj(or@click.pass_context) →@run_async→async def. Exception: a verb that performs no I/O (pure metadata / self-management — canonical implementations: theagentsverbs inagents.py,self completioninself_cmd.py) stays a plain synchronousdefwith no@run_async; never wrap a synchronous body inasync def. Compose the help as aHelpSpecfromcli/_help.pyper theref-cli-help-standardsHelp-content contract, and define the output shape once as anOutputSpecconstant passed as the spec'soutput=field (Output is single-source) —output_specderives from it automatically.
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.
- 2d ago First seen · 64 lines · 66 tokens per session scan A 5e344f71355e
cli-command-add is a skill published in the GitHub repository deephaven/deephaven-mcp (5 stars, last pushed 4d ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,867 once invoked, about $0.0003 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
agent-host-chat-contributions
Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.