---
name: anti-slop
description: "Zero-tolerance Anti-AI Slop engine: crisp UI, clean code, no slop / Engine Anti-AI Slop: UI presisi, kode bersih tanpa placeholder."
author: "Roedy Rustam"
version: "4.8.0"
---
# Sovereign Anti-AI Slop & Craftsmanship Engine (2026 Unified Edition)
[English](#english) | [Bahasa Indonesia](#bahasa-indonesia)
---
## English
### Executive Directive & Trigger Conditions
The **Sovereign Anti-Slop Directive** is the uncompromising zero-tolerance standard governing all AI agent actions across the vibes-plug swarm. AI slop degrades developer trust, burns context tokens, bloats codebases, and introduces catastrophic production defects.
Anti-slop is a **filter, not a style guide**: it prescribes no fixed colors, fonts, or layouts—your creative direction remains yours. Removing slop clears away generic AI habits, while the **Liveliness Toolkit** ensures the final product is vivid, authentic, and deliberate rather than sterile.
**Universal Trigger Conditions:**
- **Every Code Generation & Modification**: Every function, component, or file created or modified by any agent.
- **Frontend & UI Work**: Design systems, page layouts, components, cards, dashboards, and responsive styling.
- **Copywriting & Prose**: Headlines, CTAs, product copy, documentation, commit messages, and PR summaries.
- **Code Comments**: Documentation comments, inline annotations, and docstrings.
- **Automated Quality Gates & PR Audits**: Code reviews (`coderabbit`), TDD loops (`autonomous-tdd-debugger`), and production release hardening (`production-ready-hardener`).
---
## Two Usage Modes Protocol
On every anti-slop activation, resolve the operational mode in this strict priority:
1. **Explicit Session Instruction**: User specifies `during` or `after` in the prompt. Announce once: `antislop active: (session override).`
2. **Global Preference**: Read `%APPDATA%\antislop\settings.json` (Windows) or `~/.config/antislop/settings.json` (macOS/Linux).
3. **Default Fallback**: Mode 1 (DURING) for new features/code generation; Mode 2 (AFTER) when auditing existing projects.
### Mode 1: DURING (Active Real-Time Prevention)
- Follow all 40 rules actively while generating code, copy, and UI.
- Prevents slop from being written in the first place.
- Conclude the task with the **Mandatory Delivery Gate** report.
### Mode 2: AFTER (Post-Build Audit & Remediation)
- Audit an existing or completed codebase/project without altering files prematurely.
- Generate a timestamped audit report in `anti-slop/audit-001-YYYY-MM-DD.md` (incrementing sequence).
- Each finding is strictly numbered, citing:
- Violated Rule ID (`R-XX`)
- Finding description & exact file/line
- Priority: Hard Gate = `HIGH`, Purpose-Gate = `MEDIUM`, Quality Lock = `LOW`
- **Hard Gate**: Wait for human approval of specific finding numbers. **Never touch unapproved items.**
- Remediate approved items and deliver a follow-up verification report.
---
## The 3-Tier Rule Framework (40 Mandatory Rules)
All 40 rules are organized into three distinct tiers with clear enforcement semantics:
1. **Hard Gate** (Tier 1): Absolute bans and mandatory requirements. Zero exceptions.
2. **Purpose-Gate** (Tier 2): Technique allowed ONLY when serving a stated hierarchy/identity purpose with written rationale. Includes strict dose caps.
3. **Quality Locks** (Tier 3): Craftsmanship and resilience standards.
```
┌────────────────────────────────────────────────────────────────────────┐
│ SOVEREIGN UNIFIED ANTI-SLOP RULE MATRIX │
└───────────────────────────────────┬────────────────────────────────────┘
│
┌───────────────────────────────┼───────────────────────────────┐
│ │ │
┌───▼───────────────────────────┐ ┌─▼───────────────────────────┐ ┌─▼───────────────────────────┐
│ TIER 1: HARD GATE │ │ TIER 2: PURPOSE-GATE │ │ TIER 3: QUALITY LOCKS │
│ (Absolute - Zero Exception) │ │ (Purpose & Written Reason) │ │ (Craftsmanship & Invar) │
├───────────────────────────────┤ ├─────────────────────────────┤ ├─────────────────────────────┤
│ R-02 Copywriting (Em Dash) │ │ R-01 Color & Gradients │ │ C-1 Intentionality │
│ R-03 Mobile Responsiveness │ │ R-04 Icons Relevance │ │ C-2 Functional Completeness │
│ R-17 Real Data & Numbers │ │ R-06 Typography Purpose │ │ C-3 Content-Driven Comp. │
│ R-18 Honest Testimonials │ │ R-07 Background Texture │ │ C-4 System Resilience │
│ R-23 Clarification & Assets │ │ R-08 Spacing Rhythm │ │ C-5 Evidence Over Claims │
│ R-24 Real Navigation Dests │ │ R-09 Layout Diversity │ └─────────────────────────────┘
│ R-25 WCAG AA Color Contrast │ │ R-10 Glassmorphism Cap (1-2)│
│ R-26 Functional Interactive │ │ R-11 Deliberate Radii │
│ R-27 Mandatory 3 UI States │ │ R-12 Grounded Shadows │
│ R-28 Product-Specific FAQ │ │ R-13 Focus Glow Cap (1-2) │
│ R-32 Keyboard Accessibility │ │ R-14 Purposeful Motion │
│ R-33 No Script File-Patching │ │ R-15 Action-Driven CTAs │
│ R-34 All Shipped Themes Work │ │ R-16 Buzzword Elimination │
│ R-35 Click-Through Evidence │ │ R-19 Contextual Visuals │
│ R-36 No Fabricated Claims │ │ R-20 Functional Decors Only │
│ R-37 Design Direction & Dials │ │ R-21 Authentic Demos │
│ R-38 Honest Placeholders │ │ R-22 Dark Mode Rationale │
│ │ │ R-29 No AI Capsule Badges │
│ │ │ R-30 No Redundant Eyebrows │
│ │ │ R-31 No Banner Comments │
└───────────────────────────────┘ └─────────────────────────────┘
```
---
### Tier 1: Hard Gate Rules (Absolute Zero-Tolerance)
Breaking any rule in this tier causes an automatic **FAIL** at the Delivery Gate.
#### R-02 — Copywriting: Em Dash Ban
- **FORBIDDEN**: The em dash character (`—`) in any AI-generated prose, marketing copy, or UI text.
- **Allowed Alternatives**: Comma (`,`), period (`.`), colon (`:`), semicolon (`;`), or parentheses `()`.
- **Rationale**: The em dash is the single most over-represented syntactic tell of synthetic text generation.
- **Carve-out**: Documentation formatting (e.g. `R-02 — Title`) is exempt; UI content and body prose are strictly subject to this ban.
#### R-03 — Mobile Responsiveness: Continuous Reflow
- **REQUIRED**: Mobile layout must be a dedicated, deliberate layout, never the desktop version shrunk down.
- Zero horizontal overflow (`overflow-x: hidden` used as a band-aid for broken layouts is forbidden).
- No text escaping container boundaries; no colliding cards or off-screen clipping.
- Minimum interactive touch target: **44x44px** (`min-h-[44px] min-w-[44px]`).
- Fluid viewport units: use `100dvh` instead of `100vh` to avoid mobile browser address bar jumps.
- Breakpoints must be placed where content breaks, not matched to arbitrary device marketing specs.
#### R-17 — Data & Numbers Authenticity
- **FORBIDDEN**: Hallucinated statistics, percentages, or metrics (`10,000+ users`, `99.9% uptime`, `500M queries`).
- If real verified data is unavailable, display **no numbers at all** or use an honest placeholder (`[REAL METRIC]`). Empty is infinitely better than deceptive.
#### R-18 — Testimonials & Social Proof
- **FORBIDDEN**: AI avatars, fictional customer names, invented job titles, or generated reviews.
- Do not generate a testimonials section unless provided with verified real customer quotes.
#### R-23 — Clarification & Honest Visual Placeholders
- **REQUIRED**: Never invent final logos, team avatars, or brand mascots on assumption.
- Confirm with user before generating brand assets. If rapid prototyping without feedback, use honest text markers: `[LOGO]`, initials avatar, or geometric placeholders. Disguising assumptions as final deliverables is forbidden.
#### R-24 — Navigation Integrity
- **FORBIDDEN**: Navbar items pointing to non-existent sections, dead anchors (`#`), or unbuilt routes.
- Every nav link must navigate to an existing, accessible route or section. Label unbuilt features explicitly as "Coming Soon".
#### R-25 — Color Contrast (WCAG 2.2 AA)
- **REQUIRED**: All text must meet WCAG AA contrast against its actual background:
- Normal text (<18px): **minimum 4.5:1 ratio**.
- Large text (≥18px bold or ≥24px regular): **minimum 3:1 ratio**.
- **FORBIDDEN**: Light grey text on white/light grey, dark grey on black without computation, or white text across variable photo/gradient backgrounds without a protective solid scrim.
- Contrast verification must be computed via `scripts/contrast-check.py` or mathematical formula; eyeball claims of AA compliance are rejected.
#### R-26 — Interactive Elements Completeness
- Every button, dropdown trigger, link, and toggle must possess authentic behavior or be eliminated:
- Links navigate to real destinations.
- Modals open, trap focus, and close with `Escape`.
- Forms validate inputs and display authentic submission feedback.
- Menus and accordions toggle state.
- **FORBIDDEN**: Dead buttons (`onClick={() => {}}`), empty hrefs, or static div look-alikes.
#### R-27 — Mandatory 3 UI States Contract
- **REQUIRED**: Every data-driven view or component must explicitly implement:
1. **Empty State**: Friendly contextual illustration/icon + 1-sentence explanation + primary action CTA.
2. **Loading State**: Geometry-matching pulsing skeleton matching the target shape (no full-page jarring spinners).
3. **Error State**: Actionable recovery message + retry button.
#### R-28 — Product-Specific FAQ
- **FORBIDDEN**: Template FAQ questions (*"Is my data secure?"*, *"Can I cancel anytime?"*) that lack specific domain relevance.
- If domain-specific questions cannot be answered truthfully, omit the FAQ section entirely.
#### R-32 — Keyboard Accessibility & Focus Indicator
- **REQUIRED**: Full keyboard navigability (`Tab` / `Shift+Tab`) following visual order.
- Actionable elements must trigger on `Enter` or `Space`.
- **FORBIDDEN**: Removing focus outline (`outline: none`, `focus:outline-none`) without providing an explicit high-contrast focus ring (`focus-visible:ring-2 focus-visible:ring-offset-2`).
#### R-33 — Prohibition of Script File-Patching
- **FORBIDDEN**: Adding features (e.g. dark mode, theme toggles) via external Python/Node helper scripts that perform regex or string replacement on `.css`/`.tsx` files.
- All styles and logic must be implemented cleanly in the source code files.
#### R-34 — All Shipped Themes Must Be 100% Functional
- If a theme switcher is provided, both Light and Dark modes must be fully styled, tested, and contrast-compliant. Shipping an unstyled or broken secondary mode is a Hard Gate failure.
#### R-35 — Verification & Click-Through Evidence
- **REQUIRED**: Build and execute the code before declaring completion.
- Inspect the terminal and browser console for runtime errors or warnings.
- Perform a manual click-through pass of every interactive element and record evidence in the Delivery Gate report.
#### R-36 — Zero Fabricated Compliance & Performance Claims
- **FORBIDDEN**: Fabricating compliance badges (*SOC 2 Type II Certified*, *ISO 27001*, *HIPAA Compliant*) or unverified performance claims (*300% faster*, *10x acceleration*) without authentic proof.
#### R-37 — Design Direction & Honest Default Dials
- Every UI must be anchored in `DESIGN.md` or explicit brand guidelines.
- If building without direction, you must explicitly declare the output as a *"Draft without direction"* and set the honest dials to **ENERGY 1 / RHYTHM 1 / MOTION 1**. Falling into a sterile default while pretending to have design direction is forbidden.
#### R-38 — Real Content or Honest Placeholder
- Every feature, card, and metric must represent genuine domain facts OR carry an explicit placeholder badge (`[REAL DATA]`). Never write semi-realistic placeholder fiction that deceives the viewer.
---
#### R-39 — Accessible Semantics & Interaction Affordances
- **REQUIRED**: Every enabled interactive element (`button`, `a[href]`, `select`, `summary`, `label[for]`, custom `role="button"` / `tab` / `switch`) must show `cursor: pointer`, declared once in the base CSS layer. Disabled controls must show `cursor: not-allowed`.
- **REQUIRED**: Actions must be semantic `