create-cli
하는 일
이 스킬은 명령줄 도구를 만들기 전에 명령, 옵션, 출력, 오류 코드를 포함해 어떻게 동작할지 계획하도록 돕습니다. 새 터미널 도구를 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓새로운 명령줄 도구를 설계할 때.
- ✓읽기 쉬운 출력, JSON 출력, 종료 코드 중 무엇을 쓸지 정하고 싶을 때.
- ✓드라이 런이나 확인 프롬프트 같은 안전한 옵션이 필요한 명령이 있을 때.
스킬 링크
https://github.com/steipete/agent-scripts/blob/main/skills/create-cli/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“내 메모를 내보내는 명령줄 도구를 만들고 싶어요. 명령과 옵션을 설계하도록 도와주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 인터페이스를 확정하는 데 필요한 질문만 하고, 명령 구조, 옵션, 출력 규칙, 오류 코드, 안전 옵션을 담은 간결한 사양서를 씁니다. 공개된 명령줄 가이드라인을 따릅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Create CLI
Design CLI surface area (syntax + behavior), human-first, script-friendly.
Do This First
- Read
agent-scripts/skills/create-cli/references/cli-guidelines.mdand apply it as the default rubric. - Upstream/full guidelines: https://clig.dev/ (propose changes: https://github.com/cli-guidelines/cli-guidelines)
- Ask only the minimum clarifying questions needed to lock the interface.
Clarify (fast)
Ask, then proceed with best-guess defaults if user is unsure:
- Command name + one-sentence purpose.
- Primary user: humans, scripts, or both.
- Input sources: args vs stdin; files vs URLs; secrets (never via flags).
- Output contract: human text,
--json,--plain, exit codes. - Interactivity: prompts allowed? need
--no-input? confirmations for destructive ops? - Config model: flags/env/config-file; precedence; XDG vs repo-local.
- Platform/runtime constraints: macOS/Linux/Windows; single binary vs runtime.
Deliverables (what to output)
When designing a CLI, produce a compact spec the user can implement:
- Command tree + USAGE synopsis.
- Args/flags table (types, defaults, required/optional, examples).
- Subcommand semantics (what each does; idempotence; state changes).
- Output rules: stdout vs stderr; TTY detection;
--json/--plain;--quiet/--verbose. - Error + exit code map (top failure modes).
- Safety rules:
--dry-run, confirmations,--force,--no-input. - Config/env rules + precedence (flags > env > project config > user config > system).
- Shell completion story (if relevant): install/discoverability; generation command or bundled scripts.
- 5–10 example invocations (common flows; include piped/stdin examples).
Default Conventions (unless user says otherwise)
-h/--helpalways shows help and ignores other args.--versionprints version to stdout.- Primary data to stdout; diagnostics/errors to stderr.
- Add
--jsonfor machine output; consider--plainfor stable line-based text. - Prompts only when stdin is a TTY;
--no-inputdisables prompts. - Destructive operations: interactive confirmation + non-interactive requires
--forceor explicit--confirm=.... - Respect
NO_COLOR,TERM=dumb; provide--no-color. - Handle Ctrl-C: exit fast; bounded cleanup; be crash-only when possible.
Templates (copy into your answer)
CLI spec skeleton
Fill these sections, drop anything irrelevant:
- Name:
mycmd - One-liner:
... - USAGE:
mycmd [global flags] <subcommand> [args]
- Subcommands:
mycmd init ...mycmd run ...
- Global flags:
-h, --help--version-q, --quiet/-v, --verbose(define exactly)--json/--plain(if applicable)
- I/O contract:
- stdout:
- stderr:
- Exit codes:
0success1generic failure2invalid usage (parse/validation)- (add command-specific codes only when actually useful)
- Env/config:
- env vars:
- config file path + precedence:
- Examples:
- …
Notes
- Prefer recommending a parsing library (language-specific) only when asked; otherwise keep this skill language-agnostic.
- If the request is “design parameters”, do not drift into implementation.
자주 묻는 질문
완성된 도구를 직접 만드나요?
아닙니다. 여러분이나 개발자가 구현할 수 있는 간결한 사양서를 만듭니다.
비밀 정보는 플래그로 전달해야 하나요?
아닙니다. 스킬은 비밀 정보를 플래그로 절대 전달하지 않아야 한다고 설명합니다.
어떤 가이드라인을 따르나요?
clig.dev에 공개된 명령줄 가이드라인을 바탕으로 한 참고 자료가 함께 들어 있습니다.
상세 정보
작성자의 원본 설명
CLI UX/spec: args, flags, help, output, errors, config, dry-run.
repo: steipete/agent-scripts
인기도
- GitHub 스타
- 7.4k
- 순위
- #13230
- 라이선스
- MIT
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
beeper
7.4k에이전트가 로컬 Beeper 채팅 기록을 검색해 메시지를 찾고, 모호한 힌트가 어느 채팅이나 연락처를 가리키는지 알아내도록 돕습니다.
cloudflare-registrar
7.4k에이전트가 Cloudflare Registrar에서 도메인 가격과 사용 가능 여부를 확인하고, 확인 단계를 거쳐 도메인을 등록하거나 목록을 조회하도록 돕습니다.
codexbar
7.4k에이전트가 Codex, Claude, Kimi 같은 AI 서비스의 남은 사용량을 한도, 크레딧, 초기화 시간과 함께 확인하도록 돕습니다.
frontend-design
7.4k에이전트가 분명한 디자인 방향을 가진 제품 수준의 웹 인터페이스를 만들도록 돕고, 흔한 AI풍 레이아웃은 피합니다.