·pycli-color
</>

pycli-color

À utiliser lors de l'écriture de scripts CLI Python argparse qui nécessitent une sortie --help colorée avec un contrôle de couleur personnalisable (prise en charge NO_COLOR/FORCE_COLOR).

11Installations·0Tendance·@canyangliunian

Installation

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

Comment installer pycli-color

Installez rapidement le skill IA pycli-color dans votre environnement de développement via la ligne de commande

  1. Ouvrir le Terminal: Ouvrez votre terminal ou outil de ligne de commande (Terminal, iTerm, Windows Terminal, etc.)
  2. Exécuter la commande d'installation: Copiez et exécutez cette commande : npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color
  3. Vérifier l'installation: Une fois installé, le skill sera automatiquement configuré dans votre environnement de programmation IA et prêt à être utilisé dans Claude Code, Cursor ou OpenClaw

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,否则原样返回。

À utiliser lors de l'écriture de scripts CLI Python argparse qui nécessitent une sortie --help colorée avec un contrôle de couleur personnalisable (prise en charge NO_COLOR/FORCE_COLOR). Source : canyangliunian/agent-skills.

Faits (prêts à citer)

Champs et commandes stables pour les citations IA/recherche.

Commande d'installation
npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color
Catégorie
</>Développement
Vérifié
Première apparition
2026-02-22
Mis à jour
2026-03-10

Browse more skills from canyangliunian/agent-skills

Réponses rapides

Qu'est-ce que pycli-color ?

À utiliser lors de l'écriture de scripts CLI Python argparse qui nécessitent une sortie --help colorée avec un contrôle de couleur personnalisable (prise en charge NO_COLOR/FORCE_COLOR). Source : canyangliunian/agent-skills.

Comment installer pycli-color ?

Ouvrez votre terminal ou outil de ligne de commande (Terminal, iTerm, Windows Terminal, etc.) Copiez et exécutez cette commande : npx skills add https://github.com/canyangliunian/agent-skills --skill pycli-color Une fois installé, le skill sera automatiquement configuré dans votre environnement de programmation IA et prêt à être utilisé dans Claude Code, Cursor ou OpenClaw

Où se trouve le dépôt source ?

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

Détails

Catégorie
</>Développement
Source
skills.sh
Première apparition
2026-02-22