@blackbelt-technology/anti-slop-frontend 0.8.0 → 0.10.0
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.
- package/.pi/skills/anti-slop-brandkit/SKILL.md +116 -0
- package/.pi/skills/anti-slop-frontend/SKILL.agent.md +54 -0
- package/.pi/skills/anti-slop-frontend/SKILL.md +116 -4
- package/.pi/skills/anti-slop-image-direction/SKILL.md +169 -0
- package/.pi/skills/anti-slop-redesign/SKILL.md +132 -0
- package/README.md +64 -18
- package/UPSTREAM.md +218 -0
- package/package.json +12 -4
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anti-slop-brandkit
|
|
3
|
+
description: "Opt-in, paid brand board for a new site with no existing brand: confirm count, backend and cost, generate one 3x3 board (logo concept, palette, type, image direction) with pi-nano-banana plus a written brand.md. A proposal for the user to approve, never an auto-applied identity. Triggers: \"make a brand kit\", \"brand board for this new site\", \"propose a visual identity\"."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: blackbelt-technology
|
|
7
|
+
version: "0.1"
|
|
8
|
+
adapted_from: "Leonxlnx/taste-skill@18dfc92 (brandkit, MIT), reduced to a proposal-only board behind a paid-generation confirm. Section map: packages/anti-slop/UPSTREAM.md."
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# anti-slop-brandkit
|
|
12
|
+
|
|
13
|
+
A site with no brand gets a generic one by default: purple gradient, Inter,
|
|
14
|
+
a letter-in-a-circle logo. This skill proposes a deliberate starting identity
|
|
15
|
+
instead. The output is a **proposal**: a board image plus a written brief that
|
|
16
|
+
the user approves before anything enters the project.
|
|
17
|
+
|
|
18
|
+
**Authority: advisory.** Findings feed the frontend-mockup-loop FIX step and
|
|
19
|
+
never override a WCAG-AA or severity gate. A proposed palette that fails AA
|
|
20
|
+
contrast is fixed in the brief, not defended.
|
|
21
|
+
|
|
22
|
+
## When it applies
|
|
23
|
+
|
|
24
|
+
All of these must hold, otherwise generate nothing:
|
|
25
|
+
|
|
26
|
+
1. The declared profile (`anti-slop-frontend` Design Read) is `new-site`.
|
|
27
|
+
2. The project has no existing brand assets (logo, palette, type). With a
|
|
28
|
+
brand, use `anti-slop-redesign` instead.
|
|
29
|
+
3. Explicit request: the user asked for a brand kit / board.
|
|
30
|
+
4. The user confirmed the plan in step 1.
|
|
31
|
+
|
|
32
|
+
## Proposal, not identity
|
|
33
|
+
|
|
34
|
+
- Never write brand values into project tokens or UI contracts before the user
|
|
35
|
+
approves `brand.md`. Output lands in the mockup folder only.
|
|
36
|
+
- After approval, frontend-mockup-loop CONTRACT (`init_ui_contract`) adopts
|
|
37
|
+
the values; this skill never edits token files itself.
|
|
38
|
+
- Logos are labelled concepts, never final marks. The board and `brand.md`
|
|
39
|
+
both say "logo concept".
|
|
40
|
+
|
|
41
|
+
## Procedure
|
|
42
|
+
|
|
43
|
+
Image generation uses the same runner, backends, headless rule and fallback
|
|
44
|
+
as `anti-slop-image-direction` (read its "Images are experimental" section for
|
|
45
|
+
how to resolve `$NB`).
|
|
46
|
+
|
|
47
|
+
### 1. Plan, then confirm
|
|
48
|
+
|
|
49
|
+
- Resolve `<mockupDir>` exactly as `anti-slop-image-direction` does.
|
|
50
|
+
- Write the strategy first, in three lines: what the product does, for whom,
|
|
51
|
+
and the one feeling the brand must carry.
|
|
52
|
+
- Confirm with `ask_user`, stating: the image count (1 board unless the user
|
|
53
|
+
asks for variants), the backend (`gemini` or `pi`), and that generation is
|
|
54
|
+
paid. No confirmation → generate nothing.
|
|
55
|
+
- A backend change requires a new confirmation; never switch the backend
|
|
56
|
+
silently.
|
|
57
|
+
- **Headless rule:** if the `ask_user` tool is absent from your tool list, the
|
|
58
|
+
run is headless: generate nothing and write the text-only brief.
|
|
59
|
+
|
|
60
|
+
### 2. Generate
|
|
61
|
+
|
|
62
|
+
One board image per confirmed count (default 1), each a 3×3 panel layout in a
|
|
63
|
+
single image, each written to its own numbered file so variants never
|
|
64
|
+
overwrite each other:
|
|
65
|
+
|
|
66
|
+
| | | |
|
|
67
|
+
|---|---|---|
|
|
68
|
+
| logo concept | logo construction | digital application |
|
|
69
|
+
| brand essence | colour system | typography |
|
|
70
|
+
| physical application | image direction | system detail |
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
$NB "<board prompt>" --output <mockupDir>/brand/board-<nn>.png # nn = 01..count
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The prompt carries the strategy lines, the Part A bans (no purple/violet glow,
|
|
77
|
+
no neon gradient, no pure black / pure white, no Inter as the default face, no
|
|
78
|
+
em-dashes in rendered text), and describes any wording instead of quoting it.
|
|
79
|
+
Text visible in the board is a placeholder and is never transcribed.
|
|
80
|
+
|
|
81
|
+
### 3. Brief → `brand.md`
|
|
82
|
+
|
|
83
|
+
Write `<mockupDir>/brand/brand.md`:
|
|
84
|
+
|
|
85
|
+
- **Palette**: neutral ramp + one accent, as hex, each pair checked for
|
|
86
|
+
WCAG-AA text contrast.
|
|
87
|
+
- **Type pairing**: display + text family, with the reason (not Inter or a
|
|
88
|
+
banned serif by default, `anti-slop-frontend` A2).
|
|
89
|
+
- **Logo concept rationale**: the concept method (monogram, product action,
|
|
90
|
+
metaphor, negative space, construction geometry) and what it means.
|
|
91
|
+
- **Image direction**: one line on photography / illustration style.
|
|
92
|
+
- **Observed tells** in the board, excluded from the brief.
|
|
93
|
+
|
|
94
|
+
## Fallback
|
|
95
|
+
|
|
96
|
+
When the runner is not resolvable or the backend has no usable credentials:
|
|
97
|
+
report the reason in one line, write `brand.md` text-only (palette, type
|
|
98
|
+
pairing, logo concept rationale in words) using the variation axes section of
|
|
99
|
+
`anti-slop-image-direction` for the image-direction line, and continue. Do not
|
|
100
|
+
fail the task. A headless run or a declined confirmation produces the same
|
|
101
|
+
text-only `brand.md`.
|
|
102
|
+
|
|
103
|
+
## Pitfalls
|
|
104
|
+
|
|
105
|
+
- Do NOT run for `marketing` or `product-ui`, or when a brand already exists.
|
|
106
|
+
- Do NOT present a generated logo as final, or vectorise it unasked.
|
|
107
|
+
- Do NOT edit `index.css`, a tokens file or `ui-contract.md`.
|
|
108
|
+
|
|
109
|
+
## Verification
|
|
110
|
+
|
|
111
|
+
- Profile `new-site`, no existing brand, explicit request.
|
|
112
|
+
- The confirmation (count, backend, paid) precedes the board.
|
|
113
|
+
- `brand/` holds exactly the confirmed number of `board-<nn>.png` files.
|
|
114
|
+
- `brand.md` has palette hex with contrast notes, type pairing, logo concept
|
|
115
|
+
rationale and image direction.
|
|
116
|
+
- Project tokens and UI contracts are unchanged.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# SKILL.md — anti-slop-frontend index
|
|
2
|
+
|
|
3
|
+
Pull-only condensed map. Source: packages/anti-slop/.pi/skills/anti-slop-frontend/SKILL.md. Mechanical, countable AI-tell checklist for generated frontend. Advisory only.
|
|
4
|
+
|
|
5
|
+
Triggers: "does this look AI-generated", "anti-slop pass", "remove the AI tells", "why does this look templated", "design review for slop".
|
|
6
|
+
|
|
7
|
+
## Scope
|
|
8
|
+
- Advisory; never a gate. WCAG-AA + severity gates (frontend-mockup-loop) win.
|
|
9
|
+
- Standalone in any React/Tailwind/HTML project.
|
|
10
|
+
- Override path: brief explicitly asks for banned thing → allowed, done with intent.
|
|
11
|
+
- Suite: `anti-slop-frontend` (review/generate), `anti-slop-redesign` (existing surface), `anti-slop-image-direction` (opt-in marketing/new-site images), `anti-slop-brandkit` (opt-in brand board).
|
|
12
|
+
|
|
13
|
+
## Design Read (declare first)
|
|
14
|
+
- Line: `Design Read: <profile> · <audience> · <mood> · VARIANCE <n> / MOTION <n> / DENSITY <n>`.
|
|
15
|
+
- Profiles: `product-ui` (A only; redesign `preserve`; images forbidden) · `marketing` (A+B, B7; `preserve`; images opt-in) · `new-site` (A+B, B7; `greenfield`; images opt-in).
|
|
16
|
+
- Never infer profile silently. Ambiguous → ask one question. No Design Read → Verification fails.
|
|
17
|
+
- Dials 1-10: VARIANCE (1 symmetry), MOTION (1 static), DENSITY (1 airy). Dashboards: high DENSITY, low VARIANCE/MOTION.
|
|
18
|
+
|
|
19
|
+
## Part A — universal (all surfaces)
|
|
20
|
+
- A1 Color: no AI-purple/blue default glow; neutral (Zinc/Slate/Stone) + ONE accent; accent saturation < 80%; one neutral temperature; no pure `#000`/`#fff`.
|
|
21
|
+
- A2 Type: Inter discouraged as default (Geist, Outfit, Cabinet Grotesk, Satoshi). Serif very discouraged; banned defaults Fraunces, Instrument Serif. Emphasis = same family italic/bold. One radius scale per page.
|
|
22
|
+
- A3 Em-dash ban: zero `—`, zero `–` separator. Use `.`, `,`, `:`, `()`, line break, or ` - `. Ranges use plain hyphen. Check: grep rendered output.
|
|
23
|
+
- A4 Fake data: no John Doe/Sarah Chan/Jack Su; no Acme/Nexus/SmartFlow/Cloudly; no 99.99%/50%/1234567; no fake specs (`5.8mm`, `4.1×`) unless real or labeled mock; no Elevate/Seamless/Unleash/Next-Gen/Revolutionize; no egg/default avatars.
|
|
24
|
+
- A5 Assets: no div-built fake screenshots; no hand-rolled SVG icons; one icon family (Phosphor/HugeIcons/Radix/Tabler), uniform stroke; Lucide only on request; images `picsum.photos/seed/{seed}/{w}/{h}` or generated; no dead Unsplash.
|
|
25
|
+
- A6 States: loading/empty/error exist; skeletons match layout; CTA text WCAG AA vs own bg; form contrast AA; label above input (no placeholder-as-label).
|
|
26
|
+
- A7 Motion: each animation justified in one sentence; `MOTION > 4` → page moves; banned `window.addEventListener('scroll', …)` and React-state scroll/rAF loops; use scroll-driven CSS, IntersectionObserver; reduced-motion for `MOTION > 3`.
|
|
27
|
+
- A8 Layering: z-index only from one documented layer scale (base, sticky, dropdown, overlay, modal, toast); no `z-[9999]`/`z-50` sprinkles; grain/noise/blur only on fixed `pointer-events-none` layers; animate only `transform`/`opacity`; no wrapper-div towers (>4 layout-only divs).
|
|
28
|
+
|
|
29
|
+
## Part B — marketing only (skip for dashboards/product UI)
|
|
30
|
+
- B1 Hero: fits viewport; headline ≤ 2 lines; subtext ≤ 20 words / ≤ 4 lines; CTA above fold; hero top padding ≤ `pt-24`; max 4 hero text elements (eyebrow/brand strip, headline, subtext, CTAs); no version labels unless launch.
|
|
31
|
+
- B2 Eyebrow: small uppercase tracked label above headline. Max 1 per 3 sections (hero counts). Check: fail if > ceil(sections/3). No section-number eyebrows (`00 / INDEX`). Default: drop it.
|
|
32
|
+
- B3 Layout: no 3 equal feature cards; max 2 consecutive image+text splits; ≥ 4 layout families per 8 sections; no split-header; bento N items → N cells, ≥2-3 with visual variation; max one marquee.
|
|
33
|
+
- B4 CTA: one label per intent (no "Get in touch"/"Let's talk"/"Contact us" mix); no CTA wrap at desktop; logo wall under hero, logos only, real SVG marks (Simple Icons / devicon) or monograms.
|
|
34
|
+
- B5 Decoration banned: hero bottom strip (`BRAND. MOTION. SPATIAL.`); locale/time/weather strips; scroll cues; version footers (`v1.4.2`, `Build 0048`); `·` max 1 per metadata line; decorative status dots; pills on images; photo-credit captions; poetic labels ("From the field"); hairline `border-t`+`border-b` per row in lists >5 items.
|
|
35
|
+
- B6 Copy: re-read every string; fix broken phrasing, unclear referents, AI-cute wordplay.
|
|
36
|
+
- B7 Layout discipline: nav one line ≥ 1024px; nav height ≤ 80px (default 64-72px); hero CTA visible at 1440×900 and 1024×768; every multi-column section declares < 768px fallback.
|
|
37
|
+
|
|
38
|
+
## Theme parity (T)
|
|
39
|
+
- T1: zero added raw colour literals (`#hex`, `rgb(`, `rgba(`, `hsl(`, `hsla(`) on `+` diff lines in `*.tsx|*.jsx|*.css|*.html|*.vue|*.svelte`. Exclude tests, fixtures, stories, `*.svg`, token-definition files. Use theme tokens.
|
|
40
|
+
- Diff check: `git diff -U0 origin/main...HEAD -- <globs> | grep -E '^\+[^+]' | grep -nE '#[0-9a-fA-F]{3,8}\b|rgba?\(|hsla?\('` (adjust base ref).
|
|
41
|
+
- T2: token guard (if project has one) reports no new violation; else N/A.
|
|
42
|
+
- T3 screenshots: `product-ui` = default dark + default light + one non-default palette; `marketing` = light + dark; `new-site` = one per shipped mode. Human judgment = non-gating note.
|
|
43
|
+
|
|
44
|
+
## Mechanical pre-flight
|
|
45
|
+
- Em-dash; AI-purple; accent lock (one hex family); default font not Inter (serif not Fraunces/Instrument Serif); no Doe/Acme/99.99%/Elevate; no div-built UI or hand-rolled icon paths; CTA/input AA; no `addEventListener('scroll')` + reduced-motion; marketing-only: eyebrow count, zigzag ≤ 2, CTA intent, decoration strips, layout discipline (B7); z-index scale + no animated layout props; T1, T2, T3.
|
|
46
|
+
- Unverifiable box = flagged item → fix step.
|
|
47
|
+
|
|
48
|
+
## Pitfalls
|
|
49
|
+
- Advisory, not hard gates. Part B never on dashboards. Tell never justifies violating cited public rule. Honor override path.
|
|
50
|
+
|
|
51
|
+
## Verification
|
|
52
|
+
- Design Read declared; dials reasoned from brief; only profile's groups applied; pre-flight run; Part B only on marketing; T1-T3 recorded; no tell overrides WCAG-AA or severity-4.
|
|
53
|
+
|
|
54
|
+
Upstream: Leonxlnx/taste-skill @ 18dfc92 (MIT). Section map: `packages/anti-slop/UPSTREAM.md`.
|
|
@@ -4,8 +4,8 @@ description: "A mechanical, countable anti-slop checklist for AI-generated front
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: blackbelt-technology
|
|
7
|
-
version: "0.
|
|
8
|
-
adapted_from: "Leonxlnx/taste-skill (design-taste-frontend, MIT) - countable rules distilled, stack-coupling removed, scoped
|
|
7
|
+
version: "0.2"
|
|
8
|
+
adapted_from: "Leonxlnx/taste-skill@18dfc92 (taste-skill / design-taste-frontend, MIT) - countable rules distilled, stack-coupling removed, scoped by surface profile. Section map: packages/anti-slop/UPSTREAM.md."
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# anti-slop-frontend
|
|
@@ -37,6 +37,20 @@ When both are present: the loop's a11y floor and cite-a-source rule **win**.
|
|
|
37
37
|
This skill feeds concrete failing items into the loop's FIX step. It never
|
|
38
38
|
overrides a gate, and a tell here is never a reason to violate a cited rule.
|
|
39
39
|
|
|
40
|
+
**Authority: advisory.** Findings feed the frontend-mockup-loop FIX step and
|
|
41
|
+
never override a WCAG-AA or severity gate. When a recommendation conflicts
|
|
42
|
+
with a gate result, the gate result stands and the recommendation is recorded
|
|
43
|
+
as overridden.
|
|
44
|
+
|
|
45
|
+
### The suite
|
|
46
|
+
|
|
47
|
+
| Skill | Use for |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `anti-slop-frontend` (this) | review or generate any surface; the tell catalog |
|
|
50
|
+
| `anti-slop-redesign` | change an existing surface (mode, audit, levers, protected list) |
|
|
51
|
+
| `anti-slop-image-direction` | opt-in reference images for `marketing` / `new-site` |
|
|
52
|
+
| `anti-slop-brandkit` | opt-in brand board for a `new-site` with no brand |
|
|
53
|
+
|
|
40
54
|
> **Honesty note:** these rules are curated *taste*, hardened into countable
|
|
41
55
|
> form. They are good defaults, not laws of nature. Every rule has an **override
|
|
42
56
|
> path**: when the brief explicitly asks for the "banned" thing, it is allowed -
|
|
@@ -44,6 +58,36 @@ overrides a gate, and a tell here is never a reason to violate a cited rule.
|
|
|
44
58
|
|
|
45
59
|
---
|
|
46
60
|
|
|
61
|
+
## Design Read and surface profile (declare first)
|
|
62
|
+
|
|
63
|
+
Before reviewing or generating, state ONE line:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
Design Read: <profile> · <audience> · <mood> · VARIANCE <n> / MOTION <n> / DENSITY <n>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Example: `Design Read: marketing · technical buyers · calm, precise · VARIANCE 4 / MOTION 3 / DENSITY 5`.
|
|
70
|
+
|
|
71
|
+
Audience and mood are declared context, not checks. The **profile** is the
|
|
72
|
+
switch that decides which rule groups fire:
|
|
73
|
+
|
|
74
|
+
| Profile | Part A | Part B | Layout discipline (B7) | Redesign default | Image direction |
|
|
75
|
+
|---|---|---|---|---|---|
|
|
76
|
+
| `product-ui` | ✓ | ✗ | ✗ | `preserve` | forbidden |
|
|
77
|
+
| `marketing` | ✓ | ✓ | ✓ | `preserve` | opt-in |
|
|
78
|
+
| `new-site` | ✓ | ✓ | ✓ | `greenfield` | opt-in |
|
|
79
|
+
|
|
80
|
+
- `product-ui`: dashboards, admin panels, data tables, editors, wizards, any
|
|
81
|
+
app screen.
|
|
82
|
+
- `marketing`: an existing landing / portfolio / about / docs-home page.
|
|
83
|
+
- `new-site`: a site with no shipped design yet.
|
|
84
|
+
|
|
85
|
+
Never infer the profile silently. An undeclared profile is how marketing rules
|
|
86
|
+
leak into dense UI. If the brief is ambiguous, ask exactly one question. A
|
|
87
|
+
review or generation reported without a Design Read fails Verification.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
47
91
|
## The three dials (set once, up front)
|
|
48
92
|
|
|
49
93
|
State these before reviewing or generating. They gate which rules fire and how hard.
|
|
@@ -134,6 +178,19 @@ AI-purple and Inter-everywhere as a landing page.
|
|
|
134
178
|
library's scroll primitives.
|
|
135
179
|
- **Reduced-motion honored** for anything above `MOTION 3`.
|
|
136
180
|
|
|
181
|
+
### A8. Layering and DOM cost
|
|
182
|
+
- **No arbitrary z-index.** Every `z-*` / `z-index` value comes from one
|
|
183
|
+
documented layer scale (e.g. base, sticky, dropdown, overlay, modal, toast).
|
|
184
|
+
Mechanical check: count distinct z-index values in the diff; any value not in
|
|
185
|
+
the project's scale = fail. `z-[9999]` / `z-50` sprinkled to "win" a stacking
|
|
186
|
+
fight is the tell.
|
|
187
|
+
- **Grain / noise / blur filters only on fixed, `pointer-events-none` layers**,
|
|
188
|
+
never on a scrolling container (continuous repaint).
|
|
189
|
+
- **Animate only `transform` and `opacity`.** Animating `top` / `left` /
|
|
190
|
+
`width` / `height` = fail.
|
|
191
|
+
- **No wrapper-div towers.** A component that nests > 4 layout-only `<div>`s to
|
|
192
|
+
place one element is flagged; flatten with grid/flex on the parent.
|
|
193
|
+
|
|
137
194
|
---
|
|
138
195
|
|
|
139
196
|
## PART B - Marketing-surface tells (landing / portfolio / about ONLY)
|
|
@@ -205,6 +262,50 @@ templating habits live.
|
|
|
205
262
|
unclear referents, cute-but-wrong wordplay, fake-craftsman micro-meta. Plain
|
|
206
263
|
functional copy beats AI-cute copy.
|
|
207
264
|
|
|
265
|
+
### B7. Layout discipline (`marketing` / `new-site` only)
|
|
266
|
+
- **Nav renders on one line at desktop** (≥ 1024px). Two lines = fail; condense
|
|
267
|
+
labels, drop secondary items, or collapse to a menu.
|
|
268
|
+
- **Nav height ≤ 80px at desktop** (default 64-72px).
|
|
269
|
+
- **Hero CTA visible without scrolling** at 1440×900 and 1024×768 (see B1).
|
|
270
|
+
- **Every multi-column section declares its < 768px fallback** in the same
|
|
271
|
+
component.
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Theme parity (T)
|
|
276
|
+
|
|
277
|
+
A change must hold in every theme the project ships, not only the default.
|
|
278
|
+
Each item is pass/fail. Human visual judgment of the screenshots is a
|
|
279
|
+
**non-gating** note: record it, it never fails the review.
|
|
280
|
+
|
|
281
|
+
### T1. Zero added raw colour literals (all profiles)
|
|
282
|
+
- Count `#hex`, `rgb(`, `rgba(`, `hsl(`, `hsla(` on **added** lines only (the
|
|
283
|
+
`+` lines of the change's diff) in shipped UI source
|
|
284
|
+
(`*.tsx|*.jsx|*.css|*.html|*.vue|*.svelte`). Any hit = fail; use a theme
|
|
285
|
+
token instead.
|
|
286
|
+
- Excluded: tests, fixtures, stories, `*.svg`, and the token-definition files
|
|
287
|
+
themselves (the files that declare the tokens).
|
|
288
|
+
- Diff-scoped command (adjust the base ref):
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
git diff -U0 origin/main...HEAD -- '*.tsx' '*.jsx' '*.css' '*.html' '*.vue' '*.svelte' \
|
|
292
|
+
':!**/__tests__/**' ':!**/*.test.*' ':!**/*.spec.*' ':!**/fixtures/**' ':!**/*.stories.*' \
|
|
293
|
+
| grep -E '^\+[^+]' | grep -nE '#[0-9a-fA-F]{3,8}\b|rgba?\(|hsla?\('
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Also exclude your token-definition files with extra `':!<path>'` entries.
|
|
297
|
+
|
|
298
|
+
### T2. Token guard clean (`product-ui`)
|
|
299
|
+
- If the project has a theme-token guard (a script that flags undeclared or
|
|
300
|
+
misused tokens), it reports no **new** violation. No guard = item N/A.
|
|
301
|
+
|
|
302
|
+
### T3. Screenshot set per profile
|
|
303
|
+
- `product-ui`: three screenshots: the default theme in dark, the default
|
|
304
|
+
theme in light, and one non-default palette. A missing non-default palette
|
|
305
|
+
screenshot = fail.
|
|
306
|
+
- `marketing`: screenshots in light and dark, both recorded in the review.
|
|
307
|
+
- `new-site`: one screenshot per shipped mode.
|
|
308
|
+
|
|
208
309
|
---
|
|
209
310
|
|
|
210
311
|
## Mechanical pre-flight (the grep-able subset)
|
|
@@ -224,6 +325,13 @@ The rules below can be checked by string-search, not judgment. Run them last.
|
|
|
224
325
|
- [ ] *(marketing only)* **Zigzag** ≤ 2 consecutive splits; ≥ 4 layout families (B3).
|
|
225
326
|
- [ ] *(marketing only)* **CTA intent** not duplicated; no CTA wrap at desktop (B4).
|
|
226
327
|
- [ ] *(marketing only)* no decoration/locale/scroll-cue/version strips (B5).
|
|
328
|
+
- [ ] *(marketing only)* **Layout discipline:** nav on one line, nav ≤ 80px,
|
|
329
|
+
hero CTA visible without scroll (B7).
|
|
330
|
+
- [ ] **Z-index:** every z-index value is on the documented layer scale; no
|
|
331
|
+
animated layout properties (A8).
|
|
332
|
+
- [ ] **Theme parity:** zero added raw colour literals in shipped UI source (T1).
|
|
333
|
+
- [ ] **Theme parity:** token guard reports no new violation, if one exists (T2).
|
|
334
|
+
- [ ] **Theme parity:** profile screenshot set exists (T3).
|
|
227
335
|
|
|
228
336
|
If a box can't be honestly ticked, it's a flagged item - feed it to the fix step.
|
|
229
337
|
|
|
@@ -241,16 +349,20 @@ If a box can't be honestly ticked, it's a flagged item - feed it to the fix step
|
|
|
241
349
|
|
|
242
350
|
## Verification
|
|
243
351
|
|
|
244
|
-
-
|
|
352
|
+
- A one-line Design Read (profile, audience, mood, dials) was declared before
|
|
353
|
+
the review or generation; the dials were reasoned from the brief, not defaulted.
|
|
354
|
+
- Only the rule groups the profile enables were applied.
|
|
245
355
|
- The grep-able pre-flight subset was run; every hit is either fixed or has a
|
|
246
356
|
documented brief-driven override.
|
|
247
357
|
- Part B was applied only to marketing surfaces; skipped for product UI.
|
|
358
|
+
- Theme parity items T1-T3 were recorded for the declared profile.
|
|
248
359
|
- No advisory tell was used to override a WCAG-AA or severity-4 gate.
|
|
249
360
|
|
|
250
361
|
---
|
|
251
362
|
|
|
252
363
|
*Adapted from [Leonxlnx/taste-skill](https://github.com/Leonxlnx/taste-skill)
|
|
253
|
-
(`design-taste-frontend`, MIT)
|
|
364
|
+
(`design-taste-frontend`, MIT) at commit `18dfc92` (2026-10-08); the
|
|
365
|
+
per-section map lives in `packages/anti-slop/UPSTREAM.md`. This is a distillation of its countable rules:
|
|
254
366
|
stack-coupling (Next RSC / Motion / GSAP / next/font) removed, rules re-scoped
|
|
255
367
|
into universal vs marketing-only, and reframed as an advisory catalog that pairs
|
|
256
368
|
with - never overrides - frontend-mockup-loop's cite-a-source loop and hard
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anti-slop-image-direction
|
|
3
|
+
description: "Opt-in, paid reference images for marketing or new-site work: plan one image per section, confirm count, backend and cost, generate with pi-nano-banana, then distill a written direction brief for the mockup loop. Images are direction, never source. Never for product UI. Triggers: \"generate design references\", \"image direction for this page\", \"show me visual directions\"."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: blackbelt-technology
|
|
7
|
+
version: "0.1"
|
|
8
|
+
adapted_from: "Leonxlnx/taste-skill@18dfc92 (image-to-code-skill / image-to-code + imagegen-frontend-web, MIT), inverted: images are direction, not source. Section map: packages/anti-slop/UPSTREAM.md."
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# anti-slop-image-direction
|
|
12
|
+
|
|
13
|
+
Generated reference images break a model out of its default layouts (centered
|
|
14
|
+
hero over dark mesh, three equal cards). They are also paid, slow, and full of
|
|
15
|
+
the same tells we ban. This skill keeps the benefit and drops the risk: images
|
|
16
|
+
are an **opt-in direction aid**, distilled into a written brief, and the
|
|
17
|
+
mockup loop's gates still decide.
|
|
18
|
+
|
|
19
|
+
**Authority: advisory.** Findings feed the frontend-mockup-loop FIX step and
|
|
20
|
+
never override a WCAG-AA or severity gate. The direction brief is one input to
|
|
21
|
+
GROUND; documented public rules and the WCAG gates still win over anything an
|
|
22
|
+
image suggests.
|
|
23
|
+
|
|
24
|
+
## When it applies
|
|
25
|
+
|
|
26
|
+
All of these must hold, otherwise generate nothing:
|
|
27
|
+
|
|
28
|
+
1. The declared profile (`anti-slop-frontend` Design Read) is `marketing` or
|
|
29
|
+
`new-site`.
|
|
30
|
+
2. The user explicitly asked for image direction (or passed an explicit flag).
|
|
31
|
+
3. The user confirmed the plan in step 1.
|
|
32
|
+
|
|
33
|
+
Image direction is forbidden for `product-ui`. When asked for a dashboard,
|
|
34
|
+
admin panel, editor or any app screen, refuse image generation, say that image
|
|
35
|
+
direction does not apply to product UI, and offer a text-only direction brief
|
|
36
|
+
instead.
|
|
37
|
+
|
|
38
|
+
## Images are experimental; the text brief is primary
|
|
39
|
+
|
|
40
|
+
The text-only brief (see Fallback) is the primary, always-available path.
|
|
41
|
+
Images are an experimental extra. `pi-nano-banana` ships as a TypeScript bin:
|
|
42
|
+
a global `npm` / `pi install` copy does **not** run as a plain command
|
|
43
|
+
(`ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING`). Resolve the runner like this:
|
|
44
|
+
|
|
45
|
+
| Where | Runner (`$NB`) |
|
|
46
|
+
|---|---|
|
|
47
|
+
| pi-agent-dashboard monorepo | `npx --no-install tsx packages/nano-banana/src/bin/nano-banana.ts` (the repo's locked `tsx`) |
|
|
48
|
+
| after `pi install npm:@blackbelt-technology/pi-dashboard-nano-banana` | `npx --yes tsx@4.23.12 ~/.pi/agent/npm/node_modules/@blackbelt-technology/pi-dashboard-nano-banana/src/bin/nano-banana.ts` (exact pinned `tsx`) |
|
|
49
|
+
|
|
50
|
+
Probe: run `$NB` with no arguments; it prints a `usage: pi-nano-banana ...`
|
|
51
|
+
line. No usage line → the backend is unavailable → Fallback.
|
|
52
|
+
|
|
53
|
+
Never run an unpinned `npx tsx` outside the monorepo: `npx` would fetch
|
|
54
|
+
whatever `tsx` the registry serves and execute it with your permissions.
|
|
55
|
+
|
|
56
|
+
Backends: `gemini` (default, needs `GEMINI_API_KEY` in the environment or a
|
|
57
|
+
`.env`) or `pi` (`--backend pi`, an OpenRouter credential inside pi; a
|
|
58
|
+
different bill).
|
|
59
|
+
|
|
60
|
+
## Procedure
|
|
61
|
+
|
|
62
|
+
### 1. Plan, then confirm
|
|
63
|
+
|
|
64
|
+
- Resolve `<mockupDir>` the same way the mockup loop's MOCKUP step does: in the
|
|
65
|
+
pi-agent-dashboard repo, `openspec/changes/<name>/mockups/` when a change
|
|
66
|
+
exists, else `mockups/<slug>/`; elsewhere, the loop's mockup directory.
|
|
67
|
+
References go in `<mockupDir>/refs/`.
|
|
68
|
+
- List the page sections. Plan one image per section.
|
|
69
|
+
- Pick the variation axes for each section (below).
|
|
70
|
+
- Confirm with `ask_user`, stating: the image count, the backend (`gemini` or
|
|
71
|
+
`pi`), and that generation is paid. No confirmation → generate nothing.
|
|
72
|
+
- **Headless rule:** interactivity is judged by whether the `ask_user` tool is
|
|
73
|
+
in your tool list. If it is absent (subagent, CI, headless run), the run is
|
|
74
|
+
headless: generate nothing and write the text-only brief.
|
|
75
|
+
|
|
76
|
+
### 2. Generate
|
|
77
|
+
|
|
78
|
+
- One image per planned section, using only the backend named in the
|
|
79
|
+
confirmed plan:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
$NB "<prompt>" --output <mockupDir>/refs/<nn>-<section>.png # gemini
|
|
83
|
+
$NB "<prompt>" --output <mockupDir>/refs/<nn>-<section>.png --backend pi
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- A backend change requires a new confirmation. If the confirmed backend fails
|
|
87
|
+
(e.g. Gemini key missing) and the other one is available, stop, re-plan
|
|
88
|
+
naming the new backend, and ask again. Never switch the backend silently.
|
|
89
|
+
- Re-generating an image, or adding images beyond the confirmed count, also
|
|
90
|
+
needs a new confirmation.
|
|
91
|
+
- Every prompt carries its section's variation axes and the Part A bans: no
|
|
92
|
+
purple/violet glow, no neon gradient, no div-style fake dashboard, no stock
|
|
93
|
+
"Jane Doe" faces, no em-dashes in any rendered text.
|
|
94
|
+
- Describe copy, never quote it: "a short two-line headline about release
|
|
95
|
+
speed", not the headline itself.
|
|
96
|
+
|
|
97
|
+
### 3. Analyze → `refs/direction.md`
|
|
98
|
+
|
|
99
|
+
Read every image and write `<mockupDir>/refs/direction.md` with, per section
|
|
100
|
+
and for the set:
|
|
101
|
+
|
|
102
|
+
- **Layout family** and composition anchor.
|
|
103
|
+
- **Spacing rhythm** (tight / regular / airy, section scale).
|
|
104
|
+
- **Palette** as hex values sampled from the image.
|
|
105
|
+
- **Type character** (geometric sans, grotesk, mono, editorial serif, ...).
|
|
106
|
+
- **Observed tells**: every Part A tell seen in an image (e.g. AI-purple glow,
|
|
107
|
+
fake UI panel, pure black). Observed tells are listed and excluded: they
|
|
108
|
+
never carry into the palette or layout direction.
|
|
109
|
+
- Consistency across images: one neutral temperature, one accent family.
|
|
110
|
+
|
|
111
|
+
### 4. Hand-off
|
|
112
|
+
|
|
113
|
+
`direction.md` becomes one input to frontend-mockup-loop step 1 (GROUND),
|
|
114
|
+
next to the shipped UI and the documented public rules. Where the direction
|
|
115
|
+
conflicts with a cited rule or a WCAG gate, the rule and the gate win.
|
|
116
|
+
|
|
117
|
+
## Direction, not source
|
|
118
|
+
|
|
119
|
+
- Images are direction, never the source of truth. The mockup is built from
|
|
120
|
+
the brief plus cited rules, not traced from pixels.
|
|
121
|
+
- Text visible in a generated image is a placeholder and is never transcribed
|
|
122
|
+
into copy, headings, alt text or the brief.
|
|
123
|
+
- Part A tells are checked on the images themselves, not only on the code.
|
|
124
|
+
|
|
125
|
+
## Variation axes
|
|
126
|
+
|
|
127
|
+
Pick one value per axis per section; vary across the page. This section is
|
|
128
|
+
also the text-only brief when no image is generated.
|
|
129
|
+
|
|
130
|
+
- **Composition anchor**: centered statement · top-left lead · bottom-left text
|
|
131
|
+
over image · left-third caption + two-thirds visual (never twice in a row) ·
|
|
132
|
+
off-grid editorial offset · stacked center · image as canvas with a clean
|
|
133
|
+
text safe area. At least 3 different anchors per page.
|
|
134
|
+
- **Hero scale** (per page): giant statement · mid editorial · mini minimalist.
|
|
135
|
+
- **Background mode**: solid surface with inline asset · subtle texture or
|
|
136
|
+
grid · full-bleed image with tonal overlay · editorial side image · flat
|
|
137
|
+
colour block + detail crop · low-chroma tonal gradient · duotone image.
|
|
138
|
+
Never the same mode on every section.
|
|
139
|
+
- **Type character**: geometric sans · grotesk · mono accent · editorial serif
|
|
140
|
+
(only when the brief names one, `anti-slop-frontend` A2).
|
|
141
|
+
- **CTA variation**: primary pill · outline · inline link with arrow ·
|
|
142
|
+
full-width banner · caption under a visual. Vary at least once; the primary
|
|
143
|
+
action stays unmistakable.
|
|
144
|
+
|
|
145
|
+
## Fallback
|
|
146
|
+
|
|
147
|
+
When the runner is not resolvable, the probe prints no usage line, or the
|
|
148
|
+
backend has no usable credentials: report the reason in one line, write
|
|
149
|
+
`<mockupDir>/refs/direction.md` text-only from the variation axes section
|
|
150
|
+
above, and continue. Do not fail the task. The same text-only brief is the
|
|
151
|
+
output of a headless run and of a declined confirmation.
|
|
152
|
+
|
|
153
|
+
## Pitfalls
|
|
154
|
+
|
|
155
|
+
- Do NOT generate for `product-ui`, ever, even when asked twice.
|
|
156
|
+
- Do NOT generate before the user confirmed count, backend and cost.
|
|
157
|
+
- Do NOT copy a headline, label or number out of an image.
|
|
158
|
+
- Do NOT let an image's palette smuggle in a tell (purple glow, pure black).
|
|
159
|
+
|
|
160
|
+
## Verification
|
|
161
|
+
|
|
162
|
+
- Profile is `marketing` or `new-site`; the request was explicit.
|
|
163
|
+
- The confirmation names image count, backend and paid, and precedes the
|
|
164
|
+
first image; any backend change has its own confirmation.
|
|
165
|
+
- `refs/` holds exactly the confirmed number of images, one per section.
|
|
166
|
+
- `refs/direction.md` lists layout family, rhythm, palette hex, type
|
|
167
|
+
character and observed tells; no image text appears verbatim in the mockup.
|
|
168
|
+
- Headless, declined or unavailable runs produced a text-only brief and zero
|
|
169
|
+
images.
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anti-slop-redesign
|
|
3
|
+
description: "Redesign an existing UI without breaking it: declare a mode (greenfield / preserve / overhaul), audit the current surface before any edit, apply modernisation levers in priority order, and never silently change routes, nav labels, form fields, shortcuts or data-testid hooks. Triggers: \"redesign this page\", \"modernise this UI\", \"refresh the look\", \"mockup an existing surface\"."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: blackbelt-technology
|
|
7
|
+
version: "0.1"
|
|
8
|
+
adapted_from: "Leonxlnx/taste-skill@18dfc92 (taste-skill §11 redesign protocol + redesign-skill / redesign-existing-projects, MIT). Section map: packages/anti-slop/UPSTREAM.md."
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# anti-slop-redesign
|
|
12
|
+
|
|
13
|
+
Most UI work changes a surface that already ships. Misclassifying the mode is
|
|
14
|
+
the biggest source of bad redesign output: a "refresh" that renames routes,
|
|
15
|
+
breaks e2e selectors and drops keyboard shortcuts is a regression, however
|
|
16
|
+
good it looks. This skill makes the mode, the audit and the protected list
|
|
17
|
+
explicit before anything is touched.
|
|
18
|
+
|
|
19
|
+
**Authority: advisory.** Findings feed the frontend-mockup-loop FIX step and
|
|
20
|
+
never override a WCAG-AA or severity gate. When a recommendation conflicts
|
|
21
|
+
with a gate result, the gate result stands and the recommendation is recorded
|
|
22
|
+
as overridden. The tell catalog itself lives in `anti-slop-frontend`; this
|
|
23
|
+
skill decides *what may change* and *in which order*.
|
|
24
|
+
|
|
25
|
+
## When to Use
|
|
26
|
+
|
|
27
|
+
- A request to redesign, modernise, refresh or de-template an existing surface.
|
|
28
|
+
- Before `frontend-mockup-loop` MOCKUP on any surface that already ships.
|
|
29
|
+
- Not for a site with no shipped design: that is `new-site` → `greenfield`.
|
|
30
|
+
|
|
31
|
+
## Procedure
|
|
32
|
+
|
|
33
|
+
### 1. Declare the mode (before any edit)
|
|
34
|
+
|
|
35
|
+
State the `anti-slop-frontend` Design Read, then one of three modes:
|
|
36
|
+
|
|
37
|
+
| Mode | Means |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `greenfield` | no existing design, or a full rebuild was explicitly approved |
|
|
40
|
+
| `preserve` | modernise without breaking brand, IA, copy voice or hooks |
|
|
41
|
+
| `overhaul` | new visual language on the existing content and IA |
|
|
42
|
+
|
|
43
|
+
Defaults per surface profile:
|
|
44
|
+
|
|
45
|
+
| Profile | Default mode |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `product-ui` | `preserve` |
|
|
48
|
+
| `marketing` | `preserve` |
|
|
49
|
+
| `new-site` | `greenfield` |
|
|
50
|
+
|
|
51
|
+
- `overhaul` requires explicit user confirmation before proceeding. Ask once
|
|
52
|
+
(`ask_user` when available); without a yes, stay in `preserve`.
|
|
53
|
+
- Pick `overhaul` only when the visual debt is structural (no design system,
|
|
54
|
+
broken mobile, broken IA). Sound IA and content → `preserve`.
|
|
55
|
+
|
|
56
|
+
### 2. Audit before edit
|
|
57
|
+
|
|
58
|
+
Produce the audit before touching any file. A redesign whose first artifact is
|
|
59
|
+
a diff fails Verification.
|
|
60
|
+
|
|
61
|
+
- **Screenshot** of the current surface (both modes if the project ships both).
|
|
62
|
+
- **Brand tokens in use**: colour tokens, type stack, radius scale, logo.
|
|
63
|
+
- **Tells found**: run the `anti-slop-frontend` checklist for the declared
|
|
64
|
+
profile; list each hit with its rule id (A3, B2, ...).
|
|
65
|
+
- **Missing states**: loading / empty / error that do not exist yet.
|
|
66
|
+
- **Protected inventory**: list the items from "Never change silently" that
|
|
67
|
+
the surface contains (routes, nav labels, field names, shortcuts,
|
|
68
|
+
`data-testid` values).
|
|
69
|
+
- **Dial reading** of the existing surface. That is the starting point, not a
|
|
70
|
+
baseline.
|
|
71
|
+
|
|
72
|
+
### 3. Levers in priority order
|
|
73
|
+
|
|
74
|
+
Apply in order; stop as soon as the brief is satisfied. Each lever is a
|
|
75
|
+
separate, reviewable step.
|
|
76
|
+
|
|
77
|
+
1. **Typography** - family, scale, weight hierarchy. Biggest lift per risk.
|
|
78
|
+
2. **Colour** - unify neutrals, one accent, tokens only (`anti-slop-frontend` A1, T1).
|
|
79
|
+
3. **Spacing and rhythm** - consistent scale, section padding, max-width.
|
|
80
|
+
4. **States** - hover / active / focus, then loading / empty / error.
|
|
81
|
+
5. **Motion** - only motivated motion at the declared MOTION dial (A7).
|
|
82
|
+
6. **Layout** - recompose a section only when levers 1-5 cannot fix it; full
|
|
83
|
+
block replacement only for an unsalvageable block.
|
|
84
|
+
|
|
85
|
+
In `preserve`, levers 1-4 are the default scope; 5-6 need a reason in the
|
|
86
|
+
audit.
|
|
87
|
+
|
|
88
|
+
### 4. Verify the protected list
|
|
89
|
+
|
|
90
|
+
Diff the result against the protected inventory from step 2. Every changed
|
|
91
|
+
protected item must be listed and confirmed (see below), or reverted.
|
|
92
|
+
|
|
93
|
+
## Never change silently
|
|
94
|
+
|
|
95
|
+
In `preserve` and `overhaul`, these do not change unless the change is listed
|
|
96
|
+
explicitly and the user confirms it:
|
|
97
|
+
|
|
98
|
+
- routes / URLs and anchor ids
|
|
99
|
+
- nav labels
|
|
100
|
+
- form field names (and their order)
|
|
101
|
+
- brand wordmark and logo
|
|
102
|
+
- legal copy (consent, cookie, terms)
|
|
103
|
+
- keyboard shortcuts
|
|
104
|
+
- `data-testid` attributes (e2e suites select on them)
|
|
105
|
+
|
|
106
|
+
Also preserve, unless asked: copy voice, existing accessibility wins (focus
|
|
107
|
+
states, alt text, keyboard nav, contrast), and analytics event names.
|
|
108
|
+
|
|
109
|
+
## Rules
|
|
110
|
+
|
|
111
|
+
- Work with the existing stack. No framework or styling-library migration.
|
|
112
|
+
- Check the dependency file before importing anything new.
|
|
113
|
+
- Do not break existing behaviour; run the project's tests after each lever.
|
|
114
|
+
- Small, reviewable changes over one big rewrite.
|
|
115
|
+
|
|
116
|
+
## Pitfalls
|
|
117
|
+
|
|
118
|
+
- Do NOT start editing before the mode and audit exist.
|
|
119
|
+
- Do NOT treat "make it modern" as approval for `overhaul`.
|
|
120
|
+
- Do NOT rename a `data-testid` to match a new component name; the e2e suite
|
|
121
|
+
breaks silently in CI, not locally.
|
|
122
|
+
- Do NOT use a tell from the audit to justify violating a WCAG-AA gate.
|
|
123
|
+
|
|
124
|
+
## Verification
|
|
125
|
+
|
|
126
|
+
- A mode was declared before the first edit; `overhaul` has a recorded
|
|
127
|
+
confirmation.
|
|
128
|
+
- The audit (screenshot, tokens, tells, missing states, protected inventory)
|
|
129
|
+
predates the first diff.
|
|
130
|
+
- Levers were applied in priority order; skipped levers are named.
|
|
131
|
+
- Every protected item that changed is listed with its confirmation; all
|
|
132
|
+
others are byte-identical.
|
package/README.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# @blackbelt-technology/anti-slop-frontend
|
|
2
2
|
|
|
3
|
-
A pi package — **
|
|
4
|
-
an undirected model emits when it tries to "look designed
|
|
3
|
+
A pi package — **skills only, no tools** — that catches the concrete signatures
|
|
4
|
+
an undirected model emits when it tries to "look designed", and keeps redesigns
|
|
5
|
+
and generated references from reintroducing them.
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
Every review rule is countable or binary, so you verify pass/fail instead of
|
|
8
|
+
arguing taste. "It looks better" is not a check;
|
|
8
9
|
`eyebrow count > ceil(sections/3)` is.
|
|
9
10
|
|
|
10
11
|
Generic: works in any React/Tailwind/shadcn (or plain HTML) project.
|
|
@@ -17,43 +18,88 @@ pi install npm:@blackbelt-technology/anti-slop-frontend
|
|
|
17
18
|
pi -e npm:@blackbelt-technology/anti-slop-frontend
|
|
18
19
|
```
|
|
19
20
|
|
|
20
|
-
This registers
|
|
21
|
+
This registers four skills. No tools, no commands.
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
| Skill | Use for |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `anti-slop-frontend` | the AI-tell catalog: Design Read, surface profiles, theme parity, grep-able pre-flight |
|
|
26
|
+
| `anti-slop-redesign` | change an existing surface: mode (`greenfield` / `preserve` / `overhaul`), audit first, levers in order, never-change-silently list |
|
|
27
|
+
| `anti-slop-image-direction` | **opt-in, paid** reference images for `marketing` / `new-site`, distilled into a written direction brief |
|
|
28
|
+
| `anti-slop-brandkit` | **opt-in, paid** brand board for a `new-site` with no brand; a proposal, never auto-applied |
|
|
29
|
+
|
|
30
|
+
## Surface profiles
|
|
31
|
+
|
|
32
|
+
Before any review or generation the agent declares a one-line Design Read:
|
|
33
|
+
`profile · audience · mood · VARIANCE/MOTION/DENSITY`. The profile decides
|
|
34
|
+
which rules fire.
|
|
35
|
+
|
|
36
|
+
| Profile | Universal tells (A) | Marketing tells (B) | Layout discipline | Redesign default | Image direction |
|
|
37
|
+
|---|---|---|---|---|---|
|
|
38
|
+
| `product-ui` | ✓ | ✗ | ✗ | `preserve` | forbidden |
|
|
39
|
+
| `marketing` | ✓ | ✓ | ✓ | `preserve` | opt-in |
|
|
40
|
+
| `new-site` | ✓ | ✓ | ✓ | `greenfield` | opt-in |
|
|
41
|
+
|
|
42
|
+
Theme parity (T1-T3) applies to every profile: zero added raw colour literals
|
|
43
|
+
in the diff, the project's token guard clean, and a screenshot set per profile
|
|
44
|
+
(default theme dark + light + one non-default palette for `product-ui`).
|
|
24
45
|
|
|
25
46
|
## What it catches
|
|
26
47
|
|
|
27
48
|
| Part | Scope | Examples |
|
|
28
49
|
|------|-------|----------|
|
|
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).
|
|
50
|
+
| **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, arbitrary z-index |
|
|
51
|
+
| **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, nav on one line ≤ 80px |
|
|
52
|
+
| **T — Theme parity** | every profile | added colour literals, token guard, per-theme screenshots |
|
|
33
53
|
|
|
34
54
|
Every rule has an **override path**: when the brief explicitly asks for the
|
|
35
55
|
"banned" thing, it is allowed — done with intent, not by default-reaching.
|
|
36
56
|
|
|
57
|
+
## Image prerequisite (opt-in, paid)
|
|
58
|
+
|
|
59
|
+
`anti-slop-image-direction` and `anti-slop-brandkit` only generate images on an
|
|
60
|
+
explicit request, after the user confirms the image count, the backend and that
|
|
61
|
+
generation is paid. Headless runs never generate. Without a backend both skills
|
|
62
|
+
fall back to a text-only brief, so the prerequisite is optional.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pi install npm:@blackbelt-technology/pi-dashboard-nano-banana # provides pi-nano-banana
|
|
66
|
+
export GEMINI_API_KEY=... # or use the pi/OpenRouter backend (--backend pi)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Images are experimental; the text brief is the primary path.** The
|
|
70
|
+
`pi-nano-banana` bin is a TypeScript entry and does not run as a plain command
|
|
71
|
+
from an npm / `pi install` copy (`ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING`).
|
|
72
|
+
Run it through a pinned `tsx` (never an unpinned `npx tsx`, which executes
|
|
73
|
+
whatever version the registry serves):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
npx --yes tsx@4.23.12 ~/.pi/agent/npm/node_modules/@blackbelt-technology/pi-dashboard-nano-banana/src/bin/nano-banana.ts "<prompt>" --output out.png
|
|
77
|
+
# inside the pi-agent-dashboard monorepo (uses the repo's locked tsx):
|
|
78
|
+
npx --no-install tsx packages/nano-banana/src/bin/nano-banana.ts "<prompt>" --output out.png
|
|
79
|
+
```
|
|
80
|
+
|
|
37
81
|
## Relationship to `frontend-mockup-loop`
|
|
38
82
|
|
|
39
83
|
Separate, complementary skills:
|
|
40
84
|
|
|
41
|
-
| | frontend-mockup-loop | anti-slop
|
|
85
|
+
| | frontend-mockup-loop | anti-slop suite |
|
|
42
86
|
|---|---|---|
|
|
43
|
-
| Shape | ground→contract→mockup→test→fix→learn **loop** |
|
|
87
|
+
| Shape | ground→contract→mockup→test→fix→learn **loop** | checklist + redesign protocol + opt-in references |
|
|
44
88
|
| Basis | cite an **external public rule** (Nielsen, WCAG, Laws of UX) | codified **AI-tell catalog** |
|
|
45
89
|
| Authority | owns the **hard gates** (WCAG-AA, severity-4) | **advisory only** |
|
|
46
90
|
|
|
47
|
-
When both run: the loop's a11y floor and cite-a-source rule **win**;
|
|
91
|
+
When both run: the loop's a11y floor and cite-a-source rule **win**; the suite
|
|
48
92
|
feeds concrete failing items into the loop's FIX step and never overrides a gate.
|
|
93
|
+
A direction brief from generated images is one GROUND input, never the source.
|
|
49
94
|
|
|
50
95
|
## Attribution
|
|
51
96
|
|
|
52
97
|
Adapted from [Leonxlnx/taste-skill](https://github.com/Leonxlnx/taste-skill)
|
|
53
|
-
(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
98
|
+
(MIT) at commit `18dfc92` (2026-10-08): `taste-skill`, `redesign-skill`,
|
|
99
|
+
`image-to-code-skill`, `imagegen-frontend-web` and `brandkit`. Only countable
|
|
100
|
+
rules are kept; stack coupling (Next RSC / Motion / GSAP / next/font) is
|
|
101
|
+
removed; generated images are direction, not source. The per-section map and
|
|
102
|
+
refresh procedure are in [`UPSTREAM.md`](UPSTREAM.md).
|
|
57
103
|
|
|
58
104
|
## License
|
|
59
105
|
|
package/UPSTREAM.md
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Upstream provenance
|
|
2
|
+
|
|
3
|
+
This package adapts rules from an upstream MIT-licensed skill repository. The
|
|
4
|
+
pin below is the exact commit the current skills were distilled from. A refresh
|
|
5
|
+
is a diff against this pin, not a re-read.
|
|
6
|
+
|
|
7
|
+
- Repository: https://github.com/Leonxlnx/taste-skill
|
|
8
|
+
- Commit: `18dfc928b135629e0eddfdd445a06400d04ed439`
|
|
9
|
+
- Date: 2026-10-08
|
|
10
|
+
- License: MIT (`LICENSE` at the pinned commit, Copyright (c) 2026 Leonxlnx)
|
|
11
|
+
|
|
12
|
+
Adapted upstream skills (directory → upstream `name:` → package skill):
|
|
13
|
+
|
|
14
|
+
| Upstream dir | Upstream `name:` | Package skill |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| `skills/taste-skill` | `design-taste-frontend` | `anti-slop-frontend`, `anti-slop-redesign` |
|
|
17
|
+
| `skills/redesign-skill` | `redesign-existing-projects` | `anti-slop-redesign` |
|
|
18
|
+
| `skills/image-to-code-skill` | `image-to-code` | `anti-slop-image-direction` |
|
|
19
|
+
| `skills/imagegen-frontend-web` | `imagegen-frontend-web` | `anti-slop-image-direction` |
|
|
20
|
+
| `skills/brandkit` | `brandkit` | `anti-slop-brandkit` |
|
|
21
|
+
|
|
22
|
+
Not adapted: `brutalist-skill`, `minimalist-skill`, `soft-skill`,
|
|
23
|
+
`gpt-tasteskill`, `stitch-skill`, `imagegen-frontend-mobile`, `output-skill`,
|
|
24
|
+
`taste-skill-v1`.
|
|
25
|
+
|
|
26
|
+
What we change on the way in, for every row below:
|
|
27
|
+
|
|
28
|
+
- Only countable or binary rules survive. Prose taste becomes an override note.
|
|
29
|
+
- Stack coupling (Next RSC, `next/image`, Motion, GSAP) is removed.
|
|
30
|
+
- Generated images are **direction, not source** (upstream `image-to-code`
|
|
31
|
+
treats them as the source of truth; we invert that).
|
|
32
|
+
- All skills are advisory under `frontend-mockup-loop`, never a gate.
|
|
33
|
+
|
|
34
|
+
## Section map
|
|
35
|
+
|
|
36
|
+
Every upstream section of each adapted skill is listed. Target is a package
|
|
37
|
+
skill (plus section) or `dropped: <reason>`.
|
|
38
|
+
|
|
39
|
+
### taste-skill
|
|
40
|
+
|
|
41
|
+
| Upstream section | Target |
|
|
42
|
+
|---|---|
|
|
43
|
+
| §0 Brief inference (0.A signals, 0.B Design Read, 0.C one question, 0.D anti-default) | `anti-slop-frontend` § Design Read and surface profile |
|
|
44
|
+
| §1 The three dials (1.A inference, 1.B presets, 1.C how dials drive output) | `anti-slop-frontend` § The three dials |
|
|
45
|
+
| §2 Brief → design system map | dropped: design-system choice is owned by frontend-mockup-loop GROUND/CONTRACT, not a countable tell |
|
|
46
|
+
| §3 Default architecture & conventions (stack, state, icons, emoji, responsive, dependency check) | `anti-slop-frontend` § A5 (icon family only); rest dropped: stack coupling |
|
|
47
|
+
| §4.1 Typography | `anti-slop-frontend` § A2 |
|
|
48
|
+
| §4.2 Color calibration | `anti-slop-frontend` § A1 |
|
|
49
|
+
| §4.3 Layout diversification | `anti-slop-frontend` § B3 |
|
|
50
|
+
| §4.4 Materiality, shadows, cards | dropped: prose taste with no countable threshold |
|
|
51
|
+
| §4.5 Interactive UI states | `anti-slop-frontend` § A6 |
|
|
52
|
+
| §4.6 Data & form patterns | `anti-slop-frontend` § A6 (form contrast, label above input) |
|
|
53
|
+
| §4.7 Layout discipline | `anti-slop-frontend` § B1 (hero) and § B7 (nav, marketing only) |
|
|
54
|
+
| §4.8 Image & visual asset strategy | `anti-slop-frontend` § A5 |
|
|
55
|
+
| §4.9 Content density | dropped: covered by the DENSITY dial, no countable rule |
|
|
56
|
+
| §4.10 Quotes & testimonials | `anti-slop-frontend` § A4 (fake data) |
|
|
57
|
+
| §4.11 Page theme lock | `anti-slop-frontend` § Theme parity (T1-T3) |
|
|
58
|
+
| §5 Context-aware proactivity (5.A-5.C GSAP skeletons) | dropped: GSAP code skeletons are stack coupling, out of scope |
|
|
59
|
+
| §5.D Forbidden animation patterns | `anti-slop-frontend` § A7 |
|
|
60
|
+
| §6.A Hardware acceleration | `anti-slop-frontend` § A8 |
|
|
61
|
+
| §6.B Reduced motion | `anti-slop-frontend` § A7 |
|
|
62
|
+
| §6.C Dark mode | `anti-slop-frontend` § Theme parity (T1-T3) |
|
|
63
|
+
| §6.D Core Web Vitals targets | dropped: measured by Lighthouse, a performance gate outside this advisory suite |
|
|
64
|
+
| §6.E DOM cost | `anti-slop-frontend` § A8 |
|
|
65
|
+
| §6.F Z-index restraint | `anti-slop-frontend` § A8 |
|
|
66
|
+
| §7 Dial definitions | `anti-slop-frontend` § The three dials |
|
|
67
|
+
| §8 Dark mode protocol (token strategy, no prescribed colors, default mode, test both modes) | `anti-slop-frontend` § Theme parity (T1-T3) |
|
|
68
|
+
| §9.A-9.E AI tells (visual, type, layout, content, external resources) | `anti-slop-frontend` § A1-A5 |
|
|
69
|
+
| §9.F Production-test tells | `anti-slop-frontend` § B5 |
|
|
70
|
+
| §9.G Em-dash ban | `anti-slop-frontend` § A3 |
|
|
71
|
+
| §10 Reference vocabulary | dropped: naming glossary, no rule to check |
|
|
72
|
+
| §11.A Detect the mode | `anti-slop-redesign` § 1 Declare the mode |
|
|
73
|
+
| §11.B Audit before touching | `anti-slop-redesign` § 2 Audit before edit |
|
|
74
|
+
| §11.C Preservation rules | `anti-slop-redesign` § Never change silently |
|
|
75
|
+
| §11.D Modernisation levers | `anti-slop-redesign` § 3 Levers in priority order |
|
|
76
|
+
| §11.E Targeted evolution vs full redesign | `anti-slop-redesign` § 1 Declare the mode |
|
|
77
|
+
| §11.F What never changes silently | `anti-slop-redesign` § Never change silently |
|
|
78
|
+
| §12 Block library | dropped: a component-library contract, out of scope |
|
|
79
|
+
| §13 Out of scope (declares dashboards out of scope) | dropped: we serve `product-ui` via the surface profile instead |
|
|
80
|
+
| §14 Final pre-flight check | `anti-slop-frontend` § Mechanical pre-flight |
|
|
81
|
+
| Appendix A Install commands per design system | dropped: stack coupling |
|
|
82
|
+
| Appendix B Canonical sources | dropped: frontend-mockup-loop GROUND owns external sources |
|
|
83
|
+
| Appendix C Apple Liquid Glass approximation | dropped: platform-specific recipe, not a tell |
|
|
84
|
+
|
|
85
|
+
### redesign-skill
|
|
86
|
+
|
|
87
|
+
| Upstream section | Target |
|
|
88
|
+
|---|---|
|
|
89
|
+
| How this works (scan, diagnose, fix) | `anti-slop-redesign` § Procedure |
|
|
90
|
+
| Design audit: typography, color, layout, interactivity, content, components, iconography | `anti-slop-redesign` § 2 Audit before edit (tells checked via `anti-slop-frontend` Part A/B) |
|
|
91
|
+
| Design audit: code quality | dropped: code review is owned by `review-code`, not a design tell |
|
|
92
|
+
| Design audit: strategic omissions | `anti-slop-redesign` § 2 Audit before edit (missing states) |
|
|
93
|
+
| Upgrade techniques (type, layout, motion, surface) | `anti-slop-redesign` § 3 Levers in priority order |
|
|
94
|
+
| Fix priority | `anti-slop-redesign` § 3 Levers in priority order |
|
|
95
|
+
| Rules (keep stack, do not break functionality, check deps) | `anti-slop-redesign` § Rules |
|
|
96
|
+
|
|
97
|
+
### image-to-code-skill
|
|
98
|
+
|
|
99
|
+
| Upstream section | Target |
|
|
100
|
+
|---|---|
|
|
101
|
+
| Core directive: image-first design to code | `anti-slop-image-direction` § Direction, not source (inverted: images are direction, not source of truth) |
|
|
102
|
+
| §1 Active baseline configuration | `anti-slop-image-direction` § 1 Plan (dials come from the `anti-slop-frontend` Design Read) |
|
|
103
|
+
| §2 Mandatory image-first rule | dropped: image direction is opt-in here, never mandatory |
|
|
104
|
+
| §3 Generate enough images rule | `anti-slop-image-direction` § 1 Plan (one image per section, count stated up front) |
|
|
105
|
+
| §4 Codex-specific section image rule | dropped: agent-runtime specific |
|
|
106
|
+
| §5 Do not crop old images rule | `anti-slop-image-direction` § 2 Generate (one fresh image per section) |
|
|
107
|
+
| §6 Fresh re-generation rule | `anti-slop-image-direction` § 2 Generate (re-generation needs a new confirm) |
|
|
108
|
+
| §7 Optional detail / extraction image rule | dropped: extra paid images beyond one per section |
|
|
109
|
+
| §8 Clean analysis standard | `anti-slop-image-direction` § 3 Analyze |
|
|
110
|
+
| §9 Deep image analysis requirement | `anti-slop-image-direction` § 3 Analyze |
|
|
111
|
+
| §10 Image-first workflow | `anti-slop-image-direction` § Procedure |
|
|
112
|
+
| §11 When to trigger image generation first | `anti-slop-image-direction` § When it applies |
|
|
113
|
+
| §12 Combinatorial variation engine | `anti-slop-image-direction` § Variation axes |
|
|
114
|
+
| §13 Website reference rule | `anti-slop-image-direction` § 2 Generate (prompt describes, never quotes) |
|
|
115
|
+
| §14 Hero minimalism rules | `anti-slop-frontend` § B1 |
|
|
116
|
+
| §15 Responsive first-view rule | `anti-slop-frontend` § B1 |
|
|
117
|
+
| §16 Anti-nested-box rule | dropped: no countable threshold upstream |
|
|
118
|
+
| §17 Reduce micro-UI clutter rule | `anti-slop-frontend` § B5 |
|
|
119
|
+
| §18 Section image generation rule | `anti-slop-image-direction` § 2 Generate |
|
|
120
|
+
| §19 Website image system rule | `anti-slop-image-direction` § 3 Analyze (consistency across images) |
|
|
121
|
+
| §20 Fixed media frame rule | dropped: implementation detail for image-as-source, which we do not do |
|
|
122
|
+
| §21 Text extraction rule | `anti-slop-image-direction` § Direction, not source (image text is a placeholder, never transcribed) |
|
|
123
|
+
| §22 Typography extraction rule | `anti-slop-image-direction` § 3 Analyze (type character) |
|
|
124
|
+
| §23 Spacing extraction rule | `anti-slop-image-direction` § 3 Analyze (spacing rhythm) |
|
|
125
|
+
| §24 Button / component extraction rule | dropped: pixel extraction treats the image as source |
|
|
126
|
+
| §25 Color extraction rule | `anti-slop-image-direction` § 3 Analyze (palette hex) |
|
|
127
|
+
| §26 Design-to-code copy discipline | `anti-slop-image-direction` § Direction, not source |
|
|
128
|
+
| §27 Anti-drift implementation rule | dropped: drift from the image is allowed; the loop gates win |
|
|
129
|
+
| §28 Missing detail resolution | `anti-slop-image-direction` § 4 Hand-off |
|
|
130
|
+
| §29 Anti-AI-slop rules | `anti-slop-frontend` § A1-A5, B3 |
|
|
131
|
+
| §30 Typography-first discipline | `anti-slop-frontend` § A2 |
|
|
132
|
+
| §31 Section rhythm rule | `anti-slop-frontend` § B3 |
|
|
133
|
+
| §32 Density & spacing discipline | `anti-slop-frontend` § The three dials (DENSITY) |
|
|
134
|
+
| §33 Default section packs | dropped: page templates, not tells |
|
|
135
|
+
| §34 Multi-image consistency rule | `anti-slop-image-direction` § 3 Analyze |
|
|
136
|
+
| §35 Clarity check | `anti-slop-image-direction` § Verification |
|
|
137
|
+
| §36 Response behavior | dropped: agent-runtime chat format |
|
|
138
|
+
| §37 Example interpretations | dropped: examples, no rule |
|
|
139
|
+
| §38 Final goal | dropped: restates the directive |
|
|
140
|
+
|
|
141
|
+
### imagegen-frontend-web
|
|
142
|
+
|
|
143
|
+
| Upstream section | Target |
|
|
144
|
+
|---|---|
|
|
145
|
+
| Hard output rule (images only, no code) | dropped: our output is a direction brief plus mockup, not images only |
|
|
146
|
+
| Hero composition bias | `anti-slop-image-direction` § Variation axes (composition anchor) |
|
|
147
|
+
| Core directive: art direction | `anti-slop-image-direction` § Direction, not source |
|
|
148
|
+
| §1 Active baseline configuration, brief-to-direction mapping | `anti-slop-image-direction` § 1 Plan |
|
|
149
|
+
| §2 Variation engine: theme, background, type, hero, section system, components, motion | `anti-slop-image-direction` § Variation axes |
|
|
150
|
+
| §2 Composition anchor, background mode, CTA variation, hero scale | `anti-slop-image-direction` § Variation axes |
|
|
151
|
+
| §2 Narrative spine, second-read moment | dropped: narrative prose with no countable check |
|
|
152
|
+
| §3 Frontend reference rule | `anti-slop-image-direction` § 2 Generate |
|
|
153
|
+
| §4 Hero minimalism rules | `anti-slop-frontend` § B1 |
|
|
154
|
+
| §5 Image count & page slicing | `anti-slop-image-direction` § 1 Plan (one image per section) |
|
|
155
|
+
| §6 Creativity escalation rule | dropped: no countable threshold |
|
|
156
|
+
| §7 Image-first art direction | dropped: image direction is opt-in here, never first by default |
|
|
157
|
+
| §8 Anti-AI-slop rules | `anti-slop-image-direction` § 2 Generate (Part A bans in every prompt) |
|
|
158
|
+
| §9 Typography-first discipline | `anti-slop-frontend` § A2 |
|
|
159
|
+
| §10 Section rhythm rule | `anti-slop-frontend` § B3 |
|
|
160
|
+
| §11 Component execution guidelines | dropped: component recipes, not tells |
|
|
161
|
+
| §12 Density & spacing discipline | `anti-slop-frontend` § The three dials (DENSITY) |
|
|
162
|
+
| §13 Color & material rules | `anti-slop-frontend` § A1 |
|
|
163
|
+
| §14 Image / media direction | `anti-slop-image-direction` § 3 Analyze |
|
|
164
|
+
| §15 Default site packs | dropped: page templates, not tells |
|
|
165
|
+
| §16 Multi-image consistency rule | `anti-slop-image-direction` § 3 Analyze |
|
|
166
|
+
| §17 Clarity check | `anti-slop-image-direction` § Verification |
|
|
167
|
+
| §18 Extra creativity & implementation edge | dropped: prose taste with no countable check |
|
|
168
|
+
| §19 Response behavior | dropped: agent-runtime chat format |
|
|
169
|
+
| §20 Example interpretations | dropped: examples, no rule |
|
|
170
|
+
| §21 Final goal | dropped: restates the directive |
|
|
171
|
+
|
|
172
|
+
### brandkit
|
|
173
|
+
|
|
174
|
+
| Upstream section | Target |
|
|
175
|
+
|---|---|
|
|
176
|
+
| Brandkit image generation skill (role) | `anti-slop-brandkit` § When it applies |
|
|
177
|
+
| Reference style DNA | `anti-slop-brandkit` § 2 Generate (prompt style) |
|
|
178
|
+
| Core principle | `anti-slop-brandkit` § Proposal, not identity |
|
|
179
|
+
| Default output | `anti-slop-brandkit` § 2 Generate (one board image) |
|
|
180
|
+
| Brand strategy first | `anti-slop-brandkit` § 1 Plan (strategy before image) |
|
|
181
|
+
| Logo generation standard | `anti-slop-brandkit` § Proposal, not identity (logos are concepts) |
|
|
182
|
+
| Logo concept methods (monogram, product action, metaphor, negative space, geometry) | `anti-slop-brandkit` § 3 Brief (logo concept rationale) |
|
|
183
|
+
| Board composition DNA | `anti-slop-brandkit` § 2 Generate |
|
|
184
|
+
| Default 3 × 3 panel system | `anti-slop-brandkit` § 2 Generate (3×3 board) |
|
|
185
|
+
| 2 × 3 reference-style layout | dropped: one board layout is enough; variants only on request |
|
|
186
|
+
| Visual modes (dark developer, product, nature, security, editorial, luxury, voice, cultural) | dropped: preset aesthetics; the Design Read picks the mood |
|
|
187
|
+
| Premium detail language | dropped: prose taste with no countable check |
|
|
188
|
+
| Text rules | `anti-slop-brandkit` § 2 Generate (image text is a placeholder) |
|
|
189
|
+
| Tagline style | dropped: copywriting, not a tell |
|
|
190
|
+
| Image direction | `anti-slop-brandkit` § 3 Brief (image direction line) |
|
|
191
|
+
| Mockup direction | `anti-slop-brandkit` § 2 Generate |
|
|
192
|
+
| Color discipline | `anti-slop-brandkit` § 3 Brief (palette) and `anti-slop-frontend` § A1 |
|
|
193
|
+
| Anti-generic rules | `anti-slop-brandkit` § 2 Generate (Part A bans in the prompt) |
|
|
194
|
+
| Reference usage | dropped: uploaded-reference handling, not used |
|
|
195
|
+
| Prompt template | `anti-slop-brandkit` § 2 Generate |
|
|
196
|
+
| Final output standard | `anti-slop-brandkit` § Verification |
|
|
197
|
+
|
|
198
|
+
## Refresh procedure
|
|
199
|
+
|
|
200
|
+
1. Clone upstream and diff the adapted skills against the pin:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
git clone https://github.com/Leonxlnx/taste-skill /tmp/taste-skill
|
|
204
|
+
cd /tmp/taste-skill
|
|
205
|
+
git diff <pinned-commit>..<new-sha> -- \
|
|
206
|
+
skills/taste-skill skills/redesign-skill skills/image-to-code-skill \
|
|
207
|
+
skills/imagegen-frontend-web skills/brandkit
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
2. Re-check `LICENSE` at `<new-sha>`. Stop if it is no longer MIT.
|
|
211
|
+
3. For each changed upstream section, update the matching package skill or
|
|
212
|
+
mark the row `dropped: <reason>`. Add rows for new sections. No row may be
|
|
213
|
+
empty or `TBD`.
|
|
214
|
+
4. Update `Commit` and `Date` above, and the short SHA in every suite skill's
|
|
215
|
+
`metadata.adapted_from`.
|
|
216
|
+
5. Keep the `anti-slop-frontend` `description:` byte-identical (digest-pinned
|
|
217
|
+
in `scripts/__tests__/skill-frontmatter.test.mjs`).
|
|
218
|
+
6. Run `npx vitest run scripts/__tests__/anti-slop-suite-contract.test.mjs`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackbelt-technology/anti-slop-frontend",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Pi
|
|
3
|
+
"version": "0.10.0",
|
|
4
|
+
"description": "Pi skills — a mechanical, countable anti-slop suite for AI-generated frontend: AI-tell checklist with surface profiles and theme parity, a redesign protocol, and opt-in image direction and brand-kit skills. Advisory; pairs with frontend-mockup-loop. Works in any React/Tailwind/HTML project.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,16 +21,24 @@
|
|
|
21
21
|
"ai-tells",
|
|
22
22
|
"ux",
|
|
23
23
|
"accessibility",
|
|
24
|
-
"ui"
|
|
24
|
+
"ui",
|
|
25
|
+
"redesign",
|
|
26
|
+
"theme-parity",
|
|
27
|
+
"image-direction",
|
|
28
|
+
"brand-kit"
|
|
25
29
|
],
|
|
26
30
|
"pi": {
|
|
27
31
|
"skills": [
|
|
28
|
-
".pi/skills/anti-slop-frontend"
|
|
32
|
+
".pi/skills/anti-slop-frontend",
|
|
33
|
+
".pi/skills/anti-slop-redesign",
|
|
34
|
+
".pi/skills/anti-slop-image-direction",
|
|
35
|
+
".pi/skills/anti-slop-brandkit"
|
|
29
36
|
]
|
|
30
37
|
},
|
|
31
38
|
"files": [
|
|
32
39
|
".pi/skills/",
|
|
33
40
|
"README.md",
|
|
41
|
+
"UPSTREAM.md",
|
|
34
42
|
"!**/AGENTS.md",
|
|
35
43
|
"!**/*.AGENTS.md"
|
|
36
44
|
]
|