unslop — 7-Pillar Design Craft Engine

io.github.avivgerz-hue由 GitHub 帳號 avivgerz-hue 發布v2.1.1更新於 Nov 11, 2026

Audit UI design, extract Design DNA, generate tokens, and create transformation blueprints.

發布方自己的服務:Craft

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,依 72 條設計規則稽核 UI 程式碼,擷取設計 DNA、匯出設計權杖並產生依優先順序排列的重構藍圖。

可以做什麼
  • 依七大設計支柱的 72 條規則稽核程式碼庫,給出 0-100 設計工藝評分與精確到檔案、行、欄的發現
  • 從本機 CSS 或線上網址擷取設計 DNA,並編譯成可重複使用的預設集
  • 安裝十種內建設計原型之一,並把代理規則與 MCP 設定合併進專案
  • 匯出 Tailwind v4 主題、Tailwind v3 設定、CSS 自訂屬性或以 W3C 設計權杖 JSON 四種權杖格式
  • 產生改造報告,包含修改前後的類別與權杖對照,以及 P0/P1/P2 步驟
適用情境
適合 AI 編碼代理正在建置或改版網頁介面、希望以可量化的設計基準取代主觀審美判斷的情況。也適合在 CI 或代理迴圈中設定分數門檻,以及需要跨明暗主題統一權杖體系的專案。
執行需求
透過 npx 從 unslop-mcp npm 套件在本機執行,需要 Node.js 20.19 或更新版本。未宣告任何驗證、API 金鑰或環境變數。從網址擷取 DNA 時需要連線至該網站的網路。
安裝前請注意
init 與 apply-preset 工具會把設定與規則檔案寫入專案(例如 .mcp.json、代理規則檔案、技能檔案),README 表示受管理區塊之外的內容會保留。網址擷取會抓取第三方頁面。稽核屬於靜態分析,不驗證鍵盤操作、響應式版面或實際對比度等渲染結果。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 unslop — 7-Pillar Design Craft Engine,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

unslop v2.1.1

⭐ If this tool helps your AI coding workflow, please give this repository a Star! It helps more developers discover the project.

