colored-output
БесплатноЗапускает вложенные скриптыНе проверенCentralized colored output formatter for all skills, agents, and commands with ANSI escape codes
от Interstellar-code★ 18 звёзд на GitHubОб этом скилле
Colored Output Formatter Skill
Centralized, reusable colored output formatting for ALL skills, agents, and commands!
🎯 Purpose
This skill provides a single source of truth for colored terminal output. Instead of duplicating ANSI codes across every skill/agent, they all call this formatter.
Benefits:
- ✅ DRY Principle - Define colors once, use everywhere
- ✅ Consistent UX - All skills/agents look the same
- ✅ Easy Updates - Change colors in one place
- ✅ Zero Duplication - No repeated ANSI codes
🔧 BASH COMMAND ATTRIBUTION PATTERN
CRITICAL: Before executing EACH bash command, MUST output:
🔧 [colored-output] Running: <command>
Examples:
🔧 [colored-output] Running: bash .claude/skills/colored-output/color.sh skill-header "skill-name" "Starting..."
🔧 [colored-output] Running: bash .claude/skills/colored-output/color.sh success "" "Complete!"
🔧 [colored-output] Running: bash .claude/skills/colored-output/color.sh error "" "Failed!"
Why: This pattern helps users identify which skill is executing which command, improving transparency and debugging.
🎯 USAGE GUIDELINES (CRITICAL)
⚠️ IMPORTANT: Use colored output SPARINGLY to prevent screen flickering and visual clutter!
✅ DO Use Colored Output For:
Initial Header (once at start of operation)
bash .claude/skills/colored-output/color.sh skill-header "skill-name" "Starting operation..."Final Results (success, error, or completion)
bash .claude/skills/colored-output/color.sh success "" "Operation complete!"Critical Alerts (warnings, errors)
bash .claude/skills/colored-output/color.sh warning "" "Configuration issue detected" bash .claude/skills/colored-output/color.sh error "" "Operation failed"Summary Sections (key metrics, final status)
bash .claude/skills/colored-output/color.sh info "" "Processed 10 files"
❌ DON'T Use Colored Output For:
Progress Updates - Use regular text instead
- ❌ Bad:
bash .claude/skills/colored-output/color.sh progress "" "Step 1 of 5..." - ✅ Good: Regular Claude text: "Step 1 of 5: Analyzing files..."
- ❌ Bad:
Intermediate Info Messages - Use regular text
- ❌ Bad:
bash .claude/skills/colored-output/color.sh info "" "Found 3 files" - ✅ Good: Regular Claude text: "Found 3 files to process..."
- ❌ Bad:
Verbose Logging - Use regular text
- ❌ Bad: Multiple colored calls for each step
- ✅ Good: Regular text for all intermediate steps
📏 Recommended Pattern
Minimal Colored Output (2-3 calls per operation):
# START: Colored header (1 call)
🔧 [skill-name] Starting operation...
# MIDDLE: Regular Claude text (0 colored calls)
Analyzing 10 files...
Processing configurations...
Updating database...
Generating reports...
# END: Colored result (1-2 calls)
✅ Operation complete!
📋 Summary: 10 files processed, 0 errors
🚫 Anti-Pattern (Causes Flickering)
Excessive Colored Output (10+ calls per operation):
🔧 [skill-name] Starting operation... ← Colored
▶ Step 1: Analyzing files... ← Colored (unnecessary)
ℹ️ Found 10 files ← Colored (unnecessary)
▶ Step 2: Processing... ← Colored (unnecessary)
ℹ️ Processing file 1... ← Colored (unnecessary)
ℹ️ Processing file 2... ← Colored (unnecessary)
... (8 more colored calls) ...
✅ Operation complete! ← Colored
Problem: Each bash call creates a new task in Claude CLI, causing screen flickering and visual noise.
📊 Target Metrics
- Maximum: 3-4 colored bash calls per operation
- Minimum: 2 colored bash calls (header + result)
- Ideal: Use colored output only for boundaries (start/end) and alerts
🎨 VISUAL OUTPUT FORMATTING
CRITICAL: This skill itself follows the minimal colored output pattern!
Self-Reference Pattern
When this skill responds, use the MINIMAL pattern:
# START: Header only
bash .claude/skills/colored-output/color.sh skill-header "colored-output" "Processing request..."
# MIDDLE: Regular text (no colored calls)
Analyzing color requirements...
Available message types: skill-header, agent-header, success, error, warning, info, progress...
# END: Result only
bash .claude/skills/colored-output/color.sh success "" "Formatting complete!"
DO NOT use excessive colored calls when demonstrating. Follow the 2-3 call guideline!
🎨 Color Scheme
Component Types
- Skills: 🔧 Bold Blue
\033[1;34m - Agents: 🤖 Bold Purple
\033[1;35m - Commands: ⚡ Bold Green
\033[1;32m
Status Types
- Success: ✅ Bold Green
\033[1;32m - Error: ❌ Bold Red
\033[1;31m - Warning: ⚠️ Bold Yellow
\033[1;33m - Info: ℹ️ Bold Cyan
\033[1;36m - Progress: ▶ Blue
\033[0;34m
���
Установить colored-output в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл colored-output?
Centralized colored output formatter for all skills, agents, and commands with ANSI escape codes
Как установить скилл colored-output?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл colored-output запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic