cli-skill-design

cli-skill-design is a skill for Claude Code, Codex from openonion/connectonion. It costs 97 tokens per session (5,983 once invoked), scanned A, original, Apache-2.0.

A method for designing command-line tools and the instruction files that tell coding agents how to use them.

In plain words
What is it for?
It helps add or revise command groups, write their SKILL.md instructions, test whether command tips are usable, document all help options, and explain recovery steps for failures.
Why use it?
It reduces guesswork by requiring commands to describe the next action after both successful and failed runs, while keeping the command interface and instructions consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit It helps add or revise command groups, write their SKILL.md instructions, test whether command tips are usable, document all help options, and explain recovery steps for failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openonion/connectonion/cli-skill-design
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,568 stars · on GitHub · docs.connectonion.com

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 openonion/connectonion --skill cli-skill-design
Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

Made for: Claude Code, Codex.

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 cli-skill-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/openonion/connectonion/cli-skill-design/github.svg)](https://agentmods.dev/skills/openonion/connectonion/cli-skill-design)
Your own site
<a href="https://agentmods.dev/skills/openonion/connectonion/cli-skill-design"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/cli-skill-design/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 cli-skill-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/openonion/connectonion/cli-skill-design"><img src="https://agentmods.dev/badge/skills/openonion/connectonion/cli-skill-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,983 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00097 $0.05983
Opus 5.5 $0.00039 $0.02393
Sonnet 5.5 $0.00019 $0.01197
Haiku 4.5 $0.00010 $0.00598

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

Security

Grade A, and why

cli-skill-design 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 17d 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.

connectonion/useful_skills/cli-skill-design/SKILL.md · 458 lines

How it starts

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

Designing a CLI skill

Design command help as a usage skill for both people and agents. The help page is the source of truth for choosing and using a command: purpose, inputs, procedure, effects, verification and recovery. An agent should be able to learn correct usage from help, execute a command, and continue from its actual output.

Keep one authored workflow definition. Render terminal help and, where supported, a loadable Skill from that definition. Derive command names, arguments, defaults and required flags from the CLI registration. Author workflow and evidence requirements explicitly; function signatures alone cannot explain them. A separate SKILL.md can route to relevant help and add domain judgment without maintaining a second copy of command syntax. This is a design requirement, not a claim that an existing CLI already generates Skills from its help.

co-browser is the worked example. Read it before you write anything: its exit-code table, its "read the output, not just the exit code" rule, and its Done checklist are what this methodology generalizes. (Building a skill that drives a website through co browser? That is the sibling skill browser-workflow-skill-builder — DOM, selectors, verification scripts. This one is about the command surface itself.)

Start with the help workflow contract below, then verify command discovery, execution and recovery. Record actual test results, not just design principles.

What CI enforces on every co command

tests/unit/test_cli_help_contract.py (#1657) runs co audit's engine, which never reads the source: it runs co --help, opens every command a page lists, and judges each page from what it printed, the way an agent meets it. co rem is walked but held to its own verbatim pages by tests/e2e/cli/test_rem_help_contract.py. There is no baseline and no waiver outside co rem's shrinking LOOK_PENDING (#1996): a new command fails CI until its page passes. Printed by a real co in an empty HOME and cwd, co <cmd> --help must:

Read the full file on GitHub · 458 lines

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. 17d ago Changed 437c303369bc
  2. 2mo ago Changed · +40 lines 6b2e395aa3f5
  3. 2mo ago Changed 03c0b10e7bcd
  4. 2mo ago Changed · +84 lines · +18 tokens per session a09fee9634f8
  5. 2mo ago Changed · +94 lines c5ba734db2ff
  6. 2mo ago Changed · +39 lines b2848c7e0b65
  7. 2mo ago Changed · +5 lines 54064c086f6e
  8. 2mo ago Changed · +9 lines 08c93990b744
  9. 2mo ago Changed 793880f63326
  10. 3mo ago First seen · 187 lines · 79 tokens per session scan A 8502e0f9f86c

Subscribe to this mod's changes

cli-skill-design is a skill published in the GitHub repository openonion/connectonion (1,568 stars, last pushed today), licensed Apache-2.0. It adds 97 tokens to every session and 5,983 once invoked, about $0.0004 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-30.

Related

cli-skill-design compared with skills from other repositories

cli-skill-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-skill-designopenonion/connectonionSkill1.6ktodayApache-2.0A97Claude Code, Codex
agent-lightningmicrosoft/agent-lightningSkill19k5d agoMITA43Claude Code
agentscope-javaagentscope-ai/agentscope-javaSkill6.5ktodayApache-2.0A91Claude Code, Codex
apply-patchagentscope-ai/agentscope-javaSkill6.5ktodayApache-2.0A38Claude Code, Codex
git-checkpointagentscope-ai/agentscope-javaSkill6.5ktodayApache-2.0A39Claude Code, Codex
company-employeePrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A85Claude Code, Codex
web-designPrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A51Claude Code, Codex