Agent harness and CLI to eliminate AI slop from frontend code
Project description
UIdetox
The anti-slop engine for AI-generated frontends.
UIdetox is an agent harness that eliminates the "AI smell" from your UI. It transforms generic, LLM-generated code into hand-crafted, high-fidelity interfaces through a systematic scan → fix loop that enforces design taste and detects common AI anti-patterns.
Installation • Commands • Design Dials
From "Vibe Coding" to "Vibe Design"
AI coding tools are great at building things fast, but the results often scream "AI made this"—Inter font, purple gradients, glassmorphism, and generic hero dashboards.
UIdetox gives your agent an objective "Design Score" to optimize. It’s not a linter; it’s a standard. By knowing what not to do, your agent can finally produce code that makes people ask "Who made this?"—not "Which AI made this?"
The Agent Prompt
Paste this into your AI coding agent (Cursor, Windsurf, Claude, etc.) to begin:
I want you to eliminate "AI slop" from this codebase and make the UI indistinguishable from hand-crafted design. Your goal is to reach a **Design Score of 95+**.
To do this, use the UIdetox ecosystem (requires Python 3.11+). Run the following setup:
pip install uidetox
uidetox update-skill [your_agent_name] # e.g., claude, cursor, windsurf, gemini
uidetox setup --auto-commit
THE LOOP
This is a closed-loop system. Do not stop after one fix. Repeat this cycle until the strict score is maximized:
1. Audit: Run `uidetox scan .` to queue anti-patterns.
2. Fix: Run `uidetox next`. This batches issues for the highest-priority file. Fix them holistically (including fullstack boundaries).
3. Resolve: Run `uidetox resolve <ID> --note "What you changed"`.
4. Verify: Run `uidetox check --fix` to auto-commit formatting and catch/queue any new mechanical regressions incrementally.
5. Loop: Run `uidetox next` again.
6. Deep Verification: When the queue empties, run `uidetox rescan` to re-audit with fresh eyes. Keep looping until `uidetox status` shows Score >= 95.
7. Finish: Once the target score is reached, run `uidetox finish` to squash the aesthetic fixes cleanly onto your main branch!
RULES OF ENGAGEMENT
1. Heavy Lifting: Don't be lazy. Large refactors and small detailed fixes — do both with equal energy. Replace entire components if they reek of AI slop. Fix things properly, not minimally.
2. Subordinate Ego: `uidetox next` injects specific SKILL.md design rules into your context. Follow them strictly. Do not substitute your own analysis or rely on your baseline training data.
3. Orchestrator Mode: For complex passes, use `uidetox loop --orchestrator`. Act as a manager: generate prompts with `uidetox subagent`, delegate to parallel subagents, and use MCP (Model Context Protocol) servers to read the filesystem and execute terminal commands directly.
Installation
pip install uidetox
# Install the design rules for your specific environment:
uidetox update-skill claude # (Also supports: cursor, gemini, windsurf, copilot)
uidetox setup --auto-commit # Initializes design dials & git integration
Commands
The Engine (CLI)
| Command | Action |
|---|---|
uidetox scan |
Full audit: auto-detects tooling and runs the static slop analyzer. |
uidetox next |
Batches the highest-priority issues with design context injection. |
uidetox status |
View your Design Score and pending issue count. |
uidetox loop |
Enter autonomous mode (creates a session branch and loops fixes). |
uidetox rescan |
Clears queue and re-audits with 18+ fresh anti-slop rules. |
uidetox finish |
Squash merges the autonomous session branch cleanly. |
Design Skills (Slash Commands)
Use these for targeted improvements on specific files or directories:
uidetox polish– Final quality and alignment pass.uidetox animate– Adds purposeful motion (spring physics, scroll reveals).uidetox audit– Technical checks for accessibility and performance.uidetox harden– Edge cases, error handling, and i18n.
Design Dials
Control the "aesthetic DNA" of the output by adjusting these values in uidetox setup:
- DESIGN_VARIANCE (1-10): From clean/centered (1) to asymmetric/massive whitespace (10).
- MOTION_INTENSITY (1-10): From CSS-only (1) to complex spring physics and reveals (10).
- VISUAL_DENSITY (1-10): From spacious "art gallery" (1) to "cockpit mode" data density (10).
The Slop Checklist
UIdetox actively hunts and destroys:
- Use of Emojis in text content
- Overused Inter font stacks.
- Generic Purple-Blue gradients.
- Identical Card Grids with no hierarchy.
- Meaningless Glassmorphism.
- Default Lucide/Radix patterns with zero customization.
- "Generic Startup" copywriting.
Credits & License
Built on the shoulders of desloppify and impeccable
MIT © OJamals
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file uidetox-1.1.0.tar.gz.
File metadata
- Download URL: uidetox-1.1.0.tar.gz
- Upload date:
- Size: 217.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53359480138169ce83edec670ecba428f61a41b4e117b6127279a9df5b61d86d
|
|
| MD5 |
fcc759d3c44c0172fde9abb3a564022a
|
|
| BLAKE2b-256 |
c6e88477272754913b2bf37025d1d5111bd16d9e19c88ccefba5b518b6f519fc
|
File details
Details for the file uidetox-1.1.0-py3-none-any.whl.
File metadata
- Download URL: uidetox-1.1.0-py3-none-any.whl
- Upload date:
- Size: 167.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce6767e38c9cc3f2f542656089367148e41c7b1a1ea44adbdaab1b133387d123
|
|
| MD5 |
e6881fa11d9f369b0ea14c8aa6982e1c
|
|
| BLAKE2b-256 |
e57088cc8ae14d920a9bdd77439f169b65ab43b10779829f9deb39dcd5c4babf
|