Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

cli-design-frameworkCLI 设计 framework

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

7,688

周安装

311

GitHub Stars

1

下载量

2,413
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cli-design-framework(CLI 设计 framework)
来源仓库:https://github.com/wangnov/cli-design-framework
安装命令:
openclaw skills install cli-design-framework
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cli-design-framework

简介

cli-design-framework 辅助设计新 CLI 界面或审查现有 CLI 的用户体验。

  • 适用于解决 CLI 角色、交互形式或风险状况相关不确定性的场景。
  • 通过 clawhub 安装并使用 openclaw skills install cli-design-framework 命令部署。
  • 应结合具体产品目标和用户类型进行定制化调整。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
cli-design-framework
description
Use 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.

CLI Design Framework

Overview

Design 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.

When to Use

Use this skill when:

  • designing a new CLI and the right command shape is not obvious
  • reviewing an existing CLI whose help, output, or command tree feels mismatched
  • deciding whether a CLI is primarily Capability, Runtime, Environment / Workspace, Workflow, Package / Build, or Meta
  • deciding whether human-readable and machine-readable surfaces are primary or secondary
  • deciding whether session semantics are justified or over-engineered

Do not use this skill when:

  • the CLI classification is already settled and you only need implementation mechanics
  • the question is only about parser libraries, repository layout, or exact flag spelling
  • the task is purely cosmetic copy editing with no design consequence

Quick Path

  • For quick asks, produce a compressed pass: purpose, classification, short reasoning, top design consequences, and only the unresolved questions that could change the answer.
  • Use the full blueprint or full review template only when the user asks for it explicitly, or when ambiguity or risk justifies the longer form.

Core rule

Classify first. Design second. Review third.

Always work in this order:

  1. State the CLI purpose in one sentence.
  2. Classify the primary role/control surface.
  3. Classify the primary user type.
  4. Classify the primary interaction form.
  5. Classify statefulness.
  6. Classify risk profile.
  7. Identify secondary surfaces explicitly.
  8. Derive design consequences.

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.

Operating modes

Operate in one of two modes:

  1. Design mode — create or refine a CLI design direction.
  2. Review mode — evaluate an existing CLI against the framework.

Design mode

Goal

Clarify the CLI's design target, then produce a blueprint that constrains implementation.

Workflow

  1. Infer what is already known.

- Extract every strong signal from the user's request. - Infer likely role, user type, interaction form, statefulness, risk profile, and secondary surfaces whenever possible. - Do not ask for facts that are already strongly implied.

  1. Ask only the highest-leverage unresolved questions.

- Ask the smallest set of questions that could materially change the classification or the blueprint. - Prefer classification questions over implementation trivia. - Prioritize: purpose → control surface → primary user → interaction form → statefulness → side effects → secondary surfaces. - If the current information is already sufficient, do not ask questions. Produce the blueprint directly.

  1. Classify the CLI explicitly.

- State the inferred or confirmed: - primary role/control-surface type - primary user type - primary interaction form - statefulness - risk profile - secondary surfaces - State confidence when inference is uncertain. - Use explicit primary-vs-secondary wording. Do not blur them together.

  1. State the design stance before proposing commands.

- Write one short paragraph that says what the CLI is optimizing for. - State what the CLI is not trying to be. - Do not jump straight from classification to command trees.

  1. Produce a design blueprint.

- Use the structure in references/output-templates.md. - Use the full template when the user wants a blueprint or when the ambiguity/risk warrants it. - For quick requests, compress to: purpose, classification, classification reasoning, design stance, top design consequences, and only the unresolved questions that matter. - Connect classification directly to design consequences. - Keep the blueprint concrete, not generic.

  1. Constrain downstream implementation.

- End with a short direction section that states: - what to optimize for - what not to optimize for - acceptable patterns - category mistakes - v1 boundaries and non-goals

Required design discipline

For every blueprint, enforce these rules:

  • Primary vs secondary surfaces

- Name the primary surface explicitly. - Name secondary surfaces explicitly. - State what each surface is for. - Do not describe JSON, event streams, templates, raw payloads, or TUI as “important” without saying whether they are primary or secondary.

  • Human-primary / balanced discoverability

- If the CLI is human-primary or balanced, explicitly cover: - help quality - examples - discoverability - explain/describe surfaces when appropriate - Do not discuss only command structure and ignore learnability.

  • Structured machine contract

- If the CLI has a machine-readable surface, explicitly state: - which commands expose it - output format (--json, --jsonl, etc.) - whether field names are stable - whether exit codes matter - whether schema / fields / describe support is needed - Do not call a surface “script-friendly” unless the contract is described.

  • Risk ladder

- If the CLI mutates state, define at least: - low-risk operations - medium-risk operations - high-risk operations - State the expected guardrails for each level. - Do not stop at “be careful” or “add confirmations.”

  • State model

- If the CLI is sessionful, long-running, or attach/detach capable, describe session identity and lifecycle explicitly. - If it is mostly stateless, say so explicitly and avoid inventing session semantics.

  • v1 boundaries

- State what v1 should include. - State what v1 should defer. - State what would be premature abstraction.

Question policy

Ask only questions that affect classification or the blueprint.

