Back to skills
SKILL.md
Z Craft
ASecurityAutonomous Software Craftsmanship & Canonical Design System Engine. Multi-platform design system (WinForms DevExpress, WPF, React/Tailwind, Mobile) with executable tokens (CSS + W3C DTCG), UX micro-contracts with Master + Page persistence, quantitative design dials, WCAG 2.1 AA & Anti-Slop linting, 4-state scaffolding, and live canvas preview.
- 4 stars
- 0 votes
- 0 copies
- 1 view
- Added November 12, 2026
Works with
Security analysis
100/100npx -y skills add kzxl/z-plugin --skill z-craft --agent claude-codeAre you the author of Z Craft?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/kzxl-z-craft)---
name: z-craft
description: Autonomous Software Craftsmanship & Canonical Design System Engine. Multi-platform design system (WinForms DevExpress, WPF, React/Tailwind, Mobile) with executable tokens (CSS + W3C DTCG), UX micro-contracts with Master + Page persistence, quantitative design dials, WCAG 2.1 AA & Anti-Slop linting, 4-state scaffolding, and live canvas preview.
---
# Z-Craft: Autonomous Software Craftsmanship & Design System
Use `z-craft` when designing, building, or auditing UI across **WinForms (DevExpress)**, **WPF (XAML)**, **Web (React/Tailwind)**, and **Mobile (Compose/Flutter)**.
## Canonical References (Self-Contained SSoT)
Read on demand from `references/` before writing or auditing UI code:
1. **[references/anti-slop-standard.md](references/anti-slop-standard.md)** — Canonical laws (`AS-01..AS-12`, `AS-C1..AS-C5`, `AS-I1`, `AS-D1..AS-D4`, `AS-S1`) and `ui_profile` modes.
2. **[references/tokens.md](references/tokens.md)** — Single source of truth for Living Slate colors, type scale, 4/8px spacing, row heights, radii, elevation, and motion durations.
3. **[references/components.md](references/components.md)** — 4-tier button matrix, action-verb law, form inputs, enterprise data grids, in-window notifications, badges, progress meters, and segmented controls.
4. **[references/platform-mapping.md](references/platform-mapping.md)** — Concrete code mappings for WinForms/DevExpress, WPF XAML, Web CSS/Tailwind/React, and Jetpack Compose.
---
## Design Philosophy & Craft Rules
- **Subtract, don't decorate:** Every pixel justifies its presence; grid alignment and type hierarchy carry visual order (`R_ANTI_SLOP`).
- **Monochrome canvas (60-30-10):** 60% `--bg-canvas`, 30% `--bg-surface`/`--text-primary`, 10% `--brand-primary` + semantic states (`<= 60%` HSL saturation). At most **1 primary CTA** per quadrant.
- **Three-Layer Visual Hierarchy:** Every view defines **Primary** (1 anchor: display/h1 metric or title), **Secondary** (workhorse grid/inputs/primary button), and **Tertiary** (muted captions, column headers, timestamps).
- **Typographic Discipline:** Max 2 font families (`Segoe UI`/`Inter` + `Cascadia Code`/`JetBrains Mono`), max 3 sizes, max 2 weights (`400`/`600`), mandatory `tabular-nums` for numbers/codes/dates, Sentence case headings.
- **Spacing Rhythm (4px / 8px):** `2-4px` atomic, `8px` control padding, `16px` group gap, `24-32px` section margin, `40-48px` outer canvas. Use negative space before adding dividers.
- **Density Modes:**
- **Compact ERP (Desktop / ERP Web):** `24-28px` desktop rows (`--row-desktop`), `32px` compact web rows, `26-28px` desktop inputs, `12-12.5px` type.
- **Standard (Portals / Dashboards / Mobile):** `36-40px` web rows (`--row-web`), `48dp` mobile rows, `14-15px` type.
- **Cognitive Ergonomics:** Clamp visible choices `<= 5-7` (Hick's Law); button labels start with an imperative verb (`1-3 words`, `<= 20 chars`, never `OK`/`Submit`); **single active language** (never bilingual parentheticals); **Ledger Immutability** (use `Deactivate`/`Archive`, never hard `Delete` on ledgers/stock journals); guard Vietnamese IME composition (`!e.isComposing && e.keyCode !== 229`) on `Enter`/shortcut handlers.
- **Structural Anti-Slop (`AS-S1`, `AS-I1`):** No unrequested 4-KPI summary card banners, no nested `<Card><Card>`, no generic SaaS sidebar/bell chrome on focused tools, and zero no-op click handlers.
- **`ui_profile: expressive` Archetypes:** When declared in `.project-rule.md` or `--profile expressive`, pick one coherent archetype before styling: **Swiss Editorial**, **Technical Instrument**, **Warm Tactile**, or **High-Contrast Minimal**.
---
## Execution Workflow (7-Step Cycle)
1. **Declare Context:** Platform + Density (`1-10`) + Motion (`1-10`) + Variance (`1-10`) + Light/Dark mode + `ui_profile`.
2. **Generate Contract (`zcraft_spec`):** Run declarative decision rules + `z-gate` helper reuse + `z-brain` gotcha recall. Persist `design-system/<project>/MASTER.md` and `pages/<page>.md` for multi-screen consistency.
3. **Emit / Verify Tokens (`zcraft_tokens`):** Generate CSS custom properties (`:root` + `[data-theme="dark"]`) and W3C DTCG JSON from `--brand-primary` with automated WCAG contrast derivation.
4. **Scaffold or Implement (`zcraft_scaffold`):** Build all 4 mandatory states (`R_UX_MATRIX`: Populated, Loading skeleton, Empty + CTA, Error + Retry).
5. **Visual Preview (`zcraft_preview`):** Render interactive HTML/Tailwind widget (`<agent-embed>`) with optional WCAG contrast swatch audit (`includeTokens: true`).
6. **Checkpoint (`zcraft_checkpoint`):** Snapshot before speculative UI refactors for 1-click rollback.
7. **Self-Audit (`zcraft_lint_ui`):** Lint files or `--diff` plus `--tokens` CSS contrast until `0` `MUST` errors and score `>= 90/100`.
## Core MCP Tools
- `zcraft_spec`: Synthesize 4-state UX Micro-Contract with declarative decision rules, quantitative dials (`density`, `motion`, `variance`), `z-gate`/`z-brain` mesh insights, and optional `MASTER.md` + `pages/<page>.md` persistence.
- `zcraft_tokens`: Generate Living Slate CSS custom properties and W3C DTCG JSON tokens, with automatic WCAG-compliant light/dark derivation for custom `brandHex`.
- `zcraft_scaffold`: Scaffold a 4-state enterprise component (`react`, `wpf`, `winforms`) passing all canonical checks.
- `zcraft_lint_ui`: Audit snippets, files, git `--diff`, or CSS token sheets (`tokensFile`) for `AS-01..AS-12`, `AS-C1..AS-C5`, `AS-I1`, `AS-D1..AS-D4`, `AS-S1`, and WCAG 2.1 AA contrast.
- `zcraft_preview`: Generate interactive HTML/Tailwind preview (`<agent-embed>`) with offline fallback tokens and optional WCAG contrast swatch tab.
- `zcraft_checkpoint`: Non-destructive shadow snapshots (`create`, `list`, `restore`).
- `zcraft_status`: Report active rule catalog, bundled reference inventory, and checkpoints.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.