← 开源

Art-directed web design engine & anti-slop filter for AI coding agents: 6 WCAG archetypes, Tailwind v4 & shadcn exporters, 25-rule CLI gate + auto-fixer, and 5-tool MCP server.

JavaScript
增长势头
+3624 小时新增 Star+5.7%
664
Star
20
Fork
1
贡献者
创建于 2026-11-29 · 更新于 2026-12-05 · 今日第 415 名
主要开发者
mocasus
README

The Direction Protocol for AI Coding Agents

67 checks. 6 contracts. 7 archetypes. One evidence gate.

npx github:mocasus/unprompted

Live Studio · The protocol · Before & After · Archetypes · CLI & MCP · Install · Guide · Bahasa Indonesia


Why this exists

AI coding agents can produce working code with no visual point of view. The result is familiar: indigo-to-pink gradients, floating blur orbs, four-point sparkle badges, three identical rounded cards, low-contrast forms, clipped mobile tables, and comments that narrate every line.

Style prompts do not fix that. They replace one default with another. /unprompted makes the agent do the harder work:

  1. Declare a direction.
  2. Build against six explicit contracts.
  3. Prove the result with deterministic checks and evidence.
  4. Report what passed, what failed, and what was never verified.

That is the v4 Direction Protocol. It is a filter, a design system, and an evidence gate in one.


The protocol

Contract Checks What it protects
D — Direction 12 One palette, type system, surface language, imagery, icon system, motion language, and one ownable idea.
S — Structure 12 Focal hierarchy, a hero with a job, grouping by space and hairlines, rhythm, alignment, responsive priority, complete states.
W — Words 10 Concrete claims, honest proof, specific CTAs, human cadence, useful errors and empty states, localization-safe copy.
A — Access 12 Contrast, keyboard order, :focus-visible, landmarks, accessible names, forms, non-color states, touch targets, reduced motion, media alternatives.
M — Motion & Media 10 Explicit transitions, no card bounce, no decorative glow, stable assets, controlled fonts, performance budgets, media controls.
E — Evidence 11 Audit run, 320/768/1440/1920 screenshots, contrast proof, keyboard proof, overflow proof, state proof, clean console, CLS proof, link integrity, complete report, re-audit.

67 checks total: D 12 · S 12 · W 10 · A 12 · M 10 · E 11.

The protocol does not ask an agent to “make it beautiful.” It asks for decisions that can be inspected.


How it runs

1. Direction first

Obey an existing DESIGN.md or design system. On a greenfield surface, commit to one archetype: atelier, ledger, press, instrument, nordic, brutalist, or glass.

If no direction exists, the agent labels the output DRAFT (NO DESIGN.MD) and does not present it as shippable.

2. Build against the contracts

The core skill and seven focused subskills cover direction, UI, copy, accessibility, mobile reflow, source hygiene, and Telegram bots. Each subskill cites the same v4 rule IDs instead of inventing local rules.

3. Prove the result

# Deterministic checks: 25 automated + 42 evidence
npx github:mocasus/unprompted audit ./src --strict

# Safer auto-fixes only
npx github:mocasus/unprompted fix ./src --dry-run

# Fail CI unless the gate passes
npx github:mocasus/unprompted audit ./src --gate

4. Close with an honest report

UNPROMPTED DIRECTION REPORT
- Direction : DESIGN.md | archetype:ledger | DRAFT
- Contracts : D 12/12 · S 12/12 · W 10/10 · A 12/12 · M 10/10 · E 11/11
- Status    : PASS 52 · N/A 15 · WAIVED 0 · FAIL 0 · UNVERIFIED 0
- Automated : 25/25 run · 25 PASS · 0 FAIL
- Evidence  : 42/42 verified · 42 PASS · 0 FAIL
- N/A       : E-11 (no fix followed a first audit)
- Waivers   : none
- Verdict   : PASS