Do not begin with implementation-detail questions such as:

  • language choice
  • parsing library
  • repository layout
  • naming bikesheds
  • exact flag spelling

Ask those only if they materially affect the CLI's classification or design consequences.


Review mode

Goal

Inspect the CLI and its source, reverse-infer its design intent, then review it in two layers:

  1. Classification fit — Is it designed like the right kind of CLI?
  2. Execution quality — Given that type, how well is it executed?

Workflow

  1. Inspect before asking.

- Inspect help output, subcommand help, docs, examples, parser code, output code, error handling, state/session code, config surfaces, and tests. - Prefer direct evidence over speculation.

  1. Reverse-infer the design intent.

- Infer: - apparent purpose - likely primary role/control-surface type - likely primary user type - likely interaction form - likely statefulness - likely risk profile - existing secondary surfaces

  1. Confirm only what cannot be inferred reliably.

- Ask focused confirmation questions only when the answer could materially change the classification or review. - Do not ask the user to restate facts already evident from the CLI or code.

  1. Review in two layers.

- Keep classification fit and execution quality separate. - Do not criticize a human-primary CLI for not being agent-primary unless the user explicitly wants that shift.

  1. Produce a structured review.

- Use the review structure in references/output-templates.md. - Use the full template when the user wants a formal review or when the category tension is material. - For quick requests, compress to: inferred intent, classification, evidence-backed category mistakes, in-category weaknesses, and highest-priority improvements. - Separate category mistakes from in-category execution weaknesses.

Required review checks

When reviewing, explicitly check these areas when relevant:

  • Primary vs secondary surface clarity

- Is the CLI clear about what the main surface is? - Are secondary surfaces real contracts or just informal add-ons?

  • Discoverability

- Does help output support the claimed user type? - Are examples, option descriptions, and command structure aligned with the CLI's center of gravity?

  • Structured output contract

- Are JSON / JSONL / field-selection / exit-code surfaces explicit and stable? - Are unknown fields rejected or silently tolerated? - Is the machine surface strong enough for the claims made in docs?

  • Risk model

- Are low-, medium-, and high-risk actions meaningfully separated? - Are confirm / dry-run / preview / audit guardrails aligned with the risk profile?

  • State model

- Is statefulness handled correctly? - Are attach/detach/resume/session/history concepts used only when justified?

  • v1 discipline

- Does the CLI keep a coherent v1 boundary? - Does it introduce premature abstraction or missing contracts?

Review rules

  • Do not grade every CLI on an agent-first curve.
  • Do not require raw payloads, full schema introspection, or machine-first output unless the classification justifies them.
  • Treat modern CLIs as multi-surface systems: one primary role, one primary interaction form, optional secondary surfaces.
  • Prefer strong inference, then targeted confirmation.
  • When criticizing machine support, specify whether the problem is:

- missing primary/secondary surface clarity, - weak machine contract, - or a true category mismatch.


Handling hybrid CLIs

Some CLIs genuinely straddle multiple roles at the subcommand level.

Rules for hybrid CLIs:

  1. Classify at the product level first — what is the CLI's center of gravity?
  2. If subcommands clearly split into different roles, note the split explicitly.
  3. Name the primary role (the one that defines the CLI's identity and design constraints).
  4. Name secondary roles as secondary surfaces with their own local constraints.
  5. Do not force a single role on a CLI whose subcommands genuinely serve different roles.

Example: Docker

  • Product-level primary role: Runtime (its center of gravity is container execution).
  • 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:

  • If a CLI is migrating from one type to another, state the current center of gravity and the intended direction.
  • Do not classify based on the future target alone; classify based on current evidence and note the trajectory.

Common failure modes

Watch for these mistakes:

  • Treating every CLI as a capability CLI.
  • Treating every CLI as a runtime CLI.
  • Treating TUI or REPL as a role instead of an interaction form.
  • Ignoring statefulness.
  • Ignoring risk profile.
  • Ignoring help/discoverability for human-primary CLIs.
  • Treating automation fitness as a top-level identity instead of a design consequence.
  • Forcing human-primary tools into agent-only patterns.
  • Calling a JSON surface “strong” without defining the contract.
  • Ignoring secondary surfaces in mixed-mode CLIs.
  • Jumping from classification directly to command trees without stating design stance.
  • Failing to mark v1 boundaries and non-goals.
  • Forcing a single role on a hybrid CLI whose subcommands genuinely serve different control surfaces.
  • Over-engineering statefulness for a CLI that only has durable config/lockfile side-effects but no true sessions.
  • Classifying a CLI by its future aspirations instead of its current evidence.

Output bar

Keep final outputs:

  • explicit about classification
  • explicit about classification reasoning when there is tension or ambiguity
  • explicit about evidence, confidence, and assumptions
  • explicit about design consequences
  • explicit about primary vs secondary surfaces
  • explicit about discoverability and machine contracts when relevant
  • explicit about risk ladders when mutations exist
  • scaled to the user's requested depth
  • concise but dense
  • diagnostic rather than generic

Avoid vague advice such as "improve UX" or "make it more agent-friendly" unless tied to a specific classification and a concrete design consequence.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.97%
按下载量换算2,026

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills