← Back to archive

Repo of the Day

mocasus/unprompted

Published: Dec 4, 2026

Open repository ↗

Universal anti-slop web design skill, rules, reference tokens, and automated UI linter for AI coding agents

Summary

mocasus/unprompted is a zero-dependency Node.js suite for steering AI coding agents away from generic generated interfaces and checking the result. It combines seven agent skills, project-specific direction through DESIGN.md, seven built-in design archetypes, deterministic CLI gates and an auto-fixer, a GitHub Action, and a five-tool stdio MCP server; the README requires Node.js 20 or newer.

What it is useful for

The suite is useful when an agent is building or revising a frontend, writing user-facing copy, or cleaning up generated source code. It targets recognizable output such as neon gradients, glow orbs, repeated shadow cards, unmeasured performance claims, low-contrast forms, clipped tables, and comments that narrate syntax.

In during mode, the skills guide the agent and require an UNPROMPTED DIRECTION REPORT; in after mode, they audit existing code, report findings by file and line, wait for approval, and then apply fixes. Documented examples include a sign-in form with explicit labels, visible errors, and focus rings; a mobile spend table reflowed into a ledger; a Postgres CLI release post grounded in zstd dictionary reuse and S3 retries; and source comments reduced to useful “why” explanations.

DESIGN.md can be supplied, extracted from a reference HTML file, or scaffolded from an archetype and exported as CSS, Tailwind CSS v4 @theme, or shadcn/ui tokens. The built-in direction is limited to seven named archetypes unless custom guidance is provided; the MCP surface is documented as five tools.

How engineers can use it

Start with the interactive installer. It detects installed agents across 19 environments, asks whether to install per-project or globally, and lets you select skills:

npx github:mocasus/unprompted

Alternatively, the README lists npx skills add mocasus/unprompted for the skills.sh directory.

For a ledger-oriented project, scaffold both direction and CSS tokens:

npx github:mocasus/unprompted init-design --archetype ledger --with-tokens

Use --format tailwind or --format shadcn for those exporters. For an existing visual system, the documented commands are:

npx github:mocasus/unprompted extract-design ./reference.html
npx github:mocasus/unprompted validate-design ./DESIGN.md

Audit before editing, preview the deterministic changes, then apply and gate the result:

npx github:mocasus/unprompted audit ./src --strict
npx github:mocasus/unprompted fix ./src --dry-run
npx github:mocasus/unprompted fix ./src
npx github:mocasus/unprompted audit ./src --gate

For repository enforcement, run npx github:mocasus/unprompted init-hook to add the documented pre-commit gate. CI can use mocasus/[email protected] with path: ./src and strict: "true". Agents that use MCP can register the documented stdio command:

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