Introducing a new way to review your PRs.

Read the announcement

bas3line / ascii

Animated ascii art for web pages, in TypeScript: React, Next.js, Astro, or one HTML tag

View on GitHub

21 documents · Updated Oct 26, 2026

docs / ai-assistant-skills

AI assistant skills

The AI assistant skill packages turn the ASCII library into task-focused guidance for coding agents. They connect a user's request to the right artwork, output surface, integration pattern, and offline reference material without replacing the library or its normal documentation.

Skill package model

The skill is a distributable package that an agent can install and use as a local source of instructions. Its main entry point explains when the library fits, how to choose a piece, how to place it in a target project, and how to check the result.

Task guidance

The package starts with the user's destination rather than with a list of APIs. It helps an agent choose among a web page, framework app, README, terminal, image conversion task, or new-piece request before it gives the matching integration path.

References: skills/…/SKILL.md• L12-20

Library discovery

The package gives the agent a generated catalog of 240 named pieces. The catalog links each name to its visual purpose, output kind, size, motion rate, and options, so an agent can select a real library item instead of guessing a name.

References: skills/…/SKILL.md• L18 skills/…/pieces.md• L1-10

Integration guidance

The skill covers the main ways an assistant can add ASCII output to a project. Each path keeps the same piece model while adapting the delivery method to the host environment.

Web and framework outputs

For browser work, the package guides agents toward the React and Next.js components, the Astro components, plain HTML custom elements, or direct mounting. This lets the agent match the integration to the project's build and rendering model.

References: skills/…/SKILL.md• L22-66

Readme and terminal outputs

For environments that do not run browser scripts, the skill points agents to hosted or generated SVGs. For command-line tools, it points to the terminal player and banner output, including their behavior in pipes and continuous integration logs.

References: skills/…/SKILL.md• L80-100 skills/…/readme.md• L1-20 skills/…/terminal.md• L1-22

New artwork and image conversion

The package also supports creation tasks. It directs agents to the browser image tool or fromImage() for image conversion, and to the creative kit when no existing piece meets the request. The resulting kit output remains a normal piece that can use the same page, SVG, or terminal paths.

References: skills/…/SKILL.md• L102-122 skills/…/images.md• L1-18 skills/…/kit.md• L1-20

Packaged reference material

The skill includes plain Markdown references so an agent can work without fetching the website. The generated material mirrors the public documentation and separates the complete piece catalog from topic-based integration and creation guides.

The package is built from two source streams:

  • references/pieces.md contains the generated catalog for piece selection.
  • references/docs/ contains one plain file for each documentation page, with browser-only content removed and site links made usable from text.

This relationship keeps the skill useful offline while preserving the website as the source for the public docs. The ASCII REST skill reference explains the package topics and their organization in more detail.

References: skills/…/SKILL.md• L155-191 skills/…/pieces.md• L1-4

Distribution and refresh flow

The distributable package is published under skills/ascii-rest and can be installed by compatible agents with npx skills add bas3line/ascii. A generation step rebuilds its entry file, catalog, and documentation references from the current piece index and website docs.

When the library or docs change, regeneration is part of keeping the assistant view aligned with the product. The generated folder is therefore an agent-facing release surface, not a separate hand-written manual.

flowchart LR
    Library[ASCII library and piece metadata] --> Generator[Skill generator]
    SiteDocs[Website documentation] --> Generator
    Generator --> Skill[skills/ascii-rest]
    Skill --> Agent[AI coding agent]
    Agent --> Project[User project or README]

References: scripts/gen.ts• L1-3 scripts/gen.ts• L25-51 scripts/skill.ts• L63-78

Change checklist

When these files or sections are changed, remember to consider these:

  • Add or rename a piece, then regenerate the skill so the catalog, name lookup guidance, and piece count stay aligned.
  • Change a website docs page, then regenerate the packaged reference so agents do not receive stale integration advice.
  • Change the skill's source guidance, then regenerate skills/…/SKILL.md rather than editing the generated package only.
  • Keep generated reference links relative to the skill package, or offline agents can lose the path from the entry guide to its topic material.

Important failure modes

TriggerConsequenceGuard
A new piece is added without skill generationAgents cannot discover the piece through the packaged catalogRun the generation command after piece changes
Documentation changes without skill generationAgents follow old framework, output, or kit guidanceRebuild the packaged references from the website docs
An agent uses a guessed piece nameThe requested artwork does not loadSelect names from the generated catalog or the library list
A README task uses a script-based integrationGitHub shows no working artworkUse an SVG path for README output

Key files

FileWhy to read it
scripts/…/SKILL.mdDefines the task-oriented instructions that become the assistant's main guide.
scripts/skill.tsBuilds the distributable skill from the piece index and plain website docs.
scripts/gen.tsShows how piece changes trigger index generation and skill generation.
skills/…/SKILL.mdShows the generated package that agents install and read.
skills/…/pieces.mdProvides the generated piece catalog used for name and artwork selection.
site/…/plain.tsDefines how website pages become plain Markdown for offline agent use.
ascii-rest-skill-reference.mdChild knowledge-base page for the skill's reference topics and organization.