This skill provides a centralized colored output formatter to ensure consistent, minimal colored messaging across all skills and agents, improving readability.
npx playbooks add skill interstellar-code/claud-skills --skill colored-output
Centralized, reusable colored output formatting for ALL skills, agents, and commands!
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:
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.
---
⚠️ IMPORTANT: Use colored output SPARINGLY to prevent screen flickering and visual clutter!
bash .claude/skills/colored-output/color.sh skill-header "skill-name" "Starting operation..."
bash .claude/skills/colored-output/color.sh success "" "Operation complete!"
bash .claude/skills/colored-output/color.sh warning "" "Configuration issue detected"
bash .claude/skills/colored-output/color.sh error "" "Operation failed"
bash .claude/skills/colored-output/color.sh info "" "Processed 10 files"
bash .claude/skills/colored-output/color.sh progress "" "Step 1 of 5..."bash .claude/skills/colored-output/color.sh info "" "Found 3 files"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
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.
---
CRITICAL: This skill itself follows the minimal colored output 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!
---
\033[1;34m\033[1;35m\033[1;32m\033[1;32m\033[1;31m\033[1;33m\033[1;36m\033[0;34m---
bash .claude/skills/colored-output/color.sh [type] [component-name] [message]
bash .claude/skills/colored-output/color.sh skill-header "time-helper" "Processing time request..."
# Output: 🔧 [time-helper] Processing time request... (in blue)
bash .claude/skills/colored-output/color.sh agent-header "eslint-fixer" "Analyzing code..."
# Output: 🤖 [eslint-fixer] Analyzing code... (in purple)
bash .claude/skills/colored-output/color.sh command-header "/commit" "Creating commit..."
# Output: ⚡ [/commit] Creating commit... (in green)
bash .claude/skills/colored-output/color.sh success "" "File updated successfully"
# Output: ✅ File updated successfully (in green)
bash .claude/skills/colored-output/color.sh error "" "Failed to parse file"
# Output: ❌ Failed to parse file (in red)
bash .claude/skills/colored-output/color.sh warning "" "This may take a while"
# Output: ⚠️ This may take a while (in yellow)
bash .claude/skills/colored-output/color.sh info "" "Processing 5 files"
# Output: ℹ️ Processing 5 files (in cyan)
bash .claude/skills/colored-output/color.sh progress "" "Step 1 of 3"
# Output: ▶ Step 1 of 3 (in blue)
---
OLD WAY (Don't do this):
Claude outputs: "Processing..."
(No colors, just plain text)
NEW WAY (Do this):
When skill starts:
1. Output colored header using this formatter
2. Output progress messages using this formatter
3. Output final status using this formatter
# Start of skill
bash .claude/skills/colored-output/color.sh skill-header "time-helper" "Getting current time for Tokyo..."
# Progress
bash .claude/skills/colored-output/color.sh progress "" "Querying timezone database..."
# Result
bash .claude/skills/colored-output/color.sh info "" "Current time: 2025-10-22 14:30:00 JST"
# Success
bash .claude/skills/colored-output/color.sh success "" "Time retrieved successfully"
Output:
🔧 [time-helper] Getting current time for Tokyo...
▶ Querying timezone database...
ℹ️ Current time: 2025-10-22 14:30:00 JST
✅ Time retrieved successfully
---
Every skill/agent should follow this pattern:
bash .claude/skills/colored-output/color.sh skill-header "SKILL-NAME" "Starting task..."
bash .claude/skills/colored-output/color.sh progress "" "Processing step 1..."
bash .claude/skills/colored-output/color.sh progress "" "Processing step 2..."
bash .claude/skills/colored-output/color.sh info "" "Found 10 items"
bash .claude/skills/colored-output/color.sh success "" "Task completed successfully"
# OR
bash .claude/skills/colored-output/color.sh error "" "Task failed: reason"
---
Test all color types:
cd .claude/skills/colored-output
# Test skill header
bash color.sh skill-header "test-skill" "This is a skill message"
# Test agent header
bash color.sh agent-header "test-agent" "This is an agent message"
# Test command header
bash color.sh command-header "/test" "This is a command message"
# Test statuses
bash color.sh success "" "Success message"
bash color.sh error "" "Error message"
bash color.sh warning "" "Warning message"
bash color.sh info "" "Info message"
bash color.sh progress "" "Progress message"
---
| Type | Usage | Example |
|------|-------|---------|
| skill-header | Skill starting | 🔧 [skill-name] Message |
| agent-header | Agent starting | 🤖 [agent-name] Message |
| command-header | Command starting | ⚡ [/command] Message |
| success | Operation succeeded | ✅ Message |
| error | Operation failed | ❌ Message |
| warning | Caution needed | ⚠️ Message |
| info | Informational | ℹ️ Message |
| progress | Step indicator | ▶ Message |
---
Add this section to every skill/agent:
## 🎨 Colored Output (Required)
**CRITICAL: Use colored-output skill for ALL user-facing messages!**
### Start of Skill
\`\`\`bash
bash .claude/skills/colored-output/color.sh skill-header "SKILL-NAME" "Starting..."
\`\`\`
### Progress Updates
\`\`\`bash
bash .claude/skills/colored-output/color.sh progress "" "Processing..."
\`\`\`
### Final Status
\`\`\`bash
bash .claude/skills/colored-output/color.sh success "" "Complete!"
# OR
bash .claude/skills/colored-output/color.sh error "" "Failed!"
\`\`\`
---
To change colors globally, edit color.sh:
# Change skill color from blue to cyan
SKILL_COLOR='\033[1;36m' # Was: \033[1;34m
# Change success icon
SUCCESS_ICON='🎉' # Was: ✅
All skills/agents immediately inherit the changes!
---
.claude/skills/colored-output/
├── skill.md # This documentation
└── color.sh # Bash formatter script
---
---
DO:
skill-header at the start of every skillprogress for multi-step operationssuccess/error for final statusinfo for important detailsDON'T:
---
Before colored-output skill:
After colored-output skill:
---
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.