DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to render one hash to a PNG and adjust the sketch with Genart Skill

Render a single token hash to a PNG so Claude can look at the result and edit the sketch.

  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code

Who it is forA generative artist iterating on a sketch with Claude Code who wants to see how one specific seed looks after each change.

The problemJudging a generative sketch by reading code is slow, and the artist needs to see the actual composition for a given hash.

The outcomeOne PNG for the chosen hash that Claude can open, inspect and use to decide the next edit.

What you need first

  • Claude Code installed
  • Node.js, to run the two scripts with node
  • A p5.js, Canvas 2D, three.js or SVG sketch in a project folder
  • Playwright installed in your project (npm i -D playwright && npx playwright install chromium)

Steps

  1. /plugin marketplace add camilleroux/genart-skill
  2. /plugin install genart@camilleroux-genart
  3. npm i -D playwright && npx playwright install chromium (inferred, check the README)
  4. node "$CLAUDE_PLUGIN_ROOT/scripts/render.mjs" myproject --hash 0x…

Prompt for your agent

Using the genart plugin from camilleroux/genart-skill, run node "$CLAUDE_PLUGIN_ROOT/scripts/render.mjs" <sketch-folder> --hash <0x-token-hash> to produce one PNG. Expect a single PNG file for that hash. Verify the PNG opens and matches the hash you passed before editing the sketch again.

Caveat. The script needs Playwright installed in your project, and the plugin itself stays dependency-free.

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer