What problem does it solve?
This Skill prevents repeated build-and-lint failures by codifying the canonical Mica card-class contract that tools enforce, so authors don’t redeclare injected globals, wrap code incorrectly, or write invalid metadata shapes.
Core Features & Use Cases
- Defines canonical card-class architecture: explains the required four-file card class layout and how it renders an instance.
- Documents the CANONICAL CARD.JS shape (CARD_SHIM contract): clarifies how
container and mica are injected and must be used without redeclaration, plus where teardown logic belongs.
- Spec frontmatter contract and decomposition tiers: teaches how structured specs map to handler/sidecar/dependencies and how to pick the cheapest viable tier per subtask.
- Dependency-loading rules: explains UMD vs ESM patterns and how to load external libraries without guessing URLs.
Quick Start
Read this handbook, then author or update your card class by following the canonical card.js structure and the card-class spec frontmatter contract.