cli-creator
Qué hace
Esta habilidad ayuda a crear una herramienta de línea de comandos duradera a partir de una API, una app web o un script existente, para que pueda ejecutarse desde cualquier carpeta. Es para quienes repiten las mismas tareas y quieren una herramienta confiable para hacerlas.
Cuándo usarla
- ✓Cuando quieres una herramienta de línea de comandos que lea o escriba datos de una API que usas a menudo.
- ✓Cuando tienes ejemplos de curl o una especificación OpenAPI y quieres convertirlos en un comando reutilizable.
- ✓Cuando quieres una herramienta que un agente de IA pueda ejecutar desde cualquier proyecto, con salida JSON estable.
Link de la skill
https://github.com/openai/skills/blob/main/skills/.curated/cli-creator/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes construirme una herramienta de línea de comandos que liste mis trabajos de CI fallidos, usando la documentación de API que comparto?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente comprueba qué herramientas están instaladas, elige un lenguaje adecuado, arma los comandos, gestiona el inicio de sesión e instala la herramienta con un nombre corto de comando.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Por qué no escribir solo un script?
La habilidad indica que un script corto en el proyecto actual sirve para trabajos puntuales, pero esta habilidad es para herramientas duraderas.
¿Qué lenguaje usa?
La habilidad usa Rust por defecto para un solo binario rápido, aunque puede elegir otra herramienta que encaje con la máquina.
¿Cómo se manejan los inicios de sesión?
La habilidad indica que gestiona la autenticación como parte de la construcción de la herramienta.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 28 mil
- Posición en el ranking
- #9846
- Licencia
- —
- Actualizada
- 28/10/2026
Comentarios
- …
Más skills de este repositorio
aspnet-core
28 milAyuda a tu agente a construir, revisar o actualizar apps web de ASP.NET Core, eligiendo el tipo de app adecuado y siguiendo la guía vigente de Microsoft para .NET.
chatgpt-apps
28 milAyuda a tu agente a construir una app de ChatGPT con un servidor MCP y una interfaz de widget, incluyendo herramientas, recursos de UI y configuración local.
define-goal
28 milAyuda a tu agente a convertir una intención vaga en un objetivo claro y medible, con criterios de éxito, alcance y condición de parada antes de empezar.
figma-code-connect-components
28 milAyuda a tu agente a vincular componentes de diseño de Figma con sus versiones en código mediante Code Connect, para que diseño y código se mantengan consistentes.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.