agentleFS
AlpacaLabsLLCAlpacaLabsLLC/skills-for-architects/skills/rhino-bom/SKILL.md

rhino-bom

Skill445 starsChanged 2 months agoMITView on GitHub

Take quantities from a Rhino model built under one parent layer with every object named by element type: a bill of quantities per layout in which every object lands in exactly one line, every line states its source, and what the model does not contain is listed with the reason. Use when the user asks for a BOM, takeoff or quantities from a Rhino model. Not for pricing, procurement or structural sizing, and a count does not validate the thing counted.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before acting, read the host contract, this component's declaration (skill:rhino-bom) and the mode profiles it references in the shared …

    line 8
  2. Very specific:

    Reconcile to the object count: Every object lands in one line or in excluded with a reason.

    line 20
  3. Distinctive:

    Read the lessons after setup and before asking.

    line 29
  4. Very specific:

    List the names: run with "AS_MODE": "names".

    line 33

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

/as:rhino-bom

Before acting, read the host contract, this component's declaration (skill:rhino-bom) and the mode profiles it references in the shared catalog. Declarations are requirements, not proof of access or permission.

<!-- architecture-studio:harness-compatibility -->

Use the host adapter for native invocation. Requires Rhino 9 with an open document and its run_python tool. Plugin-only: the quantities and their reconciliation use scripts/as-bom.py from the installed plugin's folder (Rhino skill helpers); through hosted MCP instruction delivery this skill is not available. If you cannot find this skill's folder on disk, stop and tell the user to install the plugin. In the Rhino AI panel, there is no Skill tool: read this file and its references by path with run_python.

Outcome

One CSV per layout under a folder the user chose, and a reply opening with the script's BOM: line, in which the object total reconciles and nothing was silently left out.

Invariants

  1. Everything in the model, by default. Offer the full scope first. A shorter scope is the user's choice, stated in covers.
  2. Reconcile to the object count. Every object lands in one line or in excluded with a reason. One object with no line fails the run, and no CSV is written.
  3. Quantities depend on names. The script reads the object names and layers that as-rhino-model gives every object. A generic or missing name loses the item, so fix the model's names rather than adding a catch-all rule.
  4. Every line states its source: measured from the model, calculated, or assumed, with the reason in the same column.
  5. List what is not counted, with the reason. Fittings, traps, valves, fasteners, footings and rebar are usual cases. An unmentioned omission reads as zero. not_counted is required.
  6. Cut lengths are firm; purchase counts depend on assumed stock. Keep them in separate lines. Identical and near-identical members share one line with a count and a cut-length range; the CSV's cut schedule keeps every exact length, and nesting uses them.
  7. A count does not validate the thing counted. Mark hardware to_engineer.

Procedure

Read the lessons after setup and before asking; write them after the report.

  1. Read the document with one script: units, layers, and whether the model's parent layer exists. If the Rhino tools are absent, follow rhino-setup for the user action.
  2. Ask only what the model cannot answer, in one ask_user batch: scope (default everything), layouts, stock lengths, sheet sizes, waste, output folder. Each question carries what it asks about, with your proposal as the first option ("Keep 1/4" = 1'-0""), since the question pane covers the chat; never refer to text shown behind it. Where ask_user is not available (an agent connected to Rhino from outside it), ask the same questions in chat, with the same options, and end the turn.
  3. List the names: run with "AS_MODE": "names". Every name it prints needs a rule or an exclusion.
  4. Write the specification from quantities, which lists the measures and the choice of measure by geometry.
  5. Run by file path. Build the path from the folder you read this SKILL.md from, which belongs to the installed plugin version; never hard-code it or reuse one from an earlier version:
P = "<absolute path of this skill's folder>/scripts/as-bom.py"
exec(compile(open(P).read(), P, "exec"), {"__rhino_doc__": __rhino_doc__, "AS_SCRIPT_FILE": P, "AS_MODE": "check", "AS_BOM": SPEC})

"check" reconciles and writes nothing. Fix every unclassified name and every object it could not measure, then run with "AS_MODE": "run". Never add a rule that catches everything to make it pass. 6. Read one CSV back and compare its object total with the BOM: line. 7. Rerun after any model change. A BOM is one state of the model; say which layouts have none.

Lessons

This skill learns locally. Before planning, read its lessons and the firm rules; at the end of every run, write what the run learned. The folder is the one the Arch Studio startup line names; the tags, the privacy rule and promotion are in lessons, read once per session.

P = "<absolute path of the skills folder, the parent of this skill's folder>/as-rhino-lessons.py"
exec(compile(open(P).read(), P, "exec"), {"AS_SCRIPT_FILE": P, "AS_MODE": "read", "AS_SKILL": "rhino-bom", "AS_LESSONS_DIR": "<lessons folder from the startup line>"})

Follow every firm rule, and name each lesson you apply in the report. To write, use "AS_MODE": "write" with AS_LESSONS, AS_PRIVATE and __rhino_doc__, then "offer". Each lesson declares its kind: practice (modeling practice) or preference (the user's own, with what the user said). Never save a design, architectural or engineering rule you inferred; mention it to the user instead (lessons). A firm rule is written only with "promote", after the user said yes in ask_user. Never edit the checker, its tests or answer keys to apply a lesson.

Report

Open with each BOM: line exactly as printed. Then: the file paths; when layouts share most lines, "same in every layout" and the differences, as a short table only when every cell is a few words, otherwise one line each (Rhino's AI panel cuts long cells off); every assumed line; the not-counted list; the stock lengths and waste used, as working values; the lessons applied and written, or "none". Complete under the completion contract.

Out of scope

Pricing, procurement, supplier selection, and whether a modeled connection works. For a quantity table on a sheet, hand the CSV to rhino-thinline.

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.