Skip to content

Rules for an AI coding agent to filter out generic AI-generated UI designs, text, and code.

v3.2.24: gate accessibility semantics and performance mechanisms as Hard Gate rules (#46)

Habibi Ahmad Aziz76969fb34945
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 25a2fac..9037183 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "antislop",
"source": "./",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."
}
]
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
index 673fa76..a99d491 100644
--- a/.claude-plugin/plugin.json
+++ b/.claude-plugin/plugin.json
@@ -1,7 +1,7 @@
{
"name": "antislop",
"displayName": "antislop",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json
index a2ebc7a..b17ef56 100644
--- a/.codex-plugin/plugin.json
+++ b/.codex-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json
index e5fbe2d..5e98bb3 100644
--- a/.cursor-plugin/plugin.json
+++ b/.cursor-plugin/plugin.json
@@ -2,7 +2,7 @@
"name": "antislop",
"displayName": "antislop",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
- "version": "3.2.23",
+ "version": "3.2.24",
"author": {
"name": "miqdadbadjuber"
},
diff --git a/.kimi-plugin/plugin.json b/.kimi-plugin/plugin.json
index 1c4da19..a91a077 100644
--- a/.kimi-plugin/plugin.json
+++ b/.kimi-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills.",
"author": {
"name": "miqdadbadjuber"
diff --git a/.omp-plugin/marketplace.json b/.omp-plugin/marketplace.json
index 25a2fac..9037183 100644
--- a/.omp-plugin/marketplace.json
+++ b/.omp-plugin/marketplace.json
@@ -8,7 +8,7 @@
{
"name": "antislop",
"source": "./",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Anti Slop: Rules for AI Coding Agents. Stops generic AI slop in generated UI, copy, and code. Loads as six skills."
}
]
diff --git a/GUIDE.md b/GUIDE.md
index 3401889..25825b5 100644
--- a/GUIDE.md
+++ b/GUIDE.md
@@ -45,7 +45,7 @@ This guide goes from zero to installed. Every route below carries its own update
A rulebook the assistant reads every session, plus optional skills that go deeper into one kind of work.
-- **38 rules in three tiers.** Hard Gate rules are absolute. The other two ask whether a choice has a purpose, and reject technique that has none.
+- **40 rules in three tiers.** Hard Gate rules are absolute. The other two ask whether a choice has a purpose, and reject technique that has none.
- **A Delivery Gate.** Before anything ships, the assistant runs a mandatory PASS/FAIL report you can check.
- **A Liveliness Toolkit.** Three dials and a Design Read, so the result comes out alive rather than merely clean.
- **Six skills.** One core that always loads, plus five that load only when a task needs them.
@@ -185,7 +185,7 @@ npx antislop-ai
Answer the questions exactly as you did the first time. When it reaches folders you already have, it prints what it found before asking anything:
```
-▲ Already here: antislop 3.2.22. This installer carries 3.2.23.
+▲ Already here: antislop 3.2.23. This installer carries 3.2.24.
```
Then it asks one extra question:
@@ -559,11 +559,11 @@ The core is always loaded. The five skills load only when your task needs them.
<!-- antislop:skills:start -->
### antislop
-The core, and it is always loaded. All 38 rules and the Delivery Gate live here, so every task gets them whether or not you pick anything else. The five skills below add depth to it.
+The core, and it is always loaded. All 40 rules and the Delivery Gate live here, so every task gets them whether or not you pick anything else. The five skills below add depth to it.
### antislop-ui
-Load it when the AI builds or restyles anything you can see: color, layout, cards, buttons, motion.
+Load it when the AI builds or restyles anything you can see: color, layout, cards, buttons, motion. Sized media and load priority are built in.
| What it covers | The patterns it names |
|----------------|-----------------------|
@@ -573,6 +573,7 @@ Load it when the AI builds or restyles anything you can see: color, layout, card
| Structural & Flow | Dead Navigation, Non-Functional Controls, Sections That Fill a Template |
| App & Dashboard | Default Dashboard Shell, Stat Cards With Invented Numbers, Filler Activity Feed, Charts Without a Question, Generic Table Columns, Filler Data in Fields and Columns, Placeholder Empty and Loading States |
| Motion | Endless Pulses and Loops, Template Animations Stacked |
+| Performance | Unsized Media That Shifts the Layout, Hero Image Loaded Like Any Other Image, Render-Blocking Third-Party Script |
### antislop-copywriting
@@ -587,7 +588,7 @@ Load it when the AI writes or edits text: headlines, buttons, emails, or a page
### antislop-human
-Load it when real people have to use the result. Readable colors, keyboard use, visible focus, button states, and the contrast checker.
+Load it when real people have to use the result. Readable colors, keyboard use, visible focus, button states, the pointer cursor and other interaction affordances, WCAG 2.2 references, and the contrast checker.
| What it covers | The patterns it names |
|----------------|-----------------------|
@@ -595,6 +596,7 @@ Load it when real people have to use the result. Readable colors, keyboard use,
| Keyboard | Removed Focus Outline, Mouse-Only Patterns, Broken Tab Order |
| Focus & States | Weak or Invisible Focus Indicator, Color-Only Feedback, Missing UI States |
| Zoom & Mobile Use | Text That Cannot Zoom, Mobile Keyboard Covers the Form |
+| Interaction Affordances | Clickable Without a Pointer Cursor, Div or Span Pretending to Be a Control, Icon-Only Control With No Name, No Hover, Active, or Disabled State, Motion That Ignores the User Setting, Form Field Without a Real Label, Missing Page-Level Semantics (whole documents only) |
### antislop-layoutmobile
diff --git a/README.md b/README.md
index e9212b0..c497a5c 100644
--- a/README.md
+++ b/README.md
@@ -152,7 +152,7 @@ curl -o antislop.md https://raw.githubusercontent.com/miqdadbadjuber/anti-slop/m
## What it does
-- **38 mandatory rules** (R-01 to R-38) in three tiers: Hard Gate, Purpose-Gate, and Quality Locks.
+- **40 mandatory rules** (R-01 to R-40) in three tiers: Hard Gate, Purpose-Gate, and Quality Locks.
- **A Liveliness Toolkit**: three dials (ENERGY / RHYTHM / MOTION) and a Design Read, so the result comes out alive rather than merely clean.
- **A Delivery Gate**: a mandatory PASS/FAIL report in four blocks, run before anything ships.
- **Six skills**, one per concern, so an agent loads only what a task needs.
@@ -212,7 +212,11 @@ A folder that goes deeper into one concern, holding a `SKILL.md` with its rules.
## Roadmap
-**v3.2.23** fixes the version the installer reports for a plugin copy. A Kimi Code, Cline, or Oh My Pi store that kept an old copy beside the new one could report the old version, and Codex ranked 3.2.9 above 3.2.22. `npx antislop-ai --update` run from the home folder also stops writing a pointer into `~/CLAUDE.md`, `~/AGENTS.md`, and `~/GEMINI.md`.
+**v3.2.24** adds two Hard Gate rules, so a control that passes the gate is also one people can use:
+
+- **R-39 Accessible Semantics & Interaction Affordances.** A pointer cursor on every enabled control, real buttons and links, accessible names, visible states, labels, and reduced motion, plus `lang`, `<title>`, and landmarks when the task produces a whole page. The depth lives in `antislop-human`.
+- **R-40 Performance Mechanisms.** Sized media, a hero image that is never lazy loaded, no render-blocking third-party script, and no performance number reported unless it was measured. The depth lives in `antislop-ui`.
+- **References read on demand.** WCAG 2.2, accessibility patterns, and Core Web Vitals in each skill's `references/` folder, adapted from the MIT-licensed web-quality-skills, plus an optional web baseline checklist.
Every earlier release, and what comes next, is in [ROADMAP.md](ROADMAP.md).
@@ -226,7 +230,7 @@ Thanks to everyone who helps make antislop better.
<p align="center">
<a href="https://github.com/miqdadbadjuber/anti-slop/graphs/contributors">
- <img src="https://contrib.rocks/image?repo=miqdadbadjuber/anti-slop&v=3.2.23" alt="antislop contributors" />
+ <img src="https://contrib.rocks/image?repo=miqdadbadjuber/anti-slop&v=3.2.24" alt="antislop contributors" />
</a>
</p>
diff --git a/ROADMAP.md b/ROADMAP.md
index 9308b65..0bc453b 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -11,9 +11,9 @@
## Where we are
-The latest release is **v3.2.23**. antislop is a packaged system: a lean, always-loaded core plus five additive skills, each a standard agent skill folder at `skills/<name>/SKILL.md`.
+The latest release is **v3.2.24**. antislop is a packaged system: a lean, always-loaded core plus five additive skills, each a standard agent skill folder at `skills/<name>/SKILL.md`.
-- **The core.** 38 rules in three tiers (Hard Gate, Purpose-Gate, Quality Locks), a Liveliness Toolkit, a mandatory Delivery Gate, and two usage modes (During / After). The single-file `antislop.md` is the same filter, pasteable into any chat window.
+- **The core.** 40 rules in three tiers (Hard Gate, Purpose-Gate, Quality Locks), a Liveliness Toolkit, a mandatory Delivery Gate, and two usage modes (During / After). The single-file `antislop.md` is the same filter, pasteable into any chat window.
- **Usage-mode preferences.** Saving a global mode is opt-in. Without a settings file, every session still asks during or after. Saved modes announce their source, explicit session choices take precedence, and `--mode ask` restores the question.
- **The skills.** `antislop` (the core), plus `antislop-ui`, `antislop-copywriting`, `antislop-human`, `antislop-layoutmobile`, and `antislop-code`. Each loads only when a task needs it.
- **Distribution.** Eleven install paths from one repository: the interactive installer (`npx antislop-ai`), the skills.sh directory, native plugin doors for Claude Code, Antigravity, Codex, Cursor, Kimi Code, Cline, and Oh My Pi, the Pi package read from the root `package.json`, and the single file you paste into any chat. The README lists the commands; the guide walks each route from zero.
@@ -64,6 +64,7 @@ Up to v3.0.0 each +0.1 shipped exactly one new skill, which kept the filter pull
| v3.2.21 | The contrast checker reads the threshold from the unrounded ratio, so a pairing between 4.495 and 4.5 no longer reports 4.50 and passes 4.5:1. From community PR #43. |
| v3.2.22 | Maintenance round. The installer names all seven plugin doors, adding Kimi Code, Cline, and Oh My Pi, and CI runs on macOS alongside Linux and Windows. |
| v3.2.23 | The plugin-door probes report the newest copy when a store holds more than one, Codex versions compare as numbers, and `--update` run from the home folder no longer writes a pointer there. |
+| v3.2.24 | Two Hard Gate rules: R-39 for semantics and interaction affordances, with page-level semantics only when the task produces a whole document, and R-40 for the performance mechanisms the code shows (sized media, an eager hero image, no render-blocking third-party script, no unmeasured numbers). The depth is native to `antislop-human` and `antislop-ui`, with WCAG 2.2, accessibility-pattern, and Core Web Vitals references adapted from the MIT-licensed web-quality-skills and read on demand. From community PR #46. |
## What's next
@@ -77,7 +78,6 @@ Every door is verified against the vendor's current documentation before its ver
| Version | Item | What it means |
|---------|------|---------------|
-| v3.2.24 | Community PR | Three Hard Gate rules: semantics and interaction affordances, a Core Web Vitals budget, and page basics with a security baseline. |
| v3.2.25 | Community PR | Additional copywriting rules in antislop-copywriting. |
| v3.2.26 | DeepSeek harness plugin | The harness becomes the eighth plugin door once its documentation is confirmed. |
diff --git a/antislop.md b/antislop.md
index dc3a3aa..a2b8b4a 100644
--- a/antislop.md
+++ b/antislop.md
@@ -173,7 +173,7 @@ Anything presented as fact (testimonials, statistics, security claims) is real a
## Part 1: AI Slop Patterns (Warning Signs)
-These are the most common patterns found in AI-generated designs. Use this table to **audit** your output: scan for clusters, then ask each one "what does this serve?" A single pattern from this list is fine if it serves a purpose, unless a **Hard Gate** rule in Part 2 forbids it (R-02, R-03, R-17, R-18, R-23 to R-28, R-32 to R-38). What makes a design slop is many of these appearing together with no reason. This is a **diagnostic scan, not a ban list**: Part 1 itself bans nothing, but the Hard Gate rules in Part 2 are absolute, and every other pattern must pass the purpose test (Part 2, Purpose-Gate group).
+These are the most common patterns found in AI-generated designs. Use this table to **audit** your output: scan for clusters, then ask each one "what does this serve?" A single pattern from this list is fine if it serves a purpose, unless a **Hard Gate** rule in Part 2 forbids it (R-02, R-03, R-17, R-18, R-23 to R-28, R-32 to R-40). What makes a design slop is many of these appearing together with no reason. This is a **diagnostic scan, not a ban list**: Part 1 itself bans nothing, but the Hard Gate rules in Part 2 are absolute, and every other pattern must pass the purpose test (Part 2, Purpose-Gate group).
### Visual & Color
@@ -265,9 +265,9 @@ These are the most common patterns found in AI-generated designs. Use this table
---
-## Part 2: Mandatory Rules (R-01 to R-38, grouped)
+## Part 2: Mandatory Rules (R-01 to R-40, grouped)
-All 38 rules still apply. They are grouped into three tiers so the mechanism is explicit: **Hard Gate** rules are absolute, **Purpose-Gate** rules allow the technique but require a written reason, **Quality Locks** are consistency requirements.
+All 40 rules still apply. They are grouped into three tiers so the mechanism is explicit: **Hard Gate** rules are absolute, **Purpose-Gate** rules allow the technique but require a written reason, **Quality Locks** are consistency requirements.
### Group 1: Hard Gate (absolute, no exceptions)
@@ -424,6 +424,30 @@ If an element genuinely cannot have a destination yet, remove it instead of ship
- Placeholders are written as what they are: `[REAL DATA]`, "Coming soon", never disguised as final (see R-23)
- An empty section is better than a fabricated one
+#### R-39 — Accessible Semantics & Interaction Affordances
+
+Every control the task builds or edits must say what it is and that it can be used. Keyboard operation and the focus indicator are R-32; touch target size is R-03.
+
+- **REQUIRED**: every enabled interactive element (`a[href]`, `button`, `summary`, `select`, `label[for]`, checkbox, radio, custom `role="button"`/`tab`/`switch`) shows `cursor: pointer`, set once in the base CSS layer; disabled controls show `cursor: not-allowed`
+- **REQUIRED**: actions are `<button>`, navigation is `<a href>` to a real destination; no clickable `div`/`span`, and a custom control that cannot be native also meets R-32
+- **REQUIRED**: every control has an accessible name (icon-only buttons get `aria-label` or visually hidden text, the icon gets `aria-hidden="true"`); every image has `alt` (empty `alt=""` when decorative); every form field has a visible `<label>`
+- **REQUIRED**: distinct hover, active, and disabled states, never color alone
+- **REQUIRED**: non-essential motion stops under `prefers-reduced-motion: reduce`; anything moving longer than 5 seconds has a pause control
+- **FORBIDDEN**: ARIA that contradicts the native role
+- **Only when the task produces a whole HTML document** (a page or an app shell, not a component):
+ - **REQUIRED**: `<html lang>`, a unique `<title>`, landmarks (`header`, `nav`, `main`, `footer`), one `h1` and no skipped heading levels
+ - **FORBIDDEN**: `user-scalable=no` or `maximum-scale=1` in the viewport meta
+- A UI that looks finished but cannot be perceived or operated by everyone is unfinished
+
+#### R-40 — Performance Mechanisms
+
+The gate checks what the code shows. The Core Web Vitals thresholds (LCP, INP, CLS at p75) are field data from real users, which the agent writing the page does not have, so they live in `antislop-ui`'s `references/CORE-WEB-VITALS.md` for when real measurements exist.
+
+- **REQUIRED**: every `<img>`, `<video>`, and `<iframe>` has `width` and `height` (or `aspect-ratio`); space for late content (ads, embeds, banners) is reserved
+- **REQUIRED**: the hero image is an `<img>` in the HTML, never `loading="lazy"`, with `fetchpriority="high"`
+- **REQUIRED**: no render-blocking third-party script in `<head>`; non-critical scripts are `defer`/`async` or loaded on interaction
+- **FORBIDDEN**: reporting a Lighthouse score or a Web Vitals number that was not measured (see R-36). If it was not measured, say "not measured"
+
### Group 2: Purpose-Gate (technique allowed, purpose required)
Each technique below is allowed. It FAILS only when it appears as a default without a stated purpose, or when the reason for it is not written down. Every rule has the same shape: FORBIDDEN as default without purpose; ALLOWED when it serves hierarchy/identity and the reason is written; dose caps for the excessive cases.
@@ -667,6 +691,8 @@ Before declaring the design done, answer every question below. All answers must
- [ ] Are there any fabricated security, compliance, performance, or customer claims? *(R-36)*
- [ ] Was the design built without direction and not labeled *"draft without direction"* with honest default dials ENERGY 1 / RHYTHM 1 / MOTION 1? *(R-37)*
- [ ] Is there any realistically-styled content that was fabricated (testimonials, features, statistics, ghost links, fictional team) without a real source? *(R-38)*
+- [ ] Does any control lack `cursor: pointer`, a native element, an accessible name, or hover/active/disabled states; any field a visible label or image its `alt`; does motion ignore `prefers-reduced-motion`; or does a whole document lack `lang`, `<title>`, or landmarks, or block zoom? *(R-39)*
+- [ ] Does any media element ship without dimensions, the hero image load lazily or without `fetchpriority="high"`, a third-party script block render in `<head>`, or a performance number get reported that was not measured? *(R-40)*
### Block 2: Purpose-Gate (technique allowed, reason required)
diff --git a/cli/index.mjs b/cli/index.mjs
index 6cfc73a..8c8859d 100644
--- a/cli/index.mjs
+++ b/cli/index.mjs
@@ -21,9 +21,9 @@ import {
} from './lib/install.mjs'
const EXTRA_SKILLS = [
- { value: 'antislop-ui', label: 'antislop-ui', hint: 'UI and visual design rules' },
+ { value: 'antislop-ui', label: 'antislop-ui', hint: 'UI and visual design rules, with performance mechanisms' },
{ value: 'antislop-copywriting', label: 'antislop-copywriting', hint: 'copywriting and text rules' },
- { value: 'antislop-human', label: 'antislop-human', hint: 'accessibility, with the contrast checker' },
+ { value: 'antislop-human', label: 'antislop-human', hint: 'accessibility (WCAG 2.2, affordances), with the contrast checker' },
{ value: 'antislop-layoutmobile', label: 'antislop-layoutmobile', hint: 'responsive layout rules' },
{ value: 'antislop-code', label: 'antislop-code', hint: 'code comment rules' },
]
diff --git a/cli/lib/banner.mjs b/cli/lib/banner.mjs
index 8e2199d..bbc08b5 100644
--- a/cli/lib/banner.mjs
+++ b/cli/lib/banner.mjs
@@ -15,7 +15,7 @@ export function banner() {
...LOGO,
'',
' ' + pc.dim('Anti Slop: Rules for AI Coding Agents'),
- ' ' + pc.dim('installer v3.2.23'),
+ ' ' + pc.dim('installer v3.2.24'),
'',
].join('\n')
}
diff --git a/cli/package-lock.json b/cli/package-lock.json
index a00af44..5de52b2 100644
--- a/cli/package-lock.json
+++ b/cli/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "antislop-ai",
- "version": "3.2.23",
+ "version": "3.2.24",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "antislop-ai",
- "version": "3.2.23",
+ "version": "3.2.24",
"license": "MIT",
"dependencies": {
"@clack/prompts": "^1.7.0",
diff --git a/cli/package.json b/cli/package.json
index d58404a..39bc43f 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "antislop-ai",
- "version": "3.2.23",
+ "version": "3.2.24",
"description": "Interactive installer for the antislop skills. Anti Slop: Rules for AI Coding Agents.",
"type": "module",
"bin": {
diff --git a/package.json b/package.json
index 52163cf..66ebba1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "antislop",
- "version": "3.2.23",
+ "version": "3.2.24",
"private": true,
"type": "module",
"description": "Anti Slop: Rules for AI Coding Agents.",
diff --git a/scripts/skill-index.mjs b/scripts/skill-index.mjs
index b695cbb..190efe4 100644
--- a/scripts/skill-index.mjs
+++ b/scripts/skill-index.mjs
@@ -17,13 +17,13 @@ export const END = '<!-- antislop:skills:end -->'
// description is written for an agent to match on, not for a person to read.
const NOTES = {
antislop:
- 'The core, and it is always loaded. All 38 rules and the Delivery Gate live here, so every task gets them whether or not you pick anything else. The five skills below add depth to it.',
+ 'The core, and it is always loaded. All 40 rules and the Delivery Gate live here, so every task gets them whether or not you pick anything else. The five skills below add depth to it.',
'antislop-ui':
- 'Load it when the AI builds or restyles anything you can see: color, layout, cards, buttons, motion.',
+ 'Load it when the AI builds or restyles anything you can see: color, layout, cards, buttons, motion. Sized media and load priority are built in.',
'antislop-copywriting':
'Load it when the AI writes or edits text: headlines, buttons, emails, or a page of prose. It removes the excited, empty voice and the made-up numbers.',
'antislop-human':
- 'Load it when real people have to use the result. Readable colors, keyboard use, visible focus, button states, and the contrast checker.',
+ 'Load it when real people have to use the result. Readable colors, keyboard use, visible focus, button states, the pointer cursor and other interaction affordances, WCAG 2.2 references, and the contrast checker.',
'antislop-layoutmobile':
'Load it when the same page has to work on a phone and on a desktop. Reflow, breakpoints, overflow, tap targets, mobile navigation.',
'antislop-code':
diff --git a/skills/antislop-human/LICENSE-web-quality-skills b/skills/antislop-human/LICENSE-web-quality-skills
new file mode 100644
index 0000000..90715bb
--- /dev/null
+++ b/skills/antislop-human/LICENSE-web-quality-skills
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Addy Osmani
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/skills/antislop-human/SKILL.md b/skills/antislop-human/SKILL.md
index 273bbf9..a7d096e 100644
--- a/skills/antislop-human/SKILL.md
+++ b/skills/antislop-human/SKILL.md
@@ -138,6 +138,59 @@ The layout mechanics behind mobile (breakpoints, scale, grids, overflow, tap tar
- **Why:** a form the user cannot see or reach is a form they cannot complete. It is a mobile-only exclusion (R-03).
- **Fix:** when an input is focused, it scrolls into view above the keyboard, with enough bottom padding that the focused field is never covered. Test with a real device or an emulated keyboard.
+## Interaction Affordances
+
+Enforced by R-39: the small signals that tell a person "this can be used". Keyboard and focus stay with R-32, target size with R-03.
+
+### Clickable Without a Pointer Cursor
+
+- **Tell:** a `<button>`, a `<summary>`, a `<label>` for a checkbox, a custom `[role="button"]`, a clickable card, or a styled `<select>` that keeps the arrow cursor. Common after a CSS reset (Tailwind preflight resets `button` to `cursor: default`).
+- **Why:** the cursor is the first affordance a mouse user reads. An arrow over a control says "this is text", so people hesitate or never click. It reads as a template that was styled but never used.
+- **Fix:** every enabled interactive element gets `cursor: pointer`, set once in the base layer, not per component; disabled controls get `cursor: not-allowed`. Never put `cursor: pointer` on something that does nothing (R-26). The base-layer selector list is in [references/A11Y-PATTERNS.md](references/A11Y-PATTERNS.md).
+
+### Div or Span Pretending to Be a Control
+
+- **Tell:** `<div onClick>`, `<span onClick>`, or `<a>` without `href` used as a button; `<a href="#" onClick>` used for an action.
+- **Why:** it has no role, so a screen reader does not announce it as a control, and it drops out of keyboard use.
+- **Fix:** an action is a `<button type="button">`, a navigation is an `<a href>` to a real destination. A custom control that cannot be native gets a `role`, its state attributes (`aria-pressed`, `aria-expanded`), and full keyboard support (R-32).
+
+### Icon-Only Control With No Name
+
+- **Tell:** a close, menu, search, or social button that contains only an SVG or icon font, with no text, `aria-label`, or visually hidden label.
+- **Why:** a screen reader announces "button" and nothing else. Voice-control users cannot say its name.
+- **Fix:** give it an accessible name (`aria-label="Close dialog"` or a `.sr-only` span) that matches the visible word, and mark the icon `aria-hidden="true"`.
+
+### No Hover, Active, or Disabled State
+
+- **Tell:** buttons and links that look identical at rest, on hover, while pressed, and when disabled; a disabled button that is only greyed out and still clickable.
+- **Why:** state feedback tells people their action registered. Without it a click feels lost and a disabled control looks broken.
+- **Fix:** distinct `:hover`, `:active`, and disabled styles, held to the Non-Text Contrast bar above. Prefer the `disabled` attribute; a disabled control that must stay focusable uses `aria-disabled="true"` and blocks the action in code.
+
+### Motion That Ignores the User Setting
+
+- **Tell:** parallax, auto-playing carousels, scroll-jacking, or large entrance animations that still run under `prefers-reduced-motion: reduce`.
+- **Why:** motion can trigger nausea and vestibular disorders, and an auto-advancing carousel moves content away from slow readers.
+- **Fix:** wrap non-essential motion in `@media (prefers-reduced-motion: no-preference)`, and give anything that moves for more than 5 seconds a visible pause control.
+
+### Form Field Without a Real Label
+
+- **Tell:** a placeholder as the only label, or a label not tied to its input.
+- **Why:** the placeholder disappears on typing, and an unlabeled input is announced as "edit text".
+- **Fix:** a visible `<label for>` on every field. Error text follows Color-Only Feedback above.
+
+### Missing Page-Level Semantics (whole documents only)
+
+- **Tell:** a page with no `lang` on `<html>`, no `<main>`, headings chosen for size instead of order, or a generic `<title>`.
+- **Why:** screen-reader users move by landmarks, headings, and the title; without them the page is one undifferentiated stream, read in the wrong voice.
+- **Fix:** applies only when the task produces a whole document, never to a single component: `<html lang>`, one `<main>` with `<header>`/`<nav>`/`<footer>`, one `<h1>` and no skipped levels, and a unique `<title>`. Skip links are under Broken Tab Order (R-32).
+
+## WCAG 2.2 Depth
+
+Read on demand, instead of guessing a success criterion:
+
+- [references/A11Y-PATTERNS.md](references/A11Y-PATTERNS.md): copy-ready markup for the pointer-cursor base layer, modal focus traps, skip links, form labels, error announcement, dragging alternatives, ARIA tabs, and live regions.
+- [references/WCAG.md](references/WCAG.md): every WCAG 2.2 success criterion by level, for checking a conformance claim. A Lighthouse score alone never proves conformance (R-36).
+
## Human Skill Checklist
Run these alongside the core Delivery Gate when the task involves UI. All answers must be **yes**:
@@ -148,3 +201,4 @@ Run these alongside the core Delivery Gate when the task involves UI. All answer
- [ ] Is every interactive element reachable and operable by keyboard, with dialogs closable via Escape and no `outline: none` without a replacement? (R-32, R-26)
- [ ] Are the empty, loading, and error states of every data view present and perceivable, not color-only? (R-27, C-4)
- [ ] Can text be resized to 200% without being clipped, and does the mobile keyboard never cover a focused input? (R-35)
+- [ ] Does every enabled control show `cursor: pointer`, use a native element, carry an accessible name and a visible label, and respect `prefers-reduced-motion`? (R-39)
diff --git a/skills/antislop-human/contrast-mcp.py b/skills/antislop-human/contrast-mcp.py
index d1d80ca..4b47345 100644
--- a/skills/antislop-human/contrast-mcp.py
+++ b/skills/antislop-human/contrast-mcp.py
@@ -8,7 +8,7 @@ import sys
PROTOCOL_VERSION = "2024-11-05"
SERVER_NAME = "antislop-contrast"
-SERVER_VERSION = "3.2.23"
+SERVER_VERSION = "3.2.24"
TOOLS = [
{
diff --git a/skills/antislop-human/references/A11Y-PATTERNS.md b/skills/antislop-human/references/A11Y-PATTERNS.md
new file mode 100644
index 0000000..8d74a49
--- /dev/null
+++ b/skills/antislop-human/references/A11Y-PATTERNS.md
@@ -0,0 +1,236 @@
+# Accessibility Code Patterns
+
+> Reference for antislop. Adapted from the MIT-licensed web-quality-skills by Addy Osmani (https://github.com/addyosmani/web-quality-skills); see LICENSE-web-quality-skills in the skill folder.
+
+Practical, copy-paste-ready patterns for common accessibility requirements. Each pattern is self-contained and linked from the main [SKILL.md](../SKILL.md).
+
+---
+
+## Pointer cursor base layer
+
+Set once, in the base CSS layer, so no component has to remember it (R-39). A CSS reset such as Tailwind preflight sets `button` to `cursor: default`, so this layer comes after the reset.
+
+```css
+a[href], button, summary, select, label[for],
+[role="button"], [role="link"], [role="tab"], [role="menuitem"], [role="option"], [role="switch"],
+input[type="checkbox"], input[type="radio"], input[type="file"],
+input[type="submit"], input[type="button"], input[type="reset"], input[type="range"], input[type="color"] {
+ cursor: pointer;
+}
+:disabled, [aria-disabled="true"] { cursor: not-allowed; }
+```
+
+Text inputs keep `cursor: text`, and drag handles use `grab` / `grabbing`.
+
+## Modal focus trap
+
+Trap keyboard focus inside a modal dialog so Tab/Shift+Tab cycle through its focusable elements and Escape closes it.
+
+```javascript
+function openModal(modal) {
+ const focusableElements = modal.querySelectorAll(
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
+ );
+ const firstElement = focusableElements[0];
+ const lastElement = focusableElements[focusableElements.length - 1];
+
+ modal.addEventListener('keydown', (e) => {
+ if (e.key === 'Tab') {
+ if (e.shiftKey && document.activeElement === firstElement) {
+ e.preventDefault();
+ lastElement.focus();
+ } else if (!e.shiftKey && document.activeElement === lastElement) {
+ e.preventDefault();
+ firstElement.focus();
+ }
+ }
+ if (e.key === 'Escape') {
+ closeModal();
+ }
+ });
+
+ firstElement.focus();
+}
+```
+
+The native `<dialog>` element handles focus trapping automatically, prefer it when browser support allows.
+
+---
+
+## Skip link
+
+Allows keyboard users to bypass repetitive navigation and jump straight to main content.
+
+```html
+<body>
+ <a href="#main-content" class="skip-link">Skip to main content</a>
+ <header><!-- navigation --></header>
+ <main id="main-content" tabindex="-1">
+ <!-- main content -->
+ </main>
+</body>
+```
+
+```css
+.skip-link {
+ position: absolute;
+ top: -40px;
+ left: 0;
+ background: #000;
+ color: #fff;
+ padding: 8px 16px;
+ z-index: 100;
+}
+
+.skip-link:focus {
+ top: 0;
+}
+```
+
+---
+
+## Error handling
+
+Announce errors to screen readers and focus the first invalid field on submit.
+
+```html
+<form novalidate>
+ <div class="field" aria-live="polite">
+ <label for="email">Email</label>
+ <input type="email" id="email"
+ aria-invalid="true"
+ aria-describedby="email-error">
+ <p id="email-error" class="error" role="alert">
+ Please enter a valid email address (e.g., [email protected])
+ </p>
+ </div>
+</form>
+```
+
+```javascript
+form.addEventListener('submit', (e) => {
+ const firstError = form.querySelector('[aria-invalid="true"]');
+ if (firstError) {
+ e.preventDefault();
+ firstError.focus();
+
+ const errorSummary = document.getElementById('error-summary');
+ errorSummary.textContent =
+ `${errors.length} errors found. Please fix them and try again.`;
+ errorSummary.focus();
+ }
+});
+```
+
+---
+
+## Form labels
+
+Every input needs an associated label, either explicit (`for`/`id`) or implicit (wrapping `<label>`).
+
+```html
+<!-- ❌ No label association -->
+<input type="email" placeholder="Email">
+
+<!-- ✅ Explicit label -->
+<label for="email">Email address</label>
+<input type="email" id="email" name="email"
+ autocomplete="email" required>
+
+<!-- ✅ Implicit label -->
+<label>
+ Email address
+ <input type="email" name="email" autocomplete="email" required>
+</label>
+
+<!-- ✅ With instructions -->
+<label for="password">Password</label>
+<input type="password" id="password"
+ aria-describedby="password-requirements">
+<p id="password-requirements">
+ Must be at least 8 characters with one number.
+</p>
+```
+
+---
+
+## Dragging movements
+
+Any action triggered by dragging must offer a single-pointer alternative (WCAG 2.5.7).
+
+```html
+<!-- ❌ Drag-only reorder -->
+<ul class="sortable-list" draggable="true">
+ <li>Item 1</li>
+ <li>Item 2</li>
+</ul>
+
+<!-- ✅ Drag + button alternatives -->
+<ul class="sortable-list">
+ <li>
+ <span>Item 1</span>
+ <button aria-label="Move Item 1 up">↑</button>
+ <button aria-label="Move Item 1 down">↓</button>
+ </li>
+ <li>
+ <span>Item 2</span>
+ <button aria-label="Move Item 2 up">↑</button>
+ <button aria-label="Move Item 2 down">↓</button>
+ </li>
+</ul>
+```
+
+Also applies to sliders, map panning, colour pickers, and similar drag-based widgets, always provide an equivalent click/tap or keyboard path.
+
+---
+
+## ARIA tabs
+
+Tabs require `role="tablist"`, `role="tab"`, and `role="tabpanel"` with proper `aria-selected`, `aria-controls`, and keyboard support.
+
+```html
+<div role="tablist" aria-label="Product information">
+ <button role="tab" id="tab-1" aria-selected="true"
+ aria-controls="panel-1">Description</button>
+ <button role="tab" id="tab-2" aria-selected="false"
+ aria-controls="panel-2" tabindex="-1">Reviews</button>
+</div>
+<div role="tabpanel" id="panel-1" aria-labelledby="tab-1">
+ <!-- Panel content -->
+</div>
+<div role="tabpanel" id="panel-2" aria-labelledby="tab-2" hidden>
+ <!-- Panel content -->
+</div>
+```
+
+Arrow keys should move focus between tabs; the active tab receives `tabindex="0"` while inactive tabs use `tabindex="-1"`.
+
+---
+
+## Live regions and notifications
+
+Use `aria-live` to announce dynamic content changes to screen readers without moving focus.
+
+```html
+<!-- Status updates (polite, waits for pause in speech) -->
+<div aria-live="polite" aria-atomic="true" class="status">
+ <!-- Content updates announced to screen readers -->
+</div>
+
+<!-- Urgent alerts (assertive, interrupts) -->
+<div role="alert" aria-live="assertive">
+ <!-- Interrupts current announcement -->
+</div>
+```
+
+```javascript
+function showNotification(message, type = 'polite') {
+ const container = document.getElementById(`${type}-announcer`);
+ container.textContent = '';
+ requestAnimationFrame(() => {
+ container.textContent = message;
+ });
+}
+```
+
+Clear the container before writing to ensure the same message triggers a new announcement.
diff --git a/skills/antislop-human/references/WCAG.md b/skills/antislop-human/references/WCAG.md
new file mode 100644
index 0000000..34ce8a3
--- /dev/null
+++ b/skills/antislop-human/references/WCAG.md
@@ -0,0 +1,119 @@
+# WCAG 2.2 Quick Reference
+
+> Reference for antislop. Adapted from the MIT-licensed web-quality-skills by Addy Osmani (https://github.com/addyosmani/web-quality-skills); see LICENSE-web-quality-skills in the skill folder.
+
+## Success criteria by level
+
+### Level A (minimum)
+
+| Criterion | Description |
+|-----------|-------------|
+| **1.1.1** Non-text Content | All images, icons have text alternatives |
+| **1.2.1** Audio-only/Video-only | Provide transcript or audio description |
+| **1.2.2** Captions | Video with audio has captions |
+| **1.2.3** Audio Description | Video has audio description |
+| **1.3.1** Info and Relationships | Information conveyed through presentation is available programmatically |
+| **1.3.2** Meaningful Sequence | Reading order is logical |
+| **1.3.3** Sensory Characteristics | Instructions don't rely solely on shape, color, size, location, orientation, or sound |
+| **1.4.1** Use of Color | Color is not the only visual means of conveying information |
+| **1.4.2** Audio Control | Audio playing automatically can be paused/stopped |
+| **2.1.1** Keyboard | All functionality available via keyboard |
+| **2.1.2** No Keyboard Trap | Keyboard focus can be moved away from any component |
+| **2.1.4** Character Key Shortcuts | Single-key shortcuts can be turned off or remapped |
+| **2.2.1** Timing Adjustable | Time limits can be extended |
+| **2.2.2** Pause, Stop, Hide | Moving/blinking content can be paused |
+| **2.3.1** Three Flashes | Nothing flashes more than 3 times per second |
+| **2.4.1** Bypass Blocks | Skip link or landmark navigation available |
+| **2.4.2** Page Titled | Pages have descriptive titles |
+| **2.4.3** Focus Order | Focus order preserves meaning |
+| **2.4.4** Link Purpose | Link purpose clear from link text or context |
+| **2.5.1** Pointer Gestures | Multi-point gestures have single-pointer alternatives |
+| **2.5.2** Pointer Cancellation | Down-event doesn't trigger action (use up-event or click) |
+| **2.5.3** Label in Name | Accessible name contains visible label text |
+| **2.5.4** Motion Actuation | Motion-triggered functions have alternatives |
+| **3.1.1** Language of Page | Default language specified in HTML |
+| **3.2.1** On Focus | Focus doesn't trigger unexpected changes |
+| **3.2.2** On Input | Input doesn't trigger unexpected changes |
+| **3.2.6** Consistent Help | Help mechanisms appear in the same relative order across pages |
+| **3.3.1** Error Identification | Input errors clearly described |
+| **3.3.2** Labels or Instructions | Form inputs have labels or instructions |
+| **3.3.7** Redundant Entry | Information previously entered is auto-populated or available to select |
+| **4.1.2** Name, Role, Value | UI components have accessible names and correct roles |
+
+### Level AA (standard)
+
+| Criterion | Description |
+|-----------|-------------|
+| **1.2.4** Captions (Live) | Live audio has captions |
+| **1.2.5** Audio Description | Pre-recorded video has audio description |
+| **1.3.4** Orientation | Content doesn't restrict orientation |
+| **1.3.5** Identify Input Purpose | Input purpose can be programmatically determined |
+| **1.4.3** Contrast (Minimum) | 4.5:1 for normal text, 3:1 for large text |
+| **1.4.4** Resize Text | Text can be resized to 200% without loss of functionality |
+| **1.4.5** Images of Text | Text used instead of images of text |
+| **1.4.10** Reflow | Content reflows at 320px width without horizontal scroll |
+| **1.4.11** Non-text Contrast | UI components have 3:1 contrast |
+| **1.4.12** Text Spacing | Content adapts to text spacing changes |
+| **1.4.13** Content on Hover/Focus | Additional content is dismissible, hoverable, persistent |
+| **2.4.5** Multiple Ways | Multiple ways to find pages |
+| **2.4.6** Headings and Labels | Headings and labels are descriptive |
+| **2.4.7** Focus Visible | Focus indicator is visible |
+| **2.4.11** Focus Not Obscured (Minimum) | Focused element is not entirely hidden by author-created content |
+| **2.5.7** Dragging Movements | Dragging actions have single-pointer alternatives |
+| **2.5.8** Target Size (Minimum) | Interactive targets are at least 24×24 CSS pixels (with exceptions) |
+| **3.1.2** Language of Parts | Language changes are marked |
+| **3.2.3** Consistent Navigation | Navigation is consistent across pages |
+| **3.2.4** Consistent Identification | Same functionality uses same labels |
+| **3.3.3** Error Suggestion | Error corrections suggested when known |
+| **3.3.4** Error Prevention (Legal) | Actions can be reversed or confirmed |
+| **3.3.8** Accessible Authentication (Minimum) | No cognitive function test for login unless an alternative or assistance is provided |
+| **4.1.3** Status Messages | Status messages announced to screen readers |
+
+### Level AAA (enhanced)
+
+| Criterion | Description |
+|-----------|-------------|
+| **1.4.6** Contrast (Enhanced) | 7:1 for normal text, 4.5:1 for large text |
+| **1.4.8** Visual Presentation | Foreground/background colors can be selected |
+| **1.4.9** Images of Text (No Exception) | No images of text |
+| **2.1.3** Keyboard (No Exception) | All functionality keyboard accessible |
+| **2.2.3** No Timing | No time limits |
+| **2.2.4** Interruptions | Interruptions can be postponed |
+| **2.2.5** Re-authenticating | Data preserved on re-authentication |
+| **2.2.6** Timeouts | Users warned about data loss from inactivity |
+| **2.3.2** Three Flashes | No content flashes more than 3 times |
+| **2.3.3** Animation from Interactions | Motion animation can be disabled |
+| **2.4.8** Location | User location within site is available |
+| **2.4.9** Link Purpose (Link Only) | Link purpose clear from link text alone |
+| **2.4.10** Section Headings | Sections have headings |
+| **2.4.12** Focus Not Obscured (Enhanced) | No part of the focused element is hidden by author-created content |
+| **2.4.13** Focus Appearance | Focus indicator has sufficient area, contrast, and is not obscured |
+| **3.1.3** Unusual Words | Definitions available for unusual words |
+| **3.1.4** Abbreviations | Abbreviations expanded |
+| **3.1.5** Reading Level | Alternative content for complex text |
+| **3.1.6** Pronunciation | Pronunciation available where needed |
+| **3.2.5** Change on Request | Changes initiated only by user |
+| **3.3.5** Help | Context-sensitive help available |
+| **3.3.6** Error Prevention (All) | All form submissions can be reviewed |
+| **3.3.9** Accessible Authentication (Enhanced) | No cognitive function test for login (no object or personal content recognition exceptions) |
+
+## What changed from 2.1 to 2.2
+
+| Change | Criterion | Level |
+|--------|-----------|-------|
+| **Removed** | 4.1.1 Parsing | A |
+| **Added** | 2.4.11 Focus Not Obscured (Minimum) | AA |
+| **Added** | 2.4.12 Focus Not Obscured (Enhanced) | AAA |
+| **Added** | 2.4.13 Focus Appearance | AAA |
+| **Added** | 2.5.7 Dragging Movements | AA |
+| **Added** | 2.5.8 Target Size (Minimum) | AA |
+| **Added** | 3.2.6 Consistent Help | A |
+| **Added** | 3.3.7 Redundant Entry | A |
+| **Added** | 3.3.8 Accessible Authentication (Minimum) | AA |
+| **Added** | 3.3.9 Accessible Authentication (Enhanced) | AAA |
+
+## Sources
+
+- [WCAG 2.2 W3C Recommendation](https://www.w3.org/TR/WCAG22/)
+- [WCAG 2.2 Quick Reference](https://www.w3.org/WAI/WCAG22/quickref/)
+- [What's New in WCAG 2.2](https://www.w3.org/WAI/standards-guidelines/wcag/new-in-22/)
diff --git a/skills/antislop-ui/LICENSE-web-quality-skills b/skills/antislop-ui/LICENSE-web-quality-skills
new file mode 100644
index 0000000..90715bb
--- /dev/null
+++ b/skills/antislop-ui/LICENSE-web-quality-skills
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Addy Osmani
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/skills/antislop-ui/SKILL.md b/skills/antislop-ui/SKILL.md
index b263e8a..5398431 100644
--- a/skills/antislop-ui/SKILL.md
+++ b/skills/antislop-ui/SKILL.md
@@ -290,6 +290,32 @@ The patterns above are landing-page shapes. These are the app-side equivalents:
- **Why:** a page where everything animates has no focal point. Motion becomes wallpaper.
- **Fix:** choreograph motion to a purpose and to the MOTION dial (R-19). Not everything moves. The hero speaks, the supporting elements stay calm. Claimed "cinematic" pages must actually move; claimed "static" pages must not.
+## Performance
+
+A page that looks finished but shifts under the thumb or shows its main image last was built for the screenshot, not for use. R-40 gates what the code shows; the LCP, INP, and CLS thresholds are field data and live in [references/CORE-WEB-VITALS.md](references/CORE-WEB-VITALS.md), read when a real measurement exists. Never report a number that was not measured (R-36).
+
+### Unsized Media That Shifts the Layout
+
+- **Tell:** `<img>`, `<video>`, `<iframe>`, ads, or embeds with no `width`/`height` or `aspect-ratio`; a banner or late font that pushes content down.
+- **Why:** the page jumps while people read or tap, and they hit the wrong control (R-40).
+- **Fix:** give every media element intrinsic dimensions or `aspect-ratio`, reserve space for anything that loads late, and overlay banners instead of inserting them above content.
+
+### Hero Image Loaded Like Any Other Image
+
+- **Tell:** the largest above-the-fold image is `loading="lazy"`, set as a CSS background, or injected by JavaScript.
+- **Why:** the browser discovers the most important pixel last, and the first impression is an empty box (R-40).
+- **Fix:** an `<img>` in the HTML with `fetchpriority="high"`, never lazy; lazy-load only what is below the fold.
+
+### Render-Blocking Third-Party Script
+
+- **Tell:** synchronous analytics, chat, or tag-manager scripts in `<head>`.
+- **Why:** nothing paints until someone else's server answers, which on a phone on a slow network is the whole first impression (R-40).
+- **Fix:** `defer`/`async`, or load on interaction.
+
+### Web Baseline (optional)
+
+[references/WEB-BASELINE.md](references/WEB-BASELINE.md) lists page basics and security defaults (doctype, mixed content, client secrets). It is a checklist to run when the task asks for it, not a gate.
+
## UI Skill Checklist
Run these alongside the core Delivery Gate when the task is UI work. All answers must be **yes**:
@@ -309,3 +335,4 @@ Run these alongside the core Delivery Gate when the task is UI work. All answers
- [ ] Do empty form fields and table cells stay empty or carry honest placeholders (Your Name, [email protected]) instead of fake-looking data (John Doe, [email protected])? (R-23, R-38)
- [ ] Do the empty, loading, and error states name the cause and the next action instead of saying "No data"? (R-27)
- [ ] Does the page hold up at every breakpoint, theme, and state, and pass keyboard-only use? (R-03, R-34, C-4)
+- [ ] Is every media element sized, the hero image in the HTML with `fetchpriority="high"` and not lazy, no third-party script blocking render, and every reported metric actually measured? (R-40, R-36)
diff --git a/skills/antislop-ui/references/CORE-WEB-VITALS.md b/skills/antislop-ui/references/CORE-WEB-VITALS.md
new file mode 100644
index 0000000..f453fea
--- /dev/null
+++ b/skills/antislop-ui/references/CORE-WEB-VITALS.md
@@ -0,0 +1,181 @@
+# Core Web Vitals (LCP, INP, CLS)
+
+> Reference for antislop. Adapted from the MIT-licensed web-quality-skills by Addy Osmani (https://github.com/addyosmani/web-quality-skills); see LICENSE-web-quality-skills in the skill folder.
+
+Targeted optimization for the three Core Web Vitals using field data to identify user impact and browser traces to diagnose causes.
+
+## Measure before optimizing
+
+When a runnable URL is available, prefer this sequence:
+
+1. Check page-level CrUX p75 data, with a clearly labeled origin fallback when page data is unavailable.
+2. Record a browser performance trace under stated conditions. With Chrome DevTools MCP, trace summaries can include CrUX alongside the observed lab metrics.
+3. Analyze only the insights associated with the failing metric, then inspect the implicated code and resources.
+4. Re-run equivalent lab measurements after the fix. Do not claim an immediate field improvement; CrUX and first-party RUM need new user visits.
+
+If only source code is available, identify likely causes but do not claim that LCP, INP, or CLS is failing without runtime evidence.
+
+## The three metrics
+
+| Metric | Measures | Good | Needs work | Poor |
+|--------|----------|------|------------|------|
+| **LCP** | Loading | ≤ 2.5s | 2.5s to 4s | > 4s |
+| **INP** | Interactivity | ≤ 200ms | 200ms to 500ms | > 500ms |
+| **CLS** | Visual Stability | ≤ 0.1 | 0.1 to 0.25 | > 0.25 |
+
+Google measures at the **75th percentile**: 75% of page visits must meet "Good" thresholds.
+
+These are the numbers R-40 keeps out of the Hard Gate. They describe real visits, so compare a page against them only with a real measurement in hand, and report "not measured" otherwise (R-36).
+
+---
+
+## LCP: Largest Contentful Paint
+
+LCP measures when the largest visible content element renders. Usually this is:
+- Hero image or video
+- Large text block
+- Background image
+- `<svg>` element
+
+### Common LCP issues
+
+**1. Slow server response (TTFB > 800ms)**
+```
+Fix: CDN, caching, optimized backend, edge rendering
+```
+
+**2. Render-blocking resources**
+```html
+<!-- ❌ Blocks rendering -->
+<link rel="stylesheet" href="/all-styles.css">
+
+<!-- ✅ Critical CSS inlined, rest deferred -->
+<style>/* Critical above-fold CSS */</style>
+<link rel="preload" href="/styles.css" as="style"
+ onload="this.onload=null;this.rel='stylesheet'">
+```
+
+**3. Slow resource load times**
+```html
+<!-- ❌ LCP image is discovered only after a stylesheet loads -->
+<div class="hero"></div>
+
+<!-- ✅ Discoverable in initial HTML and prioritized -->
+<link rel="preload" href="/hero.webp" as="image" fetchpriority="high">
+<img src="/hero.webp" alt="Hero" fetchpriority="high">
+```
+
+Prefer a discoverable `<img>` with `fetchpriority="high"`. Add the preload only when the trace shows that the resource would otherwise be discovered late; duplicate or speculative preloads can compete for bandwidth.
+
+**4. Client-side rendering delays**
+```javascript
+// ❌ Content loads after JavaScript
+useEffect(() => {
+ fetch('/api/hero-text').then(r => r.json()).then(setHeroText);
+}, []);
+
+// ✅ Server-side or static rendering
+// Use SSR, SSG, or streaming to send HTML with content
+export async function getServerSideProps() {
+ const heroText = await fetchHeroText();
+ return { props: { heroText } };
+}
+```
+
+**5. Make navigations instant with the Speculation Rules API**
+
+For sites with predictable same-origin journeys, prerendering a likely next page can make a successful subsequent navigation much faster. Treat this as a measured navigation optimization, not a substitute for fixing the current page's LCP.
+
+```html
+<script type="speculationrules">
+{
+ "prerender": [{
+ "where": { "href_matches": "/*" },
+ "eagerness": "moderate"
+ }]
+}
+</script>
+```
+
+Current Chrome behavior is specific enough to guide the choice:
+
+| `eagerness` | Trigger |
+|-------------|---------|
+| `conservative` | Pointer or touch down |
+| `moderate` | Desktop: 200ms hover, or earlier pointer down; mobile: viewport heuristics |
+| `eager` | Chrome 143+: desktop 10ms hover; mobile 50ms after the anchor enters the viewport |
+| `immediate` | As soon as the rules are observed |
+
+Start conservatively and measure prediction hit rate, transferred bytes, server load, and navigation improvement before expanding the rules. Recheck [Chrome's maintained eagerness documentation](https://developer.chrome.com/docs/web-platform/prerender-pages#eagerness) before hardcoding timing-sensitive behavior.
+
+Caveats:
+- **Bandwidth/CPU cost.** Each prerender is roughly a full page load. Scope `where` carefully (`href_matches` patterns, exclude logout/checkout) and avoid `immediate` outside small sites.
+- **Side effects fire early.** Analytics, ads, and any code that runs on load will fire when the prerender starts, not when the user navigates. Gate side effects on the [`prerenderingchange` event](https://developer.chrome.com/docs/web-platform/prerender-pages#detect_when_a_page_is_prerendered_or_used_for_a_full_navigation) or `document.prerendering`.
+- **Chromium-only.** Safari and Firefox ignore the script, it's a progressive enhancement, never a regression.
+
+### LCP optimization checklist
+
+```markdown
+- [ ] TTFB < 800ms (use CDN, edge caching)
+- [ ] LCP resource is discoverable in initial HTML and prioritized; preload only if the trace shows late discovery
+- [ ] LCP image optimized (WebP/AVIF, correct size)
+- [ ] Critical CSS inlined (< 14KB)
+- [ ] No render-blocking JavaScript in <head>
+- [ ] Fonts don't block text rendering (font-display: swap)
+- [ ] LCP element in initial HTML (not JS-rendered)
+- [ ] Speculation Rules added for likely-next navigations (moderate eagerness)
+```
+
+### LCP element identification
+
+This snippet diagnoses the current page session. It is not field data.
+
+```javascript
+// Find your LCP element
+new PerformanceObserver((list) => {
+ const entries = list.getEntries();
+ const lastEntry = entries[entries.length - 1];
+ console.log('LCP element:', lastEntry.element);
+ console.log('LCP time:', lastEntry.startTime);
+}).observe({ type: 'largest-contentful-paint', buffered: true });
+```
+
+---
+
+## INP: Interaction to Next Paint
+
+INP measures responsiveness across clicks, taps, and key presses during a visit. Diagnose its input delay, processing time, and presentation delay separately; a slow interaction may involve main-thread contention before the handler, expensive application work, or delayed rendering after it.
+
+When field INP is poor or a trace identifies a slow interaction, read [web.dev on optimizing INP](https://web.dev/articles/optimize-inp) for trace interpretation, yielding patterns, and third-party and rendering causes.
+
+---
+
+## CLS: Cumulative Layout Shift
+
+CLS measures unexpected layout shifts across a page visit. Use field attribution or a trace to identify the shifted node and the trigger; do not assume the visible victim caused the shift.
+
+When field CLS is poor or a trace reports shifts, read [web.dev on optimizing CLS](https://web.dev/articles/optimize-cls) for reserved-space patterns, dynamic content, and font and animation fixes.
+
+---
+
+## Measurement sources
+
+| Source | Use |
+|--------|-----|
+| Browser performance trace (Chrome DevTools MCP: `performance_start_trace`) | Observe one load or interaction and diagnose focused insights; use included CrUX context when available |
+| CrUX or Search Console | Prioritize aggregated real-user outcomes at p75 |
+| Lighthouse CLI or PageSpeed Insights | Controlled lab fallback when DevTools tools are unavailable |
+| First-party RUM | Segment current production experience by route, device, release, and attribution |
+| Raw `PerformanceObserver` | Inspect one page session during debugging |
+
+Do not route performance through Chrome DevTools MCP's `lighthouse_audit`; that capability intentionally covers non-performance Lighthouse categories. Do not compare a single lab value directly with a field p75 as if they were equivalent samples.
+
+When adding or reviewing production collection, read [the `web-vitals` library documentation](https://github.com/GoogleChrome/web-vitals). Prefer the `web-vitals` library because raw browser APIs do not by themselves implement every Core Web Vital's lifecycle and reporting rules.
+
+---
+
+## References
+
+- [web.dev LCP](https://web.dev/articles/lcp) and [optimizing LCP](https://web.dev/articles/optimize-lcp)
+- [web.dev INP](https://web.dev/articles/inp)
+- [web.dev CLS](https://web.dev/articles/cls)
diff --git a/skills/antislop-ui/references/WEB-BASELINE.md b/skills/antislop-ui/references/WEB-BASELINE.md
new file mode 100644
index 0000000..18270bb
--- /dev/null
+++ b/skills/antislop-ui/references/WEB-BASELINE.md
@@ -0,0 +1,28 @@
+# Web Baseline
+
+> Reference for antislop. Adapted from the MIT-licensed web-quality-skills by Addy Osmani (https://github.com/addyosmani/web-quality-skills); see LICENSE-web-quality-skills in the skill folder.
+
+Page basics and security defaults. This is an optional checklist, not a Hard Gate rule: run it when the task asks for a production-ready page or a web-quality review. None of it shows in a screenshot, which is why it is easy to skip.
+
+## Document basics
+
+- `<!doctype html>` first, so the page never renders in quirks mode.
+- `<meta charset="utf-8">` first in `<head>`.
+- `<meta name="viewport" content="width=device-width, initial-scale=1">` (zoom stays allowed, R-39).
+- Valid, semantic HTML with no duplicate `id`.
+
+## Runtime
+
+Console errors are already R-35.
+
+- No deprecated APIs: `document.write`, synchronous XHR, `unload` listeners.
+- Scroll and touch listeners are `{ passive: true }` where they do not call `preventDefault`.
+
+## Security defaults
+
+- HTTPS for every resource, with no mixed `http://` content.
+- External links opened in a new tab carry `rel="noopener noreferrer"`.
+- No secrets, API keys, or tokens in client code; they stay on the server.
+- `textContent` or a sanitizer instead of `innerHTML` or `eval` with untrusted input.
+- Third-party scripts and styles from a CDN you do not control are pinned with Subresource Integrity.
+- Permissions (location, notifications, camera) are requested after a user action, never on page load.
diff --git a/skills/antislop/SKILL.md b/skills/antislop/SKILL.md
index dce8541..d8d0a68 100644
--- a/skills/antislop/SKILL.md
+++ b/skills/antislop/SKILL.md
@@ -178,7 +178,7 @@ Anything presented as fact (testimonials, statistics, security claims) is real a
## Part 1: AI Slop Patterns (Warning Signs)
-These are the most common patterns found in AI-generated designs. Use this table to **audit** your output: scan for clusters, then ask each one "what does this serve?" A single pattern from this list is fine if it serves a purpose, unless a **Hard Gate** rule in Part 2 forbids it (R-02, R-03, R-17, R-18, R-23 to R-28, R-32 to R-38). What makes a design slop is many of these appearing together with no reason. This is a **diagnostic scan, not a ban list**: Part 1 itself bans nothing, but the Hard Gate rules in Part 2 are absolute, and every other pattern must pass the purpose test (Part 2, Purpose-Gate group).
+These are the most common patterns found in AI-generated designs. Use this table to **audit** your output: scan for clusters, then ask each one "what does this serve?" A single pattern from this list is fine if it serves a purpose, unless a **Hard Gate** rule in Part 2 forbids it (R-02, R-03, R-17, R-18, R-23 to R-28, R-32 to R-40). What makes a design slop is many of these appearing together with no reason. This is a **diagnostic scan, not a ban list**: Part 1 itself bans nothing, but the Hard Gate rules in Part 2 are absolute, and every other pattern must pass the purpose test (Part 2, Purpose-Gate group).
### Visual & Color
@@ -270,9 +270,9 @@ These are the most common patterns found in AI-generated designs. Use this table
---
-## Part 2: Mandatory Rules (R-01 to R-38, grouped)
+## Part 2: Mandatory Rules (R-01 to R-40, grouped)
-All 38 rules still apply. They are grouped into three tiers so the mechanism is explicit: **Hard Gate** rules are absolute, **Purpose-Gate** rules allow the technique but require a written reason, **Quality Locks** are consistency requirements.
+All 40 rules still apply. They are grouped into three tiers so the mechanism is explicit: **Hard Gate** rules are absolute, **Purpose-Gate** rules allow the technique but require a written reason, **Quality Locks** are consistency requirements.
### Group 1: Hard Gate (absolute, no exceptions)
@@ -429,6 +429,30 @@ If an element genuinely cannot have a destination yet, remove it instead of ship
- Placeholders are written as what they are: `[REAL DATA]`, "Coming soon", never disguised as final (see R-23)
- An empty section is better than a fabricated one
+#### R-39 — Accessible Semantics & Interaction Affordances
+
+Every control the task builds or edits must say what it is and that it can be used. Keyboard operation and the focus indicator are R-32; touch target size is R-03.
+
+- **REQUIRED**: every enabled interactive element (`a[href]`, `button`, `summary`, `select`, `label[for]`, checkbox, radio, custom `role="button"`/`tab`/`switch`) shows `cursor: pointer`, set once in the base CSS layer; disabled controls show `cursor: not-allowed`
+- **REQUIRED**: actions are `<button>`, navigation is `<a href>` to a real destination; no clickable `div`/`span`, and a custom control that cannot be native also meets R-32
+- **REQUIRED**: every control has an accessible name (icon-only buttons get `aria-label` or visually hidden text, the icon gets `aria-hidden="true"`); every image has `alt` (empty `alt=""` when decorative); every form field has a visible `<label>`
+- **REQUIRED**: distinct hover, active, and disabled states, never color alone
+- **REQUIRED**: non-essential motion stops under `prefers-reduced-motion: reduce`; anything moving longer than 5 seconds has a pause control
+- **FORBIDDEN**: ARIA that contradicts the native role
+- **Only when the task produces a whole HTML document** (a page or an app shell, not a component):
+ - **REQUIRED**: `<html lang>`, a unique `<title>`, landmarks (`header`, `nav`, `main`, `footer`), one `h1` and no skipped heading levels
+ - **FORBIDDEN**: `user-scalable=no` or `maximum-scale=1` in the viewport meta
+- A UI that looks finished but cannot be perceived or operated by everyone is unfinished
+
+#### R-40 — Performance Mechanisms
+
+The gate checks what the code shows. The Core Web Vitals thresholds (LCP, INP, CLS at p75) are field data from real users, which the agent writing the page does not have, so they live in `antislop-ui`'s `references/CORE-WEB-VITALS.md` for when real measurements exist.
+
+- **REQUIRED**: every `<img>`, `<video>`, and `<iframe>` has `width` and `height` (or `aspect-ratio`); space for late content (ads, embeds, banners) is reserved
+- **REQUIRED**: the hero image is an `<img>` in the HTML, never `loading="lazy"`, with `fetchpriority="high"`
+- **REQUIRED**: no render-blocking third-party script in `<head>`; non-critical scripts are `defer`/`async` or loaded on interaction
+- **FORBIDDEN**: reporting a Lighthouse score or a Web Vitals number that was not measured (see R-36). If it was not measured, say "not measured"
+
### Group 2: Purpose-Gate (technique allowed, purpose required)
Each technique below is allowed. It FAILS only when it appears as a default without a stated purpose, or when the reason for it is not written down. Every rule has the same shape: FORBIDDEN as default without purpose; ALLOWED when it serves hierarchy/identity and the reason is written; dose caps for the excessive cases.
@@ -672,6 +696,8 @@ Before declaring the design done, answer every question below. All answers must
- [ ] Are there any fabricated security, compliance, performance, or customer claims? *(R-36)*
- [ ] Was the design built without direction and not labeled *"draft without direction"* with honest default dials ENERGY 1 / RHYTHM 1 / MOTION 1? *(R-37)*
- [ ] Is there any realistically-styled content that was fabricated (testimonials, features, statistics, ghost links, fictional team) without a real source? *(R-38)*
+- [ ] Does any control lack `cursor: pointer`, a native element, an accessible name, or hover/active/disabled states; any field a visible label or image its `alt`; does motion ignore `prefers-reduced-motion`; or does a whole document lack `lang`, `<title>`, or landmarks, or block zoom? *(R-39)*
+- [ ] Does any media element ship without dimensions, the hero image load lazily or without `fetchpriority="high"`, a third-party script block render in `<head>`, or a performance number get reported that was not measured? *(R-40)*
### Block 2: Purpose-Gate (technique allowed, reason required)
diff --git a/skills/antislop/VERSION b/skills/antislop/VERSION
index 6b6eace..a575350 100644
--- a/skills/antislop/VERSION
+++ b/skills/antislop/VERSION
@@ -1 +1 @@
-3.2.23
+3.2.24