Agent skill

Sdf Art

by shaun8149 in shaun8149/sdf-js

Generate sdf-js code from a natural-language scene description.

Custom licenceAuto-check passedFrontend & Design

Install Sdf Art

skills CLI
$ npx skills add shaun8149/sdf-js --skill sdf-art -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shaun8149/sdf-js sdf-art --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shaun8149/sdf-js.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/sdf-art .claude/skills/sdf-art && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sdf-art
GitHub stars
421
Token cost
~9.7k tokens
SKILL.md length
4,325 words
Files
8
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Generate sdf-js code from a natural-language scene description.

  • Works in 8 steps: Outline via dilate → Parametric builders → Decoration clipped to silhouette → …
  • The user asks to draw / paint / make / illustrate a subject (e.g
  • SKILL.md covers 2D Primitives, 3D Primitives(仅在 3D mode / 需要…, Booleans and Transforms (chainable methods), plus 8 more sections
  • Runs JavaScript scripts from its folder

What it does

Sdf Art is an agent skill from shaun8149/sdf-js. Generate sdf-js code from a natural-language scene description. Trigger when the user asks to "draw / paint / make / illustrate" a subject (e.g. "画一棵树", "draw a cathedral", "make me a butterfly", "画 Matisse 风格的舞者"). Outputs a complete runnable JavaScript module using sdf-js's chainable SDF API + render.silhouette. The library lives at sdf-js/ in this repo; the user runs the output by saving as sdf-js/examples/sdf/<name.js + a matching HTML page.

Its SKILL.md is about 9.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `examples/boat.js`, `examples/butterfly.js` and `examples/cathedral.js`).

It sits in Frontend & Design, covering HTML artifacts. It works with JavaScript. The repository describes itself as: Chainable JS SDF library + 基于 SDF 的离散结构生成器层 (form × generator decoupling). Port & extension of fogleman/sdf.

When your agent uses it

  • The user asks to draw / paint / make / illustrate a subject (e.g
  • Tasks that involve HTML artifacts

Example prompts

  • “draw / paint / make / illustrate”
  • “draw a cathedral”
  • “make me a butterfly”
  • “/sdf-art”

Requirements

  • Node.js

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Outline via dilate
  2. Parametric builders
  3. Decoration clipped to silhouette
  4. Face profile via x-ordered smooth-union
  5. Named palette constants
  6. Line art via shell + intersection (different visual register)
  7. Hatching density = photographic levels (intensity → dsep via curve)
  8. Domain warping = aesthetic-direction switch (input-space transform)

What it can do on your machine

Read from SKILL.md and the folder at commit 1c6c23b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • iquilezles.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sdf Art loads about 9.7k tokens when it runs. Until then it costs about 116 tokens; SKILL.md has 4,325 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~9.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 4,325 words (~9,653 tokens).

“You're generating SDF code for Atlas, an LLM-native illustration platform built on top of sdf-js. The mental model that anchors the whole system, useful for generative-art-tradition users (Processing / p5.js / Pasma / Tyler Hobbs / BOB):”

— opening of SKILL.md by shaun8149, Custom licence
name
sdf-art

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files in .claude/skills/sdf-art of shaun8149/sdf-js.

  • SKILL.md
  • examples/boat.js
  • examples/butterfly.js
  • examples/cathedral.js
  • examples/dance.js
  • examples/hatman.js
  • examples/seurat.js
  • examples/tree.js

Open the folder on GitHubat commit 1c6c23b

Compare with similar skills

Sdf Art next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sdf Art compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sdf Art this skillshaun8149/sdf-js421—~9.7kAutomated safety check: PassCustom licence
Checking A Pageawss1i/assay1041 repos~712Automated safety check: PassMIT
Web Design EngineerConardLi/garden-skills13k—~8.8kAutomated safety check: PassMIT
HTML DesignNimaChu/html-design101—~2.7kAutomated safety check: PassNone
Scroll World Landing Pageoso95/scroll-world9.9k1 repos~12kAutomated safety check: NotesMIT
SVG Hand-Drawn Animation Previewshaom/svg-hand-drawn-skill264—~1.3kAutomated safety check: PassNone

Similar skills

  • Checking A Page

    awss1i/assay

    Check that a web page you wrote or changed actually works, by opening it in a browser and driving every control on it.

    104 GitHub starsUsed in 1 repo~712 tokens
    Frontend & DesignAuto-check passed
  • Web Design Engineer

    ConardLi/garden-skills

    Builds polished browser-rendered HTML, CSS, JavaScript and React pages, dashboards, prototypes and slide decks, aiming for a stunning rather than merely functional result.

    13k GitHub stars~8.8k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • HTML Design

    NimaChu/html-design

    Create, redesign, repair, validate, preview, and package lightweight standalone HTML deliverables.

    101 GitHub stars~2.7k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Scroll World Landing Page

    oso95/scroll-world

    Builds a scroll-driven landing page where a pre-rendered camera flies through connected AI-generated scenes, using Higgsfield for stills and video clips.

    9.9k GitHub starsUsed in 1 repo~12k tokens
    Frontend & DesignAuto-check: notes
  • SVG Hand-Drawn Animation Preview

    shaom/svg-hand-drawn-skill

    Turns an SVG file or URL into a hand-drawn animation: a standalone preview.html plus a reusable player.js that draws paths first and fills afterward.

    264 GitHub stars~1.3k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check passed
  • Self-Contained HTML Pages

    SourceWeft/SourceWeft

    Builds and revises polished offline HTML reports, landing pages, infographics and interactive visualizations as a single file, with viewport QA before delivery.

    187 GitHub stars~817 tokensUpdated today
    Frontend & DesignAuto-check passed

Works with

Questions about Sdf Art

What does Sdf Art do?

Generate sdf-js code from a natural-language scene description. Sdf Art is an agent skill from shaun8149/sdf-js. Generate sdf-js code from a natural-language scene description.

When should I use Sdf Art?

Sdf Art fits situations like: the user asks to draw / paint / make / illustrate a subject (e.g; tasks that involve HTML artifacts.

How do I install Sdf Art in Claude Code?

Run `npx skills add shaun8149/sdf-js --skill sdf-art -a claude-code`. Or copy the skill folder (.claude/skills/sdf-art in shaun8149/sdf-js) into .claude/skills/sdf-art in your project. Claude Code loads it when a task matches its description.

How do I install Sdf Art in Codex?

Run `npx skills add shaun8149/sdf-js --skill sdf-art -a codex`. Or copy the skill folder (.claude/skills/sdf-art in shaun8149/sdf-js) into .agents/skills/sdf-art in your project. Codex loads it when a task matches its description.

Can I use Sdf Art in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shaun8149/sdf-js --skill sdf-art -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sdf-art, .gemini/skills/sdf-art, .github/skills/sdf-art and .opencode/skills/sdf-art in your project.

What does Sdf Art need to run?

Going by SKILL.md and its folder, Sdf Art needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Sdf Art access the network?

SKILL.md names 1 domain. As links in the text: iquilezles.org. This is read from the text; nothing was executed.

Is Sdf Art safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sdf Art use?

Sdf Art has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Sdf Art use?

About 9.7k tokens (SKILL.md is roughly 39k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sdf Art?

Skills that share tags, products or a category with Sdf Art: Checking A Page (awss1i/assay, 104 stars), Web Design Engineer (ConardLi/garden-skills, 13k stars), HTML Design (NimaChu/html-design, 101 stars) and Scroll World Landing Page (oso95/scroll-world, 9.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sdf Art?

shaun8149 (a GitHub user) maintains it in shaun8149/sdf-js, which has 421 GitHub stars. The repository was last updated on September 19, 2026.

Source: shaun8149/sdf-js on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.