Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

cli-design-expertCLI 设计 expert

Agent Skill

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

总安装

465

周安装

19

GitHub Stars

公开资料未说明

下载量

149
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/abpai/skills --skill cli-design-expert

简介

cli-design-expert 提供 CLI 设计的工程级审查,确保工具对人类用户和自动化脚本均友好易用。

  • 适用于破坏性操作防护、输出格式化、错误语义等关键质量属性的合规性检查。
  • 强制要求非交互式输入路径,禁止仅依赖 prompts 的设计模式,保障 CI 环境可用性。
  • 快速失败机制覆盖安全性、可预测性和输出清晰度三大维度,P0 级问题必须立即修复。
  • 参考 clig.dev 标准制定契约文档,输出包含命令集、标志说明、示例和退出码定义。

SKILL.md

CLI Design Expert

Use this skill to design, refactor, or audit CLIs that are:

  • Human-friendly for interactive use
  • Predictable in scripts and CI
  • Safe for destructive operations
  • Clear in output, errors, and exit semantics

Primary reference: references/CLI_GUIDELINES.md.

Working stance

Be direct and engineering-first. If a design is fragile, ambiguous, or hostile to automation, call it out and propose concrete fixes.

Non-negotiable checks (fast fail)

Treat any failure below as P0.

  1. Non-interactive path is required
  • Never make an interactive prompt the only input path.
  • Every prompt needs a non-interactive alternative (flag/arg/file/stdin).
  • If stdin is not a TTY, do not prompt. Fail with actionable guidance and required flags.
  • Provide --no-input (or equivalent) to disable prompts.
  1. Secrets safety
  • Never accept secrets via flags (leaks via ps and shell history).
  • Prefer stdin, --secret-file, OS keychain, or a TTY-only prompt with a non-interactive alternative.
  1. Scriptability and CI behavior
  • Detect TTY and adapt output and interactivity.
  • Disable spinners/animations when stdout is not a TTY.
  • Disable color when stdout/stderr are not TTY, when NO_COLOR is set, when TERM=dumb, or when --no-color is passed.
  • Keep stdout clean for data; send status/progress/logging to stderr.
  1. Output streams and exit codes
  • Primary pipeable output goes to stdout.
  • Logs, warnings, progress, and errors go to stderr.
  • Exit 0 on success; non-zero on failure. Map non-zero codes to meaningful failure categories.
  1. Risk-scaled safeguards
  • For destructive actions, use confirmations that scale with risk.
  • Support a scriptable bypass (e.g., --force or --yes), and consider --confirm="resource-name" for severe actions.
  • Offer --dry-run for risky or complex state changes when possible.
  1. Signals and cancellation
  • Ctrl-C (SIGINT) should exit quickly with immediate feedback.
  • Timebox cleanup and allow a second Ctrl-C to force exit if cleanup is slow.

Quick triage questions

  • Who is the user: interactive human, script/CI, or both?
  • What is the job-to-be-done: query/list state, or change state?
  • What are the core objects and verbs?
  • What must stay stable for automation (output format, exit codes, flags)?

Procedure: Design a new CLI (or add a command)

Step 1: Propose a command model

  • Keep the initial surface area small.
  • Choose one model and stay consistent:
  • Single command + flags for simple tools.
  • Subcommands (often noun-verb or verb-noun) for multi-task tools.

Deliverable:

  • List of commands with one-line purposes.

Step 2: Decide positional args vs flags

Heuristic:

  • Use positional args only for obvious primary object(s) where order is standard and unambiguous.
  • If two positionals can be confused (similar shape/meaning) or order is not obvious, use flags instead.
  • Prefer long flags. Use short flags only for the most common options, and keep them consistent across commands.

Deliverable:

  • Usage line + args/flags tables per command.

Step 3: Define output contract (human + machine)

  • Define exactly what goes to stdout vs stderr.
  • Provide at least one machine-readable mode when helpful (commonly --json).
  • Keep human-readable output scannable and useful.

Deliverable:

  • stdout content
  • stderr content
  • Exit-code map
  • High-level --json schema (if supported)

Step 4: Write help text and examples

  • -h/--help must work even when other args are wrong.
  • If run incorrectly, show a short error + the relevant usage + "use --help".
  • Lead help with examples (common first). Provide a docs/support path in top-level help.

Deliverable:

  • Draft help text for top-level and relevant subcommands.

Step 5: Define errors and safety

  • Errors must be actionable: what failed, why, and how to fix it.
  • Do not hide important failures behind generic codes or stack traces unless --debug is enabled.
  • For state changes, give explicit feedback about what happened (or what would happen in --dry-run).

Deliverable:

  • Error-message patterns + safety/confirmation design.

Step 6: Specify interactivity and TTY rules

  • Only prompt when stdin is a TTY.
  • If piped input is supported, read it. If not, fail quickly with guidance.
  • Provide clear quiet and verbose modes if logs exist.

Deliverable:

  • TTY behavior table (TTY vs non-TTY).

Step 7: Add config and env vars (only if needed)

Use explicit precedence to avoid hidden config behavior:

  1. Flags
  2. Environment variables
  3. Project-level config
  4. User-level config (XDG, e.g. ~/.config/<tool>/config)
  5. System-wide config

Deliverable:

  • Config keys + precedence + storage locations.

Procedure: Review an existing CLI

Produce two outputs.

A) Scorecard (0-2 each)

  • Command structure and naming
  • Args/flags clarity
  • Help discoverability (examples first)
  • stdout/stderr correctness
  • Exit-code discipline
  • Scriptability (non-TTY behavior)
  • Machine-output mode (when appropriate)
  • Safety (--dry-run, confirmations)
  • Secrets handling
  • Signal handling (Ctrl-C)
  • Config precedence (if applicable)
  • Future-proofing (avoid time bombs)

B) Prioritized fixes

  • P0: correctness, safety, and scriptability failures
  • P1: usability and discoverability issues
  • P2: polish and consistency

Templates

Help skeleton

NAME -

USAGE [options]

EXAMPLES...... --json | jq.

OPTIONS -h, --help Show help --json Output machine-readable JSON (if supported) --no-color Disable color --no-input Disable prompts -q, --quiet Reduce non-essential output (if supported) -v, --verbose Increase logging (if supported) -n, --dry-run Describe changes without applying them (if supported)

SUPPORT <docs / issues link>

Error skeleton

Error:. Cause:. Fix: <exact next step / command / flag>.

References

  • Full guideline text: references/CLI_GUIDELINES.md

Update Check

On first use in a session, silently check for a newer version:

  1. Fetch https://raw.githubusercontent.com/abpai/skills/main/versions.json.
  2. Compare the version for cli-design-expert against this file's metadata.version.
  3. If the remote version is newer, pause before the main task and ask: cli-design-expert update available (local {X.Y} → remote {A.B}). Would you like me to update it for you first? I can run npx skills update cli-design-expert for you.
  4. If the user says yes, run the update before continuing.
  5. If the user says no, continue with the current local version.
  6. If the fetch fails or web access is unavailable, skip silently.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.27%
按下载量换算51

Claude

31.06%
按下载量换算46

Cursor

16.72%
按下载量换算25

Gemini CLI

9.82%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills