cli-creator

Builds composable command-line tools for Codex from API docs, OpenAPI specs, or curl examples.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/CHENHUI-X/toolbox --skill cli-creator-chenhui-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-creator
Source: https://github.com/CHENHUI-X/toolbox/tree/main/codex-skill/codex/cli-creator
Command: npx skills add https://github.com/CHENHUI-X/toolbox --skill cli-creator-chenhui-x

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Turning an API, web app, or ad-hoc script into a durable, installable CLI that future Codex sessions can run from any directory is repetitive and error-prone. This Skill guides the full workflow: choosing a runtime, designing a composable command surface, handling auth, installing on PATH, and writing a companion skill. ## Core Features & Use Cases - Source-driven CLI scaffolding: Builds CLIs from API docs, OpenAPI specs, curl examples, SDKs, browser apps, or existing shell scripts, in Rust, TypeScript/Node, or Python. - Composable command contract: Enforces discovery, resolve, read, and narrow write commands with stable --json output, a doctor command, and a raw escape hatch. - Auth and safety guardrails: Standardizes env/config/flag auth precedence, token redaction, dry-run writes, and sanitized endpoint notes from DevTools captures. - Use Case: You have curl commands copied from an internal admin tool's DevTools. Use this Skill to turn them into an installed admin-cli binary with doctor, resource listing, and draft-only write commands, plus a companion skill teaching future sessions how to use it. ## Quick Start Ask Codex to create a CLI from your API documentation or curl examples, install it on PATH, and generate a companion skill for it.

Frequently Asked Questions about cli-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn API documentation into a command-line tool?

Provide the API docs, OpenAPI spec, or curl examples as source material, then define the target jobs like listing resources or downloading logs. The Skill scaffolds a CLI with discovery, resolve, read, and write commands, installs it on PATH, and smoke-tests it from outside the source folder.

What language should I use to build a CLI for an AI agent?

Rust is the default for durable CLIs because it produces one fast binary with strong argument parsing and JSON handling. Use TypeScript/Node when an official SDK or browser automation library matters, and Python for data-heavy or script-wrapping workflows.

How should a CLI handle API tokens and authentication?

Support environment variables first using the service's standard name, then a user config file, then a token flag only for one-off tests. Never print full tokens, and make the doctor command report the auth source category and any missing setup steps.

Can I build a CLI from browser DevTools curl captures?

Yes, but first create sanitized endpoint notes covering method, path, headers, auth mechanism, request body, and pagination. Never commit copied cookies, bearer tokens, customer secrets, or full production payloads into the CLI repository.

What commands should an agent-friendly CLI expose?

Expose a doctor command for config and auth checks, discovery commands for top-level containers, resolve commands that turn names or URLs into stable IDs, narrow read and write commands with --json, and a raw request escape hatch. Avoid hiding writes inside broad commands like fix or debug.

When should I not use this Skill to build a CLI?

Do not use it for one-off tasks where a short script in the current repo solves the problem. This Skill targets durable tools that future sessions will run repeatedly by command name from any working directory.