AGENT SKILL

anti-slop-redesign

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".

License 许可
MIT
最近更新
2026-11-12
Stars
★ 348
Forks
56

01 前言 Front Matter

name
anti-slop-redesign
license
MIT
metadata
{ "author": "blackbelt-technology", "version": "0.1", "adapted_from": "Leonxlnx/taste-skill@18dfc92 (taste-skill §11 redesign protocol + redesign-skill / redesign-existing-projects, MIT). Section map: packages/anti-slop/UPSTREAM.md." }
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".

03 SKILL.md 正文

anti-slop-redesign

Most UI work changes a surface that already ships. Misclassifying the mode is the biggest source of bad redesign output: a "refresh" that renames routes, breaks e2e selectors and drops keyboard shortcuts is a regression, however good it looks. This skill makes the mode, the audit and the protected list explicit before anything is touched.

Authority: advisory. Findings feed the frontend-mockup-loop FIX step and never override a WCAG-AA or severity gate. When a recommendation conflicts with a gate result, the gate result stands and the recommendation is recorded as overridden. The tell catalog itself lives in anti-slop-frontend; this skill decides what may change and in which order.

When to Use

  • A request to redesign, modernise, refresh or de-template an existing surface.
  • Before frontend-mockup-loop MOCKUP on any surface that already ships.
  • Not for a site with no shipped design: that is new-site → greenfield.

Procedure

1. Declare the mode (before any edit)

State the anti-slop-frontend Design Read, then one of three modes:

Mode Means
greenfield no existing design, or a full rebuild was explicitly approved
preserve modernise without breaking brand, IA, copy voice or hooks
overhaul new visual language on the existing content and IA

Defaults per surface profile:

Profile Default mode
product-ui preserve
marketing preserve
new-site greenfield
  • overhaul requires explicit user confirmation before proceeding. Ask once (ask_user when available); without a yes, stay in preserve.
  • Pick overhaul only when the visual debt is structural (no design system, broken mobile, broken IA). Sound IA and content → preserve.

2. Audit before edit

Produce the audit before touching any file. A redesign whose first artifact is a diff fails Verification.

  • Screenshot of the current surface (both modes if the project ships both).
  • Brand tokens in use: colour tokens, type stack, radius scale, logo.
  • Tells found: run the anti-slop-frontend checklist for the declared profile; list each hit with its rule id (A3, B2, ...).
  • Missing states: loading / empty / error that do not exist yet.
  • Protected inventory: list the items from "Never change silently" that the surface contains (routes, nav labels, field names, shortcuts, data-testid values).
  • Dial reading of the existing surface. That is the starting point, not a baseline.

3. Levers in priority order

Apply in order; stop as soon as the brief is satisfied. Each lever is a separate, reviewable step.

  1. Typography - family, scale, weight hierarchy. Biggest lift per risk.
  2. Colour - unify neutrals, one accent, tokens only (anti-slop-frontend A1, T1).
  3. Spacing and rhythm - consistent scale, section padding, max-width.
  4. States - hover / active / focus, then loading / empty / error.
  5. Motion - only motivated motion at the declared MOTION dial (A7).
  6. Layout - recompose a section only when levers 1-5 cannot fix it; full block replacement only for an unsalvageable block.

In preserve, levers 1-4 are the default scope; 5-6 need a reason in the audit.

4. Verify the protected list

Diff the result against the protected inventory from step 2. Every changed protected item must be listed and confirmed (see below), or reverted.

Never change silently

In preserve and overhaul, these do not change unless the change is listed explicitly and the user confirms it:

  • routes / URLs and anchor ids
  • nav labels
  • form field names (and their order)
  • brand wordmark and logo
  • legal copy (consent, cookie, terms)
  • keyboard shortcuts
  • data-testid attributes (e2e suites select on them)

Also preserve, unless asked: copy voice, existing accessibility wins (focus states, alt text, keyboard nav, contrast), and analytics event names.

Rules

  • Work with the existing stack. No framework or styling-library migration.
  • Check the dependency file before importing anything new.
  • Do not break existing behaviour; run the project's tests after each lever.
  • Small, reviewable changes over one big rewrite.

Pitfalls

  • Do NOT start editing before the mode and audit exist.
  • Do NOT treat "make it modern" as approval for overhaul.
  • Do NOT rename a data-testid to match a new component name; the e2e suite breaks silently in CI, not locally.
  • Do NOT use a tell from the audit to justify violating a WCAG-AA gate.

Verification

  • A mode was declared before the first edit; overhaul has a recorded confirmation.
  • The audit (screenshot, tokens, tells, missing states, protected inventory) predates the first diff.
  • Levers were applied in priority order; skipped levers are named.
  • Every protected item that changed is listed with its confirmation; all others are byte-identical.

04 同仓库更多 Skills

BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

youtube-srt

Download YouTube subtitles (SRT + timestamped TXT) for a channel, playlist or video via yt-dlp, no media download; optionally mine them into a categorized catalog (e.g. AI models by function, open weights, local runnability, hardware tier). Use on "download the srt of this video", "transcripts of channel X for the last N months", "catalog the models AI Search talked about", "update docs/models".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

video-transcription

Transcribe video and audio files to SRT subtitles with speaker diarization using the Soniox (default) or AssemblyAI API. Use when the user wants to transcribe meetings, videos, or audio files. Supports MKV, MP4, MOV, M4A, MP3. Triggers on "/transcribe", "transcribe my meetings", "transcribe videos in ~/Movies", or any request to convert audio/video to text.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

speaker-id

Name anonymous diarized SRT speakers from a persistent local voiceprint library and repair speaker drift; local, CPU-only, no API key. Triggers "who is speaker 2", "put names on the transcript", "label the meeting SRT", "the diarization split one person into three", "enroll my voice". Backed by the pi-voiceid CLI.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-showreel-production-kit

Turn a video timeline + voiceover into a reproducible, sliceable Veo 3.1 prompt package with a consistency anchor and AI storyboard sketches.

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

veo-generator

Render a scripted video project into mp4 clips with the Google Veo 3.1 API. Reads a project's shot package (shots/*.md), one clip per camera cut, reusing each shot's prompt and sketch — world anchor only with `--with-reference`, seed unless `--no-seed`. Use on "render the Veo video for <project>", "generate the videos from the shot scripts", "make the clips with Veo".

★ 348
BlackBeltTechnology
BlackBeltTechnology/pi-agent-dashboard

hyperframes-showreel

Turn real screen and site footage into a rhythmic showreel rendered with HyperFrames: sampling, edit script, redacted clips, a generated composition, Veo only as additive FX, music edit + camera punches, delivery render and export QA. Use on "make a showreel from these recordings", "build the HyperFrames video", "assemble the footage edit", "render and QA the showreel".

★ 348