design-system-governance
Installation
SKILL.md
Design System Governance Rules
This skill ensures that any AI agent or developer modifying the UI adheres to the professional standards defined for the project, following the Official Compose Component API Guidelines.
1. Architectural Principles & Boundaries
- Statelessness: Every
MM*component MUST be stateless. No internalremember { mutableStateOf(...) }. - API Parameter Order: Following the official Android standards, parameters MUST follow this order:
- Required parameters: Those without default values (e.g.,
onClick,text). - Modifier:
modifier: Modifier = ModifierMUST be the first optional parameter. - Optional parameters: Other parameters with default values.
- Trailing Lambda: If the component accepts content, the Composable lambda MUST be the last parameter.
- Required parameters: Those without default values (e.g.,
- Typographic Boundary: Use
MMTextexclusively for typography in feature screens.
2. Accessibility (A11y), Adaptive & Scaling
- Universal RTL: Use
start/endexclusively. Noleft/right. Directional icons MUST be mirrored. - Scaling: Support 200% font scaling via
sp. UsewrapContentHeight()orminHeightin containers. - Touch Targets: Minimum 48x48dp via
Modifier.minimumInteractiveComponentSize(). - Adaptive Navigation: Use
NavigationSuiteScaffoldto handle Bar/Rail transitions based on Window Size Classes. - Scaling SSOT: User visual scale (DataStore) must be applied via
MMDensityProvider, separating font scaling from structural density.