monica-ui-development
Skill13 starsChanged 7 months agoMITView on GitHub
Implement Monica Blazor and MudBlazor v9 components, pages, themes, CSS isolation, local assets, browser storage, and async component lifecycle. Use for framework UI authoring; consumers configuring UI modules use monica-infra-ui.
In this repository100 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-simplifierSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- monica-application-microserviceSkill
- monica-application-modular-monolithSkill
- monica-application-project-unit-developmentSkill
- monica-applicationSkill
- monica-application-unit-testingSkill
- monica-architectureSkill
- monica-contributionSkill
- monica-developmentSkill
- monica-docs-authoringSkill
- monica-frameworkSkill
- monica-guideSkill
- monica-infra-aiSkill
- monica-infra-configurationSkill
- monica-infra-hostingSkill
- monica-infra-jobsSkill
- monica-infra-messagingSkill
- monica-infra-observabilitySkill
- monica-infra-persistenceSkill
- monica-infra-uiSkill
- monica-infra-webSkill
- monica-opentelemetrySkill
- monica-requirement-designSkill
- monica-third-party-module-developmentSkill
- monica-ui-auditSkill
- monica-ui-bridge-debugSkill
- monica-ui-designSkill
- monica-ui-localizationSkill
- monica-unit-testingSkill
- planning-with-filesSkill
- playwright-cliSkill
- code-simplifierSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- monica-application-microserviceSkill
- monica-application-modular-monolithSkill
- monica-application-project-unit-developmentSkill
- monica-applicationSkill
- monica-application-unit-testingSkill
- monica-architectureSkill
- monica-contributionSkill
- monica-developmentSkill
- monica-docs-authoringSkill
- monica-frameworkSkill
- monica-guideSkill
- monica-infra-aiSkill
- monica-infra-configurationSkill
- monica-infra-hostingSkill
- monica-infra-jobsSkill
- monica-infra-messagingSkill
- monica-infra-observabilitySkill
- monica-infra-persistenceSkill
- monica-infra-uiSkill
- monica-infra-webSkill
- The first 60 shown.
The file
Files
Monica UI Development
Use $monica-architecture for UI module boundaries and page decomposition. For a focused UI change, inspect the owning component, its CSS, and the rendered DOM. Use $monica-ui-audit when the task asks for a compliance review or the change has a concrete cross-cutting risk. Use $monica-ui-localization for user-facing strings, resources, or registry keys; use $monica-infra-ui for consumer registration.
Put component layout and local presentation in .razor.css. A Blazor isolation selector does not automatically reach a child MudBlazor component root: scope a real HTML wrapper and use ::deep. Compare compiled *.bundle.scp.css selectors with the live DOM when a class exists but a rule does not apply. Prefer MudBlazor primitives for menus, dialogs, drawers, and popovers. Use v9 async APIs (ShowAsync, ShowMessageBoxAsync) and the v9 converter contract. Read CSS isolation workflow or v9 migration when those issues arise.
Keep data initialization in OnInitializedAsync or OnParametersSetAsync and DOM-dependent interop in OnAfterRenderAsync. An incomplete await permits re-entry and disposal. Cancel component-owned work, observe late resource-producing tasks, stop JavaScript callbacks before disposing their .NET targets, and avoid interop that mutates DOM from DisposeAsync. Read Blazor lifecycle guidance for ownership/interleaving, auto-refresh pattern for polling, and browser storage when persisting UI state. IBrowserStorage owns local/session storage; its runtime keys have the mo: prefix.
Use MudBlazor palette variables first and the approved --mo-color-* tokens for roles the palette cannot express. Keep supplemental semantic tokens small and reusable across modules; do not introduce hardcoded colors in UI Razor, CSS, JS, or C# visualization payloads. mo-theme-main.css composes theme resources and token defaults; put new component styling in its owning stylesheet rather than adding it there during color cleanup. Keep component-specific selectors in the owning CSS, shared MudBlazor visuals in theme CSS, and shell sizing in layout CSS. The shell owns AppBar height and viewport scrolling; page CSS should use available parent height and local overflow. Runtime fonts and static resources stay local; ship WOFF2 rather than source TTF/OTF. Read theme CSS, offline assets, and Precision design language only for the relevant work. For theme regressions use theme pitfalls; for dense tables use adaptive list/table.
When MudBlazor API or DOM behavior is uncertain, inspect the exact v9.0.0 source. scripts/check_mudblazor_source.py resolves MUDBLAZOR_SOURCE_PATH; the source is needed for source-dependent diagnosis or regenerating the variable catalog, not ordinary component edits. scripts/sync_mud_css_variables.py updates .tmp/monica-ui-development/mudblazor-css-variables.json; scripts/validate_mud_css_variables.py --root <project-root> checks CSS/Razor usage and offers --fix for deterministic substitutions. Use scripts/font_downloader.py or scripts/subset_ui_font.py when working on local font assets. Validate theme colors with the repository's scripts/validate_ui_theme_tokens.py when styling changes.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

