Skip to content
Back to skills

Unprompted

ASecurity

Direction protocol and evidence gate for AI coding agents. 67 checks across direction, structure, words, access, motion/media, and evidence; replaces generic AI-shaped UI with a declared direction and proof.

  • 670 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added November 30, 2026
designgonodegitperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add mocasus/unprompted --skill unprompted --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unprompted?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unprompted
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mocasus-unprompted/badge)](https://www.skillsdirectory.com/skills/mocasus-unprompted)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unprompted
version: 4.3.3
license: MIT
description: >-
  Direction protocol and evidence gate for AI coding agents. 67 checks across
  direction, structure, words, access, motion/media, and evidence; replaces
  generic AI-shaped UI with a declared direction and proof.
compatibility: [windows, macos, linux]
metadata:
  author: mocasus
  category: core
  repository: https://github.com/mocasus/unprompted
  openclaw:
    requiredBins: ["node"]
---

# unprompted — Direction Protocol

`unprompted` is a direction protocol and verification gate for AI coding agents. It replaces the v3 `U-xx` rule catalog with 67 checks across six contracts: **Direction**, **Structure**, **Words**, **Access**, **Motion & Media**, and **Evidence**.

The agent defines a direction, builds against it, proves the result with evidence, and reports what was checked. A surface without a declared direction is not shippable.

**Direction resolution (`D-01`)**:
1. If `DESIGN.md` or an existing design system exists in the repository, obey it strictly.
2. If `DESIGN.md` is missing on a greenfield UI task, select the best-matching built-in archetype via `unprompted-direction` (`npx github:mocasus/unprompted init-design --archetype <name> --with-tokens`).
3. Never ship a token-free surface. If neither a design system nor an archetype is available, declare `DRAFT (NO DESIGN.MD)` and keep the surface non-shippable.

Built-in archetypes: `atelier`, `ledger`, `press`, `instrument`, `nordic`, `brutalist`, `glass`. Load `unprompted-direction` for palettes, type stacks, motifs, and `DESIGN.md` scaffolding.

---

## Usage modes

Check `.unpromptedrc.json` or `~/.unprompted/settings.json` for `"mode"`. If unset (`"ask"`), ask once at session start.

1. **`during` (Build Mode)**: Apply the contracts while generating UI, copy, or code. Close every substantive turn with the **Unprompted Direction Report**.
2. **`after` (Audit Mode)**: Inspect existing files without rewriting unprompted. Return findings with v4 IDs (`D-xx`, `S-xx`, `W-xx`, `A-xx`, `M-xx`, `E-xx`) and `file:line`; wait for approval, then fix and re-audit.

---

## The 6 contracts

| Contract | Prefix | Count | Question |
|---|---|---|---|
| Direction | `D` | 12 | Is there a deliberate visual direction, and does every surface obey it? |
| Structure | `S` | 12 | Does the layout have hierarchy, rhythm, and responsive priority? |
| Words | `W` | 10 | Is the language specific, honest, and actionable? |
| Access | `A` | 12 | Can everyone operate and understand it? |
| Motion & Media | `M` | 10 | Do motion and media support the content without cost or noise? |
| Evidence | `E` | 11 | Can the agent prove the result instead of asserting it? |

### Direction — D-01 to D-12

| ID | Check | Pass condition |
|---|---|---|
| D-01 | Direction source | A `DESIGN.md`, existing design system, or declared archetype is named before UI code. No token-free shippable surface. |
| D-02 | Palette roles | Every color has a role (canvas, surface, ink, muted, border, accent, focus, status, overlay). One accent dominates; no default neon/purple/pink gradient and no gradient-clipped text unless the direction explicitly defines it. |
| D-03 | Type system | At most 2 text families plus one monospace for data/code, 4 weights, and 6 rendered sizes per view. Default Inter/Roboto pairing must be justified by direction. |
| D-04 | Type metrics | Display sizes use intentional tracking/leading; headlines balance wrapping and body copy uses a 55–68ch measure. |
| D-05 | Spacing scale | Spacing follows a 4/8-based scale; 2px half-steps are allowed for dense UI. No unexplained 13px/17px/19px one-offs. |
| D-06 | Surface system | At most 2 elevation levels and one default border treatment (focus, status, overlay exempt). At most one backdrop-blur surface per view unless the direction sets a documented blur budget. Surfaces and ink stay ≥90% neutral with ≤10% accent; avoid full-page pure #fff/#000 glare and default slate. |
| D-07 | Radius system | A small radius scale is reused; nested radii follow `R_outer = R_inner + padding`. |
| D-08 | Imagery direction | Crop, aspect, grade, and subject treatment are consistent. No random stock imagery, fabricated people, fake avatars, or stock portraits. |
| D-09 | Icon system | One icon library, stroke weight, and size scale. No hand-drawn filler icons, 4-point sparkle icons, gradient-stroked decorative SVGs, or a tinted icon tile on every item. |
| D-10 | Density | Compact vs airy is chosen for the domain and held consistently. |
| D-11 | Motion language | One easing family and duration scale. No competing infinite loops. |
| D-12 | Ownable element | The surface has at least one domain-specific idea that is not a generic template. |

### Structure — S-01 to S-12

| ID | Check | Pass condition |
|---|---|---|
| S-01 | Focal point | Each view has one primary focal point; secondary elements do not compete at equal weight. |
| S-02 | Hero composition | The hero has a specific job. No default badge → centered H1 → two buttons → three cards stack, and no uppercase slash eyebrow + italic accent word + fake live telemetry + 01/ALLCAPS three-column pattern. |
| S-03 | Grouping | Content is separated with space, hairlines, or tonal steps, not by wrapping everything in identical cards. |
| S-04 | Section rhythm | Section padding varies with content weight; no identical vertical rhythm on every section. |
| S-05 | Alignment | Elements share a deliberate grid or optical alignment. No accidental edge drift. |
| S-06 | Reading order | DOM order, visual order, and keyboard order tell the same story. |
| S-07 | Density match | Container size matches information density; no sparse labels in oversized boxes. |
| S-08 | Data legibility | Tables and lists are scannable, numeric columns use tabular numerals, numbers align, and units are explicit. Charts use neutral luminance steps plus at most one signal hue. |
| S-09 | Responsive priority | Narrow layouts reorder, stack, or bound-scroll by importance, not by clipping or hiding essential content; wide tables and toolbars never clip essential columns. |
| S-10 | Viewport safety | No unintended horizontal overflow from 320px to 1920px+. |
| S-11 | Stacking | Overlays, menus, and sticky elements have a sane z-index and never clip each other. |
| S-12 | State coverage | Empty, loading, error, disabled, hover, and active states are designed for each applicable interactive surface; inapplicable states are recorded as `N/A`. |

### Words — W-01 to W-10

| ID | Check | Pass condition |
|---|---|---|
| W-01 | Specific language | Concrete nouns and verbs. No “supercharge”, “unlock”, “seamless”, “revolutionize” filler. |
| W-02 | Evidence or label | Claims are measured or clearly labeled as placeholders. No invented metrics, logos, quotes, or testimonials. |
| W-03 | Actionable CTA | CTAs are verb + object + outcome, not repeated “Get started” / “Learn more”. |
| W-04 | Human cadence | No “not just X, it’s Y” antithesis, rule-of-three padding, throat-clearing, em-dash chains, or AI narration in prose/comments. No ASCII banner comments, comments that restate the next line, or comments that narrate the change; comments only explain non-obvious why. |
| W-05 | No placeholders | No Lorem ipsum, Acme, John Doe, example.com, or “Feature 1” shippable content. |
| W-06 | No emoji crutches | No decorative emoji in labels, bullets, logs, or headings unless the direction explicitly calls for it. |
| W-07 | Error copy | Errors say what happened and what the user can do next. |
| W-08 | Empty-state copy | Empty states say what is empty, why, and the next action. |
| W-09 | Localization-safe | No hardcoded left/right, directional icons that do not mirror, idioms, or text that breaks under translation or RTL. |
| W-10 | Voice consistency | Sentence case, tone, and terminology stay consistent across the surface. |

### Access — A-01 to A-12

| ID | Check | Pass condition |
|---|---|---|
| A-01 | Contrast | Body ≥ 4.5:1; large text and essential UI boundaries ≥ 3:1. |
| A-02 | Keyboard | Every control is reachable and operable by keyboard. |
| A-03 | Focus | A visible `:focus-visible` ring exists; never `outline: none` without a replacement. |
| A-04 | Landmarks | One `main`, sensible landmarks, one `h1`, and no skipped heading levels. |
| A-05 | Accessible names | Controls, links, and informative images have accessible names and correct roles; links navigate, buttons act, and decorative media is hidden. |
| A-06 | Forms | Labels are persistent and programmatically associated; errors are text, not color alone. |
| A-07 | Non-color state | Selection, error, success, disabled, and link affordances never rely on hue alone; body links are underlined or otherwise distinguishable. |
| A-08 | Touch targets & inputs | Touch targets measure ≥ 44×44px; mobile input font size is ≥ 16px. |
| A-09 | Preference respect | Non-essential motion and transparency respect `prefers-reduced-motion`; contrast-sensitive surfaces respect `prefers-contrast` where supported. |
| A-10 | Media alternatives | Video/audio has captions or transcripts where needed; prerecorded media has an alternative. |
| A-11 | Table semantics | Data tables use `caption`, `scope`, and real headers. |
| A-12 | Zoom/reflow | At 200% zoom, content reflows without loss, clipping, or horizontal scroll. |

### Motion & Media — M-01 to M-10

| ID | Check | Pass condition |
|---|---|---|
| M-01 | Explicit transitions | Transition named properties, not `all`; durations stay in the direction scale. |
| M-02 | State restraint | No hover scale/bounce on content cards; state changes are subtle and intentional. |
| M-03 | No decorative glow | No floating blur orbs, neon auras, or parallax decoration without a content reason. |
| M-04 | Asset stability | Images/video/embeds reserve dimensions in source; CLS stays at 0 for stable content in the rendered check. |
| M-05 | Font loading | Font family count follows D-03; weights are controlled, fallback metrics are declared, and there is no blocking font chain. |
| M-06 | Asset budget | Images use an appropriate format/size and lazy loading; assets stay within the project budget declared in `DESIGN.md` or equivalent; no oversized hero assets. |
| M-07 | Media controls | Video/audio has a poster, visible controls, pause, and no autoplay with sound; unsolicited audio is banned. |
| M-08 | Offscreen pause | Animations pause when hidden or offscreen; no background CPU loops. |
| M-09 | One primary motion | One dominant motion idea per view, not several competing animations. |
| M-10 | Performance budget | Static surfaces stay within the JS/CSS budget declared in `DESIGN.md` or equivalent and avoid client JS for layout, type, or simple interaction. |

### Evidence — E-01 to E-11

| ID | Check | Pass condition |
|---|---|---|
| E-01 | Audit run | The automated audit ran on every changed UI/copy file. |
| E-02 | Viewports | Screenshots exist at 320, 768, 1440, and 1920 (or documented breakpoints plus 320 and the maximum supported width). |
| E-03 | Contrast proof | Contrast results are included for every changed foreground/background pair, including hover, focus, and disabled states. |
| E-04 | Keyboard proof | Tab order and focus rings were checked and recorded as a tab-order list plus focus screenshots for each control group. |
| E-05 | Overflow proof | Horizontal overflow was checked at the narrowest supported width. |
| E-06 | State proof | Each applicable empty/loading/error/disabled state has a screenshot or a test; inapplicable states are recorded as `N/A`. |
| E-07 | Console clean | No uncaught errors, hydration warnings, or broken asset requests. |
| E-08 | Layout stability | CLS/asset-dimension checks pass for changed media (proof for M-04). |
| E-09 | Link/asset integrity | No broken internal links or missing public assets. |
| E-10 | Direction report | The report lists contract counts, statuses, automated/evidence counts, `N/A` reasons, waivers, and verdict. |
| E-11 | Re-audit | After fixes, the audit and evidence were re-run; `N/A` when no fixes followed the first audit. |

---

## Check status and verdict

Every check resolves to one status:

| Status | Meaning | Resolved? |
|---|---|---|
| `PASS` | Applicable and verified | Yes |
| `N/A` | Not applicable; proof of absence recorded | Yes |
| `WAIVED` | Explicit, scoped exception | Normal mode only |
| `FAIL` | Applicable and violated | No |
| `UNVERIFIED` | Applicable but no proof yet | No |

`N/A` is never a silent skip. Record why the check does not apply and the proof artifact (DOM query, route inventory, media inventory, etc.). `N/A` without proof is `FAIL` in strict mode and `UNVERIFIED` in normal mode.

| Verdict | Condition |
|---|---|
| `PASS` | All 67 resolved as `PASS` or proven `N/A`; no waivers |
| `PASS WITH WAIVERS` | Normal mode only; all applicable checks resolved; every waiver listed |
| `FAIL` | Any `FAIL`; any waiver in strict mode; any unproven `N/A` in strict mode |
| `INCOMPLETE` | Any `UNVERIFIED` check; never reported as `PASS` |

Strict mode accepts only `PASS` or proven `N/A`; any `WAIVED` or `UNVERIFIED` check fails. Normal mode lists waivers and never prints `PASS` while an evidence rule is unverified; it prints `INCOMPLETE`.

---

## Audit split

- **Automated (25):** source-deterministic checks. Heuristics fail closed: when the source is ambiguous, the result is `UNVERIFIED`, not `PASS`.
- **Evidence (42):** screenshots, rendered page, runtime output, or manual checklist. Automated scanners may assist; they cannot set `PASS` alone.
- The CLI reports `automated 25/25` and `evidence 42/42` separately. It never reports `25/67` as a pass count.

| Contract | Automated | Evidence |
|---|---|---|
| Direction | D-03, D-05, D-09, D-11 (4) | D-01, D-02, D-04, D-06, D-07, D-08, D-10, D-12 (8) |
| Structure | S-02, S-03 (2) | S-01, S-04, S-05, S-06, S-07, S-08, S-09, S-10, S-11, S-12 (10) |
| Words | W-01, W-04, W-05, W-06 (4) | W-02, W-03, W-07, W-08, W-09, W-10 (6) |
| Access | A-03, A-04, A-05, A-06, A-09, A-11 (6) | A-01, A-02, A-07, A-08, A-10, A-12 (6) |
| Motion & Media | M-01, M-02, M-03, M-05, M-07 (5) | M-04, M-06, M-08, M-09, M-10 (5) |
| Evidence | E-01, E-09, E-10, E-11 (4) | E-02, E-03, E-04, E-05, E-06, E-07, E-08 (7) |
| **Total** | **25** | **42** |

Mixed checks with auto assist: D-07, S-08, S-10, S-12, A-01, W-02, M-04, M-06, E-08. Heuristic auto checks (S-02, S-03, A-05, E-09) must fail closed.

Conditional checks that may resolve `N/A` with proof of absence: A-06, A-10, A-11, M-06, M-07, S-12, E-06.

---

## Direction report

Close every substantive UI, copy, or code delivery with:

```text
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 67 · N/A 0 · WAIVED 0 · FAIL 0 · UNVERIFIED 0
- Automated : 25/25 run · 25 PASS · 0 FAIL
- Evidence  : 42/42 verified · 42 PASS · 0 FAIL
- N/A       : none
- Waivers   : none
- Verdict   : PASS
```

Contract counts are `PASS/total`. A check that is `N/A` or `WAIVED` is counted in the status line, not in the contract `PASS` count. For example, `A 10/12 (2 N/A)` and `M 9/10 (1 WAIVED)`.

Never claim `Verdict: PASS` while any applicable check is `FAIL`, `UNVERIFIED`, or waived outside normal mode.

---

## Waivers

A waiver must name the rule, scope, reason, and expiry. Missing fields, expired waivers, and waivers in strict mode are `FAIL`. A waiver never hides the finding.

```html
<!-- @unprompted-waive D-08 scope:page reason:"client supplied campaign image set" expires:2027-01-01 -->
```

```js
// @unprompted-waive D-08 scope:file reason:"client supplied campaign image set" expires:2027-01-01
```

Project-wide waivers may live in `unprompted.waivers.json`:

```json
{
  "waivers": [
    {
      "rule": "D-08",
      "scope": "page:/campaign",
      "reason": "client supplied campaign image set",
      "expires": "2027-01-01"
    }
  ]
}
```

`scope` is one of `line`, `file`, `page`, or `project`. An inline waiver applies to the next element/block; a file-level waiver applies to the whole file.

---

## Workflow

1. **Direction**: resolve `DESIGN.md`, a design system, or an archetype before writing UI. Define palette, type, spacing, surfaces, radius, imagery, icons, density, motion, and one ownable element.
2. **Build**: implement against the direction. Do not invent a second palette, a second type system, or a competing motion language.
3. **Prove**: run the automated audit; attach evidence for the 42 evidence checks at 320/768/1440/1920, contrast pairs, keyboard order, overflow, states, console, CLS, and link integrity.
4. **Report**: print the Unprompted Direction Report with contract counts, statuses, automated/evidence counts, `N/A` reasons, waivers, and verdict.
5. **Re-audit**: after fixes, re-run the audit and evidence. Mark `E-11` `N/A` only when no fixes followed the first audit.

---

## Subskills

Load the focused skill when the task matches; it extends the v4 IDs and never contradicts the core:

- `unprompted-direction` — `DESIGN.md`, archetypes, tokens, contrast validation (D-01…D-12).
- `unprompted-ui` — composition, surfaces, typography, motion, Core Web Vitals (D-02…D-12, S-01…S-11, M-01…M-10).
- `unprompted-copywriting` — headlines, microcopy, errors, empty states (W-01…W-10, S-12).
- `unprompted-a11y` — contrast, keyboard, focus, forms, landmarks, media, tables, zoom (A-01…A-12, E-03…E-05).
- `unprompted-mobile` — responsive reflow, touch targets, data density (S-09, S-10, A-08, A-12).
- `unprompted-code` - comment hygiene and source tells (W-04, W-06).
- `unprompted-telegram` — bots and Mini Apps: `BOT.md`, keyboards, Rich Messages, Stars (TG-01-TG-20).

Files in this skill

  • .clawhubignore40 B
  • SKILL.md10.5 KB
  • VERSION6 B
  • assets/reference-patterns.html8.1 KB
  • assets/tokens.css2.8 KB
  • references/layouts-and-microinteractions.md3.2 KB
  • references/manifesto-and-banned-patterns.md8.8 KB
  • references/typography-and-color-tokens.md6.9 KB
  • scripts/slop-audit.mjs23.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.