The important line is Status. Automated checks can pass while evidence is still missing. When evidence has not been verified, the verdict is INCOMPLETE, not PASS.


What v4 changes

  • The U-xx catalog is retired. v4 uses 67 checks grouped by the question they answer, not by slop category.
  • Evidence is a first-class contract. Checks are split into 25 automated and 42 evidence checks.
  • Statuses are explicit: PASS, N/A, WAIVED, FAIL, UNVERIFIED.
  • Verdicts are honest: PASS, PASS WITH WAIVERS, FAIL, INCOMPLETE.
  • Waivers have a shape: rule, scope, reason, and expiry. Strict mode fails on them.
  • The seventh archetype is glass, with a documented blur budget and a non-blur fallback.
  • The report is UNPROMPTED DIRECTION REPORT. The old UNPROMPTED DELIVERY GATE name is retired; the CLI keeps a parser alias for compatibility.

Read the full v4 specification and changelog.


Before and after

Every pair runs the same prompt twice: once without direction, once with /unprompted. Explore all states in the Live Studio.

UI

With unprompted-ui + unprompted-direction.

Before: no direction After: v4 direction + evidence
Dark slate soup, neon gradients, floating glow blobs, invented terminal claims, and three identical stat cards. A declared direction, a single focal hierarchy, honest copy, and a restrained glass surface with a real contrast floor.

Filtering and direction each need the other:

Partial: filter only Partial: direction only
Clichés removed, but the surface is still a neutral draft (DRAFT — NO DESIGN.MD). Art direction is present, but the agent still writes Supercharge slogans and an invented 10,000% ROI.

Copywriting

With unprompted-copywriting. The v4 contract separates mechanism from proof: W-01 hype, W-02 invented metrics, W-03 vague CTAs, W-04 LLM cadence.

Accessibility

With unprompted-a11y. The contrast solver and keyboard rules cover A-01 contrast, A-03 focus, A-05 link semantics, A-06 form labels, and A-08 touch targets.

Mobile layout and data-viz restraint

With unprompted-mobile + S-08. Data stays legible without decorative chart noise.

Source code

With unprompted-code. Comments explain why, not what.


Seven built-in archetypes

Scaffold a direction instead of prompting for a mood:

npx github:mocasus/unprompted init-design --archetype atelier --with-tokens
npx github:mocasus/unprompted init-design --archetype ledger --format tailwind
npx github:mocasus/unprompted init-design --archetype press --format shadcn
Archetype Palette & polarity Typography & motif Built for
atelier Warm Alabaster #F6F3EC · Espresso #1C1917 · Terracotta #A83E1F Editorial serif + humanist sans · tactile photography and provenance rows E-commerce, D2C storefronts, studios, hospitality
ledger Mineral Paper #F5F7F6 · Pine Ink #0F1915 · Forest #14533D Tight grotesque + tabular mono · KPI headers and hairlined settlement tables Fintech, B2B SaaS, billing, operational analytics
press Newsprint Cream #FAF7F2 · Charcoal #161615 · Crimson #9F1239 High-contrast display serif + 62ch prose · masthead rules and citation rails Technical blogs, research labs, documentation, media
instrument Matte Carbon #101012 · Titanium #F4F4F5 · Amber #F59E0B Geometric sans + monospace · split panes and monochrome telemetry bars DevTools, CLIs, observability, hardware UIs
nordic Limestone #F4F5F7 · Slate #11141A · Cobalt #1D4ED8 Clean sans + generous negative space · single focal workspace Productivity, scheduling, health, team tools
brutalist Stark Chalk #F2F2EF · Pure Ink #111111 · Orange #C2410C Heavy grotesque + exposed 1px grid · zero radius, zero shadow Design engineering, architecture, launches
glass Smoked Glass #0B0F17 · Frosted Surface #131926 · Sky #7DD3FC Outfit display + Inter sans · translucent panes, 1px specular rims, max 2 blur layers Spatial apps, creative media, AI overlays

