agentleFS
scottsttsscottstts/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-procedural-architecture/SKILL.md

threejs-procedural-architecture

Skill1.1k starsChanged 5 days agoMITView on GitHub

Build authored procedural buildings, architectural kits, and composed architectural ornament and relief in Three.js. Use for massing grammars, exposed-edge analysis, façade bays, full-thickness walls with cut openings, curved-wall trims, classical orders, recessed portals, pier-buttresses, spandrel roses, arches, vaults, domes, cornices, roofs, stairs, architectural junctions, carved versus applied relief, rinceau scrolls, acanthus, cartouches, coffers, height-field carving, material-slot mesh compilation, dual-LOD instanced architectural kits, deterministic variants, and procedural city assets.

2 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read references/grammar-and-mesh-compiler.md for deterministic mass grammars, compound footprints, exposed-edge subtraction, bay …

    line 26
  2. Very specific:

    Read references/architectural-construction-and-junctions.md for full-thickness walls with through-openings, curved-wall sweeps, classical …

    line 28
  3. Distinctive:

    Read references/ornament-and-relief-systems.md for carved versus applied relief, complete ornament composition vocabulary (rinceau scrolls, …

    line 30
  4. Distinctive:

    Stop string courses, mouldings, and friezes cleanly at openings and blank faces.

    line 51
  5. Very specific:

    Use $threejs-procedural-geometry for general hard-surface/vehicle modeling, reusable mesh-writer primitives, and whole-scene geometry …

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Procedural Architecture

Separate design planning from mesh emission and construct architectural elements the way real masonry, stone, and timber are built. A building generator should produce an inspectable structural plan — with real wall thickness, through-openings, resolved junctions, and composed ornament — before emitting triangles.

This skill contains exemplary examples and assets beyond descriptive guidance, they're worth studying, referencing, or even copying. Use them sufficiently when relevant and do NOT blindly skip them.

Required architecture

settings
  → mass grammar & depth layers
  → exposed-surface graph
  → façade/roof/opening placements
  → structural & ornament module registry
  → material-slot mesh writer
  → geometries

Read references/grammar-and-mesh-compiler.md for deterministic mass grammars, compound footprints, exposed-edge subtraction, bay quantization, and material-slot compilation.

Read references/architectural-construction-and-junctions.md for full-thickness walls with through-openings, curved-wall sweeps, classical orders, arches/vaults/domes, roofs/stairs, exact-contact versus safe-sinking junction rules, and the architectural junction catalogue.

Read references/ornament-and-relief-systems.md for carved versus applied relief, complete ornament composition vocabulary (rinceau scrolls, mirrored scrolls, candelabra, cartouches, acanthus clusters, rhythmic friezes, strapwork, coffers, swags), motif geometry (Euler spirals, cupped leaves, rosettes), max-union height-field relief, and banned stand-ins.

Read the procedural financial tower compiler for seeded tier planning, semantic façade placement, reserved zones, material-slot BufferGeometry output, projected detail, and mechanism-specific diagnostics.

Read the sculpted castle keep compiler for multi-tier rectangular and polygonal massing, recessed multi-order arched portals and ribbed barrel vaults, projecting pier-buttresses with breaking entablatures, sunk spandrels with carved eight-petalled roses, carved niche walls, ribbed fish-scale domes with lantern and finials, dual-LOD instanced architectural parts, and procedural height-field relief shading.

Rules

  • Massing, façade rhythm, openings, and ornament modules are separate layers; settle primary depth breaks in single-sided clay before adding ornament.
  • Resolve exposed edges before façade placement; build convex corners once and never decorate hidden internal faces.
  • Cut openings through full wall thickness and every backing layer; sweep trims on curved walls along the host curve rather than straight chords.
  • Stop string courses, mouldings, and friezes cleanly at openings and blank faces.
  • Decide carved versus applied relief from structural evidence; compose ornament continuously from stems/axes with full rounded sections rather than scattering disconnected primitives or tracing raw image pixels.
  • Size architectural and relief depth tiers to viewing pixel footprint and shadow-map resolution (reliefDepth > shadowTexelWidth + bias).
  • Compile by material slot to reduce draw calls without destroying material separation, preserving real dimensions for bay width, floor height, trim projection, and texel density.
  • Provide topology, façade ownership, material/geometry, and shadow diagnostics appropriate to the renderer path.

Acceptance

The generated architecture must survive:

  • silhouette-only view and single-sided untextured clay view from hero + 4 orbit angles;
  • raking grazing light verifying massing breaks, rounded relief sections, and real shadow casting;
  • close inspection of openings, curved hosts, corners, roof transitions, and ornament junctions;
  • seed variation without broken bays, overlapping ownership, coplanar flicker, or floating ornament;
  • triangle and module-count reporting.

Routing boundary

Use $threejs-procedural-geometry for general hard-surface/vehicle modeling, reusable mesh-writer primitives, and whole-scene geometry audits (geometry-quality-kit). Use $threejs-terrain-and-landscapes for building-to-slope foundations, retaining walls, and distant city/horizon tiers. This skill owns building grammars, architectural construction patterns, junctions, composed ornament/relief, and building-plan compilation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.