Official agent skill

Rhino3d Scripts

by github in github/awesome-copilot

Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later).

OfficialMITAuto-check passedDevelopment

Install Rhino3d Scripts

skills CLI
$ npx skills add github/awesome-copilot --skill rhino3d-scripts -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot rhino3d-scripts --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rhino3d-scripts .claude/skills/rhino3d-scripts && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rhino3d-scripts
GitHub stars
40k
Token cost
~3k tokens
SKILL.md length
1,257 words
Files
5 (incl. references)
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later).

  • Works in 4 steps: Disable redraw: rs.EnableRedraw(False). → Wrap mutations in a single undo record:… → Use RhinoCommon directly inside the loop… → …
  • Asked to write RhinoScript (VBScript / .rvb / .vbs)
  • SKILL.md covers When to Use This Skill, Choosing a Scripting Surface, Prerequisites and Core Patterns, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rhino3d Scripts is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later). Use when asked to write RhinoScript (VBScript / .rvb / .vbs), RhinoPython, or RhinoCommon-based scripts; automate Rhino modeling tasks; build command macros; manipulate Rhino geometry, layers, blocks, or document objects; pick objects from the viewport; control redraw and undo; or load and run scripts from the Rhino Script Editor. Covers rhinoscriptsyntax, scriptcontext, the Rhino. RhinoCommon namespaces (Rhino.Geometry, Rhino.DocObjects…

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/macros-and-loading.md`, `references/rhinocommon-map.md` and `references/rhinoscriptsyntax-cheatsheet.md`).

It sits in Development. It works with Python and .NET. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.

When your agent uses it

  • Asked to write RhinoScript (VBScript / .rvb / .vbs)
  • RhinoCommon-based scripts
  • Automate Rhino modeling tasks
  • Build command macros

Example prompts

  • “/rhino3d-scripts”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Disable redraw: rs.EnableRedraw(False).
  2. Wrap mutations in a single undo record: undo = doc.BeginUndoRecord("My Op") … doc.EndUndoRecord(undo).
  3. Use RhinoCommon directly inside the loop (skip rhinoscriptsyntax overhead).
  4. Re-enable redraw and call doc.Views.Redraw() in a try/finally so a crash never leaves the viewport frozen.

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and vbscript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.mcneel.com
    • developer.rhino3d.com
    • mcneel.github.io
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rhino3d Scripts loads about 3k tokens when it runs, and up to ~6.9k if it reads all its reference files. Until then it costs about 160 tokens; SKILL.md has 1,257 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~160
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 1,257 words, ~2,981 tokens.

Download SKILL.mdSave it as .claude/skills/rhino3d-scripts/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
rhino3d-scripts
description
Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later). Use when asked to write RhinoScript (VBScript / .rvb / .vbs), RhinoPython, or RhinoCommon-based scripts; automate Rhino modeling tasks; build command macros; manipulate Rhino geometry, layers, blocks, or document objects; pick objects from the viewport; control redraw and undo; or load and run scripts from the Rhino Script Editor. Covers `rhinoscriptsyntax`, `scriptcontext`, the `Rhino.*` RhinoCommon namespaces (`Rhino.Geometry`, `Rhino.DocObjects`, `Rhino.Input`, `Rhino.UI`, `Rhino.Display`, `Rhino.FileIO`), and the Rhino 8 unified Script Editor.

Rhino 3D Scripting Skill

Write production-quality scripts for Rhinoceros 3D. Covers the three scripting surfaces (RhinoScript/VBScript, RhinoPython, direct RhinoCommon .NET) and the Rhino 8+ Script Editor.

When to Use This Skill

  • User asks to write, edit, or debug a .rvb, .vbs, or .py Rhino script
  • User wants a Rhino command macro or wants to automate a sequence of Rhino commands
  • User wants to manipulate geometry, layers, blocks, materials, viewports, or annotations from code
  • User mentions rhinoscriptsyntax, scriptcontext, RhinoCommon, Rhino.Geometry, RhinoDoc, or the Script Editor
  • User wants to pick objects, prompt for input, or build a small UI inside Rhino
  • User asks how to load, run, or distribute a script (startup scripts, aliases, toolbar buttons)

Choosing a Scripting Surface

Pick the surface based on the task, not preference. Recommend Python by default for new work.

SurfaceWhen to chooseFile ext
RhinoPython (rhinoscriptsyntax + RhinoCommon)Default for new scripts. Best ecosystem, readable, full RhinoCommon access..py
RhinoScript (VBScript)Maintaining legacy .rvb/.vbs files; integrating with VBA/COM..rvb, .vbs
RhinoCommon (C#/.NET) via Script EditorPerformance-critical loops, complex geometry, leveraging .NET libraries..cs
Command macroPure sequence of existing Rhino commands; no logic.toolbar/alias

A macro is not a script — it is a string of command-line input (e.g. ! _-Line 0,0,0 10,0,0 _Enter). Use a script the moment you need a variable, loop, or conditional.

Prerequisites

  • Rhino 7 or later (Rhino 8 strongly recommended — unified Script Editor supports Python 3, VB, and C# in one window).
  • Script Editor: type _ScriptEditor (Rhino 8) or _EditPythonScript / _EditScript (older).
  • Run a saved file from the command line with _-RunPythonScript or _LoadScript + _RunScript.

Core Patterns

Python: minimal scaffold
python
import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

def main():
    obj_id = rs.GetObject("Select a curve", filter=rs.filter.curve, preselect=True)
    if not obj_id:
        return
    length = rs.CurveLength(obj_id)
    print("Length: {0:.4f}".format(length))

if __name__ == "__main__":
    main()
Python: working with RhinoCommon directly
python
import Rhino
import scriptcontext as sc

doc = sc.doc  # Rhino.RhinoDoc.ActiveDoc
tol = doc.ModelAbsoluteTolerance

circle = Rhino.Geometry.Circle(Rhino.Geometry.Point3d(0, 0, 0), 5.0)
curve_id = doc.Objects.AddCircle(circle)
doc.Views.Redraw()
VBScript: minimal scaffold
vbscript
Option Explicit

Call Main()

Sub Main()
    Dim strObject
    strObject = Rhino.GetObject("Select a curve", 4)  ' 4 = curve filter
    If IsNull(strObject) Then Exit Sub
    Rhino.Print "Length: " & Rhino.CurveLength(strObject)
End Sub
Picking objects with a custom filter (Python, RhinoCommon)
python
import Rhino
import scriptcontext as sc

go = Rhino.Input.Custom.GetObject()
go.SetCommandPrompt("Select breps")
go.GeometryFilter = Rhino.DocObjects.ObjectType.Brep
go.SubObjectSelect = False
go.GetMultiple(1, 0)
if go.CommandResult() != Rhino.Commands.Result.Success:
    pass
else:
    ids = [go.Object(i).ObjectId for i in range(go.ObjectCount)]

Step-by-Step Workflows

Bulk-modify many objects fast
  1. Disable redraw: rs.EnableRedraw(False).
  2. Wrap mutations in a single undo record: undo = doc.BeginUndoRecord("My Op") … doc.EndUndoRecord(undo).
  3. Use RhinoCommon directly inside the loop (skip rhinoscriptsyntax overhead).
  4. Re-enable redraw and call doc.Views.Redraw() in a try/finally so a crash never leaves the viewport frozen.
Distribute a script to a teammate
  1. Save the .py / .rvb somewhere on disk.
  2. Add the folder to Options → Files → Search paths so Rhino can find it by name.
  3. Create a toolbar button or alias whose macro is:
    • Python: ! _-RunPythonScript "MyScript.py"
    • RhinoScript: ! _-LoadScript "MyScript.rvb" _-RunScript MySubName
  4. The leading ! cancels any running command; - runs the command in script (no-dialog) mode.
Run code at Rhino startup
  1. Place a .rvb/.py in a search path.
  2. Tools → Options → RhinoScript (or Python) → add to Startup list. The file executes once per session.

Gotchas

  • rhinoscriptsyntax returns GUIDs, RhinoCommon returns objects. Mixing them is fine, but doc.Objects.Find(guid) is the bridge from a rs.* id to a RhinoObject.
  • Coordinates differ by surface. Python uses (x, y, z) tuples or Rhino.Geometry.Point3d; VBScript uses 3-element Array(x, y, z). Never pass a Python list to a VBScript helper through COM.
  • Option Explicit is off by default in VBScript. Typos silently create new variables. Always add Option Explicit at the top of .rvb files.
  • VBScript has no block scope. All Dims inside a Sub are hoisted to the top of the procedure. Loop counters leak.
  • Nothing, Empty, and Null are different in VBScript. Use IsNull for Rhino.GetObject failure, IsEmpty for uninitialized Variant, Is Nothing for object refs.
  • Parentheses change calling semantics in VBScript. Call Foo(a, b) and Foo a, b are valid; Foo(a, b) (no Call, with parens) is not a call to a Sub — it’s a syntax error for multi-arg subs and a forced ByVal for single-arg.
  • Tolerance is per-document. Always read doc.ModelAbsoluteTolerance rather than hardcoding 0.001; users work in mm, m, inches, etc.
  • Long loops should poll Rhino.RhinoApp.EscapeKeyPressed so the user can cancel. Otherwise Rhino appears frozen.
  • GUID strings vs System.Guid. rhinoscriptsyntax accepts either; RhinoCommon wants System.Guid. Convert with System.Guid(str_id) if needed.
  • Don’t call doc.Views.Redraw() inside a tight loop. Toggle redraw once outside the loop.
  • .rvb is just .vbs renamed with a Rhino-specific extension so Rhino’s LoadScript recognizes it. Same VBScript engine.
  • Rhino.RhinoApp.IsHeadless may not exist on older Rhino 8 builds. Use getattr(Rhino.RhinoApp, "IsHeadless", None) and check for None before using. Fall back to a heuristic (e.g. sc.doc.Views.Count == 0) or assume GUI present.
  • RhinoMath is at Rhino.RhinoMath, not Rhino.DocObjects.RhinoMath. Accessing Rhino.DocObjects.RhinoMath raises AttributeError.
  • doc.Objects.AddBrep() returns System.Guid.Empty on failure. In Rhino 8 CPython the System namespace may not be directly importable; check the return value as a string: str(obj_id) == "00000000-0000-0000-0000-000000000000".
  • rhinoscriptsyntax has no type stubs. Static analysers (Pylance/Pyright) flag import rhinoscriptsyntax as rs as unresolvable. Suppress with # type: ignore on the import line; the module is always available at Rhino runtime.
  • Never name a script after a Python standard-library module (e.g. random.py, math.py, os.py). IronPython 2.7 (_-RunPythonScript) resolves the script directory before stdlib, so any import random inside the stdlib (e.g. tempfile imports random internally) will find your file instead and fail with Cannot import name <X>. CPython 3 (rhinocode) is unaffected because it resolves stdlib first. Rename the script or avoid importing modules that pull in the shadowed name.
  • Em dashes and other non-ASCII characters silently break _-RunPythonScript (IronPython 2.7). rhinocode script uses CPython 3 (UTF-8 by default) so the same file works there, making the failure non-obvious. IronPython 2.7 raises SyntaxError: Non-ASCII character '\xe2' at the first offending byte. The most common culprit is the em dash (-- auto-converted to -- by many editors). Add # -*- coding: utf-8 -*- as line 1 of every script that must run under both runtimes, and replace typographic characters with ASCII equivalents: em dash --, arrow ->, multiplication x.
Show full SKILL.md (350 more words)Show less

Troubleshooting

SymptomFix
rs.GetObject returns None immediatelyThe user pressed Escape, or your filter excludes everything. Re-check rs.filter.* flags.
“Unable to find script” when running by nameThe folder isn’t in Options → Files → Search paths.
VBScript Type mismatch on coordinatesYou passed a 2-element array. Rhino requires 3-element Array(x, y, z).
Python ImportError: No module named RhinoYou’re running CPython outside Rhino. RhinoCommon is only available in Rhino’s embedded Python (or via rhino3dm for read-only file work).
Created geometry doesn’t appearYou forgot doc.Views.Redraw(), or rs.EnableRedraw(False) was never re-enabled.
Undo undoes only the last object of a batchWrap the batch in BeginUndoRecord / EndUndoRecord.
Script works alone but fails as a startup scriptStartup runs before any document is open — return early or skip document-dependent work when sc.doc is None.
rs.Command("...") returns FalseThe macro string is malformed. Prefix with ! and -, end every prompt with _Enter or a value.
AttributeError: type object 'RhinoApp' has no attribute 'IsHeadless'Property added in a later Rhino 8 build. Use getattr(Rhino.RhinoApp, "IsHeadless", None) and guard against None.
rhinocode script ignores arguments after the script pathrhinocode concatenates extra tokens onto the file URI. Pass data via a temp file or a Rhino dialog instead. See references/macros-and-loading.md.
Cannot import name <X> inside stdlib (e.g. tempfile, os) when using _-RunPythonScriptScript filename shadows a stdlib module (e.g. random.py shadows random). IronPython 2.7 searches the script directory before stdlib. Rename the script, or remove the import that pulls in the shadowed module and replace it with a direct alternative (e.g. read %TEMP% via os.environ instead of import tempfile).
SyntaxError: Non-ASCII character '\xe2' ... but no encoding declaredIronPython 2.7 (_-RunPythonScript) hit an em dash or similar character. Add # -*- coding: utf-8 -*- as line 1, or replace the character: em dash --, arrow ->. The same file runs fine under rhinocode (CPython 3), which hides the problem.

References

Upstream docs

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/rhino3d-scripts of github/awesome-copilot.

  • SKILL.md
  • references/macros-and-loading.md
  • references/rhinocommon-map.md
  • references/rhinoscriptsyntax-cheatsheet.md
  • references/vbscript-quirks.md

Open the folder on GitHubat commit 727ff2e

Compare with similar skills

Rhino3d Scripts next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rhino3d Scripts compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rhino3d Scripts this skillgithub/awesome-copilot40k—~3kAutomated safety check: PassMIT
Generate Readmemicrosoft/Agent365-Samples112—~2.6kAutomated safety check: NotesMIT
Git HooksProrise-cool/Claude-Code-Multi-Agent305—~3.6kAutomated safety check: NotesNone
Release Coherencemacalbert/envilder138—~1.3kAutomated safety check: PassMIT
Precheckayutaz/piper-plus218—~647Automated safety check: PassMIT
SDK Release Checklistmacalbert/envilder138—~1.5kAutomated safety check: PassMIT

Similar skills

  • Generate Readme

    microsoft/Agent365-Samples

    Official

    Generates or updates a README.md for an Agent 365 sample agent.

    112 GitHub stars~2.6k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    305 GitHub stars~3.6k tokensUpdated 21 days ago
    DevelopmentAuto-check: notes
  • Release Coherence

    macalbert/envilder

    Unified release coherence workflow for any component (CLI, GHA, or SDK).

    138 GitHub stars~1.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Precheck

    ayutaz/piper-plus

    PR 作成前の lint + format + test 一括実行。引数で scope (python/rust/cs/go/js/cpp/all) を指定可能。未指定なら git diff から自動判定。

    218 GitHub stars~647 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • SDK Release Checklist

    macalbert/envilder

    Checklist for adding a new SDK or releasing a new SDK version.

    138 GitHub stars~1.5k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Audit Filters

    Azure/azure-sdk-tools

    Official

    Analyze feedback and memories to suggest filter.yaml additions, then open a PR.

    134 GitHub stars~2.7k tokensUpdated today
    DevelopmentAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Categories

Questions about Rhino3d Scripts

What does Rhino3d Scripts do?

Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later). Rhino3d Scripts is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Authoring and debugging scripts for Rhinoceros 3D (Rhino 8 and later).

When should I use Rhino3d Scripts?

Rhino3d Scripts fits situations like: asked to write RhinoScript (VBScript / .rvb / .vbs); rhinoCommon-based scripts; automate Rhino modeling tasks; build command macros.

How do I install Rhino3d Scripts in Claude Code?

Run `npx skills add github/awesome-copilot --skill rhino3d-scripts -a claude-code`. Or copy the skill folder (skills/rhino3d-scripts in github/awesome-copilot) into .claude/skills/rhino3d-scripts in your project. Claude Code loads it when a task matches its description.

How do I install Rhino3d Scripts in Codex?

Run `npx skills add github/awesome-copilot --skill rhino3d-scripts -a codex`. Or copy the skill folder (skills/rhino3d-scripts in github/awesome-copilot) into .agents/skills/rhino3d-scripts in your project. Codex loads it when a task matches its description.

Can I use Rhino3d Scripts in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill rhino3d-scripts -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rhino3d-scripts, .gemini/skills/rhino3d-scripts, .github/skills/rhino3d-scripts and .opencode/skills/rhino3d-scripts in your project.

What does Rhino3d Scripts need to run?

SKILL.md names no scripts, command-line tools or credentials: Rhino3d Scripts is instructions for the agent only. Our summary lists: Python 3.

Does Rhino3d Scripts access the network?

SKILL.md names 4 domains. As links in the text: docs.mcneel.com, developer.rhino3d.com, mcneel.github.io and github.com. This is read from the text; nothing was executed.

Is Rhino3d Scripts safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rhino3d Scripts use?

Rhino3d Scripts is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rhino3d Scripts use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.9k tokens, read only when the agent opens those files.

What are the alternatives to Rhino3d Scripts?

Skills that share tags, products or a category with Rhino3d Scripts: Generate Readme (microsoft/Agent365-Samples, 112 stars), Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 305 stars), Release Coherence (macalbert/envilder, 138 stars) and Precheck (ayutaz/piper-plus, 218 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rhino3d Scripts?

github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.