Design Cliのロゴ

Design Cli

コミュニティ
mzbac
design-cli

Design or review agent-friendly command-line interfaces for tools, wrappers, and internal platforms. Use when Codex needs to create a new CLI, simplify an existing one, map real workflows to commands and flags, improve `--help` and error behavior, define stdout/stderr and file output contracts, add safety rails for destructive actions, or turn an API/service/browser workflow into a shell-first interface that humans and agents can drive reliably.

概要

公開者mzbac
リポジトリskills
スキル名design-cli
スター
27
フォーク
1
同梱ファイル
2
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mzbacがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDesign CliをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mzbac/skills/tree/main/skills/design-cli
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mzbac/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/design-cli .claude/skills/design-cli
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDesign Cliを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDesign Cliを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Design Cliは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Design CLI

Design the interface around the operator's real work, not the system's internal nouns.

Start from repeated tasks, decisions, artifacts, and risks. Create the smallest command surface that makes those paths obvious and safe, then leave an escape hatch to the shell, files, or existing tools for everything else.

Default Deliverable

Unless the user asks for code only, work through these outputs:

  1. Operator model: who runs the command and what success looks like
  2. Proposed command surface: verbs, nouns, flags, stdin/files, examples
  3. Help contract: what --help teaches on the happy path
  4. Output contract: stdout, stderr, exit codes, files, JSON if needed
  5. Safety model: dry run, confirmation, overwrite, rollback
  6. Implementation notes: parser changes, tests, docs/help updates

If the user asks for implementation, turn the design into code and tests in the repo's existing CLI framework.

Workflow

1. Model the job

  • Name the operator: human, agent, automation, or mixed.
  • State the desire path as a short sentence: "take X and produce Y safely."
  • Separate control inputs from payloads:
    • Use flags for control knobs.
    • Use stdin or files for larger content.
    • Use stdout for the primary result.
    • Use stderr for progress and diagnostics.
  • Identify irreversible or high-cost actions early.

2. Choose the command shape

  • Prefer a few obvious verbs over a tree that mirrors backend tables or REST endpoints.
  • Keep the happy path short. Push rare configuration into flags or deeper subcommands.
  • Use names that describe intent, such as plan, check, diff, apply, cancel, resume, or export.
  • Support non-interactive execution when the workflow will be agent-driven.
  • Keep naming and flag semantics consistent across sibling commands.
  • Do not map internal nouns 1:1 into commands unless they already match operator language.

3. Design progressive help

  • Make the first help line say exactly what the command does.
  • Show 3-5 copy/pasteable examples before the exhaustive flag list.
  • Put required inputs, defaults, and file/output behavior near the top.
  • Make --help sufficient for the common path.

4. Make errors corrective

  • Print failures to stderr.
  • Include what failed, why it likely failed, and the exact next step to recover.
  • Use non-zero exit codes for failures. Split user error from system error when that distinction matters.
  • Do not hide failure inside conversational prose while still exiting 0.

5. Design the output contract

  • Use stable plain text by default when humans or LLMs will read the result directly.
  • Use JSON only when structured interchange is actually needed.
  • For large outputs, write files and print a short summary plus the artifact path.
  • Keep stdout parseable. Do not mix logs, banners, and primary results.
  • Add quiet or verbose modes only when they solve a real problem.

6. Add safety rails

  • Prefer check, diff, or plan before apply.
  • Add --dry-run for commands with side effects.
  • Require explicit confirmation flags for destructive or high-cost actions.
  • Make overwrite or replace behavior explicit.
  • Expose undo or rollback directly when feasible.

7. Iterate from real use

  • Start with terminal, browser, and file-system workflows when the domain is still fuzzy.
  • Watch what the operator repeats, where it hesitates, and what it gets wrong.
  • Convert only the stable repeated patterns into CLI affordances.
  • Keep the CLI narrow enough that it reduces choices instead of recreating the whole product surface.

Review Heuristics

When reviewing an existing CLI, look for:

  • Backend-shaped command trees that do not match user intent
  • Help text that lists flags but does not teach the happy path
  • Commands that interleave logs and results on stdout
  • Errors that lack a concrete fix
  • Missing --dry-run, confirmation, or idempotency
  • Large blobs printed inline instead of saved to files
  • Interactive prompts in workflows that should be scriptable
  • State hidden in memory instead of inspectable files or commands

Implementation Notes

  • Match the repo's existing CLI library and help conventions.
  • Update parser definitions, help text/examples, and tests together.
  • Add tests for help text, exit codes, stdout/stderr separation, dry-run behavior, and destructive confirmation paths.

Use the Reference

Read agent-cli-principles.md when you need a deeper checklist, example command reshapes, or source-derived guidance on help, errors, output, and iterative CLI design.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Design Cli」では何ができますか?

Design or review agent-friendly command-line interfaces for tools, wrappers, and internal platforms. Use when Codex needs to create a new CLI, simplify an existing one, map real workflows to commands and flags, improve `--help` and error behavior, define stdout/stderr and file output contracts, add safety rails for destructive actions, or turn an API/service/browser workflow into a shell-first interface that humans and agents can drive reliably.

TypingMindでDesign Cliを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Design Cliはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDesign Cliをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/mzbac/skills/tree/main/skills/design-cliを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Design Cliを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Design Cliは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDesign Cliを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Design Cli」は無料ですか?

mzbacがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