unprompted
GitHubAI编码代理的核心反模板规则书与交付门禁,用于消除UI、文案和代码中的通用AI生成痕迹,提供WCAG验证的设计原型并强制执行设计规范检查。
Trigger Scenarios
Install
npx skills add mocasus/unprompted --skill unprompted -g -y
SKILL.md
Frontmatter
{
"name": "unprompted",
"license": "MIT",
"version": "3.2.0",
"metadata": {
"author": "mocasus",
"category": "core",
"openclaw": {
"emoji": "✒️",
"requiredBins": [
"node"
]
},
"repository": "https:\/\/github.com\/mocasus\/unprompted"
},
"description": "Core anti-slop rulebook and Delivery Gate for AI coding agents. Stops generic AI-shaped UI, copywriting, accessibility failures, broken mobile reflow, and boilerplate code comments. Always load as the foundation filter.",
"compatibility": [
"windows",
"macos",
"linux"
]
}
unprompted — Core Rulebook & Delivery Gate
unprompted is an art-directed web design engine and verification suite for AI coding agents. It eliminates statistical LLM clichés ("slop") across UI, copywriting, accessibility, mobile layout, and code—while equipping agents with six curated, WCAG-verified Design Archetypes (atelier, ledger, press, instrument, nordic, brutalist) when a project does not yet have its own DESIGN.md.
Direction Resolution (U-12):
- If
DESIGN.mdor an existing design system exists in the repository, obey it strictly. - If
DESIGN.mdis missing on a greenfield UI task, select the best-matching built-in archetype viaunprompted-direction(npx github:mocasus/unprompted init-design --archetype <name> --with-tokens) rather than falling back to generic purple SaaS templates or leaving the user with an unstyled page.
Usage Modes (During vs. After)
Check .unpromptedrc.json or ~/.unprompted/settings.json for "mode". If unset ("ask"), ask once at session start which mode applies:
during(Build Mode): Apply rules while generating new UI, copy, or code. Close every substantive UI/copy/code turn with the Delivery Gate Report.after(Audit Mode): Inspect existing files without rewriting unprompted. Return a numbered findings list citing exact rule IDs ([U-xx]) andfile:line, wait for user approval on what to change, then apply fixes and print the follow-up Delivery Gate Report.
The 40 Core Rules (Three Tiers)
Specialized skills (unprompted-ui, unprompted-direction, unprompted-copywriting, unprompted-a11y, unprompted-mobile, unprompted-code) deepen these rules by ID and never contradict them.
Tier 1 — Hard Blockers (Immediate FAIL if violated)
U-01No Default AI Neon Gradients: Never ship indigo/violet/purple/pink default gradients (from-indigo-*,via-purple-*,to-pink-*,#6366f1,#8b5cf6,#a855f7,#ec4899) unless explicitly mandated inDESIGN.md.U-02No Rainbow Clipped Headings: Never apply gradient-clipped transparent text (bg-clip-text text-transparent) to headings or hero titles.U-03No Decorative Glow Orbs: Never place floatingblur-2xl/blur-3xlcolored circles behind heroes, cards, or dark backgrounds.U-04No Cookie-Cutter Hero or "2nd-Gen Editorial Slop" Templates: Never output[Sparkle Pill] -> [Centered Gradient H1] -> [2 Buttons] -> [3 Icon Cards], AND never substitute it with the 2nd-generation LLM template (UPPERCASE // DOUBLE-SLASHeyebrows, one random accent-colored italic word inside every serif H1, a fake● LIVEtelemetry box beside the hero, and01 / ALL CAPSthree-column blurbs underneath).U-05No Invented Metrics or Social Proof: Never fabricate user counts ("10,000+ teams"), ratings ("4.9/5"), latency claims ("0.0001ms"), ROI percentages, customer quotes, or logo bars. Use real figures or labeled structural placeholders.U-06No Banned AI Hype Vocabulary: Never write "Supercharge", "Turbocharge", "Unlock the power", "Unleash", "Seamlessly", "Effortlessly", "Revolutionize", "Game-changing", "Next-generation", "Cutting-edge", "Elevate your", or "All-in-one platform for modern teams".U-07No Decorative Emoji Crutches: Never prefix badges, headings, bullet lists, or code logs with✨,🚀,⚡,🔥,💡, or🎯.U-08No Raw Placeholder Leftovers: Never ship"Lorem ipsum","Acme Corp","John Doe","Jane Smith","user@example.com", or"Feature 1 / Feature 2".U-09Mandatory Contrast Floor: Body text must meet>= 4.5:1contrast (>= 3:1for large text>= 24pxor18.66pxbold, and>= 3:1for interactive borders/icons) against its actual rendered background.U-10Keyboard & Focus Completeness: Every interactive control must be reachable byTab, operable via keyboard, and display a visible:focus-visibleindicator—neveroutline: nonewithout an explicit replacement.U-11Zero Horizontal Viewport Overflow: Pages must render from320pxto1920px+with zero unintended horizontal scrollbar onhtml/body.U-12Direction Gate (DESIGN.md): Never invent arbitrary brand palettes or decorative flourishes on shippable UI without readingDESIGN.md(or declaringDRAFT (NO DESIGN.MD)).
Tier 2 — Structural & Craft Defects (Must fix before PASS)
U-13Escape the Card Prison: Do not wrap every paragraph, stat, or list item insiderounded-2xl shadow-lg p-6cards. Separate content using whitespace,1pxhairlines, or tonal surface steps.U-14Intentional Surface Polarity: Avoid clinical#ffffff+#000000glare in light mode and muddy#0f172aslate soup in dark mode; use calibrated tinted neutrals (90%neutral,<= 10%accent).U-15Glassmorphism Restraint: Reservebackdrop-blurstrictly for at most one sticky navigation bar or modal overlay per view—never stack translucent cards across content grids.U-16Optical Display Tracking: Large headings (>= 2.25rem/text-4xl+) require negative tracking (-0.02emto-0.04em) and tight leading (1.0to1.12).U-17Readable Prose Measure: Constrain multi-line body paragraphs between55chand68ch.U-18Tabular Numerals on Data: Applyfont-variant-numeric: tabular-nums(tabular-nums) to prices, metrics, timestamps, counters, and tables.U-19Explicit Transition Properties: Never usetransition: allortransition-all. Explicitly list compositor/paint-safe properties (transform,opacity,background-color,border-color,color).U-20No Rubbery Card Bounce: Never applyhover:scale-105orhover:scale-110to content cards.U-21Honor Reduced Motion: Guard non-essential animations and transitions with@media (prefers-reduced-motion: reduce).U-22Explicit Form Labels: Every input, select, and textarea requires a persistent visible<label>—placeholder text is never a label.U-23Honest Link vs. Button Semantics: Links (<a href>) navigate;<button>triggers actions. Body links must be distinguishable beyond color alone (e.g., underline).U-24Mobile Touch Target Floor: Interactive tap targets on touch viewports must measure at least44x44 CSS px(or have equivalent hit padding/spacing).U-25Responsive Data Reflow: Wide desktop tables, multi-column toolbars, and stat strips must adapt cleanly on< 640pxscreens (structured stack, priority columns, or bounded scroll container—never clipped text).U-26Specific Action Microcopy: Replace vague repeated CTAs ("Get Started", "Learn More", "Click Here") with concrete verb-object outcomes ("Download CLI (4.2 MB)", "Read routing spec").U-27Ban AI Cadence & Sycophancy: Avoid "Not just X, it's Y" antithesis clichés, rule-of-three adjective padding, em-dash overuse, and filler intros in prose and docs.U-28Ban Slop Code Comments: Delete ASCII section banners (// === HELPERS ===), comments that merely restate the next line of code, and narrated// TODO: implementstubs unless requested.
Tier 3 — Liveliness & Polish (Elevates good work to human-directed craft)
U-29Focal Anchor Discipline: Every screen needs one clear primary focal point above the fold—never three competing boxes of identical visual weight.U-30Concentric Nested Radii: When nesting rounded elements, match curvature optically (R_outer = R_inner + padding).U-31Varied Vertical Cadence: Alternate tight groupings for related proofs with generous breathing room before major narrative shifts—avoid identicalpy-16on every section.U-32Complete UI States: Design empty, loading, error, disabled, hover, and:active(translateY(1px)) states—not just the happy-path populated screen.U-33Headline Rag Control: Applytext-wrap: balanceon headings andtext-wrap: prettyon body copy.U-34Asset Stability (CLS = 0): Declare explicitwidth/heightoraspect-ratioon images, videos, and embeds to prevent layout shift.U-35Why-Only Code Comments: Keep comments solely for non-obvious invariants, protocol quirks, performance trade-offs, or bug workarounds.U-36Automated Gate Verification: Runslop-audit.mjs(andcontrast-check.mjswhen modifying colors) on changed frontend files when Node.js is available.U-37No AI-Slop Inline SVGs or Tinted-Icon-Box Spam: Never hand-hallucinate multi-path SVG illustrations, never use 4-point AI sparkle stars (<Sparkles />) or gradient-stroked (stroke="url(#...)") decorative SVGs, and never top every grid item with a36x36translucent tinted icon square. Prefer zero icons over filler icons; when functional icons are needed, import an established icon package (@phosphor-icons/react,lucide-react,@radix-ui/react-icons) at one consistent stroke weight andcurrentColor.U-38Chart & Data-Viz Chromatic Restraint: Never render "candy-shop" multi-hue ring, donut, or bar charts (mixing orange + blue + pink + teal on one card). Use monochrome luminance steps plus at most one deliberate signal hue for threshold anomalies.U-39Component Density & Negative Space: Do not pad sparse three-word labels inside oversized cards; match container footprint to actual information density.U-40Authentic Media & Avatar Honesty: Never fabricate stock portrait URLs, fake user avatars, or hand-drawn SVG blobs to fill empty hero columns; use real product captures, live interactive states, or pure typographic composition.
Mandatory Delivery Gate Report
At the end of every UI, copywriting, or frontend code delivery, output this compact verification block:
UNPROMPTED DELIVERY GATE
- Direction : DESIGN.md applied | DRAFT (NO DESIGN.MD)
- Tier 1 : PASS | FAIL ([rule IDs])
- Tier 2 : PASS | FAIL ([rule IDs])
- Audit CLI : <score>/100 Grade <A-F> (or N/A if no UI files touched)
- Verdict : PASS | FAIL
Never claim Verdict: PASS while any Tier 1 or Tier 2 violation remains unresolved.
Version History
- 10cd954 Current 2026-12-03 02:11
Dependencies
-
optional
github:mocasus/unprompted


