building-command-line-interfaces

building-command-line-interfaces is a skill for Claude Code from wahidyankf/ose-public. It costs 43 tokens per session (671 once invoked), scanned A, original, MIT.

A guide for building and reviewing command-line tools, which are programs operated by typing commands in a terminal. It covers exit statuses, where messages are printed, and runtime defaults that may need changing.

In plain words
What is it for?
Use it when choosing success or failure codes, separating normal output from error messages, and checking that a command framework follows the intended contract.
Why use it?
It helps prevent scripts and people from misunderstanding whether a command succeeded and what its output means. It provides decisions for making a command-line tool behave consistently for callers.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when choosing success or failure codes, separating normal output from error messages, and checking that a command framework follows the intended contract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wahidyankf/ose-public/building-command-line-interfaces
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 wahidyankf/ose-public --skill building-command-line-interfaces
Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

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 building-command-line-interfaces

README.md
[![agentmods](https://agentmods.dev/badge/skills/wahidyankf/ose-public/building-command-line-interfaces/github.svg)](https://agentmods.dev/skills/wahidyankf/ose-public/building-command-line-interfaces)
Your own site
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/building-command-line-interfaces"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/building-command-line-interfaces/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 building-command-line-interfaces

Your own site · 80×15
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/building-command-line-interfaces"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/building-command-line-interfaces.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 671 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 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.00043 $0.00671
Opus 5.5 $0.00017 $0.00268
Sonnet 5.5 $0.00009 $0.00134
Haiku 4.5 $0.00004 $0.00067

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

Security

Grade A, and why

building-command-line-interfaces 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.

.agents/skills/building-command-line-interfaces/SKILL.md · 57 lines

How it starts

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

Building Command-Line Interfaces

Command-Line Interface fixes the contract and its eight modules hold the rules. This skill covers the judgement of applying them, not the rules themselves.

Ask What the Caller May Conclude

Choosing an exit status is one question asked in one direction: what may a caller conclude from this number?

Work forward from the caller, never backward from the code path. A tempting status is usually a description of what went wrong internally, which is the body's job. The number answers only whether the result can be trusted, and the hardest case is the one worth slowing down for — deciding whether this path is a result the caller should act on, or a failure to produce one. When unsure, ask whether a script that treated this as a real answer would then do something wrong. If it would, the path is not a result.

Assume the Runtime Is Wrong

Every runtime and every command framework breaks part of this contract by default, in a different place and for a different reason. A tool is not conforming because nobody changed anything; it conforms because someone overrode a default and left a test behind proving it stayed overridden.

The defaults worth checking first, because they are the ones that silently look fine:

  • What the process reports when it panics, throws, or aborts — commonly a status the contract reserves for a result.
  • What happens when a reader closes the pipe, which is the single most common real defect.
  • What a death by signal reports, which frameworks tend to collapse into a result status.
  • Which stream the usage text reaches on a failed invocation, since a framework often writes it through a stream the calling program supplies.

Set each one explicitly at construction rather than relying on it. A default that happens to be right today is not a decision, and the next dependency upgrade is free to change it.

Read the full file on GitHub · 57 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 57 lines · 43 tokens per session scan A 9fa8cb7895d2

Subscribe to this mod's changes

building-command-line-interfaces is a skill published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 671 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-10-14.

Related

Other skills, from other repositories

turborepo

Configure and troubleshoot Turborepo repositories. Use when working with turbo.json, task pipelines, caching, Remote Cache, the turbo CLI, filtering, environment variables, package boundaries, monorepo structure, or CI workflows.

vercel/turborepo · 50 tokens

nx-plugin-for-aws

Scaffold and build cloud-native applications on AWS using @aws/nx-plugin generators. Use when the user wants to create workspaces, generate projects, or scaffold infrastructure with the Nx Plugin for AWS.

awslabs/nx-plugin-for-aws · 46 tokens

frontmcp-setup

Use when starting, scaffolding, or organizing a FrontMCP project. Covers creating a new project (CLI scaffold or manual) for Node, Vercel, and other targets; standalone versus Nx-monorepo layout, naming conventions, generators, and dependency rules; composing multiple @App classes, ESM packages, and remote MCP servers…

agentfront/frontmcp · 176 tokens

investigate-cloudflare

Investigate deployed Worker failures, regressions, and missing operational signals using Cloudflare Issues, logs, traces, SQL, or Observability MCP. Produce bounded evidence and verify recurrence against the deployed version.

brandhaug/b2b-saas-starter · 45 tokens

add-a-lib

Scaffold a new shared library under libs/ in the builders-stack monorepo. Use when code is needed in two or more places (apps or services) and should become a single source of truth consumed by package name. Covers the package.json, tsconfig, the one-public-door src/index.ts barrel, and wiring it into a consumer…

lonormaly/builders-stack · 81 tokens

implement

Implement an agreed issue or spec through implementation, review, fixes, and a PR ready to merge.

brandhaug/b2b-saas-starter · 22 tokens