| name | ascii-word-art |
| description | Generate ASCII word art for a short word or phrase without external tools. Useful for playful headers, CLI banners, or sample outputs. |
| license | CC0-1.0 |
| metadata | {"author":"oma-sample-skills","version":"1.0"} |
ASCII Word Art
Create an ASCII banner for a short word or phrase. The output should feel like a mini TAAG-style banner, but generated locally using the included font map.
Inputs to ask for
- Text (1-20 characters, spaces allowed)
- Optional: style name (default: block-5)
- Optional: align (left, center, right)
- Optional: max width (characters)
If inputs are missing, choose a safe default and continue.
Output format
Use this structure:
- Title: "ASCII Word Art"
- Text
- Style
- Align
- Art block (fenced code block)
- One-line usage tip
Steps
- Normalize text to uppercase.
- Load the font map from
assets/font-block-5x5.txt.
- For each character:
- Map A-Z and 0-9.
- For spaces, insert a 1-column gap.
- For unknown characters, use the glyph defined in the font map.
- Replace '.' with spaces in the final art lines, then trim trailing spaces.
- Combine rows into a multi-line banner.
- Apply alignment if a max width is given.
- Keep the total output under 120 words.
Constraints
- Use only ASCII characters in the art block.
- Keep each art line at or under the max width if provided.
- If the text is longer than 20 characters, trim and add "..." in plain text (not in the art block).
See examples in references/EXAMPLES.md.