grasshopper-analyzer

grasshopper-analyzer is a skill for Claude Code, Codex from sonomirco/agents-and-commands. It costs 34 tokens per session (826 once invoked), scanned A, original, Apache-2.0.

A tool for analysing Grasshopper definition files, .ghx or XML files that describe Rhino’s visual programming workflows. It builds a workflow map and extracts custom C# or Python scripts and their dependencies.

In plain words
What is it for?
Use it to document components and connections, find branching and starting points, extract scripts and libraries, and break down computational design logic.
Why use it?
It turns a visual design definition into written technical documentation, making its logic easier to understand or port to C#.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to document components and connections, find branching and starting points, extract scripts and libraries, and break down computational design logic.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonomirco/agents-and-commands/grasshopper-analyzer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sonomirco/agents-and-commands --skill grasshopper-analyzer
Clone the repo
git clone --depth 1 https://github.com/sonomirco/agents-and-commands

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grasshopper-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonomirco/agents-and-commands/grasshopper-analyzer/github.svg)](https://agentmods.dev/skills/sonomirco/agents-and-commands/grasshopper-analyzer)
Your own site
<a href="https://agentmods.dev/skills/sonomirco/agents-and-commands/grasshopper-analyzer"><img src="https://agentmods.dev/badge/skills/sonomirco/agents-and-commands/grasshopper-analyzer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grasshopper-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonomirco/agents-and-commands/grasshopper-analyzer"><img src="https://agentmods.dev/badge/skills/sonomirco/agents-and-commands/grasshopper-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00826
Opus 5 $0.00017 $0.00413
Sonnet 5 $0.00007 $0.00165
Haiku 4.5 $0.00003 $0.00083

Measured 10d ago against content hash 4d3812ab281a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

grasshopper-analyzer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (flow-diagram-generator.py, gh-unified-analyzer.py, script-extractor.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aec-analysis-toolkit/skills/grasshopper-analyzer/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

Read the full file on GitHub · 87 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 87 lines · 34 tokens per session scan A 4d3812ab281a

Subscribe to this mod's changes

grasshopper-analyzer is a skill published in the GitHub repository sonomirco/agents-and-commands (12 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 826 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.