Filter AI frontend low-efficiency and fake content with anti-slop
AI-generated frontend code often includes redundant elements like flickering logos and fake statistics. By combining core anti-slop filtering mechanisms with the directional guidance of DESIGN.md, you can purge bad code patterns and use a delivery gate to ensure code quality.
DEV.to #uidesign
CursorClaude Codev0Boltanti-slop
Added 2026-11-05 · originally published Fri, 30 Oct 2026 18:19:53 +0000
Key points
- Separate responsibilities: Removing bad/fake patterns (like invented data and placeholder copy) is different from providing design direction (colors, typography, layout); use in conjunction with DESIGN.md.
- Leverage core rules and skill splitting: Load the core filter and separate skills such as antislop-ui, antislop-copywriting, and antislop-human to handle layout, copywriting, contrast, and states respectively.
- Execute Delivery Gate checks: Run a four-section report containing PASS or FAIL before delivery to ensure no redundant or low-quality code goes live.
- Use dual modes (During / After): You can choose to guide the work during the build process, or run After mode on existing pages to get a numbered issue list and select items to fix.
- Pay attention to contrast thresholds: Ensure contrast calculations are based on unrounded precise ratios (e.g., 4.4983:1 will not pass a 4.5:1 check), strictly safeguarding visual readability.
Pitfalls
- Relying solely on filters, resulting in mediocre design (lacking the style guidance of DESIGN.md).
- Having only design direction (DESIGN.md) without filters, leaving a large amount of AI redundancy (slop) intact.
- False positives in contrast checks due to rounding values (e.g., rounding 4.4983:1 to 4.50 to pass).
.cursorrules
- Must remove AI-generated fake numbers, placeholder copy, and unverified statistics. - Prohibit meaningless decorative badges (such as sparkle logos) and fake terminals. - Strictly enforce contrast thresholds (do not round up non-compliant values to pass checks). - Must output a status report containing PASS or FAIL prior to delivery.
Copy-ready prompt
Act as a frontend AI assistant and strictly follow these rules when writing code: 1. Remove all AI-generated fake numbers, placeholder copy, sparkle logos, and dummy terminals. 2. Follow [Enter your DESIGN.md design direction here: e.g., colors, typography, layout]. 3. Perform a Delivery Gate check before outputting, producing a report with PASS/FAIL to ensure no meaningless AI redundancy is introduced.
#AI Frontend#Code Standards#UI Polish#Anti-Pattern Guide
Related techniques
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.