| name | bar-chart-comparison |
| description | Present comparisons as narrow ASCII bar charts in the terminal. Use when
user asks to compare items, metrics, counts, or coverage between things.
|
Bar Chart Comparison Skill
When the user asks for a comparison between items (metrics, counts, coverage, etc.), present the data as a narrow ASCII bar chart that fits in a terminal.
Format
Title (units)
=============
Item A |######## 800
Item B |## 200
Item C |################### 1,900
Legend: # = N units (scale to fit)
Rules
- Keep it narrow - Max 40 characters wide for the chart area
- Scale appropriately - Use
# to represent units, pick a scale that makes differences visible
- Right-align numbers - Put actual values after bars
- Add legend - Show what each
# represents
- Group related items - Use blank lines or headers to organize
- Use
- for zero/none - Don't leave blank, show explicit zero
When to Use
- User asks to "compare" things
- User asks for "how does X stack up against Y"
- User wants to see relative sizes/counts
- Summarizing coverage gaps
- Before/after comparisons
Anti-patterns
- Don't use emojis or unicode blocks
- Don't make charts wider than 50 chars total
- Don't omit the scale/legend
- Don't use for single items (just state the number)