/victorhahn-skills:cli-creatorfrom victorhahn-skills
Build a durable, installable Node/TypeScript CLI that Claude Code can run by command name from any working directory. Use this skill whenever the user wants to create a production-grade command-line tool from API docs, an OpenAPI spec, curl examples, an SDK, an internal web app, or an existing script — and wants it to expose composable commands, return stable JSON, manage auth cleanly, and pair with a companion skill. Trigger on: "build a CLI for X", "create a command-line tool", "turn these curls into a CLI", "wrap this API", "make a durable command I can run from anywhere", "CLI from OpenAPI", "installable tool for X", "package this script as a command", or any request to turn a workflow into a persistent binary. This is for durable tools, not one-off scripts — if a short script in the current repo solves the task, write it there instead. If the same tool also needs a polished interactive surface (multi-panel TUI, live updates, navigation beyond a single table), also invoke `tui-creator` for layout, color, focus, animation, and Ink 7 / React 19 implementation recipes.
Ships in victorhahn-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build a real Node/TypeScript CLI that future Claude Code sessions can invoke by name from any working directory.
This skill assumes the Node/TypeScript + Ink stack: agent-friendly JSON output from the same binary that can render a polished interactive TUI when invoked without --json. The companion tui-creator skill covers the interactive side.
Before touching code, identify three things:
list failed deployments, download job logs, search messages, upload media.dd-cli, slack-logs, gh-dash.Default install location: ~/code/clis/<tool-name>/ for personal tools with no named repo.
Check for conflicts before scaffolding:
command -v <tool-name> || true
If occupied, propose a clearer name.
command -v node pnpm tsx || true
node --version
Always use pnpm. It's the project default — strict by design (no phantom deps), fast, content-addressable. If pnpm is missing, install it via corepack enable && corepack prepare pnpm@latest --activate rather than falling back to npm. Use pnpm dlx instead of npx for any one-shot package execution. Commit pnpm-lock.yaml; never commit package-lock.json or yarn.lock.
Use tsx for dev (zero-config TS execution), tsup for builds (ESM + DTS). Stick with the platform: native fetch, native crypto, native fs/promises — no extra dependencies where a built-in works.
Node baseline: Node 20+ for the pure agent CLI, Node 22+ if Ink (TUI) is included (Ink 7's requirement).
State your runtime choices in one sentence: confirm pnpm is available, build tool, anything non-default.
Before writing code, sketch the full command surface in chat and get alignment. Read references/agent-cli-patterns.md for the canonical composable CLI shape, JSON conventions, and common anti-patterns.
The surface must include:
<tool> --help — every major capability visible<tool> --json doctor — checks config, auth, version, endpoint reachability, missing setuplist/search with a bounded --limit or cursorcreate, update, delete, upload, retry);
accept narrow stable IDs; support --dry-run or --draft where the service allows--json flag — stable machine-readable output on every commandrequest, api, or tool-call; read-only firstNever expose only a generic request — give Claude Code high-level verbs for repeated jobs.
Document the JSON contract in the README: API pass-through vs. CLI envelope, success shape,
error shape, one example per command family. Errors under --json must be machine-readable
and must never contain credentials.
A well-designed CLI serves two audiences from one binary:
<tool> --json <verb> returns strict JSON, exits with a code, prints nothing else. This is what Claude Code chains together across sessions.<tool> <verb> without --json may render a rich interactive surface (table, prompts, or full Ink TUI). When the same data flows through both paths, the agent and human stay in sync.If the tool warrants a full TUI (more than a row table — multi-panel, live updates, navigation), invoke the tui-creator skill to design that surface. It covers layout, color, focus, animation, and real-world precedent across 18 reference TUIs, plus Ink 7 / React 19 implementation recipes.
Support in this precedence order:
GITHUB_TOKEN, DATADOG_API_KEY)~/.<tool-name>/config.toml or another simple, documented path--api-key, --token) — only for explicit one-off use; flags leak into shell
history and process listingsNever print full tokens. doctor --json must report: token present/absent, auth source
(env, config, flag, or missing), and the exact missing setup step.
For internal web apps sourced from DevTools curls: before implementing, write sanitized endpoint notes (resource name, method/path, headers, auth mechanism, CSRF, request body, response ID fields, pagination, errors, one redacted sample response). Never commit cookies, bearer tokens, customer secrets, or full production payloads.
doctor, discovery, resolve, read commands, one --dry-run write path
if requested, raw escape hatch.<tool-name> ... works from any directory./tmp or another repo:
command -v <tool-name>, <tool-name> --help, <tool-name> --json doctor.doctor, help output, and at least one fixture or live read-only call.For a live write: ask first; keep it reversible or draft-only.
See references/node-defaults.md for the exact packages,
project layout, install patterns, and Makefile targets to use. Versions in that file are
verified against the npm registry; re-check dist-tags.latest for ink and react
before scaffolding if it's been a while.
After the CLI is installed and smoke-tested, create a companion skill at
~/.claude/skills/<tool-name>/SKILL.md.
Write it in the order a future Claude Code session should use the CLI — not as a feature tour. Cover:
command -v <tool-name>)Keep API reference details in the CLI README or a references/ file inside the skill.
Keep the skill itself focused on ordering, safety, and examples.
Frontmatter template:
---
name: <tool-name>
description: >
Use the <tool-name> CLI to <what it does>. Trigger when the user asks to <key jobs>.
Before any write command, verify with --dry-run or confirm intent explicitly.
---
tui-creator — The interactive side. Layout paradigm selector, three direction archetypes (Studio / Atelier / Concourse), cross-cutting patterns, ranked anti-patterns, semantic color system, focus management, animation rules, accessibility — plus Ink 7 / React 19 implementation recipes. Invoke alongside this skill when the same binary also exposes an interactive surface.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/ai-engineering-digestFetch a weekly briefing of what's trending and being discussed in the AI engineering landscape — HN, Reddit, GitHub — and synthesize it into a structured digest covering technical signal, notable projects, and the professional/cultural discourse around AI. Use when the user says "/ai-engineering-digest", "run the digest", "what's the ai meta this week", "weekly ai pulse", "what's trending in ai dev", or wants a broad briefing on the current state of AI engineering. Accepts an optional topic arg for on-demand narrower queries ("/ai-engineering-digest mcp")./aws-solutions-architectExpert AWS solutions architect with deep knowledge of AWS services, architecture patterns, best practices, cost optimization strategies, and Terraform AWS provider implementation. Use this skill whenever the user asks about AWS architecture, AWS service selection, infrastructure design, cost optimization, rightsizing, savings plans, Reserved Instances, AWS debugging, CloudWatch, IAM, networking (VPCs, subnets, security groups, Transit Gateway), ECS/EKS, Lambda, DynamoDB, RDS, S3, SQS/SNS, API Gateway, or any AWS service question. Also trigger for Terraform AWS provider questions, terraform-aws module usage, writing or reviewing .tf files that use AWS resources, and any question that starts with "what's the best way to..." in an AWS or infrastructure context. When in doubt about whether this is an AWS question, use this skill — it's better to over-apply than miss a relevant question.
Other plugins' skills for the same job
Generated from the plugin's indexed repository (victorhahn/skills) — no native marketplace selected
npx claudepluginhub p/victorhahn-victorhahn-skills