Logo van Procedural Geometry

Procedural Geometry

Community
lukapiskorec
procedural-geometry

Use when writing or revising Blender Python that generates construction geometry, before placing members by hand-typed coordinates.

Overzicht

Uitgeverlukapiskorec
Repositorycraftbot
Skillnaamprocedural-geometry
Sterren
191
Forks
29
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door lukapiskorec op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Procedural Geometry in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/lukapiskorec/craftbot/tree/main/skills/procedural-geometry
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lukapiskorec/craftbot.git /tmp/craftbot
mkdir -p .claude/skills
cp -r /tmp/craftbot/skills/procedural-geometry .claude/skills/procedural-geometry
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Procedural Geometry in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Procedural Geometry automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Procedural Geometry niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Procedural geometry

Overview

The model hangs off a small set of derived expressions, not a table of constants. Everything below serves two goals: a parameter change propagates instead of breaking hand-entered numbers, and the geometry stays checkable by a numeric overlap test. If a collision check script exists in the repo's tools, use it to verify model intersections; otherwise, check element intersections directly by examining the model file.

Single source of truth

  • Derive every level and position from parametric functions. One roof-plane function fixes purlin centres, ridge levels and strut targets; changing pitch regenerates a consistent frame. Never type a number twice.
  • One shared surface function for every member that meets that surface. Write the roof plane once as a function of position and derive trays, bevels, ceiling, post tops and cladding from it; coplanarity becomes structural instead of something to re-check.
  • One parametrized constructor per member family. All wall bays from one wall function, every sloped roof element from one profile-extrusion helper; a family fix becomes a one-function fix.
  • Generate a derived feature list once and pass it everywhere. Calling a seeded feature generator twice yields two different sets and cuts cladding where the wall behind is solid. A seed does not guarantee agreement; a single call does.
  • Address openings by slot index, not metric position on gridded walls, so an opening always occupies whole panels and the structural bands inside a hole become mullions by construction.
  • Derive secondary members (blocking, noggins, rims) from the list of members actually placed, never from the nominal grid, so they fit real bays including doubled members and skip openings.

Cutting and joining

  • Build long and clip with half-spaces; never type endpoints. Each facet carries a fixed plane list; one call produces a common, a jack or a cripple rafter depending only on where the member line sits. The rejected alternative, solving endpoints analytically per case, multiplies formulas.
  • Split members at discontinuities instead of branching on a straddle predicate. A piece crossing the ridge is split plumb into two parallelograms; boundary predicates on float comparisons fail exactly at the members sitting on the boundary, which are usually the important ones.
  • Keep every solid convex. The separating-axis check is exact only on convex solids. A bird's mouth splits the rafter into body plus tail sharing a face; a wall with a hole becomes pier, sill and lintel pieces, which also matches how the panel is fabricated. Choose the decomposition to keep the checker valid rather than relaxing the check.
  • Corners resolve by one stated rule: long members run full length, cross members run between them, applied at every scale. In layered walls the caller states each layer's extents; corners are never resolved by magic inside the function, because the correct answer depends on neighbours the function cannot see.
  • Work in the assembly's own coordinate frame. Roof covering expressed in (distance up slope, height normal to roof) turns trigonometry into offsets and removes drift.
  • Compute outline vertices as plane intersections, evaluated at two offset levels (underside and top), so a shared edge between facets is the same edge for both and adjacent pieces share one end face exactly. Correctness comes from the construction, not from a tolerance check afterwards.
  • Prism profiles cannot slope across their own thickness. A wall running along X cannot express a roof-cut top in its profile plane; it gets a flat top plus a separate wedge, one wedge per wall segment so the wedge never runs into a crossing element.

Dimension chains and counts

  • Close the dimension chain. Tune one genuinely free parameter so a run of repeated elements lands exactly: a stair going chosen so treads plus landings fill the core, an overhang trimmed so the roof is a whole number of trays.
  • int(round(length / module)) silently drops a partial module. Derive counts with an explicit ceiling and a stated remainder policy, or adjust a free dimension until the division comes out whole.

Conventions that prevent whole bug classes

  • Axes: one convention (X along the building, Y across the span, Z up, slab top at z = 0), kept identical across experiments so numbers stay comparable and helpers move between scripts without rework.
  • Depth axis always points up in the member helper, enforced in code. A one-sided error pattern (overlaps on one slope of a symmetric roof only) is the diagnostic signature of a missing orientation convention.
  • Normalize winding inside the prism helper, so no caller needs to know the handedness of its axis mapping. Unexpectedly dark surfaces are a normals bug, not a lighting problem.
  • Qualify object and collection names with their parent. Bare-name lookup can merge four walls' cladding into one collection, and a name collision can silently overwrite geometry. Uniqueness is a construction rule, not a hope.
  • Carry the toolkit forward. Start from the previous experiment's helpers (box, prism, clip, strip, spacing), name the inherited kit and the delta separately, and promote a helper into a shared library once a second building has needed it.

Provenance

Distilled from the Fable design rationale documents of experiments 01, 02, 03, 04, 06, 08, 09, 11 and 13 in the CraftBot repo (https://github.com/lukapiskorec/craftbot).

Veelgestelde vragen

Wat doet de AI-skill Procedural Geometry?

Use when writing or revising Blender Python that generates construction geometry, before placing members by hand-typed coordinates.

Waarom Procedural Geometry gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Procedural Geometry bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Procedural Geometry in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/lukapiskorec/craftbot/tree/main/skills/procedural-geometry. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Procedural Geometry gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Procedural Geometry gebruiken?

Zoveel als je wilt. Je kunt Procedural Geometry gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Procedural Geometry gratis?

Deze skill is door lukapiskorec op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