Agent Skills › mocasus/unprompted › unprompted-direction

unprompted-direction

GitHub

为无设计系统的Web项目生成DESIGN.md规范及语义化CSS令牌,基于6种预置视觉原型,确保UI具备领域感与真实性。

skills/unprompted-direction/SKILL.md mocasus/unprompted

触发场景

启动网站或Web应用且缺乏现有设计系统 需要提取参考页面的DESIGN.md和CSS令牌 定义品牌或设计系统方向

安装

npx skills add mocasus/unprompted --skill unprompted-direction -g -y
更多选项

不安装直接使用

npx skills use mocasus/unprompted@unprompted-direction

指定 Agent (Claude Code)

npx skills add mocasus/unprompted --skill unprompted-direction -a claude-code -g -y

安装 repo 全部 skill

npx skills add mocasus/unprompted --all -g -y

预览 repo 内 skill

npx skills add mocasus/unprompted --list

SKILL.md

Frontmatter
{
    "name": "unprompted-direction",
    "license": "MIT",
    "version": "3.2.0",
    "metadata": {
        "author": "mocasus",
        "category": "design",
        "openclaw": {
            "emoji": "🧭",
            "requiredBins": [
                "node"
            ]
        },
        "repository": "https:\/\/github.com\/mocasus\/unprompted"
    },
    "description": "Create, extract, or validate a project's DESIGN.md specification and semantic CSS tokens so UI work has authentic, domain-grounded visual direction instead of generic defaults. Activate when DESIGN.md is missing or when defining a brand\/design system.",
    "compatibility": [
        "windows",
        "macos",
        "linux"
    ]
}

unprompted-direction — Art-Directed Archetypes & DESIGN.md Engine

Activate this skill whenever starting a website or web app without an existing design system, selecting a built-in visual archetype, or extracting DESIGN.md + CSS tokens from a reference page.

Built-In Art-Directed Archetypes (Zero Manual Setup Required)

Users do not need to write DESIGN.md from scratch. Match the product domain to one of the 6 WCAG-verified archetypes below (or scaffold it instantly via node scripts/design-spec.mjs --init --archetype <name> --with-tokens):

Archetype Surface & Accent Best For
atelier Warm Alabaster #f6f3ec + Espresso #1c1917 + Terracotta #a83e1f E-commerce, storefronts, studios, hospitality, culinary & D2C
ledger Mineral Paper #f5f7f6 + Pine Ink #0f1915 + Forest #14533d Fintech, B2B SaaS, billing, treasury, operational analytics
press Newsprint Cream #faf7f2 + Charcoal #161615 + Crimson #9f1239 Technical blogs, research labs, documentation, essays, media
instrument Matte Carbon #101012 + Titanium #f4f4f5 + Amber #f59e0b DevTools, CLIs, cloud infrastructure, creative/audio hardware UIs
nordic Limestone #f4f5f7 + Slate #11141a + Cobalt #1d4ed8 Calm productivity apps, scheduling, health, collaborative workspaces
brutalist Stark Chalk #f2f2ef + Pure Ink #111111 + Signal Orange #c2410c Design engineering agencies, architecture, developer launches

Workflow

Step 1: Anchor Domain & Audience (Never Invent in a Vacuum)

Derive every aesthetic choice from three concrete facts:

  1. What the product actually does (e.g., Indonesia domestic bare-metal cloud, clinical pathology lab portal, independent coffee roaster wholesale catalog).
  2. Who uses it and under what conditions (e.g., on-call SREs at 03:00 in dark rooms vs. procurement buyers scanning 80 SKUs on mobile).
  3. Physical / Editorial Reference World: Name a real-world craft artifact—never "modern sleek SaaS" or "Linear/Stripe clone". Examples: Swiss railway timetable, architectural blueprint ledger, uncoated literary monograph, avionics instrument cluster.

If the user has not expressed a preference between light/dark polarity or editorial vs. technical density, ask at most 2 brief questions before writing DESIGN.md.

Step 2: Write DESIGN.md at the Project Root

Every DESIGN.md must stay concise, measurable, and free of vague adjectives. Include these exact 6 sections:

# DESIGN.md — <Project Name>

## 1. Aesthetic Point of View
- **Reference World**: <concrete physical/editorial reference>
- **Surface Polarity**: <Tinted Light | Architectural Dark | Dual with Light Default>
- **Density**: <Spacious Editorial | Balanced Product | High-Density Operational>

## 2. Color Tokens (90% Neutral / 10% Accent)
- `--bg-canvas`: <hex / oklch> — Primary page background
- `--bg-surface`: <hex / oklch> — Elevated panels / sheets
- `--bg-subtle`: <hex / oklch> — Hover rows / recessed wells
- `--fg-primary`: <hex / oklch> — Primary ink (>= 7:1 contrast on canvas)
- `--fg-secondary`: <hex / oklch> — Supporting copy (>= 4.5:1 contrast on canvas)
- `--fg-muted`: <hex / oklch> — Metadata & captions (>= 4.5:1 if essential text)
- `--border-hairline`: <rgba / oklch alpha> — 1px structural dividers
- `--accent`: <hex / oklch> — Single primary action/signal hue
- `--accent-fg`: <hex / oklch> — Text on `--accent` (>= 4.5:1 contrast)

## 3. Typography & Optical Rules
- **Display Font**: <font family, weights, tracking -0.03em, line-height 1.04>
- **Body / UI Font**: <font family, weights, max-width 64ch, line-height 1.6>
- **Monospace Font**: <font family for IDs, code, metrics + tabular-nums>

## 4. Spatial Grid & Geometry
- **Max Container**: <e.g., 76rem with clamp(1.25rem, 3.5vw, 3rem) gutter>
- **Primary Layout Motif**: <e.g., 7fr/5fr asymmetric split + 1px shared-hairline grids>
- **Corner Radius Scale**: <e.g., 4px controls, 6px panels, concentric outer calc>

## 5. Motion & Affordances
- **Curve & Timing**: `cubic-bezier(0.22, 1, 0.36, 1)` — `150ms` micro, `220ms` panel
- **Interactive States**: Solid hover shift, `translateY(1px)` active press, `2px` offset `:focus-visible`

## 6. Anti-Patterns Specific to This Brand
- <2–3 domain-specific things never to do on this product>

Step 3: Verify Contrast Math (U-09)

Before locking DESIGN.md, verify every foreground/background pair with the bundled contrast checker:

node <skills-dir>/unprompted-a11y/scripts/contrast-check.mjs --fg "#181614" --bg "#f7f5f0"

Ensure --fg-primary and --fg-secondary pass WCAG AA (>= 4.5:1) against both --bg-canvas and --bg-surface, and --accent-fg passes >= 4.5:1 against --accent.

Step 4: Emit Matching CSS Variables

Mirror the locked DESIGN.md values directly into the project's stylesheet (tokens.css or globals.css) before building components.

版本历史

  • 10cd954 当前 2026-12-03 02:10

同 Skill 集合

skills/unprompted-a11y/SKILL.md
skills/unprompted-code/SKILL.md
skills/unprompted-copywriting/SKILL.md
skills/unprompted-mobile/SKILL.md
skills/unprompted-ui/SKILL.md
skills/unprompted/SKILL.md

元信息

文件数
0
版本
10cd954
Hash
38ce1192
收录时间
2026-12-03 02:10

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-03 06:05
浙ICP备14020137号-1