working-on-cli

working-on-cli is a skill for Claude Code from ai-driven-dev/framework. It costs 59 tokens per session (400 once invoked), scanned A, original, MIT.

A set of rules for changing the command-line interface, meaning the text-based commands and tools, in a repository. It directs work through the relevant command, business rule, error handling, context, and test changes.

In plain words
What is it for?
Use it when adding or changing CLI commands and tools, business rules, error paths, context, or tests.
Why use it?
It reduces the risk of fixing only one part of a command-line change while leaving failures, tests, or related files inconsistent. It also defines boundaries for work under the CLI directory.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when adding or changing CLI commands and tools, business rules, error paths, context, or tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ai-driven-dev/framework/working-on-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 ai-driven-dev/framework --skill working-on-cli
Clone the repo
git clone --depth 1 https://github.com/ai-driven-dev/framework

Made for: Claude Code.

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 working-on-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/ai-driven-dev/framework/working-on-cli/github.svg)](https://agentmods.dev/skills/ai-driven-dev/framework/working-on-cli)
Your own site
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/working-on-cli"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/working-on-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 working-on-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/ai-driven-dev/framework/working-on-cli"><img src="https://agentmods.dev/badge/skills/ai-driven-dev/framework/working-on-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 400 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 unknown 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.00059 $0.00400
Opus 5.5 $0.00024 $0.00160
Sonnet 5.5 $0.00012 $0.00080
Haiku 4.5 $0.00006 $0.00040

Measured today against content hash 27fde29b6200, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

working-on-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 today.

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.

.claude/skills/working-on-cli/SKILL.md · 42 lines

What it actually says

Working on the CLI

flowchart LR
  addTool([new tool or host format]) --> tool
  newCommand([command]) --> command --> domain
  rule([business rule]) --> domain
  domain --> failure
  error([error or partial failure]) --> failure
  command --> test
  domain --> test
  tool --> test
  newContext([context]) --> context --> test
  test --> green([gates green])
  failure --> test

Actions

Run the flow above. Read only the action for the change, then what it loads.

Action Does
tool add an AI tool or follow a host's format change
command add or change a command
domain change a business rule inside a context
failure handle an error, a missing file or a partial failure
test write or fix a test
context create, split or move a context

Transversal rules

  • Paths are rooted at cli/.
  • A red gate is fixed at its cause, never by an exemption or a wider allow-list; the one sanctioned growth exemption is the folder-size GROWS_BY_DESIGN list (tests/architecture/folder-size.arch.test.ts), one file per registered tool.
  • A golden, an e2e output or a fixture is a frozen surface: change it only for a deliberate product change, and say so in the commit.
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. today First seen · 42 lines · 59 tokens per session scan A 27fde29b6200

Subscribe to this mod's changes

working-on-cli is a skill published in the GitHub repository ai-driven-dev/framework (593 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 400 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-12-01.

Related

working-on-cli compared with skills from other repositories

working-on-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
working-on-cliai-driven-dev/frameworkSkill593todayMITA59Claude Code
podcast-generationbytedance/deer-flowSkill86ktodayMITA38Claude Code, Codex
skill-reviewerbytedance/deer-flowSkill86ktodayMITA38Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A138Claude Code, Codex
knowledge-orgbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A96Claude Code, Codex
zeroclaw-docszeroclaw-labs/zeroclawSkill34ktodayApache-2.0A80Claude Code, Codex
kb-buildertinyfish-io/tinyfish-cookbookSkill2.3k7d agoMITA158Claude Code, Codex