본문으로 건너뛰기
Skillpedia
일반 코딩28k · #9846

cli-creator

하는 일

이 스킬은 API, 웹 앱, 기존 스크립트를 바탕으로 어느 폴더에서나 실행할 수 있는 지속적인 명령줄 도구를 만드는 데 도움을 줍니다. 같은 작업을 반복하고 안정적인 도구를 원하는 사람을 위한 것입니다.

사용하는 경우

  • ✓자주 쓰는 API에서 데이터를 읽거나 쓰는 명령줄 도구가 필요할 때.
  • ✓curl 예제나 OpenAPI 명세가 있어 재사용 가능한 명령으로 바꾸고 싶을 때.
  • ✓AI 에이전트가 어떤 프로젝트에서든 실행할 수 있고 안정적인 JSON을 출력하는 도구를 원할 때.

스킬 링크

https://github.com/openai/skills/blob/main/skills/.curated/cli-creator/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/openai/skills/blob/main/skills/.curated/cli-creator/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“공유한 API 문서를 이용해서 실패한 CI 작업 목록을 보여주는 명령줄 도구를 만들어 주시겠어요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트가 설치된 도구를 확인하고, 알맞은 언어를 고르며, 명령의 뼈대를 만들고, 로그인을 처리한 뒤 짧은 명령 이름으로 도구를 설치합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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, or buildkite-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 --help shows every major capability.
  • tool-name --json doctor verifies 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, or preview first when the service allows it, and do not hide writes inside broad commands such as fix, debug, or auto.
  • --json returns 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:

  1. Environment variable using the service's standard name, such as GITHUB_TOKEN.
  2. User config under ~/.<tool-name>/config.toml or another simple documented path.
  3. --api-key or 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

자주 묻는 질문

그냥 스크립트를 쓰면 안 되나요?

일회성 작업이라면 현재 프로젝트의 짧은 스크립트도 괜찮지만, 이 스킬은 지속적으로 쓸 도구를 위한 것이라고 설명합니다.

어떤 언어를 쓰나요?

단일 빠른 바이너리를 위해 기본적으로 Rust를 쓰지만, 컴퓨터에 맞는 다른 도구 체인을 고를 수도 있습니다.

로그인은 어떻게 처리하나요?

도구를 만드는 작업의 일부로 인증을 관리한다고 설명합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
28k
순위
#9846
라이선스
—
업데이트
2026. 10. 28.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