CreateCLI
하는 일
이 스킬은 바로 쓸 수 있는 TypeScript 명령줄 도구를 만들며, 문서와 적절한 종료 코드를 포함합니다. API를 감싸거나 작업을 자동화하는 작은 도구를 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓내가 쓰는 API를 감싸는 명령줄 도구를 원할 때.
- ✓몇 개의 간단한 명령을 가진 작은 자동화 도구가 필요할 때.
- ✓기존 명령줄 도구가 커져서 하위 명령이 필요한 경우.
스킬 링크
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/CreateCLI/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“API 데이터를 JSON으로 내보내는 TypeScript 명령줄 도구를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 도구에 필요한 명령 수에 따라 세 가지 템플릿 중 하나를 고릅니다. 간단한 인자 처리부터 더 큰 도구를 위한 프레임워크까지 있습니다. 그다음 코드, README, 패키지 파일, 엄격한 설정을 생성합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
CreateCLI
Contents: Ideal State · Intent Routing · Data & Config · Gotchas · Examples
Generates production-ready TypeScript CLIs, from agent-first CLIs for public web apps (API-key auth, browser device login) to personal and project tools. Every CLI ships with full implementation, README and QUICKSTART, a Bun package.json, strict tsconfig, JSON output, and correct exit codes. A three-tier template system picks the right complexity: Tier 1 manual arg parsing with zero deps (most cases), Tier 2 Commander.js for subcommands, Tier 3 oclif as a reference for enterprise scale.
Shared facts the intents rely on:
- Tiers. Tier 1 parses
process.argvby hand with zero framework dependencies, Bun + TypeScript and type-safe interfaces in ~300-400 lines, in four sections: configuration, command functions, help documentation, main entry point. It fits API clients, data transformers and simple automation with 2-10 commands, simple arguments, JSON output and no subcommands. Tier 2 (Commander.js) is the escalation when any Tier 2 indicator holds, the same list for CreateCli and UpgradeTier: 10+ commands that need grouping, git-style subcommands (cli convert json csv/cli convert csv json), a plugin architecture, complex nested option combinations, or multiple output format engines (a--format jsonflag alone is standard Tier 1 output control). A long list of simple, ungrouped commands is not an indicator. Tier 3 (oclif) is reference only, documentation and no templates, for Heroku CLI or Salesforce CLI scale. - Stack. Runtime and package manager are Bun, the language is TypeScript with a strict tsconfig, tests (when added) run under
bun test ./<path>, output is deterministic JSON that pipes to jq and grep, and documentation is README + QUICKSTART. - Placement.
~/.claude/LIFEOS/TOOLS/[cli-name]/holds personal CLIs and~/Projects/[project-name]/project-specific ones. The two sit in different git repositories, so confirm which repository a CLI directory belongs to before any git operation in it. - CLI-First Architecture (
LIFEOS/DOCUMENTATION/Tools/CliFirstArchitecture.md): every generated CLI is deterministic (same input → same output), clean (single responsibility), composable (JSON output pipes to other tools), documented (comprehensive help and examples) and testable (predictable behavior).
Ideal State
- Every CLI the skill creates or changes ships whole: typed source, README.md and QUICKSTART.md, a Bun package.json, a strict tsconfig.json, an .env.example, and
--helpthat lists every command with real examples. - Output follows one contract across intents: JSON to stdout, errors with context to stderr, exit code 0 on success and 1 on error, and strict
tscclean before the work is reported done. - A CLI for a public-facing app meets the agent-first contract (OPERATIONAL_PREFERENCES § Deployment): a browser device login that mints a scoped, expiring API key;
--jsonstdout and fixed exit codes; ahelp --jsoncatalog; RateLimit headers with per-key and per-IP limits;/docs/clirendered from the CLI's own catalog; and a self-hosted, SHA-checked install.Intents/CreateCli.md§ Ideal State itemizes it, and Config.md names the reference implementation to match when one is configured. Where that contract and the output contract above differ, the agent-first contract governs. - The tier fits the need: Tier 1 unless a Tier 2 indicator holds, oclif never generated, and a CLI moves up a tier only when it has outgrown the one it is on.
- A change to an existing CLI keeps every command it already had working.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| CreateCli | "create CLI", "build a CLI", "wrap this API in a command-line tool" | Intents/CreateCli.md |
| AddCommand | "add a command to <cli>" | Intents/AddCommand.md |
| UpgradeTier | "upgrade tier", "move this CLI to Commander" | Intents/UpgradeTier.md |
| File | Read when |
|---|---|
FrameworkComparison.md |
choosing or justifying a framework: Manual vs Commander vs oclif, plus cleye, citty, Yargs and Ink |
Tools/CheckCli.ts |
proving a CLI meets the output contract: strict tsc, --help names every command, --version, unknown command exits 1, --json-args stdout parses as JSON |
Setup.md |
first-time setup: the optional Reference CLI: key in Config.md |
Data & Config
User customizations live at `<configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/Creat
자주 묻는 질문
더 큰 템플릿은 언제 필요한가요?
많은 그룹화된 명령, git 스타일 하위 명령, 플러그인 구조, 여러 출력 형식이 필요하면 프레임워크 템플릿으로 올라갑니다.
생성된 도구에는 무엇이 들어 있나요?
전체 코드, README와 빠른 시작 안내, 패키지 파일, 엄격한 TypeScript 설정이 들어 있습니다.
이미 있는 도구에 명령을 추가할 수 있나요?
예. 명령을 추가하거나 더 큰 템플릿으로 업그레이드하는 방법이 스킬에 있습니다.
상세 정보
작성자의 원본 설명
Generates production-ready TypeScript CLIs via a 3-tier template system (manual arg parsing, Commander.js, oclif), each shipping full implementation, docs, package.json, strict config, JSON output, and exit-code compliance. USE WHEN create CLI, build CLI, command-line tool, wrap API, add command, upgrade tier, TypeScript CLI. NOT FOR LifeOS skill scaffolding (use CreateSkill).
repo: danielmiessler/LifeOS
인기도
- GitHub 스타
- 20k
- 순위
- #10418
- 라이선스
- MIT
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
LifeOS
20k에이전트가 LifeOS를 설정하도록 돕습니다. LifeOS는 인터뷰와 대시보드를 통해 현재 상태를 이상적인 상태에 연결하는 개인 시스템입니다.
AnnualReports
20k에이전트가 주요 업체의 사이버보안 연간 보고서에서 침해와 랜섬웨어 추세를 찾아 비교하고, 모든 수치에 출처를 붙이도록 돕습니다.
ApertureOscillation
20k에이전트가 설계 질문 하나를 좁은 범위와 넓은 범위에서 검토하고, 만들기 전에 두 답이 충돌하는 지점을 짚도록 가르칩니다.
Aphorisms
20k에이전트가 큐레이션된 컬렉션에서 출처가 밝혀진 인용문을 찾고 맞추고 관리하며, 최근 뉴스레터에 쓴 인용문은 피하도록 돕습니다.