·pycli-color
</>

pycli-color

Use when writing Python argparse CLI scripts that need colorful --help output with customizable color control (NO_COLOR/FORCE_COLOR support).

11Installs·0Trend·@canyangliunian

Installation

$npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color

How to Install pycli-color

Quickly install pycli-color AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: canyangliunian/agent-skills.

SKILL.md

View raw

注意:你的环境中常见 NOCOLOR=1 全局存在;若要强制彩色,请用 FORCECOLOR=1 python3 yourscript.py -h 直接强制启用(无需清空 NOCOLOR)。

""" 请用 argparse 实现 CLI,并让 python 脚本 -h/--help 的帮助信息支持统一彩色高亮(与你的 pycli-color 规范一致)。

必须实现: 1) supportscolor():默认 auto(仅 sys.stdout.isatty()==True 且 TERM != 'dumb' 启用);若存在 NOCOLOR 则强制禁用;若 FORCECOLOR=1 则强制启用(即便非 TTY)。 2) colorize(text, ansicode):仅在启用颜色时包裹 ANSI,否则原样返回。

Use when writing Python argparse CLI scripts that need colorful --help output with customizable color control (NO_COLOR/FORCE_COLOR support). Source: canyangliunian/agent-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color
Category
</>Dev Tools
Verified
First Seen
2026-02-22
Updated
2026-03-10

Browse more skills from canyangliunian/agent-skills

Quick answers

What is pycli-color?

Use when writing Python argparse CLI scripts that need colorful --help output with customizable color control (NO_COLOR/FORCE_COLOR support). Source: canyangliunian/agent-skills.

How do I install pycli-color?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/canyangliunian/agent-skills

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-22