Something I Made I am turning my GH scripts into an actual public plugin
I am turning my GH scripts into an actual public plugin
I have a folder of Grasshopper definitions for the repetitive, boring jobs. It worked fine to me until a few weeks ago I started turning that folder into a proper plugin with Claude Code.
I'm an architect who scripts a bit, not a developer. I bring the domain problems and the test files, and I check every command in Rhino; Claude Code helps with the geometry code, the tests, and the packaging.
Version 0.1.0 of pocketknife is now on the Package Manager free, open source, and currently packed with 10 commands (most are Grasshopper components too):
pkCleanCurves — Takes messy planar curves and gives back long, straight, joined curves with no duplicates or overlaps.
pkFootprint — Outlines a whole mass of disjointed elements (breps, meshes, blocks) with true inner holes.
pkClipCurves — Acts as a clipping mask for curves, keeping either the inside or the outside.
Plus: Minimum bounding box/rectangle, a point guaranteed to sit inside a shape, and a couple of layer tools.
Install & Docs:
Run _PackageManager in Rhino and search pocketknife
Docs: extrdd.com/docs/pocketknife
It's Rhino 8 only and tested on Windows so far. It's still a work in progress (every update will add 5 or 6 commands plus fixes, aiming for around 50–60 based on my GH library).
What would help most right now: Install it, throw your worst files at it, and tell me what breaks (a sample file is gold). And if you have your own folder-of-scripts job that should be a single command, suggest it.
