frontend-ui-guardrails
Skill0 starsChanged 3 months agoMITView on GitHub
Use when frontend, UI, browser automation, live UI, screenshot, snapshot, responsive layout, accessibility, modal, form, navigation, or user-facing state work is in scope.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Do not expose technical details in user-facing messages.
- Distinctive: line 14
Do not hardcode secrets, auth headers, environment-specific values, or profile-specific browser config.
- Very specific: line 15
Prefer project-level agent-browser.json or AGENT_BROWSER_* environment variables when such config is already part of the project.
- Distinctive: line 19
Web / browser UI: prefer Hermes Chrome (real cookies/SSO), then browser-e2e / agent-browser / Playwright headless / Chrome DevTools — not …
- Distinctive: line 20
browser-use: only for external black-box sites (or explicit user request).
- Very specific: line 24
Add a Playwright smoke flow only when a reproducible interaction or responsive regression check adds real value.
- Very specific: line 25
Do not steal keyboard/mouse focus while the user works (osascript activate, headed Playwright, hijacking the active tab).
- Distinctive: line 29
When a task includes screen evidence or responsive risk, check layout, spacing, alignment, centering, overflow, wrapping, clipping, …
- Distinctive: line 30
Verify mobile and desktop primary breakpoints.
- Very specific: line 31
Check text alignment, long text, dynamic content, localized strings, sticky/fixed/modal/overlay surfaces, corner controls, forms, keyboard …
- Distinctive: line 37
Do not treat a desktop screenshot as proof that mobile works.
- Distinctive: line 38
Do not change modal state logic, validation, routing, or copy while fixing a layout issue unless the task requires it.
- Distinctive: line 39
Do not call a UI change done without browser or screenshot evidence when observable behavior was affected.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Frontend UI Guardrails
This is a domain-specific expansion of the project's AGENTS.md (or equivalent agent rules). It may add frontend and UI requirements, but it must never weaken AGENTS.md, SECURITY, secrets handling, production safety, or destructive-command restrictions.
Core Rules
- Preserve existing UI/UX behavior, accessibility, design system, copy, and interaction patterns unless the task explicitly requires a change.
- Do not expose technical details in user-facing messages.
- Do not hardcode secrets, auth headers, environment-specific values, or profile-specific browser config.
- Prefer project-level
agent-browser.jsonorAGENT_BROWSER_*environment variables when such config is already part of the project.
Evidence Priority
- Web / browser UI: prefer Hermes Chrome (real cookies/SSO), then browser-e2e / agent-browser / Playwright headless / Chrome DevTools — not computer-use and not browser-use by default.
- browser-use: only for external black-box sites (or explicit user request). Avoid full-auto for OTP, payments, production config, trading.
- Native desktop shell only (Tauri / PyQt / Electron frame, tray, OS dialogs, file pickers) or explicit user request →
computer-useskill (lazy-desktop-mcp). Announce before control; honor Presence STOP/PAUSE; do not use CU as a daily-Chrome driver. - Screenshot-only (no click/type) →
screenshotskill. - Escalate to deeper DOM/console/network/performance tooling (Chrome DevTools) when more evidence is needed.
- Add a
Playwrightsmoke flow only when a reproducible interaction or responsive regression check adds real value. - Do not steal keyboard/mouse focus while the user works (
osascriptactivate, headed Playwright, hijacking the active tab).
Layout And Interaction Checks
- When a task includes screen evidence or responsive risk, check layout, spacing, alignment, centering, overflow, wrapping, clipping, safe-area, CTA visibility, and overlay obstruction.
- Verify mobile and desktop primary breakpoints; include tablet when the component or flow can reasonably break there.
- Check text alignment, long text, dynamic content, localized strings, sticky/fixed/modal/overlay surfaces, corner controls, forms, keyboard navigation, focus order, and focus visibility.
- Cover loading, empty, error, disabled, and success states when they exist.
- For layout review output, clearly separate evidence from static screenshots and evidence that still requires browser validation.
Common Mistakes
- Do not treat a desktop screenshot as proof that mobile works.
- Do not change modal state logic, validation, routing, or copy while fixing a layout issue unless the task requires it.
- Do not call a UI change done without browser or screenshot evidence when observable behavior was affected.
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.

