2 2
3[← All use cases](https://developers.openai.com/codex/use-cases)3[← All use cases](https://developers.openai.com/codex/use-cases)
4 4
5Copy page [Export as PDF](https://developers.openai.com/codex/use-cases/agent-friendly-clis/?export=pdf)
6
5Ask Codex to create a composable CLI it can run from any folder, combine with repo scripts, use to download files, and remember through a companion skill.7Ask Codex to create a composable CLI it can run from any folder, combine with repo scripts, use to download files, and remember through a companion skill.
6 8
7Intermediate9Intermediate
26 28
27 Create the companion skill that teaches later Codex tasks which CLI commands to run first and which write actions require approval.29 Create the companion skill that teaches later Codex tasks which CLI commands to run first and which write actions require approval.
28 30
31| Skill | Why use it |
32| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
33| [Cli Creator](https://github.com/openai/skills/tree/main/skills/.curated/cli-creator) | Design the command surface, build the CLI, add setup and auth checks, install the command on PATH, and verify it from another folder. |
34| [Skill Creator](https://github.com/openai/skills/tree/main/skills/.system/skill-creator) | Create the companion skill that teaches later Codex tasks which CLI commands to run first and which write actions require approval. |
35
29## Starter prompt36## Starter prompt
30 37
31Use $cli-creator to create a CLI you can use, and use $skill-creator to create the companion skill in this same thread.38Use $cli-creator to create a CLI you can use, and use $skill-creator to create the companion skill in this same thread.
35 Command name: [cli-name, or recommend one].42 Command name: [cli-name, or recommend one].
36Before coding, show me the proposed command surface and ask only for missing details that would block the build.43Before coding, show me the proposed command surface and ask only for missing details that would block the build.
37 44
45Use $cli-creator to create a CLI you can use, and use $skill-creator to create the companion skill in this same thread.
46Source to learn from: [docs URL, OpenAPI spec, redacted curl command, existing script path, log folder, CSV or JSON export, SQLite database path, or pasted --help output].
47First job the CLI should support: [download failed CI logs from a build URL, search support tickets and read one by ID, query an admin API, read a local database, or run one step from an existing script].
48Optional write job: [create a draft comment, upload media, retry a failed job, or read-only for now].
49 Command name: [cli-name, or recommend one].
50Before coding, show me the proposed command surface and ask only for missing details that would block the build.
51
38## Introduction52## Introduction
39 53
40When Codex keeps using the same API, log source, exported inbox, local database, or team script, give that work a composable interface: a command it can run from any folder, inspect, narrow, and combine with `git`, `gh`, `rg`, tests, and repo scripts.54When Codex keeps using the same API, log source, exported inbox, local database, or team script, give that work a composable interface: a command it can run from any folder, inspect, narrow, and combine with `git`, `gh`, `rg`, tests, and repo scripts.