Borrowing it
Nothing to install: this file belongs to deephaven/deephaven-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/deephaven/deephaven-mcp/main/.agents/skills/cli-command-add/SKILL.mdgit clone --depth 1 https://github.com/deephaven/deephaven-mcpWrote 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.
[](https://agentmods.dev/skills/deephaven/deephaven-mcp/cli-command-add)<a href="https://agentmods.dev/skills/deephaven/deephaven-mcp/cli-command-add"><img src="https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/cli-command-add/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.
<a href="https://agentmods.dev/skills/deephaven/deephaven-mcp/cli-command-add"><img src="https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/cli-command-add.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.02867 |
| Opus 5.5 | $0.00026 | $0.01147 |
| Sonnet 5.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 1mo 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.
- 1mo 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 2d 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.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
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
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…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…