agentleFS
TairitsuaTairitsua/Monica/skills/monica-ui-audit/SKILL.md

monica-ui-audit

Skill18 starsChanged 7 months agoMITView on GitHub

Audit Monica Blazor UI for async disposal, JS interop ownership, MudBlazor semantics, responsive containment, theme roles, prototype fidelity, and user-visible type formatting. Use for requested reviews or a concrete UI risk.

The file

Files
SKILL.md

Monica UI Audit

Audit the component or area named by the task. If a failure identifies a component, inspect its .razor, code-behind, isolated CSS, injected state owner, DI lifetime, and any owned JavaScript module. For a repository-wide audit, scan production UI owners and follow disposal, timers, subscriptions, and background work beyond the Razor file. Read audit categories for detailed P0–P5 signals and fixes; load only the categories relevant to the task. $monica-ui-development owns the shared working-interface language and selected theme contracts for page and prototype comparisons.

Prioritize observed failures: P0 resource and async lifetime races; P1 custom interactive elements replacing MudBlazor primitives; P2 sizing, overflow, and scroll ownership; P3 theme tokens and visual hierarchy; P4 private component classes coupled to global theme CSS; P5 duplicate display utilities and raw CLR type names. Cite the exact file/line and evidence for each actionable finding. A review request reports findings without edits; a fix request repairs them in the requested scope.

For P0, trace each incomplete await and resource producer through disposal. Confirm that late imports are observed and disposed, callbacks stop before their DotNetObjectReference is released, in-flight JS users cannot invoke a disposed reference, and teardown is idempotent. Use a deterministic interleaving test when the race is real and the repository's test policy permits it. For P2/P3, inspect runtime DOM, computed styles, compiled isolated selectors, and both scroll dimensions at the smallest scroll owner. Explicitly inspect full shell-width use, each dialog tab's text-to-surface insets, and table/header/footer paint at every rounded boundary. Check semantic filter colors and contrast before selection, after selection, and with zero counts; no-overflow assertions alone do not establish visual readiness. Follow the concrete acceptance contracts in the linked working-interface language. Verify the actual component breakpoint, wide and narrow viewports, and light and dark modes when theme behavior changes. Review real screenshots for composition and edge treatment before declaring visual readiness; passing technical checks does not imply user acceptance.

Keep Monica color usage on MudBlazor palette or approved --mo-color-* tokens. Place page layout in component CSS and shared MudBlazor visuals in theme CSS. For ordinary user-facing CLR type names, normalize at the producing boundary with GetCleanFullName(); show assembly-qualified identity only in views explicitly about assembly provenance. Summarize the fix and category-appropriate build/browser verification when changes are requested.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.