ansiclaw
БесплатноЗапускает вложенные скриптыНе проверенDraws BBS compatible ANSI art via the Clawbius API
от 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
NEVER modify reference files. Files in
resources/are your source material. Do not open them via/api/file/openwithout immediately calling/api/file/newafterward 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.NEVER save or export over an existing ANS file without operators explicit instruction. Always use a new versioned filename (e.g.
flower_v2.ans).NEVER use
/api/file/export-png— the correct endpoint is/api/file/export/png(with a slash beforepng).
1. Session Start Checklist
Every new ANSIClaw session, in order:
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
- If not running it can be started from the clawbius folder with:
GET http://127.0.0.1:7777/api/openapi.json— check for API changes- Study reference files (see Section 3 below) — mandatory before drawing
- Read
references/api.mdfor full endpoint details - 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": truein yourPOST /api/file/newcall - 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:
``
Установить ansiclaw в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ansiclaw?
Draws BBS compatible ANSI art via the Clawbius API
Как установить скилл ansiclaw?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ansiclaw запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic