← 返回 Skills 市场
steipete

Create Cli

作者 Peter Steinberger · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
2905
总下载
11
收藏
12
当前安装
1
版本数
在 OpenClaw 中安装
/install create-cli
功能描述
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.
使用说明 (SKILL.md)

Create CLI

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

Do This First

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] \x3Csubcommand> [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.
安全使用建议
This skill is instruction-only and internally consistent with its stated purpose. It doesn't request credentials or install anything, but a few practical notes before use: (1) the SKILL.md references a longer path for the bundled guideline file (agent-scripts/…) while the manifest lists references/cli-guidelines.md — if the agent can't find the file you may need to supply the guideline content or correct the path; (2) the agent may ask clarifying questions — avoid pasting secrets or private credentials into those prompts; and (3) although the skill can be invoked autonomously (the platform default), it has no extra privileges or network calls described. If you want absolute assurance, review the guideline file contents included in the skill (references/cli-guidelines.md) and confirm you’re comfortable with the agent having access to those local instruction files.
功能分析
Type: OpenClaw Skill Name: create-cli Version: 1.0.0 The skill is designed for an AI agent to design command-line interfaces, referencing internal and external guidelines. The `SKILL.md` and `references/cli-guidelines.md` files contain informational URLs (`https://clig.dev/`, `https://github.com/cli-guidelines/cli-guidelines`) which serve as sources for the design rubric. There are no instructions for the agent to execute code from these URLs, exfiltrate data, or perform any actions beyond the stated purpose of designing a CLI. No evidence of prompt injection, malicious execution, or data exfiltration was found.
能力评估
Purpose & Capability
The name/description (Create Cli) matches the SKILL.md content and the included cli-guidelines reference; no extra binaries, credentials, or unrelated capabilities are requested.
Instruction Scope
Instructions are narrowly scoped to designing CLI specs and to reading the included guideline file. Minor mismatch: SKILL.md tells the agent to read 'agent-scripts/skills/create-cli/references/cli-guidelines.md' while the manifest provides 'references/cli-guidelines.md' — this is a local path discrepancy that could cause the agent to fail to locate the file but is not a security concern. There are no steps that read unrelated system files or exfiltrate data.
Install Mechanism
No install spec (instruction-only). Nothing is written to disk or downloaded by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths — proportional to its described purpose.
Persistence & Privilege
always is false and the skill does not request persistent system privileges or to modify other skills/config; autonomous invocation is allowed by default (normal platform behavior).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
元数据
Slug create-cli
版本 1.0.0
许可证
累计安装 13
当前安装数 12
历史版本数 1
常见问题

Create Cli 是什么?

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2905 次。

如何安装 Create Cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-cli」即可一键安装,无需额外配置。

Create Cli 是免费的吗?

是的,Create Cli 完全免费(开源免费),可自由下载、安装和使用。

Create Cli 支持哪些平台?

Create Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Cli?

由 Peter Steinberger(@steipete)开发并维护,当前版本 v1.0.0。

💬 留言讨论