agentleFS
TairitsuaTairitsua/Monica/skills/monica-ui-bridge-debug/SKILL.md

monica-ui-bridge-debug

Skill18 starsChanged 7 months agoMITView on GitHub

Run a bridge ASP.NET Core host to inspect and verify Monica Blazor UI when the framework has no standalone entry point. Use for live DOM, CSS, and browser diagnosis tied to a real host.

The file

Files
SKILL.md

Monica UI Bridge Debug

Use a runnable bridge host for Monica UI inspection and refinement. Apply $monica-ui-development to implementation, $monica-ui-localization to user-facing text, and $playwright-cli for browser evidence. The bridge helper lives at scripts/bridge_service.py; resolve it relative to this skill directory. Read bridge service script for arguments, readiness, cleanup, Windows/WSL handling, and artifact names.

Find the bridge project and target route from the task or repository. Use a user-supplied URL when given; otherwise inspect Properties/launchSettings.json, an existing project-owned listener, or choose an unused local port. Place logs, readiness files, and screenshots in a task-specific directory under .tmp/monica-ui-bridge-debug/ unless the user supplied one. The helper may clean up only its recorded process or a process clearly owned by that bridge project; an unrelated listener on the chosen port is a conflict.

Run the helper's run command, then wait-ready, then open the target route. For layout or visibility bugs, inspect the live DOM, computed styles, loaded rules, and emitted Blazor *.bundle.scp.css before editing. Confirm the visual effect with a screenshot after the cause is understood. Do not infer MudBlazor internal selectors from memory when the runtime DOM can show them. Use the exact MudBlazor source only when the component's API or behavior is uncertain, following $monica-ui-development.

After a fix, restart or rebuild the bridge as needed and verify the same route. Keep the successful bridge available for user inspection unless the task requires cleanup. Parallel agent work is optional only when the user or governing instructions authorize delegation; if used, give one worker ownership of the bridge process to avoid competing restarts.

After a dependent Razor class library rebuilds, a still-running consumer bridge may keep a stylesheet import for the library's old asset fingerprint. If markup has its CSS isolation scope attribute but computed styles disappear, inspect the consumer's .styles.css import and the imported bundle response body. Stop the owned bridge, rebuild the consumer project to regenerate its static-asset manifest, then restart it and verify the imported CSS is nonempty before judging the component selectors. A restart without a consumer rebuild can retain the stale import.

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.