skills/built-in/algorithmic-art/SKILL.md
Create generative / algorithmic art and visual patterns with code — fractals, geometric tilings, flow fields, color gradients, parametric shapes — rendered to an image. Use when users want procedurally generated art, a cool pattern, a wallpaper, or 'make something with code'. Triggers on mentions of generative art, algorithmic art, fractal, pattern, procedural, flow field, wallpaper, 生成艺术, 算法艺术, 分形, 图案, 壁纸.
npx skillsauth add microclaw/microclaw algorithmic-artInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Make art from rules. Render to a file under tmp/, then send it with send_message.
For raster, check python3 -c "import PIL"; if Pillow is missing, generate SVG with the stdlib (no deps).
python3 - <<'PY'
import random, math
W=H=600; cells=20; s=W//cells
parts=[f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}">',
f'<rect width="{W}" height="{H}" fill="#0b1021"/>']
for i in range(cells):
for j in range(cells):
hue=(i*j*7)%360
r=random.uniform(3, s/2)
parts.append(f'<circle cx="{i*s+s//2}" cy="{j*s+s//2}" r="{r:.1f}" '
f'fill="hsl({hue},70%,60%)" opacity="0.8"/>')
parts.append('</svg>')
open("tmp/art.svg","w").write("\n".join(parts))
print("wrote tmp/art.svg")
PY
python3 - <<'PY'
from PIL import Image
W=H=700; img=Image.new("RGB",(W,H))
px=img.load()
for x in range(W):
for y in range(H):
c=complex(-2.2+3.0*x/W, -1.5+3.0*y/H); z=0; i=0
while abs(z)<=2 and i<60: z=z*z+c; i+=1
px[x,y]=(i*4%256, i*7%256, i*11%256)
img.save("tmp/mandelbrot.png")
print("wrote tmp/mandelbrot.png")
PY
tmp/ and deliver via send_message with attachment_path.generate_image tool instead.documentation
Improve or write prose: tighten, clarify, fix grammar, and adjust tone/length while preserving the author's voice and meaning. Use when users ask to edit, proofread, rewrite, polish, shorten, or change the tone of text, or to draft something from notes. Triggers on mentions of edit, proofread, rewrite, polish, tighten, make it shorter/clearer/more formal, fix grammar, 润色, 改写, 校对, 修改, 精简, 改语气, 帮我写.
development
Look up a quick factual summary of a topic, person, place, or thing from Wikipedia via its public REST API (no API key). Use when users want a concise overview, 'who/what is X', background, or a definition-level explanation of a named entity. Triggers on mentions of who is, what is, tell me about, overview of, background on, wikipedia, 是谁, 是什么, 介绍一下, 简介, 维基.
testing
Convert between units of measurement precisely: length, mass/weight, temperature, area, volume, speed, data sizes, and time. Use when users ask to convert X to Y, 'how many cm in an inch', 'what's 70F in C', 'GB to MB', or mix metric and imperial. Triggers on mentions of convert, conversion, in inches/cm/km/miles, kg/lb, Celsius/Fahrenheit, 换算, 转换, 多少厘米, 多少公斤, 摄氏, 华氏.
development
Translate text between languages naturally, preserving meaning, tone, and formatting, with notes on nuance or ambiguity when it matters. Use when users ask to translate text, say something in another language, or localize a message. Triggers on mentions of translate, in English/Chinese/Spanish/Japanese/etc, how do you say, localize, 翻译, 译成, 用英文怎么说, 中译英, 英译中, 本地化.