ascii-ansi-colorizer
Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
Best use case
ascii-ansi-colorizer is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "ascii-ansi-colorizer" skill to help with this workflow task. Context: Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
- Use it when you already have the supporting tools or dependencies needed by the workflow.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ascii-ansi-colorizer/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ascii-ansi-colorizer Compares
| Feature / Agent | ascii-ansi-colorizer | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
## When to use this skill **CRITICAL TRIGGER RULE** - Use this skill ONLY when the user explicitly mentions the exact skill name: `ascii-ansi-colorizer`. **Trigger phrases include:** - "ascii-ansi-colorizer" - "use ascii-ansi-colorizer" - "用 ascii-ansi-colorizer 给 ASCII 上色" - "使用 ascii-ansi-colorizer 做 ANSI 渐变/彩虹" ## Boundary - This skill only adds color to existing text. It does not generate the ASCII art itself (pair with `ascii-cli-logo-banner` if needed). - Required outputs: `coloredText` + `plainTextFallback`. - ANSI must not break alignment: do not colorize spaces by default; colorize visible characters only. ## How to use this skill ### Inputs - textOrAscii (required) - palette (rainbow | gradient | brandColors) - direction (leftToRight | topToBottom, default leftToRight) - colorDepth (ansi16 | ansi256 | truecolor, default ansi256) - scope (logoOnly | highlightsOnly | fullText, default logoOnly) ### Outputs (required) - coloredText: ANSI-colored output - plainTextFallback: no-color fallback (identical content, no ANSI) - compatNotes: copy/paste and redirection guidance (NO_COLOR / --no-color suggestions) ### Steps 1. Pick `colorDepth` (default: ansi256). 2. Choose a stable coloring strategy: - Column-wise gradients (leftToRight) are usually the safest - Colorize non-space characters only 3. Output both `coloredText` and `plainTextFallback`. 4. Provide no-color guidance (semantic suggestions): `NO_COLOR` / `--no-color`. ### Output Format Outputs should be structured as three distinct text blocks: ``` coloredText: \033[38;5;33mH\033[38;5;34me\033[38;5;35ml\033[38;5;36ml\033[38;5;37mo\033[0m plainTextFallback: Hello compatNotes: - Respect NO_COLOR env var: if set, output plainTextFallback only - Support --no-color flag for CLI tools - Pipe/redirect: detect non-TTY and fall back to plain text ``` ### Workflow 1. Receive text input and validate it is non-empty 2. Select `colorDepth` (default ansi256) and `palette` 3. Apply coloring to visible characters only (skip spaces to preserve alignment) 4. Generate both `coloredText` and `plainTextFallback` 5. **Validate**: Strip ANSI codes from `coloredText` and compare with `plainTextFallback` — they must match ## Script - `scripts/colorize.py`: apply ANSI 256 gradient or rainbow to stdin ## Examples - `examples/gradient.md` ## Quality checklist 1. Removing ANSI keeps the same readable content (`plainTextFallback`). 2. Alignment does not change after coloring. 3. Colors should not overpower the informational lines. ## Keywords **English:** ascii-ansi-colorizer, ansi, color, gradient, rainbow, terminal, no-color, plain text, ascii **中文:** ascii-ansi-colorizer, ANSI, 上色, 渐变, 彩虹, 终端, 无色回退, 纯文本, ASCII
Related Skills
tui-transition
Generate and render a pixel-precise ASCII TUI Transition component with complete output blocks (TUI_RENDER, COMPONENT_SPEC, PENCIL_SPEC, PENCIL_BATCH_DESIGN) for Pencil MCP drawing workflows. Use when the user asks to create a transition in a terminal UI, text-based interface, or Pencil MCP project.
ansible
Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible.
cli-ascii-logo
“Generate CLI ASCII art logos and banners with box drawing borders, block characters, and ANSI 24-bit gradients, plus runnable scripts and integration code. Use when the user needs a terminal logo, colored ASCII banner, figlet-style title, or CLI startup welcome page.”
ascii-text-art-library
Generate a reusable ASCII-only text template library (titles, dividers, notice boxes, slogans/CTA), with naming conventions and selection rules for consistent CLI/log/README output. Use when the user needs ASCII art templates, text banners, console formatting, or decorative text elements.
ascii-terminal-animation-pack
Plan and generate terminal ASCII animations/screensaver-style output (FPS, refresh rules, loop policy, low-flicker guidance), with a static poster frame and an optional local demo script.
ascii-table-renderer
Render structured data as aligned ASCII tables (column width rules, truncate/wrap, border styles, compact/readable variants) for terminal/log/email.
ascii-progress-and-spinner
Design ASCII progress bars and spinners for CLI UX (determinate/indeterminate, TTY single-line refresh, non-interactive log fallback) with copy-pastable style specs. Use when the user needs terminal progress indicators, loading animations, or CLI feedback elements.
ascii-motd-profile-banner
Generate ASCII-only MOTD / SSH login banner / shell profile welcome messages (short/long variants, quiet mode guidance, security notices).
ascii-mini-charts
Generate ASCII mini charts (sparkline/bar/simple line) for plain-text trend inspection, with minimal and annotated variants and normalization notes. Use when the user needs text-based data visualization, terminal charts, or ASCII graphs for CLI output.
ascii-image-to-ascii
“Convert an image into ASCII art (readable + detail variants, width/charset controls, optional ANSI), for terminal previews and plain-text image substitutes.”
ascii-diagram-boxflow
Generate plain ASCII box-flow diagrams (boxes + arrows) for environments without renderers, with alignment rules and split strategies for complex graphs.
ascii-cli-logo-banner
Entry point for ASCII CLI banners that routes to the Python built-in font skill or figlet.js/FIGfont skill. Use when the user wants a startup banner, ASCII logo, terminal welcome screen, or CLI branding for a service.