← 返回 Skills 市场
elliotbian

Grasshopper Generator

作者 ElliotBian · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install grasshopper-generator
功能描述
Generate Rhino 7 Grasshopper (.ghx) XML files from natural language descriptions or images. Build parametric definitions with native GH components, GhPython...
使用说明 (SKILL.md)

Grasshopper Generator

Generate Rhino 7 Grasshopper (.ghx) files programmatically.

Workflow

1. Analyze Input

Image → Identify form (tower/dome/surface/facade), key features (twist/array/voronoi/diagrid), proportions. Text → Parse the same from description.

2. Design the Graph

Sliders → Geometry → Transforms → Booleans → Output

Component priority:

  1. Native GH components (see references/component_guids.json for 152 known GUIDs)
  2. GhPython Script for complex custom logic
  3. Third-party plugins only when explicitly requested

Common patterns:

Form Key Components
Twisted tower Rectangle → Rotate → Extrude → Series
Curved facade Curve → Divide → Orient → Surface
Voronoi Populate 2D → Voronoi → Boundary Surfaces
Diagrid Hexagonal → Scale → Loft
Dome Circle → Rotate → Sweep1
Custom logic GhPython Script

3. Generate .ghx

import sys; sys.path.insert(0, 'SKILL_DIR/scripts')
from ghx_generator import GHXGenerator

gen = GHXGenerator("Definition Name", "Description")
r = gen.add_slider("Radius", 20, 1, 100, x=50, y=50)
c = gen.add_component("Circle", inputs=["Base Plane", "Radius"], outputs=["Circle"], x=300, y=50)
gen.connect(r, "output", c, "Radius")
gen.save("output.ghx")

4. GhPython Fallback

For complex geometry not achievable with native components:

py = gen.add_python("Custom", code, inputs=["x", "y"], outputs=["a"], x=300, y=200)

GhPython has full Rhino.Geometry API. Input variables available by name. Assign a = result for output.

5. Deliver

Save .ghx and send to user. Note adjustable parameters (sliders), definition purpose, and any plugin dependencies.

File Locations

  • Generator: scripts/ghx_generator.py — full API with add_slider, add_component, add_python, connect, save
  • GUID database: references/component_guids.json — 152 authentic component GUIDs extracted from real .gh files
  • Reference template: references/template_voronoi.ghx — real Grasshopper file for structural reference

Notes

  • Output is .ghx (XML), fully compatible with Rhino 7
  • All GUIDs extracted from real Grasshopper installations
  • For components not in the database, GhPython Script handles everything
  • Supports wiring via connect(source_ref, source_param, target_ref, target_param)
安全使用建议
The generator code appears to legitimately create .ghx files and uses an included GUID database, but the docs overpromise: they mention image analysis and a reference template that aren't present in the package. Before installing or using this skill, ask the author to confirm (1) whether image-to-geometry functionality exists and, if so, where the image-processing code or model lives and what dependencies are required; (2) why template_voronoi.ghx is referenced but not shipped; and (3) whether the script will ever fetch remote models or resources. If you proceed, run the skill in a sandboxed environment first, inspect the full ghx_generator.py for any network calls or subprocess execution (the provided portion looks local-only), and validate generated .ghx output in a safe test Rhino instance. If you need image analysis, prefer a package that documents its model and dependencies fully.
功能分析
Type: OpenClaw Skill Name: grasshopper-generator Version: 1.0.0 The grasshopper-generator skill is a legitimate utility designed to programmatically create Rhino 7 Grasshopper (.ghx) XML files. The core logic in `scripts/ghx_generator.py` focuses on constructing valid XML structures using a local database of authentic component GUIDs (`references/component_guids.json`). There is no evidence of data exfiltration, malicious network activity, or unauthorized file access; the script and instructions in `SKILL.md` are strictly aligned with the stated purpose of generating parametric design definitions.
能力标签
crypto
能力评估
Purpose & Capability
The stated purpose (generate Rhino 7 .ghx files) matches the included Python generator and GUID database. However, the documentation claims image-based analysis and provides a 'reference template' file (template_voronoi.ghx) that is referenced in docs but not present in the provided file manifest. The image-processing capability would normally require additional dependencies or code (e.g., ML model, OpenCV), none of which are present.
Instruction Scope
SKILL.md describes an input analysis step for images ('Identify form...') and suggests the skill can accept images, but there is no code or listed dependency to perform image analysis in scripts/ghx_generator.py. The runtime instructions show only programmatic API usage for building XML and adding GhPython code; they do not describe how image data would be processed or uploaded. The docs also reference a template file that is missing from the manifest, which is an inconsistency between instructions and delivered files.
Install Mechanism
This is an instruction-only skill with a bundled Python script; there is no installer, no external download, and no install-time network fetches declared. That lowers risk — nothing will be automatically written or downloaded beyond the packaged files.
Credentials
The skill requests no environment variables, binaries, or external credentials. The code reads only its own companion JSON (references/component_guids.json) and writes .ghx output files, which is proportionate to its stated function.
Persistence & Privilege
The skill does not request always:true and does not declare any behavior that modifies other skills or global agent settings. It runs locally when invoked and has no autonomous installation behaviors in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install grasshopper-generator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /grasshopper-generator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: generate Rhino 7 Grasshopper .ghx files from natural language
元数据
Slug grasshopper-generator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Grasshopper Generator 是什么?

Generate Rhino 7 Grasshopper (.ghx) XML files from natural language descriptions or images. Build parametric definitions with native GH components, GhPython... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 Grasshopper Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install grasshopper-generator」即可一键安装,无需额外配置。

Grasshopper Generator 是免费的吗?

是的,Grasshopper Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Grasshopper Generator 支持哪些平台?

Grasshopper Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Grasshopper Generator?

由 ElliotBian(@elliotbian)开发并维护,当前版本 v1.0.0。

💬 留言讨论