andymai

New Operation — Development skill for Claude Code

Development community

Add a new geometric operation to brepjs.

How to install New Operation

Installs to ~/.claude/commands/andymai-brepjs-new-operation.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/andymai/brepjs/HEAD/.claude/commands/new-operation.md -o ~/.claude/commands/andymai-brepjs-new-operation.md

Restart Claude Code, or start a new session, for it to be picked up.

What New Operation does

Add a new geometric operation to brepjs.

Workflow

  1. Ask the user what the operation does and which module it belongs to
  2. Read src//README.md for patterns and gotchas
  3. Read an existing *Fns.ts in that module as a template (src/topology/booleanFns.ts is the canonical reference)
  4. Implement following the template pattern:
    • Validate inputs → err(validationError(...))
    • Call getKernel().method(shape.wrapped); never access .wrapped methods directly
    • Cast with

Alternatives in Development

Full documentation available on GitHub

View Source Repository