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.
Use when writing Python argparse CLI scripts that need colorful --help output with customizable color control (NO_COLOR/FORCE_COLOR support).
Quickly install pycli-color AI skill to your development environment via command line
Source: canyangliunian/agent-skills.
注意:你的环境中常见 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.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-colorUse when writing Python argparse CLI scripts that need colorful --help output with customizable color control (NO_COLOR/FORCE_COLOR support). Source: canyangliunian/agent-skills.
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
https://github.com/canyangliunian/agent-skills