commanderjs

commanderjs is a skill for Claude Code from pantheon-org/tekhne. It costs 124 tokens per session (2,197 once invoked), scanned A, original, MIT.

A set of practical guides for Commander.js, a JavaScript and TypeScript library for building command-line tools. It covers commands, arguments, options, subcommands, and action handlers.

In plain words
What is it for?
Use it when creating a CLI, adding flags or subcommands, managing versions, or connecting Commander.js with TypeScript.
Why use it?
It helps you structure a command-line program and parse user input without having to piece together the framework’s API yourself.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import type { BuildOptions } from '../types/build-options';.

Good fit Use it when creating a CLI, adding flags or subcommands, managing versions, or connecting Commander.js with TypeScript.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne
agentmods
npx agentmods add skills/pantheon-org/tekhne/commanderjs

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 commanderjs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/commanderjs/github.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/commanderjs)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/commanderjs"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/commanderjs/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 commanderjs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/commanderjs"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/commanderjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,197 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.00124 $0.02197
Opus 5.5 $0.00050 $0.00879
Sonnet 5.5 $0.00025 $0.00439
Haiku 4.5 $0.00012 $0.00220

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

Security

Grade A, and why

commanderjs 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 2mo 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.

skills/development/commanderjs/SKILL.md · 216 lines

How it starts

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

Commander.js

Complete Commander.js framework guidance for building robust command-line interfaces with proper argument parsing, subcommands, options, and TypeScript support.

Mindset

Treat Commander.js as a declarative contract, not an argv reader. Model every input the CLI accepts as a .argument(), .option(), or subcommand before writing a single line of handler logic — the declaration is what generates --help output, coerces types, and produces Commander's own validation errors for free. Never reach for process.argv[n] as a shortcut past that declaration: every value read directly from argv is a value Commander no longer validates, documents, or reports errors for consistently with the rest of the program. Keep action handlers thin. Parse into a fully typed options object first, then pass that single object into a service function — never scatter individual opts.foo, opts.bar properties across a call site, because a service that grows a fourth or fifth positional parameter loses the compiler's ability to catch an argument-order mistake. Verify subcommand option scope before trusting program.opts() inside a subcommand action: each .command() owns its own option scope, and reading the parent program's opts() from inside a child action silently returns the wrong values instead of failing loudly.

When to Use

Use this skill when building a new CLI tool with Commander.js, adding subcommands, options, or arguments to an existing Commander.js program, migrating a CLI from raw process.argv parsing or another framework (yargs, meow) onto Commander.js, or diagnosing an option/argument/action handler that is not behaving as declared (wrong scope, a missing await, argv leaking through, help text not matching actual parsing behavior).

When NOT to Use

Do not reach for this skill when the target CLI deliberately avoids third-party argument-parsing dependencies, when the runtime's own built-in flag parser is the project's stated convention, or when the task is building a terminal UI (menus, prompts, live-updating panes) rather than parsing arguments — a TUI is a different problem from argument parsing and needs different tooling.

Read the full file on GitHub · 216 lines

Files

What ships with it

39 files 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. 2mo ago Changed · +12 lines dbd2bfc44a23
  2. 3mo ago First seen · 204 lines · 124 tokens per session scan A a85be354bcac

Subscribe to this mod's changes

commanderjs is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed 2d ago), licensed MIT. It adds 124 tokens to every session and 2,197 once invoked, about $0.0005 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-09-03.

Related

commanderjs compared with skills from other repositories

commanderjs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
commanderjspantheon-org/tekhneSkill102d agoMITA124Claude Code
google-publisher-tag-migrate-to-setconfiggoogle/skillsSkill25kyesterdayApache-2.0A175Claude Code, Codex
developing-genkit-jsgoogle/skillsSkill25kyesterdayApache-2.0A76Claude Code, Codex
setup-ts-deep-modulesvinvcn/mattpocock-skills-zh-CNSkill6.3k2d agoMITA49Claude Code, Codex
antfuantfu/skillsSkill6.1k5d agoMITA52Claude Code, Codex
setup-ts-deep-modulesdevcxl/mattpocock-skills-zhSkill568todayMITA49Claude Code, Codex
adkmajiayu000/claude-skill-registrySkill754yesterdayMITA0Claude Code, Codex