All seven pass the same WCAG 2.2 contrast validator. Tailwind v4 @theme and shadcn/ui token exports are generated from the same source.


Eight skills

Skill Responsibility
unprompted Core 67 checks, statuses, evidence gate, during/after modes, and waivers
unprompted-direction Seven archetypes, DESIGN.md validation, and reference token extraction
unprompted-ui Composition, surfaces, typography, motion, and Core Web Vitals
unprompted-copywriting Mechanism-first headlines, specific CTAs, honest metrics, human cadence
unprompted-a11y Contrast solver, focus rings, keyboard order, form labels, landmarks, media alternatives
unprompted-mobile 320px+ reflow, 44px touch targets, table-to-ledger adaptation, zero horizontal clip
unprompted-code Comment hygiene and source-level AI tells
unprompted-telegram BOT.md specs, inline keyboard budgets, Rich Messages, Mini Apps, Stars, 20 TG checks

Modes

The mode decides when the protocol runs, not which checks run. during, after, and ask use the same 67 checks and the same report format.

Mode Starts with Ends with Use when
during Applies the contracts while the interface, copy, or code is written A Direction Report on every substantive turn You are building something new
after Reads existing files without editing them A findings list ([D-xx] file:line), then approval, fixes, and a re-audit You are auditing or refactoring code you did not write
ask One question at the start of the session The mode you picked, for the rest of the session The repo is shared or you do not want a saved default

The choice is stored in .unpromptedrc.json when you install into a project, or ~/.unprompted/settings.json when you install globally. If neither file has a mode, the agent asks once; the installer wizard offers during as its default. unprompted doctor prints the mode it finds.

# Save globally
npx github:mocasus/unprompted --mode ask

# Install into this project and save its mode
npx github:mocasus/unprompted --target . --agents qoder --mode after

after never edits before you approve a finding. during still reports every check; it just runs before the code exists.


CLI, CI, and MCP

Every verifier runs offline on stock Node.js >= 20 with zero npm dependencies. The same build ships as unprompted-ai on npm, so npx unprompted-ai@latest works anywhere the GitHub runner does.

# Direction audit, evidence gate, and safe fixes
npx github:mocasus/unprompted audit ./src --strict
npx github:mocasus/unprompted audit ./src --gate
npx github:mocasus/unprompted fix ./src --dry-run

# Archetype scaffolding, validation, and extraction
npx github:mocasus/unprompted init-design --archetype ledger --format shadcn
npx github:mocasus/unprompted validate-design ./DESIGN.md
npx github:mocasus/unprompted extract-design ./reference.html

# WCAG 2.2 contrast and accessible hex solver
npx github:mocasus/unprompted contrast --fg "#8e96a4" --bg "#f6f3ec"

# Telegram bot and Mini App audit (20 TG rules)
npx github:mocasus/unprompted telegram ./bot --strict
npx github:mocasus/unprompted telegram ./bot --spec BOT.md
npx github:mocasus/unprompted telegram --validate BOT.md
npx github:mocasus/unprompted telegram --init BOT.md
npx github:mocasus/unprompted telegram --init BOT.md --ask

# Git hook, self-update, diagnostics
npx github:mocasus/unprompted init-hook
npx github:mocasus/unprompted --update
npx github:mocasus/unprompted doctor

GitHub Action

- uses: mocasus/unprompted@v4.3.3
  with:
    path: ./src
    strict: "true"

MCP server

{
  "mcpServers": {
    "unprompted": {
      "command": "npx",
      "args": ["--yes", "github:mocasus/unprompted", "mcp"]
    }
  }
}

The six MCP tools are unprompted_audit, unprompted_contrast, unprompted_validate_design, unprompted_init_design, unprompted_fix, and unprompted_telegram.


Install

unprompted ships across standard skill directories, native plugin marketplaces, GitHub Actions, and MCP registries. Full update and removal instructions live in GUIDE.md.

