← Back to Skills Marketplace
steipete

Create Cli

by Peter Steinberger · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
2905
Downloads
11
Stars
12
Active Installs
1
Versions
Install in OpenClaw
/install 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.
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install create-cli
  3. After installation, invoke the skill by name or use /create-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Metadata
Slug create-cli
Version 1.0.0
License
All-time Installs 13
Active Installs 12
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 2905 downloads so far.

How do I install Create Cli?

Run "/install create-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Create Cli free?

Yes, Create Cli is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Create Cli support?

Create Cli is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Create Cli?

It is built and maintained by Peter Steinberger (@steipete); the current version is v1.0.0.

💬 Comments