Peter Steinberger

Create Cli

開発v1.0.0
作者:Peter Steinberger更新日 2026-05-11create-cli@clawhub_steipete/create-cli
コード生成スクリプトツール#Command Line Interface

AlphaMoatによると、2026-09時点でCreate Cliのダウンロード数は4,284、スター数は11で、AIスキル全体5,078件中2,307位、開発では577件中295位です。

インストール数
281
ダウンロード数
4284
スター数
11
総合順位
#2,307
全体の上位 46% · 開発の上位 52%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗133413411-
SkillHub ↗281428411—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

Design CLI surface area (syntax + behavior), human-first, script-friendly.(CLI の表面(構文と振る舞い)を人間第一・スクリプト友好で設計。)実装前の CLI 仕様設計や既存 CLI の整合性リファクタ向け:まず cli-guidelines.md を既定の基準として読み(完全版は clig.dev)、- Ask only the minimum clarifying questions needed to lock the interface. 成果物はコンパクトな仕様:コマンドツリーと USAGE、引数/フラグ表、サブコマンドの意味論、stdout/stderr と --json/--plain の出力規則、エラーと終了コードの対応、安全規則(--dry-run、確認、--force、--no-input)、設定の優先順位(flags > env > プロジェクト設定 > ユーザー設定 > システム)、補完、5-10 例。既定規約:-h/--help 優先、主データは stdout、診断は stderr、TTY 時のみプロンプト、- Destructive operations: interactive confirmation + non-interactive requires --force or explicit --confirm=.... 言語非依存で設計のみ。カードの注意:生成される仕様には危険なワークフローや秘密情報処理が含まれうるため、実装後に dry-run・確認・force/no-input・設定優先順位を見直すこと。

資料公開日 2026-10-27

できること

  • 新ツールのコマンドツリーと引数/フラグ表の設計
  • 既存 CLI の出力と終了コード規約のリファクタ
  • --json/--plain の出力契約の定義
  • 破壊的操作の確認と dry-run 設計

使う場面

  • コーディング前に実装可能な仕様が必要なとき
  • 既存 CLI の統一が必要なとき
  • 人間にもスクリプトにも優しい設計のとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

mycmd のサブコマンドと終了コード付き CLI 仕様を設計して
この CLI 設計の破壊的操作保護をレビューして
一括削除コマンドに --dry-run と確認を追加して

月次の推移

ダウンロード数4284
2709355544012026-03 · ダウンロード数 28262026-05 · ダウンロード数 33272026-06 · ダウンロード数 35002026-07 · ダウンロード数 38122026-08 · ダウンロード数 39972026-09 · ダウンロード数 428426-0326-09
スター数11
1011122026-03 · スター数 112026-05 · スター数 112026-06 · スター数 112026-07 · スター数 112026-08 · スター数 112026-09 · スター数 1126-0326-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-094284—11
2026-083997+4.9%11
2026-073812+8.9%11
2026-063500+5.2%11
2026-053327—11
2026-032826—11

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 2026-10-23。

3.6 KB・ClawHub v1.0.0
---
name: create-cli
description: >
  Design command-line interface parameters and UX: arguments, flags, subcommands,
  help text, output formats, error messages, exit codes, prompts, config/env
  precedence, and safe/dry-run behavior. Use when you’re designing a CLI spec
  (before implementation) or refactoring an existing CLI’s surface area for
  consistency, composability, and discoverability.
---
すべて表示(全 94 行)
# Create CLI

Design CLI surface area (syntax + behavior), human-first, script-friendly.

## Do This First

- Read `agent-scripts/skills/create-cli/references/cli-guidelines.md` and 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/--help` always shows help and ignores other args.
- `--version` prints version to stdout.
- Primary data to stdout; diagnostics/errors to stderr.
- Add `--json` for machine output; consider `--plain` for stable line-based text.
- Prompts only when stdin is a TTY; `--no-input` disables prompts.
- Destructive operations: interactive confirmation + non-interactive requires `--force` or 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:

1. **Name**: `mycmd`
2. **One-liner**: `...`
3. **USAGE**:
   - `mycmd [global flags] <subcommand> [args]`
4. **Subcommands**:
   - `mycmd init ...`
   - `mycmd run ...`
5. **Global flags**:
   - `-h, --help`
   - `--version`
   - `-q, --quiet` / `-v, --verbose` (define exactly)
   - `--json` / `--plain` (if applicable)
6. **I/O contract**:
   - stdout:
   - stderr:
7. **Exit codes**:
   - `0` success
   - `1` generic failure
   - `2` invalid usage (parse/validation)
   - (add command-specific codes only when actually useful)
8. **Env/config**:
   - env vars:
   - config file path + precedence:
9. **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.

開発の人気スキル

Peter Steinbergerのその他のスキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。