跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Design Cli Output

技能 已验证 活跃

Design terminal output for a CLI tool with chalk colors, Unicode glyphs, multiple verbosity levels (human, verbose, quiet, JSON), and consistent voice rules. Covers color palette selection, status indicator design, reporter function architecture, ceremony/narrative output variants, and cross-terminal compatibility. Use when building a new CLI reporter module, adding warm narrative output to an existing tool, standardizing output across multiple commands, or designing machine-readable JSON alongside human-readable text.

目的

To guide the creation of well-designed, consistent, and accessible terminal output for command-line tools, enhancing user experience and machine readability.

功能

  • Design color palettes with fallbacks
  • Select Unicode or ASCII status indicators
  • Implement four verbosity levels (default, verbose, quiet, JSON)
  • Define and enforce consistent voice rules
  • Structure output into reusable reporter functions
  • Test output across various terminal environments

使用场景

  • Building new CLI reporter modules
  • Adding narrative output to existing tools
  • Standardizing output across multiple commands
  • Designing parallel human-readable and JSON output

非目标

  • Designing the CLI commands themselves
  • Implementing the core business logic of the CLI tool
  • Handling error recovery beyond output formatting considerations

工作流

  1. Define Color Palette
  2. Choose Status Indicators
  3. Design Verbosity Levels
  4. Establish Voice Rules
  5. Implement Reporter Functions
  6. Test Output Across Environments

实践

  • CLI Output Design
  • Terminal UX
  • Code Style

先决条件

  • Node.js (for chalk dependency)
  • Access to a terminal environment for testing

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
98 /100
about 23 hours ago 分析

信任信号

最近提交2 days ago
星标14
许可证MIT
状态
查看源代码