Skip to content
grasshopper-analyzer logo

Grasshopper Unified Analyzer

grasshopper-analyzer

Analyze Grasshopper (.ghx/.xml) files to extract workflow, custom scripts, algorithmic patterns, and generate comprehensive reports for C# developers

SKILL.md

Full skill instructions

Grasshopper Unified Analyzer

Automatically analyze Grasshopper XML definitions (.ghx) to understand workflow structure, extract custom C#/​Python scripts, and generate comprehensive documentation suitable for porting to C#.

When to use this skill

Use this skill when the user:

  • Asks to analyze a Grasshopper file or definition
  • Wants to understand the structure of a .ghx file
  • Needs to extract C# or Python scripts from Grasshopper components
  • Requests documentation for a parametric workflow
  • Mentions converting or porting Grasshopper logic to C#
  • Needs algorithmic breakdown of a computational design script

What this skill does

  1. Parses Grasshopper XML (.ghx/​.xml format) without requiring Rhino/​Grasshopper runtime
  2. Builds workflow graph from components and connections
  3. Identifies topology: start/​end nodes, branching points, merge points, primary workflow paths
  4. Extracts custom scripts: Full C# and Python code with input/​output parameters
  5. Detects dependencies: Libraries, Rhino.Geometry, RhinoCommon SDK references
  6. Generates comprehensive report with:
    • Executive Summary (purpose and scope)
    • Workflow Summary (topology and primary flow)
    • Libraries & Dependencies
    • Custom Script Analysis (full code with I/​O metadata)
    • Algorithmic Analysis (A-E format for C# developers)
    • Definition Summary (component counts, statistics)

How to use

Execute the unified analyzer script:

python ~/​.claude/​skills/​grasshopper-analyzer/​gh-unified-analyzer.py "path/​to/​file.ghx"

Arguments:

  • Path to .ghx or .xml file (binary .gh files are NOT supported)

Example:

python ~/​.claude/​skills/​grasshopper-analyzer/​gh-unified-analyzer.py ~/​Desktop/​parametric-design.ghx

Output

The analyzer generates a comprehensive Markdown report:

  • Location: <input-filename>-grasshopper-report.md (same directory as input)
  • Format: Single structured Markdown document

Report Structure

  1. Executive Summary - Purpose, scope, and component counts
  2. Workflow Summary - Start/​end nodes, branching, primary flow
  3. Libraries and Dependencies - External assemblies and references
  4. Key Grasshopper Components - Standard components used (grid, remap, etc.)
  5. Custom Script Analysis - Full code listings with I/​O parameters
  6. Algorithmic Analysis (A-E format):
    • A. High-Level Algorithmic Summary
    • B. Core Algorithm Breakdown (input → processing → output)
    • C. Key Computational Components (purpose, algorithm, dependencies)
    • D. Data Flow Architecture (parameters and processing order)
    • E. Implementation Notes for C# Developer (dependencies, performance, edge cases)
  7. Definition Summary - Statistics (component count, scripts, libraries, paths)

Requirements

  • Python: 3.6+
  • Dependencies: Standard library only (xml.etree.ElementTree, os, sys, re)
  • Platform: Windows/​macOS/​Linux
  • File Format: .ghx (XML) or .xml only - binary .gh must be saved as .ghx first

Important notes

  • The analyzer processes files in-memory without modifying the original
  • Report is deterministic and suitable for version control
  • Custom components beyond standard scripts are treated generically
  • Flow diagrams are analyzed but not embedded (topology shown as text)
  • Perfect for understanding existing definitions or preparing for C# migration
  • The algorithmic analysis (A-E format) is specifically structured for C# developers

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View