npm

npm install -g unprompted-ai
unprompted --version

Note

The npm package ships the same CLI, skills, and MCP server as the GitHub runner.

Interactive installer or skills.sh

Auto-detects installed agents across 19 environments, asks whether to install per-project or globally, lets you pick all eight skills or a subset, and saves your session mode:

npx github:mocasus/unprompted

# Or via the open skills.sh directory:
npx skills add mocasus/unprompted

Native plugin and extension doors

Three doors, one install: a native marketplace command, an agent flag on the installer, or a single file for web chats.

Marketplace and extension commands

Logo Platform Command
Google Antigravity agy plugin install https://github.com/mocasus/unprompted
Gemini CLI gemini extensions install https://github.com/mocasus/unprompted
Claude Code /plugin marketplace add https://github.com/mocasus/unprompted then /plugin install unprompted@unprompted
OpenAI Codex codex plugin marketplace add mocasus/unprompted && codex plugin add unprompted@unprompted
Cursor agent plugin marketplace add https://github.com/mocasus/unprompted
Cline CLI cline plugin install https://github.com/mocasus/unprompted.git
Kimi / Oh My Pi /plugins install https://github.com/mocasus/unprompted · omp plugin marketplace add mocasus/unprompted

Installer flags

--agents picks the integration; --global or --target . picks where it lands.

Global (--global) installs once in your home directory, so every project on the machine sees it. Use it for agents you run everywhere, like Hermes Agent and OpenClaw.

Logo Agent Command
Hermes Agent npx github:mocasus/unprompted --global --agents hermes
OpenClaw npx github:mocasus/unprompted --global --agents openclaw

This project (--target .) writes skills and rule files into the current repository only. Use it when the rules belong to that codebase.

Logo Agent Command
Qoder npx github:mocasus/unprompted --target . --agents qoder
Qwen npx github:mocasus/unprompted --target . --agents qwen
GitHub Copilot npx github:mocasus/unprompted --target . --agents copilot
Windsurf npx github:mocasus/unprompted --target . --agents windsurf
Kiro npx github:mocasus/unprompted --target . --agents kiro
Trae npx github:mocasus/unprompted --target . --agents trae

--agents accepts any id in either scope, but each agent only reads the paths it defines. Hermes Agent has no project-local path, so it is global-only; the table above groups the integrations that are normally configured per repository.

Single file for web chats

curl -fsSL -o unprompted.md https://raw.githubusercontent.com/mocasus/unprompted/main/unprompted.md

Paste unprompted.md into a chat that accepts a context file.

Platform marks belong to their respective owners.


Evidence over claims

A green audit is not the same thing as a finished interface. The report separates:

  • Automated checks that the CLI can run now.
  • Evidence checks that require screenshots, contrast proof, keyboard proof, overflow proof, console output, or a re-audit.
  • Waivers that explicitly record a known exception instead of silently skipping it.

Important

If a rule was not verified, the report says UNVERIFIED. If evidence is missing, the verdict is INCOMPLETE. The protocol would rather tell the truth than print a comfortable green line.


Prior art and credits

This project started from anti-slop by miqdadbadjuber. The anti-slop framing, the original filter and DESIGN.md direction, and parts of the early information architecture came from that work and belong to Miqdad.

Everything from v4 onward is separate. The Direction Protocol, its six contracts, 67 checks, evidence gate, seven archetypes, audit engine, CLI, MCP server, exporters, and current documentation were built for this repository by mocasus.

Both rest on open standards and tools: Agent Skills, WCAG 2.2, Tailwind CSS, and shadcn/ui. Their licenses and trademarks remain their own.

References:

Spotted something that needs attribution? Open an issue.

Star history

Contributing and license

  • Bug or rule gap: open an issue.
  • Before a change: read CONTRIBUTING.md, ROADMAP.md, and CODE_OF_CONDUCT.md.
  • License: MIT.
排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载