Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ansiclaw

БесплатноЗапускает вложенные скриптыНе проверен

Draws BBS compatible ANSI art via the Clawbius API

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

ANSIClaw 🦞🎨

Draw ANSI art via the local Clawbius REST API. Depends on Clawbius (https://github.com/n2tr0n/clawbius) running locally on port 7777. Also depends on python 'requests'. Optimized for Mac OS Sequoia.


⛔ HARD RULES — READ BEFORE ANYTHING ELSE

  1. NEVER modify reference files. Files in resources/ are your source material. Do not open them via /api/file/open without immediately calling /api/file/new afterward to switch to a fresh canvas. Opening a file in Clawbius makes it the active canvas — any draw calls will corrupt it. Analyze reference files by reading canvas data ONLY, then immediately create a new canvas before drawing.

  2. NEVER save or export over an existing ANS file without operators explicit instruction. Always use a new versioned filename (e.g. flower_v2.ans).

  3. NEVER use /api/file/export-png — the correct endpoint is /api/file/export/png (with a slash before png).


1. Session Start Checklist

Every new ANSIClaw session, in order:

  1. GET http://127.0.0.1:7777/api/canvas/info — confirm Clawbius is running
    • If not running it can be started from the clawbius folder with: launch_clawbius.sh
  2. GET http://127.0.0.1:7777/api/openapi.json — check for API changes
  3. Study reference files (see Section 3 below) — mandatory before drawing
  4. Read references/api.md for full endpoint details
  5. Check that ice colors are set to OFF unless Operator says otherwise (see Section 2 below)

Output dir: the 'outputs' folder in your skill folder — save ANS + PNG here - create the folder if it is not there


2. Color Rules

⚠️ ICE COLORS — DEFAULT IS OFF. THIS IS CRITICAL.

Ice colors are OFF by default. Do not use colors 8–15 as background colors unless Operator explicitly says "ice colors on" or "this is an ice colors ANSI".

  • Colors 0–7 are always safe as background
  • Colors 8–15 as background only when ICE colors are specified ON by the Operator - this is a special mode not commonly used

When Operator says "ice colors on":

  • Call POST /api/ui/ice-colors {"value": true}
  • Also pass "ice_colors": true in your POST /api/file/new call
  • Now bg colors 8–15 are available and open up new dithering possibilities

16-Color Palette

DARK (safe as bg):
  0=black       1=dark blue   2=dark green  3=dark cyan
  4=dark red    5=magenta     6=brown       7=light gray

BRIGHT (fg only unless ice colors on):
  8=dark gray   9=blue        10=green      11=cyan
  12=red        13=light mag  14=yellow     15=white

Shade Blocks (F1–F4)

F1=176 ░  light shade    F2=177 ▒  medium shade
F3=178 ▓  dark shade     F4=219 █  full block

Dithering is achieved by varying the shade block (F1–F4) with different fg/bg color pairs. This is the primary tool for gradients, texture, and depth — not solid color fills.

Half-Blocks useful for edges and, smoother curves and anti-aliasing techniques

220=▄ lower half   223=▀ upper half
221=▌ left half    222=▐ right half

3. Studying Reference Files (MANDATORY)

Before drawing anything, study the reference files in resources/. Do all three steps:

  • load the file in Clawbius - inspect it with the API
  • take a screenshot with peekaboo and analyze the image (if peekaboo is there)

Learn style and shading techniques from the provided examples and use them, especially dither, half block, no tocar techniques (disparate objects being separated by a half block of blackspace) and the effective use of black/negative space and falloff shading and gradients.

Step 1 — Read the README

resources/README.md

Get the description of each file and what it demonstrates.

Step 2 — Open and analyze canvas data via API

import requests, json
# Open the reference file
requests.post("http://127.0.0.1:7777/api/file/open",
    json={"path": "/absolute/path/to/resources/file.ans"})

# Get canvas info
info = requests.get("http://127.0.0.1:7777/api/canvas/info").json()

# Get full canvas data and analyze color/code usage
data = requests.get("http://127.0.0.1:7777/api/canvas/data").json()
blocks = data["result"]
cols = info["result"]["columns"]

# Study a region (e.g. rows 10-20):
for y in range(10, 20):
    unique = {}
    for x in range(0, cols):
        b = blocks[y * cols + x]
        key = (b["code"], b["fg"], b["bg"])
        unique[key] = unique.get(key, 0) + 1
    top = sorted(unique.items(), key=lambda x: -x[1])[:6]
    print(f"row {y}: {top}")

Look for:

  • What fg/bg color pairs dominate each region?
  • Which shade blocks (F1–F4) are used and where?
  • How are transitions handled between regions?
  • What bg colors are used — are they all 0–7?

Step 3 — Analyze the reference PNG

Each reference file in resources/ should have a matching .png alongside the .ans file. Use the image tool to analyze the PNG directly: ``

Полный SKILL.md на GitHub

Установить ansiclaw в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

inputs/README.MDreferences/api.mdresources/README.mdscripts/README.mdscripts/draw_butterfly.pyscripts/draw_field.pyscripts/flower_v2.py

FAQ

Что делает скилл ansiclaw?

Draws BBS compatible ANSI art via the Clawbius API

Как установить скилл ansiclaw?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ansiclaw запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ansiclaw с