Community程式設計與開發github.com

3d-world-card

Design and build an interactive 3D "tiny world" digital business card in Three.js. Straight on, it reads as a card; tilted, it's a living miniature world (meadow, cyberpunk city, reef, desert...). The name, QR code and social links are made from the world's own material. Runs a gated workflow (theme intake → 3 concepts → spec + prototypes → layer-by-layer build → premium lighting/shadows/reflections → ship to Vercel) on top of a proven engine template. Use this whenever someone wants a 3D business card, a digital card with a 3D scene, a floating diorama or miniature world on a card, an immersive Three.js portfolio card, or "a card like my meadow card but in a ___ theme". Also use it when they share a theme or moodboard for such a world, or ask to add creatures, details or polish to one.

3d-world-card 是什麼?

3d-world-card is a Claude Code agent skill that design and build an interactive 3D "tiny world" digital business card in Three.js. Straight on, it reads as a card; tilted, it's a living miniature world (meadow, cyberpunk city, reef, desert...). The name, QR code and social links are made from the world's own material. Runs a gated workflow (theme intake → 3 concepts → spec + prototypes → layer-by-layer build → premium lighting/shadows/reflections → ship to Vercel) on top of a proven engine template. Use this whenever someone wants a 3D business card, a digital card with a 3D scene, a floating diorama or miniature world on a card, an immersive Three.js portfolio card, or "a card like my meadow card but in a ___ theme". Also use it when they share a theme or moodboard for such a world, or ask to add creatures, details or polish to one.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lanuzagraciella/3D-world-business-card/tree/HEAD

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

3D World Business Card

You are the designer-developer; the user is the creative director. Build an immersive, premium-feeling 3D card through a workflow with approval gates. Each gate is a cheap moment for them to steer, so a finished world never misses their vision.

The template/ folder is a complete, working engine: the "Grace meadow card". It has a height-map terrain, 330k instanced grass blades, flower-mask lettering, a scannable flower QR, a reflective lake, animals, a balloon, a shared light model, shadows, an intro timeline, close-up cameras and a mobile layout. Don't start from zero: copy the template and re-theme it layer by layer. Its files are a library of solved problems.

The idea, in one sentence

A whole small world mounted on an everyday object, with a reveal when you interact. The card's edges are a gift: you only have to make a small area look perfect.

Design principles (why the style works)

  1. Scale ladder: reward every distance.
    • Far: a strong silhouette (the card plus a hero object).
    • Middle: landmarks (hills, water, woods, the name).
    • Close: surprises (single blades, koi, a chewing deer).
  2. Thirds composition: place everything in LAYOUT as 0–1 fractions of each face. Plan it on paper first.
  3. One light for everything: every shader calls the shared shade() from light.js, with one sun, one sky colour, one ground bounce and one shadow map. This is what makes 300k objects look like one painting. Never give a new object its own lighting formula.
  4. Restrained palette and empty space: a calm single-colour background and a tiny grey UI, so the world is the only rich thing on screen.
  5. Three speeds of motion: mix them so the world feels alive, not animated.
    • slow: clouds, the hero object
    • medium: wind gusts, things swimming
    • fast: wingbeats, flicker, chewing
  6. Identity from the world's material: the name, QR and icons are made of flowers, neon, coral and so on, never stickers.

The workflow

Step 1: Theme intake (the user leads)

Ask for these, only the ones not already given:

  • theme
  • the object it lives on
  • 3–5 mood words
  • references, with what they like in each
  • what the card must do: name, QR target, links
  • must-haves and no-gos

Then propose 3 concept directions. Each gets: a one-line idea, the reveal, a palette of 5 colours, a light story, the "surface cover", a hero object and three signature moments. Templates and examples: references/concept-brief.md and references/theme-slots.md. Gate: they pick or blend a direction.

Step 2: Spec, mockups, prototypes

  • Write the spec with references/spec-template.md: concept, reveal, layout map, scale ladder, identity, motion, interaction and constraints.
  • Make 2–3 quick visual mockups or rough browser prototypes from simple shapes. They let the user feel the rotation, layout and reveal before any detail exists.
  • If they gave references from another creator, use them for direction only. Never reproduce someone's exact design, characters or assets.

Gate: they approve one direction and spec. Invite pushback here; changes are cheapest now.

Step 3: Build layer by layer

  1. Copy template/ to a new project folder and run npm install.

  2. Edit src/config.js first: CONFIG (name, links, QR), CARD, LAYOUT, LOOK and COUNTS.

  3. Re-theme one layer at a time, in this order:

    card → ground → undercoat → surface cover → identity → landmarks → hero → life → atmosphere → camera

    references/build-layers.md maps each layer to its technique, its template file and what to change per theme.

  4. After every layer, take a screenshot and show it (scripts/shot.cjs), then adjust from their notes before moving on.

Gate: they approve the complete world before polish begins.

Step 4: Premium pass

Work through references/premium-checklist.md:

  • shared light
  • cast and contact shadows
  • backlight through thin things
  • reflections with ripples and glints
  • per-instance variation
  • motion polish (gusts, pauses, easing)
  • colour grade
  • soft edges

Show before/after crops. Gate: they sign off the look.

Step 5: Ship and iterate

Follow references/ship-checklist.md:

  • performance via DETAIL on phones
  • the portrait layout
  • real links
  • check the QR with scripts/qr-check.cjs, then have them scan it with a real phone
  • push to GitHub and deploy on Vercel, then confirm the deployment is READY

Small later requests ("add a butterfly") run through a mini loop:

plan → build → screenshot → approve → deploy

Working rules

  • Show, don't claim. Render a screenshot after every visible change, and crop close-ups when judging small things. Software rendering is slow, so render at ?detail=0.3.
  • Keep every number in config.js. Tuning should never mean hunting through shader code.
  • One technique per layer. When something looks wrong, change one layer at a time.
  • Name the technique when explaining: instancing, height map, shell texturing, canvas mask, shared shade(), shadow map, Reflector, vertex animation. The user is learning; short, plain explanations help.
  • Before touching a tricky area, read references/lessons.md. It lists bugs already solved: lake z-fighting, QR decoding, GLSL reserved words, camera clipping, portrait rotation, the unlit back face.
  • Respect performance: instance anything that repeats, animate on the GPU when possible, and scale counts with DETAIL.

Files

  • references/concept-brief.md: intake questions, a one-page brief and the 3-concept format.
  • references/spec-template.md: the Step 2 spec.
  • references/theme-slots.md: the slot table, filled in for Meadow, Cyberpunk, Underwater, Desert and Winter.
  • references/build-layers.md: each layer's technique and template file, and what to change.
  • references/premium-checklist.md: the Step 4 polish list.
  • references/ship-checklist.md: the Step 5 list.
  • references/lessons.md: known pitfalls and their fixes.
  • template/: the working engine; start with template/TEMPLATE.md.
  • scripts/shot.cjs: headless screenshots of any view, for desktop or mobile.
  • scripts/qr-check.cjs: decodes a rendered QR from a screenshot.
  • scripts/crop.cjs: crops a region of a screenshot to inspect.

相關技能