cli-creator
Ce qu’il fait
Ce skill aide à construire un outil en ligne de commande durable à partir d'une API, d'une application web ou d'un script existant, afin de pouvoir l'exécuter depuis n'importe quel dossier. Il s'adresse aux personnes qui répètent les mêmes tâches et veulent un outil fiable pour les accomplir.
Quand l’utiliser
- ✓Quand vous voulez un outil en ligne de commande qui lit ou écrit des données d'une API que vous utilisez souvent.
- ✓Quand vous avez des exemples curl ou une spécification OpenAPI et voulez les transformer en commande réutilisable.
- ✓Quand vous voulez un outil qu'un agent d'IA peut lancer depuis n'importe quel projet, avec une sortie JSON stable.
Lien du skill
https://github.com/openai/skills/blob/main/skills/.curated/cli-creator/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu construire un outil en ligne de commande qui liste mes tâches CI en échec, à partir de la documentation de l'API que je partage ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent vérifie quels outils sont installés, choisit un langage adapté, génère les commandes, gère la connexion et installe l'outil sous un nom de commande court.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
CLI Creator
Create a real CLI that future Codex threads can run by command name from any working directory.
This skill is for durable tools, not one-off scripts. If a short script in the current repo solves the task, write the script there instead.
Start
Name the target tool, its source, and the first real jobs it should do:
- Source: API docs, OpenAPI JSON, SDK docs, curl examples, browser app, existing internal script, article, or working shell history.
- Jobs: literal reads/writes such as
list drafts,download failed job logs,search messages,upload media,read queue schedule. - Install name: a short binary name such as
ci-logs,slack-cli,sentry-cli, orbuildkite-logs.
Prefer a new folder under ~/code/clis/<tool-name> when the user wants a personal tool and has not named a repo.
Before scaffolding, check whether the proposed command already exists:
command -v <tool-name> || true
If it exists, choose a clearer install name or ask the user.
Choose the Runtime
Before choosing, inspect the user's machine and source material:
command -v cargo rustc node pnpm npm python3 uv || true
Then choose the least surprising toolchain:
- Default to Rust for a durable CLI Codex should run from any repo: one fast binary, strong argument parsing, good JSON handling, easy copy/install into
~/.local/bin. - Use TypeScript/Node when the official SDK, auth helper, browser automation library, or existing repo tooling is the reason the CLI can be better.
- Use Python when the source is data science, local file transforms, notebooks, SQLite/CSV/JSON analysis, or Python-heavy admin tooling that can still be installed as a durable command.
Do not pick a language that adds setup friction unless it materially improves the CLI. If the best language is not installed, either install the missing toolchain with the user's approval or choose the next-best installed option.
State the choice in one sentence before scaffolding, including the reason and the installed toolchain you found.
Command Contract
Sketch the command surface in chat before coding. Include the binary name, discovery commands, resolve or ID-lookup commands, read commands, write commands, raw escape hatch, auth/config choice, and PATH/install command.
When designing the command surface, read references/agent-cli-patterns.md for the expected composable CLI shape.
Build toward this surface:
tool-name --helpshows every major capability.tool-name --json doctorverifies config, auth, version, endpoint reachability, and missing setup.tool-name init ...stores local config when env-only auth is painful.- Discovery commands find accounts, projects, workspaces, teams, queues, channels, repos, dashboards, or other top-level containers.
- Resolve commands turn names, URLs, slugs, permalinks, customer input, or build links into stable IDs so future commands do not repeat broad searches.
- Read commands fetch exact objects and list/search collections. Paginated lists support a bounded
--limit, cursor, offset, or clearly documented default. - Write commands do one named action each: create, update, delete, upload, schedule, retry, comment, draft. They accept the narrowest stable resource ID, support
--dry-run,draft, orpreviewfirst when the service allows it, and do not hide writes inside broad commands such asfix,debug, orauto. --jsonreturns stable machine-readable output.- A raw escape hatch exists:
request,tool-call,api, or the nearest honest name.
Do not expose only a generic request command. Give Codex high-level verbs for the repeated jobs.
Document the JSON policy in the CLI README or equivalent: API pass-through versus CLI envelope, success shape, error shape, and one example for each command family. Under --json, errors must be machine-readable and must not contain credentials.
Auth and Config
Support the boring paths first, in this precedence order:
- Environment variable using the service's standard name, such as
GITHUB_TOKEN. - User config under
~/.<tool-name>/config.tomlor another simple documented path. --api-keyor a tool-specific token flag only for explicit one-off tests. Prefer env/config for normal use because flags can leak into shell history or process listings.
Never print full tokens. doctor --json should say whether a token is available, the auth source category (flag, `env
Questions fréquentes
Pourquoi ne pas simplement écrire un script ?
Le skill indique qu'un petit script dans le projet courant suffit pour un travail ponctuel, mais que ce skill sert aux outils durables.
Quel langage utilise-t-il ?
Le skill privilégie Rust pour un binaire unique et rapide, mais il peut choisir une autre chaîne d'outils adaptée à la machine.
Comment sont gérées les connexions ?
Le skill indique qu'il gère l'authentification dans le cadre de la construction de l'outil.
Détails
Description originale de l’auteur
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.
repo: openai/skills
Popularité
- Étoiles GitHub
- 28k
- Position au classement
- #9846
- Licence
- —
- Mis à jour
- 28/10/2026
Commentaires
- …
Autres skills de ce dépôt
aspnet-core
28kAide votre agent à créer, revoir ou mettre à niveau une application web ASP.NET Core, en choisissant le bon type et en suivant les recommandations actuelles de Microsoft.
chatgpt-apps
28kAide votre agent à construire une application ChatGPT qui relie un serveur MCP à un widget, avec la conception des outils, les métadonnées et la configuration locale.
define-goal
28kAide votre agent à transformer une intention vague en objectif mesurable, avec critères de réussite, périmètre et condition d'arrêt, avant de commencer.
figma-code-connect-components
28kAide votre agent à relier les composants Figma à leurs versions en code avec Code Connect, pour que maquettes et code restent cohérents.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.