VibeFoundry Agent Suite: 🎨 unslop — UI Design DNA & Anti-Slop Engine (npx -y unslop-mcp@latest init) · 🛡️ vibe-shield — Security Scanner for AI Code (npx -y @vibefoundry/vibe-shield@latest scan .) · 👻 ghost-qa — Autonomous Headless Browser QA (npx -y ghost-qa@latest test http://localhost:3000)

[npm version] [npm downloads] [CI] [Node.js 20.19+] [MIT license]

[Live Terminal Demo]

bash
npx -y unslop-mcp@latest init

Your agent can write the code. unslop gives it a measurable design engineering protocol.

[unslop preview]

unslop is a zero-runtime-dependency UI/UX Design Engineering CLI, native MCP Server, and AI Agent Skill. It audits 72 rules across seven design craft pillars, installs ten studio-grade archetypes, extracts Design DNA, exports four token formats, and turns every finding into an exact, prioritized transformation blueprint for JSX/TSX, HTML, Vue, Svelte, CSS, and Tailwind codebases.

Works natively with Claude Code, OpenCode, OpenAI Codex, Cursor, Windsurf, GitHub Copilot, Cline/Roo Code, Zed, and universal Agent Skills.

Human-readable CLI audits and refactor plans include a copyable badge for the calculated grade and a GitHub star link. Commands that do not calculate a score show a clearly labeled example badge. JSON and MCP stdio are never decorated.

[Before and after unslop: a generic purple-gradient AI landing page transformed into a precise, token-driven Linear Dark dashboard]

bash
npx -y unslop-mcp init --preset linear-precisionnpx -y unslop-mcp audit .npx -y unslop-mcp refactor-plan . --report UNSLOP-REPORT.md

Supported Coding Agents (Claude Code, OpenCode, Codex, Cursor, Windsurf, Copilot, Cline, Zed)

Install the latest universal integrations directly from GitHub in any project (the published npm version may lag behind main):

bash
npx -y github:avivgerz-hue/unslop#main init --preset linear-precision
AgentNative files generated by unslop init
Claude Code.mcp.json, CLAUDE.md, .claude/skills/unslop/SKILL.md, .claude-plugin/plugin.json
OpenCodeopencode.json with mcp.unslop-mcp, plus AGENTS.md
OpenAI Codex CLI / Universal AgentsAGENTS.md and .agents/skills/unslop/SKILL.md
Cursor.cursor/mcp.json, .cursor/rules/unslop.mdc, and legacy .cursorrules
Windsurf.windsurfrules
VS Code / GitHub Copilot.vscode/mcp.json and .github/copilot-instructions.md
Cline / Roo Code.clinerules
Zed.zed/settings.json under context_servers

Restart or reload the agent after installation so it discovers the new MCP server and Skill. Existing instructions outside Unslop's managed block, unrelated MCP servers, settings, inputs, and custom fields are preserved. Running init again is byte-for-byte idempotent.

This repository itself includes root AGENTS.md, CLAUDE.md, opencode.json, .claude-plugin/plugin.json, and both Claude/Codex Skill paths for immediate auto-discovery.

The result is not a generic prompt. It is a versioned token contract, a Design Craft Score from 0–100, a seven-pillar scorecard, exact before/after translations, and file-level steps your agent can execute in one coherent pass.

v2 at a glance

Capabilityv2 contract
Design Craft Engine72 rules · 7 pillars · A+–F grades
Color analysisExact WCAG 2.1 AA/AAA plus APCA-inspired perceptual checks
Studio archetypes10 complete production design systems; five v1 IDs remain compatible
Token formatsTailwind v4 @theme, Tailwind v3 config, CSS custom properties, W3C Design Tokens JSON
Transformationrefactor-plan CLI and unslop_refactor_plan MCP tool generate UNSLOP-REPORT.md
Agent protocolFive-step principal UI/UX design engineer SKILL.md
RuntimeNode.js 20.19+, JSON-RPC 2.0 stdio, zero runtime dependencies

The 7-Pillar Design Craft Engine

Run a deterministic baseline before letting an agent rewrite the interface:

bash
npx -y unslop-mcp audit . --json
text
Design Craft Score: 78/100 (C)7-Pillar Scorecard:  Color & Contrast: 82/100 (B) · 3 findings  Typography & Hierarchy: 76/100 (C) · 4 findings  Layout & Spatial Rhythm: 70/100 (C) · 5 findings  Surface & Elevation: 88/100 (B) · 2 findings  Copy & Microcopy: 82/100 (B) · 3 findings  Interaction & Motion: 58/100 (F) · 7 findings  Theme & Token Architecture: 90/100 (A) · 2 findings
PillarCanonical rulesWhat the engine detects
1 · Color, Atmospheric Polarity & Contrast MathSLOP-COLOR-*Purple/pink/indigo clone gradients, neon glows, absolute black/white glare, muddy grays, hardcoded component colors, low-opacity text, exact WCAG AA/AAA, APCA-inspired polarity
2 · Typography & Scannable HierarchySLOP-TYPE-*Fixed display scales, monotonous heading weights, paragraphs beyond readable measure, missing tabular-nums, cramped body leading, loose display leading, untracked uppercase labels
3 · Layout, Spatial Rhythm & Grid CraftSLOP-LAYOUT-*Centered three-card clones, nested cards, off-grid arbitrary values, excessive container rounding, arbitrary grids, missing content measures, conflicting spacing and radii
4 · Visual Restraint & Surface ElevationSLOP-SURFACE-*Glassmorphism overuse, heavy dark-mode shadows, decorative blur blobs, icon badge clutter, unanchored raw elevation, ad-hoc shadow stacks
5 · Copywriting & Microcopy Anti-SlopSLOP-COPY-*100+ cliché variants, including “Unleash the power,” “Revolutionize,” “Supercharge your workflow,” “Seamless integration,” “Next-generation,” hype, filler, superlatives, and emoji spam
6 · Interactive Ergonomics, Motion & StatesSLOP-UX-*Clickable divs, missing labels and keyboard rings, incomplete hover/active/disabled states, small targets, positive tabindex, transition-all, missing reduced-motion behavior
7 · Theme Parity & Token ArchitectureSLOP-TOKEN-*Broken Canvas → Surface-1 → Surface-2 → Interactive → Border order, asymmetric dark overrides, missing dark companions, off-grid or mistyped tokens

Legacy slop/* IDs remain in output for compatibility. Canonical SLOP-* findings drive the v2 seven-pillar score, with location-level deduplication so compatibility output does not double-penalize a finding.

Scores with an action attached

Every audit includes exact file:line:column diagnostics and refactoring instructions. The overall score is the rounded mean of seven independently capped pillar scores; 95–100 is A+. Use --fail-under in CI or agent loops:

bash
npx -y unslop-mcp audit . --fail-under 95npx -y unslop-mcp audit . --promptnpx -y unslop-mcp audit src --json --no-fail

Static analysis never replaces rendered verification. Keyboard operation, responsive behavior, actual contrast, content overflow, and reduced motion still need explicit inspection.

Design Transformation Blueprint

unslop_refactor_plan turns the audit into an executable Design Transformation Blueprint instead of a list of vague taste suggestions:

bash
npx -y unslop-mcp refactor-plan . --preset linear-precision --report UNSLOP-REPORT.md

The report contains:

  1. Design Craft Score and 7-Pillar Scorecard.
  2. Before → After Class & Token Translation Table mapping detected classes, hex/RGB literals, off-grid values, and cliché copy to exact replacements from the selected archetype.
  3. Prioritized P0/P1/P2 file:line steps covering the entire interface transformation.
  4. Acceptance criteria for reaching 95–100 without suppressing rules or losing accessible states.

Example translations:

BeforeAfter
from-purple-500 via-pink-500 to-indigo-500bg-[var(--surface-1)] text-[var(--text-primary)]
shadow-xlborder border-[var(--border-subtle)] shadow-[var(--shadow-md)]
p-[13px]p-[var(--spacing-12)]
rounded-3xlrounded-[var(--radius-lg)]
transition-alltransition-colors motion-reduce:transition-none
#777777var(--text-primary)
“Unleash the power”A concrete product capability and verifiable user outcome

Use --json for the complete machine-readable blueprint:

bash
npx -y unslop-mcp refactor-plan src --preset swiss-editorial --report reports/DESIGN.md --json

10 Studio-Grade Design Archetypes

Inspect and install a complete token and agent-rule contract:

bash
npx -y unslop-mcp presetsnpx -y unslop-mcp presets anthropic-warm-editorialnpx -y unslop-mcp init --preset anthropic-warm-editorial
ArchetypeVisual and engineering thesis
swiss-editorialHigh-contrast editorial grid, warm paper, serif/grotesk pairing, crisp hairline rules
linear-precisionObsidian craft, luminance borders, compact tracking, subtle layers, tabular precision
stripe-atmosphericRefined slate atmosphere, crisp white surfaces, cobalt trust, layered micro-shadows
vercel-monochromeArchitectural monochrome, geometric rhythm, zero decorative bloat, semantic status color
teenage-engineeringTactile industrial UI, monospace labels, international orange, physical grid borders
anthropic-warm-editorialParchment and stone, literary serif headings, calm clay accents, generous reading measure
bloomberg-terminal-denseUltra-high data density, strict numeric alignment, compact workflows, semantic tickers
raycast-commandFrosted graphite command palette, keyboard-first selection, crisp shortcut badges
fintech-institutionalDeep forest-navy authority, legible financial hierarchy, restrained brass and emerald
neo-brutalist-craftIntentional ink borders, offset hard shadows, bold geometric contrast, disciplined rhythm

Each archetype includes full surface hierarchy, explicit light/dark companions, typography scale and weights, spacing rhythm, radii, shadow/border elevation, layout contract, motion curve and spring values, plus ten archetype-specific design laws.

The v1 IDs linear-dark, swiss-grid, stripe-minimal, apple-glass, and neo-brutalist remain loadable for existing installations; the canonical v2 gallery contains the ten systems above.

Four token formats — presets or extracted DNA

Use the same deterministic exporter for a built-in archetype or extracted Design DNA.

Tailwind v4 @theme

bash
npx -y unslop-mcp export-tokens --preset linear-precision --format tailwind-v4 --out tokens.css

Produces @theme, :root, and .dark contracts with semantic colors, fonts, fluid type, tracking, weights, radii, shadows, spacing, motion, and layout values.

Tailwind v3 configuration fragment

bash
npx -y unslop-mcp export-tokens --preset linear-precision --format tailwind-v3 --out tailwind.config.js

Emits a mergeable theme.extend fragment with semantic utilities.

Pure CSS custom properties

bash
npx -y unslop-mcp export-tokens --preset linear-precision --format css --out tokens.css

Emits standalone :root and .dark variables without requiring Tailwind.

W3C Design Tokens JSON

bash
npx -y unslop-mcp export-tokens --preset linear-precision --format w3c-json --out tokens.json

Emits typed $type / $value groups for light and dark colors, typography, dimensions, radii, spacing, shadows, motion, and layout. A .json output path infers this format automatically.

Extract Design DNA from CSS or a URL

bash
npx -y unslop-mcp extract https://example.com --name reference --json -o design-dna.jsonnpx -y unslop-mcp export-tokens --source https://example.com --name reference --format w3c-json --out tokens.json

The extractor reads local CSS or live HTML, inline styles, linked stylesheets, and @import graphs with explicit byte, request, and stylesheet budgets. Extraction warnings remain visible rather than silently inventing missing tokens.

Native MCP Server

Start the zero-dependency JSON-RPC 2.0 stdio server:

bash
npx -y unslop-mcp --mcp

init merge-safely creates or updates .mcp.json without replacing unrelated servers, top-level settings, or custom fields on the unslop entry:

json
{  "mcpServers": {    "unslop": {      "command": "npx",      "args": ["-y", "unslop-mcp", "--mcp"]    }  }}

Claude Code can register it explicitly:

bash
claude mcp add --scope project unslop -- npx -y unslop-mcp --mcp
MCP toolPurpose
unslop_audit72-rule diagnostic, Design Craft Score, seven-pillar scorecard, exact findings
unslop_extract_dnaCSS/URL extraction and a complete compiled Design DNA preset
unslop_apply_presetInstall any canonical archetype and merge project agent rules/MCP configuration
unslop_refactor_planGenerate UNSLOP-REPORT.md with exact translations and prioritized transformation steps

Positional mcp remains a backward-compatible alias for --mcp.

Principal UI/UX Design Engineer Skill

The rewritten SKILL.md is a five-step execution protocol for Claude Code, Cursor, Windsurf, and other coding agents:

  1. Anti-Slop Diagnostic: baseline all seven pillars with unslop_audit.
  2. Aesthetic Direction & Token Foundation: choose one archetype or extract Design DNA; install tokens before editing components.
  3. Structural & Layout Transformation: use unslop_refactor_plan to replace clone layouts, enforce rhythm, and apply exact translations.
  4. Surface, Typography & Copy Polish: implement semantic colors, WCAG contrast, fluid type, tabular numbers, and concrete product copy.
  5. Interactive Ergonomics & Verification: complete focus and state behavior, then re-audit to 95–100/100 (A+) and inspect the rendered result.

init installs the selected contract into all native paths in the agent matrix above, including Claude/Codex Skills, Cursor and Copilot rules, and merge-safe MCP configuration for Claude Code, OpenCode, Cursor, VS Code, and Zed. Existing content outside managed blocks and unrelated JSON fields are preserved; repeated installs are byte-for-byte idempotent.

Alternative: zero-build GitHub execution

The npm package is the primary installation path. To execute the committed distribution directly from GitHub:

bash
npx -y github:avivgerz-hue/unslop --versionnpx -y github:avivgerz-hue/unslop init --preset linear-precisionnpx -y github:avivgerz-hue/unslop --mcp

The repository includes dist/. During a GitHub install, prepare uses TypeScript when available and otherwise validates and reuses the committed runtime and all fifteen canonical-plus-legacy preset JSON files. No production dependency or local compilation step is required.

Docker MCP

bash
docker build --tag unslop:mcp .docker run --rm -i unslop:mcp

The image entrypoint is node dist/bin/unslop.js mcp. CI builds the image and verifies initialize, silent handling of notifications/initialized, and all four tools in tools/list over stdio with networking disabled.

Registry and citation metadata

  • server.json follows the official MCP Registry schema and declares unslop-mcp 2.1.1 with the npx -y unslop-mcp mcp startup contract and four tool summaries.
  • glama.json mirrors the exact MCP tool schemas and canonical archetype enum.
  • smithery.yaml starts the native stdio server without additional configuration.
  • CITATION.cff provides software citation metadata for VibeFoundry.

The npm package is published as unslop-mcp. These files support registry indexing but do not claim that a registry listing has occurred.

Development and verification

bash
npm cinpm run typechecknpm testnpm run build

CI verifies Node.js 20 and 22, a production install without TypeScript, reproducible committed dist/, real CLI/MCP stdio negotiation, and the Docker MCP handshake. The v2 suite covers all seven pillars, all ten archetypes, every token format, extracted DNA, refactor blueprints, and manifest-driven 2.1.1 version output.

License

MIT · VibeFoundry

來源:README.md,提交 1fed06b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v2.1.1最新Nov 11, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Craft 整合