- Home
- Skills
- Frontend & Web Apps
- Audit UI Code for Generic Defaults and Broken States
More screenshots
Works with the AI Agents you already use
Audit UI Code for Generic Defaults and Broken States
Audit UI source code for generic styles, missing async states, and interaction safeguards.
$15
Audit UI Code for Generic Defaults and Broken States
Example session with this skill installed
Run python3 scripts/ui_quality_audit.py --project examples --format text and tell me which findings to fix first.
- Read your context and instructions
- Compiled the audit ui code
- Generated the UI component
examples/sample_styles.css:2: [generic-font-default] Pair a generic fallback with a distinctive display or body face.
examples/sample_styles.css:5: [cliched-gradient] Choose an intentional palette instead of a generic purple gradient.
examples/sample_styles.css:8: [focus-visibility-loss] Add a visible keyboard focus treatment.
examples/sample_styles.css:11: [small-touch-target] Use an interactive target at least 44px in each constrained dimension.
examples/sample_styles.css:14: [missing-reduced-motion] Provide a prefers-reduced-motion alternative.
examples/sample_widget.tsx:3: [unhandled-async-states] Add visible async branches; missing: loading, empty, error.
Summary: 3 files scanned, 6 findings (cliched-gradient: 1, focus-visibility-loss: 1, generic-font-default: 1, missing-reduced-motion: 1, small-touch-target: 1, unhandled-async-states: 1)
sample_styles.css
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
For developers shipping web screens written with Claude Code: catch generic styling defaults, missing keyboard and motion safeguards, and unhandled loading, empty, or error states before review. Run one deterministic audit command and use its findings to finish a more distinctive, usable interface.
What it checks
It reads .html, .css, .tsx, and .jsx files and flags six things:
- generic-only font stacks
- familiar purple gradients
- removed keyboard focus
- motion without a reduced-motion alternative
- small explicit controls (under 44px in a constrained dimension)
- asynchronous lists with missing loading, empty, or error branches
What you get
- Line-numbered findings with source path, rule name, and a fix hint (text format)
- JSON for CI steps and CSV for review lists
- Four CSS token starters (minimal, editorial, utilitarian, playful) with a reduced-motion baseline
- Options to limit the audit (--rules, --ignore-rule), fail a build on findings (--strict), and bound input size (--max-files, --max-bytes)
- Reports saved with --output go to a new UTF-8 file; existing files are never overwritten
Quick start
python3 scripts/ui_quality_audit.py --project examples --format text
The result is saved in examples/expected_output.txt and is reproduced byte for byte by the included test suite (python3 -m unittest discover tests).
Includes
The Python CLI, an example project, regression tests, and a ready-to-use skill guide. Requires Python 3.9 or later; standard library only.
Known limitations
The checks are deterministic source patterns, not a full CSS or TypeScript parser. Dynamic class composition, component libraries, and complex state machines may need manual review. The tool does not render a page or replace a browser accessibility check. A clean report means only that these rules did not match; it is not a complete accessibility or design certification.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.
Deterministic source-pattern audit only. Cannot detect issues in dynamic class names or third-party components. Not a substitute for a browser renderer or full accessibility audit.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.9 or later