Grasshopper Generator for Openclaw

An AI-powered engine that transforms natural language and images into functional Rhino Grasshopper definitions.

elliotbian
v1.0.0
Apr 11, 2026
0
782
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install grasshopper-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install grasshopper-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Grasshopper Generator?

The Grasshopper Generator is a sophisticated tool designed to bridge the gap between conceptual design and parametric modeling. By leveraging Openclaw Skills, this agent can interpret visual references or text descriptions to programmatically build .ghx XML files compatible with Rhino 7. It allows designers to bypass manual node-wiring for standard patterns while providing the flexibility to scale into complex custom geometry.

Whether you are architecting a twisted tower or a complex diagrid facade, this skill automates the assembly of native Grasshopper components and GhPython scripts. It ensures technical accuracy by using a verified database of GUIDs, making it a powerful asset for computational designers looking to accelerate their early-stage form-finding workflows.

Grasshopper Generator Use Cases

  • Rapidly prototyping parametric building massing such as twisted towers or domes.
  • Generating complex facade patterns like diagrids and hexagonal panels from 2D image references.
  • Creating automated Voronoi or population-based distributions for urban planning or product design.
  • Implementing custom geometric logic through automated GhPython script generation when native components are insufficient.
  • Converting conceptual sketches into editable .ghx files for further refinement in Rhino.

How Grasshopper Generator Works

  1. The agent analyzes the user input (image or text) to identify the intended form, key architectural features, and proportions.
  2. A graph architecture is designed, prioritizing native components from a database of over 150 verified GUIDs.
  3. The skill utilizes a Python-based GHXGenerator API to instantiate sliders, components, and parameters in a virtual workspace.
  4. Logical wiring is established between components to create a functional parametric relationship.
  5. For non-standard logic, the agent generates a GhPython script block to handle advanced Rhino.Geometry operations.
  6. A valid .ghx XML file is compiled, saved, and delivered to the user for immediate use in Rhino 7.

Grasshopper Generator Setup

To integrate this into your workflow, ensure you have the Openclaw Skills environment configured and the generator scripts available in your local directory:

# Navigate to your skill directory
cd grasshopper-generator

# Ensure the Python environment has access to the generator scripts
export PYTHONPATH=$PYTHONPATH:$(pwd)/scripts

# The generator relies on the GUID database located in:
# references/component_guids.json

Grasshopper Generator Data Schema & Taxonomy

The skill manages data through a structured hierarchy to ensure compatibility with Rhino's XML schema:

Data Type Description Location
Component GUIDs A JSON database of 152 authentic component identifiers. references/component_guids.json
GHX Generator The core Python API for file construction and wiring. scripts/ghx_generator.py
Templates Reference XML structures for structural validation. references/template_voronoi.ghx
Output Files Standard Rhino Grasshopper XML files. output.ghx

Grasshopper Generator Advanced Features

  • Multi-modal input support: Generate definitions from both detailed text prompts and visual design references.
  • GhPython Fallback: Automatically writes custom Python code using the Rhino.Geometry API for complex tasks native nodes can't handle.
  • Intelligent Wiring: Employs a specific connect method to manage data flow between source and target parameters accurately.
  • Extensible GUID Library: Built-in support for 152 native Rhino 7 components with the ability to reference third-party plugins when requested.
  • Parametric Slider Automation: Automatically creates interactive UI sliders for key design variables like radius, height, and count.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*