andymai

New Kernel Method — Development skill for Claude Code

Development community

Add a new method to the kernel abstraction layer.

How to install New Kernel Method

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

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

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

What New Kernel Method does

Add a new method to the kernel abstraction layer.

Workflow

  1. Ask the user what kernel capability is needed and why
  2. Read src/kernel/types.ts (KernelAdapter interface), the relevant *Ops.ts, DefaultAdapter.ts, and brepkitAdapter.ts

Implementation Steps

  1. Add to interface in src/kernel/types.ts
    • Use branded types for shape parameters, accept OcShape for raw handles
    • Return OcShape or primitives; Layer 2 wraps in Result
  2. **Implement in `*Ops.ts`**

Alternatives in Development

  • Internet Court Skill — The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 4.9k ★
  • Bypass 403 — Probe a 403/401 endpoint with the most-paid bypass tricks (header injection, path encoding, method swap, WAF f 4.5k ★
  • Acontext — Agent Skills as a Memory Layer 3.7k ★

Full documentation available on GitHub

View Source Repository