{"success":true,"name":"genart","description":">","category":"unitary","path":"unitary/genart/SKILL.md","file":"SKILL.md","content":"---\nname: genart\ndescription: >\n  Craft long-form generative art for onchain platforms — Art Blocks, 256ART,\n  Verse, Highlight, Plottables, bootloader.art, or a self-hosted drop — and for\n  screen diffusion channels such as Artpoint. Covers hash-seeded determinism,\n  resolution-agnostic rendering, features and rarity design, preview capture\n  signals, debug GUIs and image/video export shortcuts, verification of a sketch\n  before minting, and the ethics of the field. Use when the user mentions\n  generative art, gen art, creative coding, long-form, onchain art, a seeded\n  sketch, a PRNG or deterministic randomness, traits, rarity, features, a mint,\n  a plotter or SVG output, art on screen or delivering a piece as a video, or\n  pastes platform APIs such as tokenData, $features, inputData, $bootloader,\n  BTLDR, hl-gen, or a base64 payload query param.\nuser-invokable: true\nargument-hint: \"[platform|check|render] [path]\"\nlicense: MIT\nmetadata:\n  author: Camille Roux\n  category: generative-art\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/artisto/skills-off/genart`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# Generative art\n\nHelp design, write and check long-form generative artworks — pieces where one\nalgorithm produces a whole edition, each output derived from a hash the\nblockchain hands you at mint time.\n\n## Default practices, and when to break them\n\nThese are defaults that work most of the time, not rules. Every one of them has\nlegitimate counter-examples, and those are often the interesting pieces. State\nthe default, then state what breaking it costs.\n\n| Default | Breaking it is legitimate when… |\n|---|---|\n| All variation comes from the hash | The piece deliberately reads live onchain state (owner, block data). It is then no longer reproducible from the hash alone — own that choice and document it |\n| One seeded PRNG, fixed consumption order | Almost never. But *named sub-streams* let you add a draw without shifting the whole edition — that is how you get flexibility without breaking the property |\n| No network, no CDN, no system fonts | Some platforms have an explicit external-asset mode, under their own rules |\n| No wall clock | The piece is about time passing, or is genuinely interactive. The preview render must stay stable regardless |\n| Sizes relative to the canvas dimension | The piece is deliberately adaptive and reveals more detail with more room. A choice, not an accident — then know what size it will be captured at |\n| Runs on current browsers and devices — Chrome, Firefox, Safari, mobile included | A piece built on a bleeding-edge API (WebGPU…) or needing real GPU power is a choice: state the requirement, keep the preview/capture path rendering everywhere, and remember collectors open links on phones |\n| Emit the platform's render-done signal | Never. A blank thumbnail is a failure with no upside |\n| Features computed before render, from the seed only | Where the platform computes features outside a browser, it is required. Elsewhere it is a convenience |\n| Debug code is stripped from the submitted build | Where code is stored unminified and readable onchain, formatting is part of the work |\n| Never claim \"it's deterministic\" without testing it, and without stating the scope | Never |\n\n**The firm part:** breaking a default must be the artist's explicit choice, never\nan accident. Point out the deviation, explain what it costs, then do what the\nartist asked. Do not refuse and do not lecture.\n\n## Ethics\n\n- Never reproduce a named living artist's signature work. Techniques are shared\n  heritage; a body of work is not. Offered \"make me a <artist>\", decline that\n  framing and offer the underlying technique instead.\n- Credit the algorithm, the shader, the palette you borrowed.\n- Check that a library's licence survives being written onchain forever.\n- Be straight about what AI did: writing the code and generating the image are\n  different claims.\n\nFull version: `references/ethics.md`.\n\n## Platforms: read the docs, every time\n\nPlatform APIs change and the fiches in `references/platforms/` deliberately hold\nno versions, no numbers and no field names — only the stable mental model, the\ncanonical URLs and the questions to ask.\n\nSo the sequence is always: **open the fiche → fetch the URLs it lists → then\nwrite code.** Never write platform-specific code from memory, and never from the\nfiche alone. If a doc is unreachable, say so and flag what could not be\nconfirmed.\n\n| Target | Fiche |\n|---|---|\n| Art Blocks (incl. Engine / Flex) | `references/platforms/artblocks.md` |\n| 256ART | `references/platforms/256art.md` |\n| Verse | `references/platforms/verse.md` |\n| Highlight | `references/platforms/highlight.md` |\n| Plottables (pen plotter, AB Engine) | `references/platforms/plottables.md` |\n| bootloader.art — ask *which* bootloader | `references/platforms/bootloader.md` |\n| Self-hosted / no platform | `references/platforms/self-hosted.md` |\n| Artpoint — art on screen, you deliver a video, not code | `references/platforms/artpoint.md` |\n| Undecided between two | `references/platforms/comparison.md` |\n\n## Where to look\n\n| When the question is about… | Read |\n|---|---|\n| Seeding from a hash, PRNG choice, sub-streams, distributions, things that silently break reproducibility | `references/determinism.md` |\n| Output that changes with canvas size, stroke weights, noise frequency, element density, print or plotter output | `references/resolution.md` |\n| Designing traits, rarity tables, weights, distribution that came out wrong | `references/features.md` |\n| Originality, attribution, licences, disclosing AI use | `references/ethics.md` |\n| Debug panel, param tweaking, keyboard shortcuts, PNG and video export, contact sheets | `references/tooling.md` |\n| \"Is my sketch actually deterministic?\", pre-mint checking, what a test can and cannot prove | `references/verification.md` |\n| Techniques, tutorials, libraries, inspiration, what other artists use | Fetch https://github.com/camilleroux/awesome-generative-art — a maintained list; do not paraphrase it from memory |\n\n## Runnable scripts\n\nTwo scripts ship with the plugin and run **in place** — never copy them into a\nproject. They need Playwright installed in the artist's project and print the\ninstall command if it is missing. Contract and details: `references/verification.md`.\n\n| Command | Does |\n|---|---|\n| `node \"$CLAUDE_PLUGIN_ROOT/scripts/check.mjs\" <dir>` | Determinism: repeatability, distinctness, global-state contamination, feature stability |\n| `node \"$CLAUDE_PLUGIN_ROOT/scripts/render.mjs\" <dir> --hash 0x…` | One PNG — render it, then **look at it** with Read before judging any visual change |\n| `node \"$CLAUDE_PLUGIN_ROOT/scripts/render.mjs\" <dir> --grid N` | Contact sheet, hash + features under each tile |\n| `node \"$CLAUDE_PLUGIN_ROOT/scripts/render.mjs\" <dir> --census N --edition-size E` | Real feature distribution vs the rarity table |\n| `node \"$CLAUDE_PLUGIN_ROOT/scripts/render.mjs\" <dir> --batch N --size 2400` | N individual full-res PNGs, hash-named — portfolio/print export |\n\nWhen asked to change how a piece looks, close the loop yourself: edit → render\none hash → Read the PNG → judge → adjust. Do not describe a visual change you\nhave not looked at.\n\n## Workflow\n\n1. **Target first.** Which platform? If undecided, `references/platforms/comparison.md`. Once decided,\n   open its fiche and fetch its docs before writing anything.\n2. **Decide the rarity table before coding.** It is much harder to retrofit.\n3. **Build.** Defaults above; deviations discussed, not silently taken.\n4. **Look at many outputs, not one.** A single good render proves nothing —\n   `render.mjs --grid` exists for this.\n5. **Check before minting** — `check.mjs`, then `references/verification.md` for\n   what the green result does and does not prove.\n","linked_files":["REASON.md","references/determinism.md","references/ethics.md","references/features.md","references/platforms/256art.md","references/platforms/artblocks.md","references/platforms/artpoint.md","references/platforms/bootloader.md","references/platforms/comparison.md","references/platforms/highlight.md","references/platforms/plottables.md","references/platforms/self-hosted.md","references/platforms/verse.md","references/resolution.md","references/tooling.md","references/verification.md"],"origin":"brimind","owner_id":null,"source":"router"}