skills/dmc-best-practices/SKILL.md
Dash Mantine Components (DMC) best practices and performance optimization guidelines. Use this skill when writing, reviewing, or refactoring Dash apps with DMC to ensure optimal patterns. Triggers on: DMC components, Mantine styling, Dash callbacks, dcc.Store, theming, or performance optimization in Plotly Dash applications.
npx skillsauth add bjornmelin/dev-skills dmc-best-practicesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Definitive best practices for building Dash applications with Dash Mantine Components. Rules are organized by impact level and category.
| Priority | Category | Impact | Prefix | Rules |
|----------|----------|--------|--------|-------|
| 1 | Architecture | CRITICAL | arch- | 4 |
| 2 | Callbacks | CRITICAL/HIGH | callback- | 6 |
| 3 | Styling | HIGH/MEDIUM | style- | 5 |
| 4 | Data Management | HIGH | data- | 4 |
| 5 | Performance | MEDIUM-HIGH | perf- | 3 |
| 6 | Forms & Validation | MEDIUM | form- | 2 |
| 7 | Theming | MEDIUM | theme- | 3 |
| 8 | DMC v2.x Migrations | MEDIUM | v2- | 2 |
| 9 | Accessibility | MEDIUM | a11y- | 1 |
.m_* dynamic classesSee AGENTS.md for the complete compiled reference with all rules expanded.
When DMC review output needs machine-readable evidence, shape findings as
ui_audit.v1:
target.framework: dmcid: dmc.<rule-id> such as dmc.arch-mantine-providercategory: map DMC rule families deterministically:
architecture -> layout, callbacks -> state, styling -> layout,
data -> state, performance -> performance, forms ->
interaction, theming -> visual, migration -> migration, and
accessibility -> accessibilityseverity: CRITICAL and HIGH rules become error; MEDIUM-HIGH and
MEDIUM rules become warning; lower-risk notes become infolocations: repo-relative files or components when knowndocs: the relevant rule markdown path plus external component docs when the
rule cites themUse observations for inventory facts such as detected DMC version, theme
configuration, or callback counts that do not by themselves require a fix.
development
Pre-PR multi-model review, parallel opus and codex exec adversarial lanes, then adversarial verification of merged findings. Read-only. Use before shipping nontrivial diffs.
tools
Independent gpt-5.6 diff review via the Codex CLI, normal or steerable adversarial with JSON findings. Use before shipping nontrivial changes.
development
Delegate implementation, investigation, or bulk work to gpt-5.6 codex via pinned codex exec. Use for clear-spec builds, migrations, debugging, or any task MODELS.md routes to codex.
development
Adversarial pre-mortem: imagine the plan failed, work backwards to surface risky assumptions + irreversible bets, then harden them. Proactively offer it (after the current request; confirm first) before a hard-to-reverse or one-way-door call (API, schema, framework, a hire), an all-upside plan, or unvalidated assumptions. Also on request.