Find your next skill
← All skills
Development

cli-creator

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the us...

The answer

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script.

Install

mkdir -p .codex/skills
git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
cp -R /tmp/openai-skills/skills/.curated/cli-creator .codex/skills/cli-creator

Author's take / 作者点评

Fast way to bootstrap tiny Python CLIs. Ideal for agent-made utilities; expect to harden parsing/tests after.

快速搭小型 Python CLI 很方便;生产前还要补参数解析与测试。

What it does

Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read/write commands, return stable JSON, manage auth, and pair with a companion skill.

This entry summarizes the public skill for discovery. Prefer the upstream SKILL.md for the full instruction text (we do not paste restricted or lengthy proprietary prompt bodies).

Install & usage

Codex

Inside Codex, use the skill installer (repo is deprecated as a catalog but curated skills remain usable):

$skill-installer cli-creator

Or copy from GitHub:

mkdir -p .codex/skills
git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
cp -R /tmp/openai-skills/skills/.curated/cli-creator .codex/skills/cli-creator

Restart Codex after install so it discovers the skill.

Best for

Turning APIs/OpenAPI specs into composable Codex CLIs.

Hands-on test

  • test_level: fully-tested
  • Ran: yes
  • When: 2026-11-01T01:20:00+08:00 (Asia/Shanghai)
  • Result: Scaffolded notes-cli (add/list over JSON store); add and list commands returned expected JSON.
  • Gotchas: Scaffold is minimal — add argparse/tests yourself for production CLIs.

Money-saving tip

Prefer ChatGPT Go ($8/mo US) or Plus ($20/mo) before Pro tiers; Business annual Standard seats are $20/user/mo vs $25 monthly. Nonprofit Standard seats: $8 annual / $10 monthly (help.openai.com).

Source & license