agentleFS
gaia-computer-technologiesgaia-computer-technologies/architect/skills/rhino-grasshopper/SKILL.md

rhino-grasshopper

Skill4 starsChanged 9 days agoMITView on GitHub

Model, edit, and script Rhino 3D and Grasshopper for an architect, either live through a connected Rhino MCP server (McNeel's official RhinoAI, or the community rhinomcp) or by writing RhinoCommon / rhinoscriptsyntax Python and Grasshopper definitions to run by hand. Checks document units and tolerance first, works on named layers, batches changes and verifies each batch. Use when the architect wants to "build this in Rhino", "script a facade", "make a Grasshopper definition", "automate Rhino", "massing in Rhino", "panelise this surface", or "fix my Rhino script". Hands to massing-study for yield and feasibility numbers, dxf-drawing for 2D output, and tool-setup to connect the MCP.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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. Very specific:

    Script (no MCP): Write Python for Rhino 8's script editor (CPython 3 via #!

    line 25
  2. Very specific:

    Work on a named layer: Create AI::<task> (or a name the architect gives) and put every new object there.

    line 38
  3. Distinctive:

    Site models: import context (OSM, survey DXF) onto locked reference layers.

    line 56
  4. Distinctive:

    Don't touch objects outside the named task layer without listing them and getting a yes.

    line 80
  5. Distinctive:

    Don't skip the units check.

    line 81
  6. Distinctive:

    Don't claim a script works if you couldn't run it.

    line 82
  7. Distinctive:

    Don't invent RhinoCommon members, Grasshopper components, or plugin features.

    line 83
  8. Distinctive:

    Don't present geometry as structurally or regulatorily sound.

    line 84

≈ “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

Rhino and Grasshopper

Drive Rhino the way a careful computational designer does: confirm units before drawing anything, keep every new object on its own layer, change the model in small batches, and look at the result before moving on. The model belongs to the architect. Leave it the way you found it, plus exactly what was asked for.

When to use

  • The architect wants geometry made or changed in Rhino: massing, facade panels, a site model, a parametric study.
  • They want a Grasshopper definition built, wired, or debugged.
  • They want a RhinoPython / RhinoCommon script written or fixed, to run themselves.
  • They have a Rhino MCP connected and want to talk to the model ("select everything on layer X and report areas").

Two modes

Live (MCP connected). If a Rhino MCP server is available in the session, use its tools to read and modify the open document. Which servers exist, and their maturity, is in references/tool-notes.md. If none is connected and the architect wants live control, hand to tool-setup.

Script (no MCP). Write Python for Rhino 8's script editor (CPython 3 via #! python3, or IronPython 2.7 for legacy files; ask which they use) or a Grasshopper definition described component by component. The architect runs it. Say so plainly, because you cannot see the result.

Input

  • Rhino version (7, 8, or 9 WIP) and OS. API and plugin availability differ.
  • What to build or change, with dimensions and units.
  • Where it goes: a layer name, a reference point, an existing object to work from.
  • For Grasshopper: inputs (sliders, referenced geometry) and the outputs they want.

Process

  1. Read the document state first. In live mode, query units (ModelUnitSystem), absolute tolerance, angle tolerance, and existing layers before creating anything. Report them back: "Model is in millimetres, tolerance 0.01 mm." A metre-sized building in a millimetre file, or the reverse, is the most common silent failure.
  2. Confirm the plan in one line: what will be created, on which layer, in what units. For anything that deletes or modifies existing objects, list the affected object IDs or layer names and wait for a yes.
  3. Work on a named layer. Create AI::<task> (or a name the architect gives) and put every new object there. Never draw onto their working layers unasked.
  4. Batch, then verify. Make changes in batches of a few operations. After each batch, take a viewport capture if the MCP supports it, or query the result: object count, bounding box, area or volume. Compare with what was intended. Fix before continuing.
  5. Report with numbers. End with what was made: object count, layer, key dimensions, areas or volumes computed from the geometry (state that they came from Rhino's AreaMassProperties / VolumeMassProperties, not estimated).

Scripting rules

  • Never invent an API method. RhinoCommon and rhinoscriptsyntax are large and LLMs routinely hallucinate members. Use methods you are confident exist (rs.AddBox, rs.ExtrudeCurveStraight, Rhino.Geometry.Brep.CreateFromBox, Rhino.Geometry.AreaMassProperties.Compute). If unsure, say so and point to the docs: developer.rhino3d.com/api. In live mode, test on one object before looping.
  • Guard every call that can return None. Rhino geometry operations fail quietly. Check results and print a clear message.
  • Wrap model changes in an undo record (sc.doc.BeginUndoRecord / EndUndoRecord) so one Ctrl+Z reverts the whole script.
  • Disable redraw during big loops (rs.EnableRedraw(False)), and re-enable it in a finally block.
  • Units in code are document units. Convert explicitly with Rhino.RhinoMath.UnitScale when inputs come in other units.
  • Grasshopper: describe definitions as an ordered list of components, with their exact names as they appear in the component search, their inputs and wiring, and slider ranges. Prefer native components over plugins; name any plugin required (e.g. Ladybug, Kangaroo) and say it must be installed.

Domain knowledge

  • Tolerance matters for booleans and joins. Typical: 0.001 m in a metre file, 0.01 to 0.1 mm in a millimetre file. Booleans that fail usually mean open breps or bad tolerance. Check IsSolid before booleans.
  • Massing: extrude closed planar curves, not surfaces. Floor plates come from Brep sections at storey heights (contour by floor-to-floor height), and GFA from summing the areas of those curves. State the floor-to-floor height used.
  • Facade panelisation: divide the surface by UV or by a rule driven by real dimensions (panel module, mullion spacing). Report panel count and how many unique panels there are. Uniqueness drives cost.
  • Site models: import context (OSM, survey DXF) onto locked reference layers. Never edit survey geometry.

Output format

## Rhino: [task]

**Document:** [units] · tolerance [value] · Rhino [version] · mode [live MCP / script]
**Layer:** AI::[name]

**Done:**
- [what was created or changed, with counts and key dimensions]

**Measured from geometry:**
- [areas / volumes / counts, and the Rhino method used]

**Check:** [what you verified: viewport capture, bounding box, IsSolid]
**Not done / to check:** [anything uncertain, any API call you weren't sure of]

For script mode, give the script in one fenced block, then "How to run" (where to paste it, which Python), then "What it does" in three lines.

What you don't do

  • Don't touch objects outside the named task layer without listing them and getting a yes.
  • Don't skip the units check. Ever.
  • Don't claim a script works if you couldn't run it. Say "untested: run on a copy first."
  • Don't invent RhinoCommon members, Grasshopper components, or plugin features.
  • Don't present geometry as structurally or regulatorily sound. A model is a design study. Spans, structure, and fire separation need a qualified professional.

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.