Frontend Unslop
Verified creator: @fikrifirmanf signed in with the GitHub account that owns this repository. It is not a safety check.
Review AI-written React, Next.js, and Tailwind code for implementation mistakes.
MCP configuration
Copy into a client that accepts mcpServers JSON. Other clients may use a different configuration format.
{
"mcpServers": {
"frontend-unslop": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Use this in your own environment. Copying text here does not run it.
How to use it
- Open the project documentation and choose the instructions for your AI client.
- Copy the configuration and companion skill command if needed.
- Configure the tools in your own environment, then try the example request.
SKILL.md
The instructions your assistant reads, from fikrifirmanf/frontend-unslop-mcp/skills/frontend-unslop/SKILL.md. Its authors wrote it, so read it before you install.
name: frontend-unslop description: Enforces high-craft frontend engineering and eliminates AI UI/React slop. Trigger whenever creating, refactoring, or styling React, Next.js, TypeScript, or Tailwind CSS components.
Frontend Anti-Slop Protocol
Never output generic first-draft UI or unverified React boilerplate.
1. Visual & Tailwind (HARD BANS)
- No "AI SaaS purple" gradients: never default to
from-indigo-500 via-purple-500 to-pink-500or neon glow backdrops unless defined in design tokens. - No generic 3-column icon cards: no symmetric 3-card grids with an icon in a tinted circle unless requested. Use layouts that fit the data: bento, tables, dense lists.
- No happy-path-only components: every data-driven component implements
Loading(skeleton matching layout geometry),Empty(actionable), andError(retryable inline) states. - Token discipline: prefer semantic tokens (
bg-background,text-foreground,border-border) over arbitrary hex, but only tokens that are defined (see section 2).
2. Styles MUST load (HARD REQUIREMENT, especially one-shot prompts)
A page with unstyled markup is a failure. In a fresh or one-shot build, nothing is set up for you, so:
- Wire the stylesheet: ensure an entry CSS exists and is imported by the root (
import "./globals.css"in the Next.jsapp/layout.tsx, or inmain.tsx;<link>/<style>for plain HTML). Tailwind v4:@import "tailwindcss";. Tailwind v3:@tailwind base; @tailwind components; @tailwind utilities;pluscontentglobs covering every source dir. - Define every token you use:
bg-background,text-foreground,border-border,bg-primary, etc. do not exist by default. Declare the CSS variables and register them (v4:@theme inline { --color-background: var(--background); ... }; v3: map intailwind.config). If you will not define tokens, use real Tailwind colors (bg-zinc-950,text-zinc-100). - Never invent utilities or
@applyundefined classes. Dynamic class names (bg-${color}-500) are not generated; use complete literal class strings. - Create the config the stack needs (
postcss.config.mjswith@tailwindcss/postcssfor v4;tailwind.configfor v3) and install the packages in the same change. - Include the stylesheet, config and layout edits in the same response as the components, never as a follow-up.
3. Images, motion & layout integrity (HARD RULES)
- Never invent image URLs. Do not write
images.unsplash.com/photo-...IDs from memory; they resolve to wrong subjects (a burger on a water charity page) or 404. Call MCP toolget_verified_imageswith a descriptivequeryand use the returned URLs andaltverbatim. If it returnsPLACEHOLDER, ship the SVG placeholders. Do not swap in guessed photos. - No frozen counters. Never start a count-up at
useState(0); an SSR render or screenshot freezes it at nonsense like "23% Transparency". Render the real target value and animate with CSS, or initialise state with the target. - Safe scroll reveals. No
initial={{ opacity: 0 }}gated onwhileInView. Content must be visible by default; use a subtley: 12 -> 0or CSS keyframes, and respectprefers-reduced-motion. - Aligned cards. Every card in a grid: wrapper
flex flex-col h-full, bodyflex-1, footer/CTA/progressmt-auto, so buttons share one baseline whatever the title length. - Break grid monotony. With 4+ items, do not render N identical cards: make the first a
col-span-2featured card or give one a distinct ring/border treatment. - Grid slot math. Before writing a grid, add up the column spans: the total MUST be a multiple of the column count, or the last row ends with an orphan. With
grid-cols-3and onecol-span-2featured card: render 5 cards (row 1: span-2 + span-1; row 2: three span-1), or 4 cards with the last one alsocol-span-2(2+1, 1+2). NEVER render 6 cards when one iscol-span-2(7 slots leaves a lone card on row 3). The same arithmetic applies to any column count and any number of spanning cards. - Typography.
text-balanceon everyh1-h3,text-prettyon paragraphs. Left-align section headings; use full-bleed contrast bands instead of floating white cards on white. - No ambient
blur-2xl/3xlcorner blobs. Use flat colour fields. - No hydration traps. Never render
new Date(),Date.now()orMath.random()directly in JSX. - Complete pages. Include every requested section (for example "How it works"); do not silently skip one.
4. React & TypeScript (HARD BANS)
- No
useEffectfor derived state: compute during render or withuseMemo. - No type escapes:
: any,as unknown as,@ts-ignore,@ts-expect-error,eslint-disable. - No silent error swallowing: no empty
catch {}orcatch (e) { console.log(e) }. - No placeholder artifacts: no
// TODO,Lorem ipsum,via.placeholder.com,John Doe,Acme Inc. - Stable keys: never
key={index}(orkey={`row-${i}`}); use the item's id. - No dynamic Tailwind classes:
`bg-${tone}-500`is never generated. Map values to complete literal strings (const tone = { ok: "bg-emerald-600", bad: "bg-red-600" }). - Real links: no
href="#", emptyhreforjavascript:. Use a route, or a<button>for actions. - Effects that fetch abort: create an
AbortControllerand abort in the cleanup, or use the framework's loader/query library. - No raw HTML injection (
dangerouslySetInnerHTML,v-html) without sanitising. JSON-LD viaJSON.stringifyis fine.
5. Mandatory verification loop
Before claiming a frontend task is complete:
- Call MCP tool
audit_frontend_slopwith every modified file path. - Call MCP tool
verify_styles_wiredwith the modified files. It confirms the stylesheet exists and is imported, and that every semantic token class is defined. - Call MCP tool
verify_typescript_compile. - On
status: "FAIL", fix every reported violation and re-run untilPASS. Omittingfilesaudits the git working-tree changes. - A verified false positive may be suppressed with
{/* unslop-ignore RULE_ID -- reason */}(or// unslop-ignore ...) on or above the line. A suppression without a reason is an ERROR. SKIPPEDmeans a tool could not run (e.g. TypeScript not installed): say so, never claim it passed.
For visual craft and accessibility (contrast, focus, alt text, token sprawl) also run ui-unslop; for user-facing text run copy-unslop if those servers are installed.
Other setup options
Companion skill command
Run on your own machine if you want to install the companion skill.
npx -y [email protected] install-skills
Example request
Review the frontend changes on this branch with frontend-unslop. Check styles, links, type safety, and loading and error states. Run the available checks and report their actual results.
Example results
Illustrative example
Review outline - Confirm the entry stylesheet loads. - Check links have useful destinations. - Replace type escapes with explicit types. - Review loading, empty, and error states.
Illustrative response outline, not a recorded run.
Illustrative examples show a possible response format. They are not recorded runs or verified results. Actual responses will vary.
Security checks
Automated checks, last run Nov 30, 2026. They can miss problems and do not guarantee a listing is safe. Read the source and what you are asked to run before you use it.
4 of 4 checks passed
- PassedSetup commands and descriptionLayer 1
The install commands and description match none of the risky patterns we look for.
Source: AIWantsThis screening rules
- PassedInstall scripts and package statusLayer 2
The npm package runs no code at install time and is not deprecated.
Source: npm registry
- PassedKnown vulnerabilities in the packageLayer 2
OSV.dev lists no advisories for this package.
Evidence (1)
- [email protected]
- No advisories listed in OSV.dev.
Source: OSV.dev
- PassedSource repositoryLayer 2
The repository is public, not archived and has recent activity.
Evidence (3)
- Last push
- 2026-10-22
- Archived
- no
- License
- MIT
Source: GitHub