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

rhino-setup

Skill445 starsChanged 2 months agoMITView on GitHub

Connect and verify Rhino 9 for the rhino cluster, from its AI panel or a connected agent: detect Rhino's tools, confirm an open document and its units, and run a one-object smoke test. Use when the user asks to connect Rhino, or when another rhino skill finds the Rhino tools missing. Guides the user; never installs or registers anything.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    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-setup) and the mode profiles it references in the shared …

    line 8
  2. Distinctive:

    Use the host adapter for native invocation.

    line 11

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

Before acting, read the host contract, this component's declaration (skill:rhino-setup) 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.

Outcome

A confirmed working connection (tools present, a document open, units known, a script round-trip proven) or the exact user action that is missing.

Procedure

  1. Tools. Look for Rhino's tools (run_python, get_context), from the AI panel or a connected agent. If absent, stop and give the user this action: "Open a document in Rhino 9 and make this request in its AI panel. To use an agent outside Rhino, such as Claude Code in a terminal, run MCPConnect once in Rhino 9 and install it for your agent, then run MCPStart on the open model and start a new agent session." Arch Studio never installs, registers or configures anything. Also note whether the hosted Arch Studio MCP is connected too: its workflow tools are named as_* and come from an MCP server other than Rhino's (in Claude Code, mcp__<server>__as_...). Only the tool list says this; do not call those tools and do not compare versions.
  2. Document. get_context must answer with the open document. Then one run_python script reads __rhino_doc__, Rhino.RhinoApp.Version and sys.platform: Rhino version, operating system (darwin is macOS, win32 is Windows), units, name, path, live object count, top-level layers. If the version is below 9, report that the skills are written for Rhino 9. These values hold for this turn only; a later turn reads them again.
  3. Smoke test only when the user asked to verify: add one named point on a layer Rhino Setup Check, read it back, delete it and the layer, and report both steps. Never touch other objects. Run this script as written in one run_python call; it is tested in Rhino 9 and keeps a Rhino Setup Check layer that existed before. Layer calls with one string argument (Layer(name), Layers.Add(name), Layers.FindByFullPath(name)) fail there with "No overload".
import Rhino
d = __rhino_doc__
NAME = "Rhino Setup Check"
made = d.Layers.FindByFullPath(NAME, -1) < 0
if made:
    layer = Rhino.DocObjects.Layer()
    layer.Name = NAME
    d.Layers.Add(layer)
index = d.Layers.FindByFullPath(NAME, -1)
attr = Rhino.DocObjects.ObjectAttributes()
attr.LayerIndex = index
attr.Name = "rhino-setup check point"
gid = d.Objects.AddPoint(Rhino.Geometry.Point3d(0, 0, 0), attr)
obj = d.Objects.FindId(gid)
print("added:", obj is not None and obj.Attributes.Name == attr.Name and obj.Attributes.LayerIndex == index)
print("point deleted:", d.Objects.Delete(gid, True))
print("layer deleted:" if made else "layer kept, it existed before:", d.Layers.Delete(index, True) if made else NAME)

Report

Tools found or not, Rhino version and operating system, document name or "untitled", units, object count, smoke-test result, and the next user action if anything is missing. On Windows, only when your context has no Arch Studio startup line (the line naming as-rhino-index.md and the lessons folder), tell the user to install Git for Windows and start a new panel session: Claude Code runs the plugin's startup hook in Git Bash. When that line is there, the hook ran: say nothing about Git for Windows, the startup line or pointing to the index. Complete under the completion contract. If the hosted Arch Studio MCP is also connected, add this line: "The hosted Arch Studio MCP is also connected; use the Arch Studio plugin or the MCP, not both (README, Two editions)."

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.