kernel-abstraction

Implement cross-kernel geometry methods across brepjs CAD kernels.

77|7|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/andymai/brepjs --skill kernel-abstraction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kernel-abstraction
Source: https://github.com/andymai/brepjs/tree/main/.claude/skills/kernel-abstraction
Command: npx skills add https://github.com/andymai/brepjs --skill kernel-abstraction

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Working with brepjs's multiple geometry kernels (occt-wasm, occt, brepkit, manifold) requires navigating complex adapter wiring, capability differences, kernel registration, and cross-kernel testing, which can lead to inconsistent implementations and hard-to-debug issues without clear, structured guidance.

Core Features & Use Cases

  • Cross-adapter method implementation: Step-by-step workflow for adding new kernel methods across all four in-tree adapters, including stubbing unsupported methods and enforcing compile-time interface guards.
  • Kernel management utilities: Guidance for safe kernel switching, quality tier configuration, runtime capability detection, and handling kernel-specific feature gaps.
  • Multi-kernel testing support: Instructions for setting up cross-kernel test suites, tracking kernel divergences, and generating up-to-date conformance matrices.
  • Use Case: When adding a new chamfer operation to brepjs, this skill ensures the method is correctly declared, implemented for each supported kernel, wired to the public API, and validated for cross-kernel consistency.

Quick Start

Use the kernel-abstraction skill to implement a new kernel method for asymmetric chamfer operations across all supported brepjs kernels, following the provided adapter wiring and testing guidelines.

Frequently Asked Questions about kernel-abstraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new geometry operation across multiple brepjs kernels?

Cross-kernel geometry operations in brepjs require navigating adapter wiring, capability differences, and kernel registration across four supported backends (occt-wasm, occt, brepkit, manifold) to ensure consistent implementations.

What is the best way to handle unsupported geometry methods in a specific CAD kernel?

When a specific CAD kernel lacks a geometry feature, you should stub the unsupported method and enforce compile-time interface guards to maintain uniform interface adherence across all in-tree adapters.

How do I set up cross-kernel testing for brepjs CAD adapters?

To set up cross-kernel testing for brepjs CAD adapters, configure cross-kernel test suites, track kernel divergences, and generate up-to-date conformance matrices to validate adapter consistency.

Can I safely switch geometry kernels at runtime in brepjs?

Yes, you can safely switch geometry kernels at runtime in brepjs by using the kernel management utilities that provide safe kernel switching, runtime capability detection, and quality tier configuration.

Why do my brepjs adapter implementations fail consistency checks across different kernels?

brepjs adapter implementations fail consistency checks across different kernels due to kernel-specific feature gaps and test divergences, which require structured tracking and conformance matrix generation to manage.