draw-scene
Draw an illustration (scene, character, map route, product shot, social-media art) as an SVG or PNG by writing a short YAML scene that the scenec compiler checks and renders, with no image model and n
SKILL.mdskills/draw-scene/SKILL.md
GitHubDraw a scene
You write a YAML scene. scenec compiles it to SVG and tells you, in text, what is wrong with it: warnings (fields it did not understand, objects out of frame) and art-director critiques (overlaps, empty space, low contrast). You never need to look at the picture.
Workflow
- Pick the closest recipe in
recipes/and copy it to a working file, for examplescene.yaml:explainer-reel: vertical 9:16 explainer framecarousel: square or 4:5 carousel slidepersonalized-wrapped: personalized "year in review" carde-learning: course scene with people and a screenillustrated-story: story or history scenejourney-map: route over the map of Europead-variations: ad with variationsproduct-illustration: product illustration
- Change the content. Prefer
group:(ready-made sets such as a workspace) andcanvas.shotover placing every piece by hand. Look up names inreferences/catalog.md, or runnpx @guilhermebkel/scenec catalog assets. - Check:
npx @guilhermebkel/scenec check scene.yaml. Readwarningsandart. Exit code 1 means there is something to fix. - Fix and check again. Stop after 5 cycles; if something still fails, say what is left instead of looping.
- Render:
npx @guilhermebkel/scenec render scene.yaml -o out --png. Deliverout.svgandout.png. Optionally polish with Best-of-N: once the report is clean, runnpx @guilhermebkel/scenec best scene.yaml -n 8 -o out --png(orrender scene.yaml --best 8 -o out --png). It builds variations of free parameters (seed, lighting side, camera frame, palette harmonies) and keeps the one with the best critique score, writing the winning scene toout.yamlnext to the SVG, so the result stays reproducible andscene.yamlis left unchanged.
Rules
- Never edit the SVG by hand. Change the scene and render again.
- A warning that says "you meant X" is almost always right: apply it.
- Field names and values are listed in
references/dsl.md. Do not invent fields. - Colors come from the theme or from
canvas.colors; use names likeprimaryandaccentbefore hex values. - Custom SVG assets go under
assets:and are sanitized; external links and scripts are removed. npx @guilhermebkel/scenec schemaprints the full JSON Schema if you need it.
Files
recipes/*.yaml: 10 scenes that compile with zero warnings and zero critiques.references/dsl.md: the scene language (generated).references/catalog.md: assets, groups, kits, themes, poses (generated).