mbtorch-api-design
CommunityDesign consistent, user-centered MbTorch APIs
System Documentation
What problem does it solve?
Ensures MbTorch public APIs are consistent, discoverable, and easy to use by making design decisions from the user's perspective rather than implementation convenience. It reduces fragmentation, surprising behaviors, and costly breaking changes by enforcing naming conventions, sample-first design, clear error messages, and a checklist-driven review process.
Core Features & Use Cases
- Naming & Conventions: Prescribes PascalCase for types, snake_case for functions, and alignment with PyTorch/JAX conventions where appropriate.
- Sample-first API design: Forces writing caller-facing examples before committing signatures to ensure ergonomics and discoverability.
- Compatibility & Error Guidance: Provides a backward-compatibility workflow, deprecation policy, and structured error message format for io/nn/core/optim changes.
- Use case: Use this Skill when adding a new optimizer, changing Model I/O signatures (ONNX/safetensors/.mbt), standardizing layer names, or preparing breaking-change migration notes.
**Quick Start
Ask the assistant to review a proposed public API change for core/nn/optim, produce a sample-first usage example, validate naming consistency, and list backward-compatibility and documentation tasks.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: mbtorch-api-design Download link: https://github.com/c-tomioka/mbtorch/archive/main.zip#mbtorch-api-design Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.