ascii-ansi-colorizer
$
npx mdskill add partme-ai/full-stack-skills/ascii-ansi-colorizerAdds ANSI colors to ASCII or plain text with gradient, rainbow, or highlight effects while preserving alignment and providing a no-color fallback.
- Helps colorize terminal output, style CLI text with rainbow effects, or enhance ASCII art.
- Depends on Python 3.8 or higher and integrates with ANSI terminal standards.
- Activates only when the user explicitly mentions the skill name in specific trigger phrases.
- Delivers results as colored text with a plain fallback and compatibility notes for safe usage.
SKILL.md
.github/skills/ascii-ansi-colorizerView on GitHub ↗
--- name: ascii-ansi-colorizer description: "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." license: Complete terms in LICENSE.txt dependencies: - python>=3.8 --- ## 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
More from partme-ai/full-stack-skills
- adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
- angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
- 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."
- ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
- ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
- ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
- ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
- api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
- appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
- 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."