Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

colored-output

БесплатноЗапускает вложенные скриптыНе проверен

Centralized colored output formatter for all skills, agents, and commands with ANSI escape codes

Interstellar-codeот 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:

  1. Initial Header (once at start of operation)

    bash .claude/skills/colored-output/color.sh skill-header "skill-name" "Starting operation..."
    
  2. Final Results (success, error, or completion)

    bash .claude/skills/colored-output/color.sh success "" "Operation complete!"
    
  3. 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"
    
  4. Summary Sections (key metrics, final status)

    bash .claude/skills/colored-output/color.sh info "" "Processed 10 files"
    

❌ DON'T Use Colored Output For:

  1. 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..."
  2. 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..."
  3. 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

���

Полный SKILL.md на GitHub

Установить colored-output в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

color.sh

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить colored-output с