Procedural Geometry logo

Procedural Geometry

Community
lukapiskorec
procedural-geometry

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

Overview

Publisherlukapiskorec
Repositorycraftbot
Skill nameprocedural-geometry
Stars
191
Forks
29
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by lukapiskorec on GitHub. Read the source before you install it.

Installation

Install the Procedural Geometry AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/lukapiskorec/craftbot/tree/main/skills/procedural-geometry
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Procedural Geometry in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Procedural Geometry on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Procedural Geometry is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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).

Frequently asked questions

What does the Procedural Geometry AI skill do?

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

Why use Procedural Geometry on TypingMind?

Because you install it once and use it with any model. Procedural Geometry is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Procedural Geometry in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/lukapiskorec/craftbot/tree/main/skills/procedural-geometry. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Procedural Geometry?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Procedural Geometry?

As many as you like. As long as a model supports skills, you can use Procedural Geometry with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Procedural Geometry AI skill free?

It is published on GitHub by lukapiskorec. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