cli-development

cli-development is a skill for Claude Code, Codex from irahardianto/awesome-agv. It costs 25 tokens per session (742 once invoked), scanned A, original, MIT.

A guide to designing command-line tools, which are programs operated by typing commands and options in a terminal.

In plain words
What is it for?
Use it when planning command hierarchies, argument parsing, interactive prompts, shell completion, cross-platform behavior, packaging, and distribution.
Why use it?
It helps make commands understandable for people and predictable for scripts, including clear errors, exit codes, defaults, and machine-readable output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when planning command hierarchies, argument parsing, interactive prompts, shell completion, cross-platform behavior, packaging, and distribution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/irahardianto/awesome-agv/cli-development
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 irahardianto/awesome-agv --skill cli-development
Clone the repo
git clone --depth 1 https://github.com/irahardianto/awesome-agv

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-development

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/irahardianto/awesome-agv/cli-development"><img src="https://agentmods.dev/badge/skills/irahardianto/awesome-agv/cli-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 48
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00025 $0.00742
Opus 5.5 $0.00010 $0.00297
Sonnet 5.5 $0.00005 $0.00148
Haiku 4.5 $0.00003 $0.00074

Measured 1mo ago against content hash d8ed0a494974, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-development 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/cli-development/SKILL.md · 92 lines

How it starts

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

CLI Development Principles

Guidelines for building fast, intuitive, cross-platform CLI tools.

When to Invoke

  • Designing CLI tool architecture
  • Implementing command hierarchies and argument parsing
  • Adding shell completions and interactive features
  • Cross-platform distribution planning

Architecture

Command Hierarchy

app <command> [subcommand] [flags] [args]
app task create --priority high "Deploy fix"
app task list --status active --format json

Design Principles

  1. Startup time < 100ms — lazy-load expensive dependencies.
  2. Sensible defaults — zero-config for common cases.
  3. Progressive disclosure — simple interface, advanced flags for power users.
  4. Machine-readable output — --format json for scripting.
  5. Exit codes — 0 = success, 1 = error, 2 = usage error.

Argument Parsing Libraries

Language Library Notes
Go cobra + pflag Most popular, auto-completions
Rust clap (derive) Type-safe, auto-help
Python click or typer Decorator-based, typer for type hints
Node.js commander or yargs Mature, well-documented

Error Handling

  1. Helpful error messages — what went wrong, why, how to fix:

    Error: config file not found at ~/.myapp/config.yaml
    Hint: run 'myapp init' to create a default config
    
  2. --verbose / --debug flags for diagnostic output.

  3. Never show stack traces by default — only with --debug.

Shell Completions

Generate completions for bash, zsh, fish, PowerShell. Most CLI frameworks support this.

# Generate completions
myapp completion bash > /etc/bash_completion.d/myapp
myapp completion zsh > ~/.zsh/completions/_myapp

Cross-Platform

  1. Path handling — use filepath.Join (Go), Path (Python), not string concat.
  2. Line endings — handle \r\n on Windows.
  3. Color support — detect terminal capabilities, respect NO_COLOR env var.
  4. Unicode — test with non-ASCII filenames and input.

Read the full file on GitHub · 92 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. 1mo ago First seen · 92 lines · 25 tokens per session scan A d8ed0a494974

Subscribe to this mod's changes

cli-development is a skill published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 9d ago), licensed MIT. It adds 25 tokens to every session and 742 once invoked, about $0.0001 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

Other skills, from other repositories

android-finance-spec

Use when generating, reviewing, or refactoring Android Kotlin code for financial apps that require BigDecimal/String precision, RTL/i18n safety, Kotlin style discipline, and "do not reinvent existing project patterns" constraints.

brycegao/android-finance-spec · 48 tokens

om-system-extension

Extend installed Open Mercato modules through UMES enrichers, interceptors, mutation guards, widgets, menus, entity extensions, events, component/page replacements, and overrides. Use for "extend core", "add field/column/action", "hide page", "intercept API", "UMES", or "rozszerz moduł".

open-mercato/open-mercato · 73 tokens

om-build-workflow

Build or extend standalone business workflows, activities, event triggers, durable user tasks, compensation, output paths, idempotency, and live progress. Use for "add workflow", "custom activity", "CALLAPI", "approval task", "workflow progress", or "zbuduj workflow".

open-mercato/open-mercato · 63 tokens

om-evolve-harness

Add a reproducible standalone agent-harness use case or correct failed routing/context with semantic assertions, one knowledge owner, and before/after evaluation. Use for "add harness case", "agent got this wrong", "extend the harness", "new use case", or "rozszerz harness".

open-mercato/open-mercato · 66 tokens

om-troubleshooter

Diagnose and fix standalone Open Mercato bugs across scope, commands, locking, fields, generated registries, UI hydration, cache/search, bootstraps, queues, and providers. Use for "fix bug", "why does this fail", "regression", "debug", "napraw błąd", or a failing test.

open-mercato/open-mercato · 73 tokens

om-trim-unused-modules

Analyze and disable unused built-in modules in a standalone app without breaking dependencies, navigation, backend landing, bootstrap, or generation. Use for "trim classic mode", "remove unused modules", "slim app", "disable built-ins", or "wyłącz moduły".

open-mercato/open-mercato · 61 tokens