Figlet text converter

From rawveg/skillsforge-marketplace · View interactive version

Figlet text converter is an AI agent skill from the GitHub repository rawveg/skillsforge-marketplace. This skill processes files containing figlet tags and replaces them with ASCII art representations. It detects and preserves comment styles (forward slash forward slash, hash, double-dash, forward slash asterisk), automatically manages Node.js dependencies, and supports 400+ fonts (defaulting to the

How to use this skill

Skill file

Figlet Text Converter

Overview

This skill converts marked text in files to ASCII art using the figlet library. It uses a simple, universal tag syntax that works across all file types and intelligently preserves comment formatting when tags are placed in commented sections. The skill handles dependency management automatically and supports 400+ fonts with sensible defaults.

When to Use This Skill

Use this skill when:

Tag Syntax

Universal Markup

Insert <figlet> tags anywhere in a file to mark text for ASCII art conversion:

With font specification:

<figlet font="3-D">Text to Convert</figlet>

Using default font (standard):

<figlet>Text to Convert</figlet>

Usage in Different Contexts

Markdown Documents
# Section Title

<figlet font="Standard">Important Notice</figlet>

Content goes here...
Shell Scripts
#!/bin/bash

echo '<figlet>Deployment Started</figlet>'

# Script logic...
Python Code
# <figlet>Configuration</figlet>

config = {
    'setting': 'value'
}
PHP/JavaScript
// <figlet font="Block">Database Connection</figlet>

function connectDB() {
    // ...
}
Plain Text/Config Files
<figlet>System Status Report</figlet>

This report contains...

Workflow

Processing a File

When a user requests ASCII art conversion:

  1. Read the file containing <figlet> tags
  2. Validate all font names (error immediately if invalid)
  3. For each tag:
  1. Replace tags with formatted ASCII art
  2. Write changes back to the file

Handling Comments

The skill automatically detects comment context:

Single-line comments:

// <figlet>Section Break</figlet>

Outputs each line with // prefix:

// ___         _   _                  ____          _
// / __| ___  | | | | ___  _ _      | __ ) _ _  __| | |
// \__ \/ -_) | |_| |/ _ \| '  \    | _ \| '_|/ _` | |
// |___/\___|  \___/ \___/|_|_|_|   |_| \_\_|  \__,_|_|

Hash comments (Python, Shell):

# <figlet>Configuration</figlet>

Outputs with # prefix.

SQL/SQL comments:

-- <figlet>Query Section</figlet>

Outputs with -- prefix.

Block comments:

/* <figlet>Module Start</figlet>

Outputs with * prefix:

 * ___  _           _     _        ___   _             _
 * |  \/  | ___   __| | _ | | ___  / __| | |_  __ _  _ | |_
 * | |\/| |/ _ \ / _` ||_|| |/ -_) \__ \ |  _|/ _` || ||  _|
 * |_|  |_|\___/ \__,_| \__/ \___|  |___/ |_|  \__,_|\__|\__|

Plain text (no comment prefix):

<figlet>Plain ASCII Art</figlet>

Outputs raw ASCII art without formatting.

Font Selection

Default Font

If no font is specified, 'standard' is used:

<figlet>Default Font Example</figlet>

Custom Fonts

Specify any of 400+ available fonts:

<figlet font="Block">Bold Text</figlet>
<figlet font="3-D">3D Effect</figlet>
<figlet font="Shadow">Shadowed</figlet>

Finding Fonts

When user requests to list available fonts, run the font discovery script to show:

Popular fonts:

Error Handling

The skill validates fonts before processing:

Bundled Resources

scripts/

process-file.js

list-fonts.js

package.json

.gitignore

references/

usage-guide.md - Comprehensive reference documentation for all features and edge cases

Technical Details

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.