Install
openclaw skills install cli-design-frameworkUse when designing a new CLI, reviewing an existing CLI, or resolving uncertainty about a CLI's role, user type, interaction form, statefulness, risk profile, or human-vs-machine surfaces.
openclaw skills install cli-design-frameworkDesign and review CLIs with a classification-first framework.
Treat this as a decision system, not a generic style guide. Do not assume every CLI should become agent-first, machine-protocol-first, or raw-payload-first.
Use this skill when:
Do not use this skill when:
Classify first. Design second. Review third.
Always work in this order:
Start with these files when using the framework:
references/taxonomy.md for the taxonomy.references/output-templates.md for the required output shape.Pull these only when needed:
references/classification-examples.md for classification anchors when the category is ambiguous.examples/design-blueprint-example.md and examples/review-example.md when you need a concrete example of final form.examples/anti-patterns.md when the design smells wrong but the category mistake is not yet crisp.Operate in one of two modes:
Clarify the CLI's design target, then produce a blueprint that constrains implementation.
Infer what is already known.
Ask only the highest-leverage unresolved questions.
Classify the CLI explicitly.
State the design stance before proposing commands.
Produce a design blueprint.
references/output-templates.md.Constrain downstream implementation.
For every blueprint, enforce these rules:
Primary vs secondary surfaces
Human-primary / balanced discoverability
Structured machine contract
--json, --jsonl, etc.)Risk ladder
State model
v1 boundaries
Ask only questions that affect classification or the blueprint.
Do not begin with implementation-detail questions such as:
Ask those only if they materially affect the CLI's classification or design consequences.
Inspect the CLI and its source, reverse-infer its design intent, then review it in two layers:
Inspect before asking.
Reverse-infer the design intent.
Confirm only what cannot be inferred reliably.
Review in two layers.
Produce a structured review.
references/output-templates.md.When reviewing, explicitly check these areas when relevant:
Primary vs secondary surface clarity
Discoverability
Structured output contract
Risk model
State model
v1 discipline
Some CLIs genuinely straddle multiple roles at the subcommand level.
Rules for hybrid CLIs:
Example: Docker
docker run, docker exec, docker attach → Runtime interaction.docker image ls, docker volume inspect → Capability-like resource surfaces (secondary).docker compose up → Workflow/Orchestration (secondary).Guidance for evolving CLIs:
Watch for these mistakes:
Keep final outputs:
Avoid vague advice such as "improve UX" or "make it more agent-friendly" unless tied to a specific classification and a concrete design consequence.