@blackbelt-technology/anti-slop-frontend 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,258 @@
1
+ ---
2
+ name: anti-slop-frontend
3
+ description: A mechanical, countable anti-slop checklist for AI-generated frontend. Catches the specific signatures an undirected model defaults to: AI-purple glows, Inter-everywhere, em-dashes, div-based fake screenshots, eyebrow-on-every-section, beige+brass "premium" palettes, generic Jane Doe / Acme data. Advisory layer that pairs with frontend-mockup-loop (which owns the cite-a-source loop plus WCAG gates) but works standalone in any React/Tailwind/HTML project. Triggers: "does this look AI-generated", "anti-slop pass", "remove the AI tells", "why does this look templated", "design review for slop".
4
+ license: MIT
5
+ metadata:
6
+ author: blackbelt-technology
7
+ version: "0.1"
8
+ adapted_from: "Leonxlnx/taste-skill (design-taste-frontend, MIT) - countable rules distilled, stack-coupling removed, scoped universal vs marketing-only."
9
+ ---
10
+
11
+ # anti-slop-frontend
12
+
13
+ A flat, **mechanical** checklist of the concrete signatures an undirected model
14
+ emits when it tries to "look designed." Every rule here is **countable or
15
+ binary** - you can mechanically verify pass/fail, not argue taste. That is the
16
+ whole point: "it looks better" is not a check; "eyebrow count > ceil(sections/3)"
17
+ is.
18
+
19
+ ## What this is, and is NOT
20
+
21
+ - **IS** an advisory catalog of AI-tells, scoped by surface kind.
22
+ - **IS** standalone - works with no tooling, in any React/Tailwind/HTML project.
23
+ - **IS NOT** a design philosophy, a loop, or a gate. It scores; it never blocks.
24
+
25
+ ### Relationship to `frontend-mockup-loop`
26
+
27
+ Different jobs, intentionally separate:
28
+
29
+ | | frontend-mockup-loop | anti-slop-frontend (this) |
30
+ |---|---|---|
31
+ | Shape | ground→contract→mockup→test→fix→learn **loop** | flat **checklist** |
32
+ | Basis | cite an **external public rule** (Nielsen, WCAG, Laws of UX) | codified **AI-tell catalog** |
33
+ | Authority | owns the **hard gates** (WCAG-AA, severity-4) | **advisory only**, drives the fix list |
34
+ | Domain | product UI, dashboards, flows | universal tells + marketing-surface tells |
35
+
36
+ When both are present: the loop's a11y floor and cite-a-source rule **win**.
37
+ This skill feeds concrete failing items into the loop's FIX step. It never
38
+ overrides a gate, and a tell here is never a reason to violate a cited rule.
39
+
40
+ > **Honesty note:** these rules are curated *taste*, hardened into countable
41
+ > form. They are good defaults, not laws of nature. Every rule has an **override
42
+ > path**: when the brief explicitly asks for the "banned" thing, it is allowed -
43
+ > execute it with intent, not by accident.
44
+
45
+ ---
46
+
47
+ ## The three dials (set once, up front)
48
+
49
+ State these before reviewing or generating. They gate which rules fire and how hard.
50
+
51
+ - **`VARIANCE` (1-10)** - 1 = perfect symmetry, 10 = artsy chaos
52
+ - **`MOTION` (1-10)** - 1 = static, 10 = cinematic/physics
53
+ - **`DENSITY` (1-10)** - 1 = art-gallery airy, 10 = cockpit/packed-data
54
+
55
+ Infer from the brief; don't silently use a baseline. Dashboards/data UI live high
56
+ on DENSITY and low on VARIANCE/MOTION. Landing/portfolio live the opposite.
57
+
58
+ ---
59
+
60
+ ## PART A - Universal tells (apply to EVERY surface, dashboards included)
61
+
62
+ These fire regardless of surface kind. A dense admin panel is just as guilty of
63
+ AI-purple and Inter-everywhere as a landing page.
64
+
65
+ ### A1. Color
66
+ - **No AI-purple/blue glow as default.** No automatic violet button glows, no
67
+ random neon gradients ("the Lila tell"). Neutral base (Zinc/Slate/Stone) +
68
+ ONE high-contrast accent. *Override:* brand literally is purple.
69
+ - **Max 1 accent color, saturation < 80% default.** Lock it: the same accent on
70
+ the whole page. A warm-grey UI does not grow a blue CTA in section 7.
71
+ - **One neutral temperature per project.** Don't drift warm-grey ↔ cool-grey.
72
+ - **No pure `#000000` / pure `#ffffff`.** Off-black (zinc-950) and off-white;
73
+ pure values kill depth.
74
+
75
+ ### A2. Typography
76
+ - **Inter is discouraged as the *default*.** Reach past it (Geist, Outfit,
77
+ Cabinet Grotesk, Satoshi) unless the brief wants neutral/Linear-style or is
78
+ accessibility-first. *Override exists.*
79
+ - **Serif is very discouraged as default.** "Feels premium/creative" is not a
80
+ reason. Specifically banned as defaults: **Fraunces, Instrument Serif**.
81
+ Serif only when the brief names one or the family is genuinely
82
+ editorial/luxury/heritage.
83
+ - **Emphasis = italic/bold of the SAME family.** Never inject a random serif
84
+ word into a sans headline for "visual interest."
85
+ - **One corner-radius scale per page** (all-sharp / all-soft / all-pill), or a
86
+ documented rule followed everywhere.
87
+
88
+ ### A3. The em-dash ban (the #1 tell)
89
+ - **Zero `—` and zero `–`-as-separator anywhere visible.** Headlines, labels,
90
+ pills, body, quotes, attribution, captions, buttons, alt text. No "sparingly."
91
+ Replace with a period, comma, colon, parentheses, line break, or a spaced
92
+ hyphen ` - `. Ranges use a plain hyphen (`2018-2026`, `€40-80k`).
93
+ - Mechanical check: grep the rendered output for `—`/`–`. Any hit = fail.
94
+
95
+ ### A4. Fake data ("Jane Doe" effect)
96
+ - **No generic names.** "John Doe / Sarah Chan / Jack Su" → realistic,
97
+ locale-appropriate names.
98
+ - **No generic brand names.** "Acme / Nexus / SmartFlow / Cloudly" → contextual
99
+ names that sound real.
100
+ - **No fake-perfect numbers.** `99.99%`, `50%`, `1234567` → organic values
101
+ (`47.2%`, real-looking phone formats). Fake-precise engineering specs
102
+ (`5.8mm`, `4.1×`) are banned unless from real data or labeled mock.
103
+ - **No filler verbs.** "Elevate / Seamless / Unleash / Next-Gen / Revolutionize"
104
+ → concrete verbs.
105
+ - **No generic avatars** (SVG "egg", default user glyph) → believable placeholders.
106
+
107
+ ### A5. Assets & icons
108
+ - **No div-based fake screenshots.** Building a fake dashboard/terminal/task-list
109
+ out of styled `<div>`s is the single biggest tell. Use a real screenshot, a
110
+ generated image, a real mini component preview, or nothing.
111
+ - **No hand-rolled SVG icons.** Use one icon family (Phosphor / HugeIcons /
112
+ Radix / Tabler), standardized stroke width. Lucide only on explicit request.
113
+ - **No hand-rolled decorative SVG illustrations** as default.
114
+ - **No broken image links.** Use `picsum.photos/seed/{descriptive}/{w}/{h}` or
115
+ generated assets, never dead Unsplash URLs.
116
+
117
+ ### A6. Interactive states (the "happy-path only" tell)
118
+ - **Loading / empty / error states exist**, not just the static success state.
119
+ Skeletons match final layout shape; avoid generic spinners.
120
+ - **Button contrast (a11y).** Every CTA's text passes WCAG AA against its own
121
+ background. No white-on-white, no transparent button on same-color bg with no
122
+ border. *(This one is also a hard gate when frontend-mockup-loop runs.)*
123
+ - **Form contrast (a11y).** Inputs, placeholders, focus rings, helper, error text
124
+ all pass AA against the section bg. Label above input; never placeholder-as-label.
125
+
126
+ ### A7. Motion must be motivated
127
+ - **Every animation justifies itself in one sentence** - hierarchy, storytelling,
128
+ feedback, or state-transition. "It looked cool" is not valid. Motion-for-show
129
+ is amateur.
130
+ - **Motion claimed = motion shown.** If `MOTION > 4`, the page actually moves; if
131
+ you can't ship working motion, drop the dial and ship clean static.
132
+ - **Banned mechanism: `window.addEventListener('scroll', …)`** and React-state
133
+ scroll/rAF loops. Use scroll-driven CSS, IntersectionObserver, or a motion
134
+ library's scroll primitives.
135
+ - **Reduced-motion honored** for anything above `MOTION 3`.
136
+
137
+ ---
138
+
139
+ ## PART B - Marketing-surface tells (landing / portfolio / about ONLY)
140
+
141
+ Skip Part B entirely for dashboards, data tables, wizards, editors, product UI.
142
+ These rules govern hero-driven marketing pages, where the model's worst
143
+ templating habits live.
144
+
145
+ ### B1. Hero discipline
146
+ - **Hero fits the initial viewport.** Headline ≤ 2 lines, subtext ≤ 20 words and
147
+ ≤ 4 lines, CTA visible without scroll. A 4-line headline is a font-size error.
148
+ - **Hero top padding ≤ `pt-24` desktop** (content must not float mid-viewport).
149
+ - **Max 4 text elements in the hero**: (eyebrow OR brand strip), headline,
150
+ subtext, CTAs. Banned in hero: trust micro-strip, pricing teaser, tagline
151
+ under CTAs, feature bullets, avatar row - those move to sections below.
152
+ - **No version labels** (`V0.6`, `BETA`, `INVITE-ONLY`) unless the brief is a launch.
153
+
154
+ ### B2. The eyebrow tell (#1 violated rule)
155
+ - An "eyebrow" = small uppercase wide-tracking label above a section headline
156
+ (`text-[11px] uppercase tracking-[0.18em]`).
157
+ - **Max 1 eyebrow per 3 sections** (hero counts as 1). Mechanical check: count
158
+ `uppercase tracking` micro-labels above headlines; fail if > ceil(sections/3).
159
+ - **No section-number eyebrows** (`00 / INDEX`, `001 · Capabilities`, `06 · how it
160
+ works`). The section's position already categorizes it.
161
+ - **Default fix: drop the eyebrow.** The headline alone is enough.
162
+
163
+ ### B3. Layout repetition
164
+ - **No 3 equal feature cards.** The "three identical horizontal cards" row is the
165
+ default. Use asymmetric grid, zig-zag, or a different family.
166
+ - **Zigzag cap: max 2 consecutive image+text splits.** The 3rd in a row is a fail.
167
+ - **Section-layout-repetition ban.** A layout family appears at most once. 8
168
+ sections → ≥ 4 distinct families.
169
+ - **No split-header** ("big left headline + small right floating paragraph") as
170
+ default. Stack headline over body instead.
171
+ - **Bento: exact cell count, real rhythm, background diversity.** N items → N
172
+ cells (no empty tiles); ≥ 2-3 cells have real visual variation (image,
173
+ gradient, pattern), not all white-on-white text cards.
174
+ - **Marquee: max one per page.**
175
+
176
+ ### B4. CTA & social proof
177
+ - **No duplicate CTA intent.** "Get in touch" + "Let's talk" + "Contact us" on one
178
+ page = fail. One label per intent, everywhere.
179
+ - **No CTA wraps to 2+ lines at desktop** (shorten label or widen button).
180
+ - **Logo wall lives UNDER the hero, is logos only** (no industry labels beneath),
181
+ uses real SVG marks (Simple Icons / devicon) or generated monograms, not plain
182
+ text wordmarks.
183
+
184
+ ### B5. Decoration tells (banned by default)
185
+ - **No decoration text strip** at hero bottom (`BRAND. MOTION. SPATIAL.`).
186
+ - **No locale / city / time / weather strips** (`LIS 14:23 · 18°C`) unless the
187
+ brief is genuinely place- or timezone-focused.
188
+ - **No scroll cues** (`Scroll`, `↓ scroll`, `Scroll to explore`).
189
+ - **No version footers** (`v1.4.2`, `Build 0048`, `last sync 4s ago`) on
190
+ marketing pages - those are devtool fixtures.
191
+ - **The middle-dot `·` is rationed** (max 1 per metadata line; not the default
192
+ separator for everything).
193
+ - **No decorative status dots** before every nav item / row / badge. Only for
194
+ real semantic state, sparingly.
195
+ - **No pills/labels overlaid on images** and **no pretentious photo-credit
196
+ captions** (`Field study no. 12 · Ines Caetano`) on stock/placeholder images.
197
+ - **No poetic section labels** ("From the field", "Field notes", "On our desks")
198
+ → plain functional labels or none.
199
+ - **No `border-t` + `border-b` on every row** of a long list/spec table. Long
200
+ lists (>5 items) use a real component (grouped chunks, card grid, tabs,
201
+ scroll-snap), not a hairline-per-row `<ul>`.
202
+
203
+ ### B6. Copy self-audit
204
+ - Re-read every visible string. Flag and rewrite: grammatically broken phrases,
205
+ unclear referents, cute-but-wrong wordplay, fake-craftsman micro-meta. Plain
206
+ functional copy beats AI-cute copy.
207
+
208
+ ---
209
+
210
+ ## Mechanical pre-flight (the grep-able subset)
211
+
212
+ The rules below can be checked by string-search, not judgment. Run them last.
213
+
214
+ - [ ] **Em-dash:** zero `—` / `–`-as-separator in rendered output (A3).
215
+ - [ ] **AI-purple:** no default violet glow/gradient unless brand-justified (A1).
216
+ - [ ] **Accent lock:** one accent hex family across all sections (A1).
217
+ - [ ] **Default font:** not Inter (unless justified); serif is not Fraunces /
218
+ Instrument Serif (A2).
219
+ - [ ] **Fake data:** no "Doe / Acme / 99.99% / Elevate" (A4).
220
+ - [ ] **Fake screenshots:** no div-built product UI; no hand-rolled icon paths (A5).
221
+ - [ ] **CTA/form contrast:** every CTA + input passes WCAG AA (A6).
222
+ - [ ] **Motion:** no `addEventListener('scroll')`; reduced-motion present (A7).
223
+ - [ ] *(marketing only)* **Eyebrow count** ≤ ceil(sections/3) (B2).
224
+ - [ ] *(marketing only)* **Zigzag** ≤ 2 consecutive splits; ≥ 4 layout families (B3).
225
+ - [ ] *(marketing only)* **CTA intent** not duplicated; no CTA wrap at desktop (B4).
226
+ - [ ] *(marketing only)* no decoration/locale/scroll-cue/version strips (B5).
227
+
228
+ If a box can't be honestly ticked, it's a flagged item - feed it to the fix step.
229
+
230
+ ---
231
+
232
+ ## Pitfalls
233
+
234
+ - Do NOT treat these as hard gates. They are advisory; the WCAG/severity gates
235
+ (owned by frontend-mockup-loop) are the only hard blockers.
236
+ - Do NOT apply Part B to dashboards/product UI - it will fight dense, correct UI.
237
+ - Do NOT cite a tell from this catalog as justification to violate an external
238
+ documented rule. When the two conflict, the cited public rule wins.
239
+ - Do NOT forget the override path: when the brief explicitly asks for the
240
+ "banned" thing, allow it - done with intent, not by default-reaching.
241
+
242
+ ## Verification
243
+
244
+ - The three dials were declared and reasoned from the brief, not defaulted.
245
+ - The grep-able pre-flight subset was run; every hit is either fixed or has a
246
+ documented brief-driven override.
247
+ - Part B was applied only to marketing surfaces; skipped for product UI.
248
+ - No advisory tell was used to override a WCAG-AA or severity-4 gate.
249
+
250
+ ---
251
+
252
+ *Adapted from [Leonxlnx/taste-skill](https://github.com/Leonxlnx/taste-skill)
253
+ (`design-taste-frontend`, MIT). This is a distillation of its countable rules:
254
+ stack-coupling (Next RSC / Motion / GSAP / next/font) removed, rules re-scoped
255
+ into universal vs marketing-only, and reframed as an advisory catalog that pairs
256
+ with - never overrides - frontend-mockup-loop's cite-a-source loop and hard
257
+ gates. Original taste, original author's eye; full prose corpus and GSAP code
258
+ skeletons live in the upstream repo.*
package/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # @blackbelt-technology/anti-slop-frontend
2
+
3
+ A pi package — **skill only, no tools** — that catches the concrete signatures
4
+ an undirected model emits when it tries to "look designed."
5
+
6
+ It is a flat, **mechanical** checklist: every rule is countable or binary, so you
7
+ verify pass/fail instead of arguing taste. "It looks better" is not a check;
8
+ `eyebrow count > ceil(sections/3)` is.
9
+
10
+ Generic: works in any React/Tailwind/shadcn (or plain HTML) project.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ pi install npm:@blackbelt-technology/anti-slop-frontend
16
+ # or try without installing:
17
+ pi -e npm:@blackbelt-technology/anti-slop-frontend
18
+ ```
19
+
20
+ This registers:
21
+
22
+ - **Skill** `anti-slop-frontend` — the AI-tell catalog (load via
23
+ `/skill:anti-slop-frontend`). No tools, no commands.
24
+
25
+ ## What it catches
26
+
27
+ | Part | Scope | Examples |
28
+ |------|-------|----------|
29
+ | **A — Universal** | every surface, dashboards included | AI-purple glow, Inter-as-default, the em-dash ban, "Jane Doe / Acme / 99.99%" fake data, div-based fake screenshots, hand-rolled SVG icons, happy-path-only states, unmotivated motion |
30
+ | **B — Marketing only** | landing / portfolio / about | hero discipline, eyebrow-per-section, equal-3-card rows, zigzag cap, bento rhythm, decoration/locale/scroll-cue strips, duplicate CTA intent |
31
+
32
+ Part B is **skipped for product UI** (dashboards, data tables, wizards, editors).
33
+
34
+ Every rule has an **override path**: when the brief explicitly asks for the
35
+ "banned" thing, it is allowed — done with intent, not by default-reaching.
36
+
37
+ ## Relationship to `frontend-mockup-loop`
38
+
39
+ Separate, complementary skills:
40
+
41
+ | | frontend-mockup-loop | anti-slop-frontend |
42
+ |---|---|---|
43
+ | Shape | ground→contract→mockup→test→fix→learn **loop** | flat **checklist** |
44
+ | Basis | cite an **external public rule** (Nielsen, WCAG, Laws of UX) | codified **AI-tell catalog** |
45
+ | Authority | owns the **hard gates** (WCAG-AA, severity-4) | **advisory only** |
46
+
47
+ When both run: the loop's a11y floor and cite-a-source rule **win**; this skill
48
+ feeds concrete failing items into the loop's FIX step and never overrides a gate.
49
+
50
+ ## Attribution
51
+
52
+ Adapted from [Leonxlnx/taste-skill](https://github.com/Leonxlnx/taste-skill)
53
+ (`design-taste-frontend`, MIT). Distillation of its **countable** rules:
54
+ stack-coupling (Next RSC / Motion / GSAP / next/font) removed, rules re-scoped
55
+ into universal vs marketing-only, reframed as an advisory catalog. The upstream
56
+ repo holds the full prose corpus and GSAP code skeletons.
57
+
58
+ ## License
59
+
60
+ MIT
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@blackbelt-technology/anti-slop-frontend",
3
+ "version": "0.5.4",
4
+ "description": "Pi skill — a mechanical, countable anti-slop checklist for AI-generated frontend. Catches the specific tells an undirected model defaults to (AI-purple, Inter-everywhere, em-dashes, div-based fake screenshots, eyebrow-per-section, Jane Doe / Acme data). Advisory; pairs with frontend-mockup-loop. Works in any React/Tailwind/HTML project.",
5
+ "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/BlackBeltTechnology/pi-agent-dashboard",
9
+ "directory": "packages/anti-slop"
10
+ },
11
+ "license": "MIT",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "keywords": [
16
+ "pi-package",
17
+ "pi-skill",
18
+ "frontend",
19
+ "anti-slop",
20
+ "design-review",
21
+ "ai-tells",
22
+ "ux",
23
+ "accessibility",
24
+ "ui"
25
+ ],
26
+ "pi": {
27
+ "skills": [
28
+ ".pi/skills/anti-slop-frontend"
29
+ ]
30
+ },
31
+ "files": [
32
+ ".pi/skills/",
33
+ "README.md"
34
+ ]
35
+ }