web-stylebook-mcp 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  {
2
- "catalogVersion": "0.3.0",
3
- "contentHash": "sha256:c20eab85984adc1e72230fc36dffe24568eb4c0aca7ed356df4437851821f447",
2
+ "catalogVersion": "0.4.0",
3
+ "contentHash": "sha256:ec0bd5ebd98fac99b5508bd8057d20b8f118c17c9fc1a7dc4a6bdf73c973ad51",
4
4
  "counts": {
5
+ "auditChecks": 38,
5
6
  "components": 20,
6
7
  "designPrinciples": 22,
7
8
  "motionPatterns": 29,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "web-stylebook-mcp",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Design intelligence for coding agents — choose a direction, apply visual and UX principles, cover real UI states, and compose design tokens.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": { "name": "Web Stylebook", "url": "https://webstylebook.com" },
8
8
  "bin": {
9
- "web-stylebook-mcp": "./dist/cli.js"
9
+ "web-stylebook-mcp": "dist/cli.js"
10
10
  },
11
11
  "main": "./dist/server.js",
12
12
  "types": "./dist/server.d.ts",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "keywords": ["mcp", "model-context-protocol", "design", "ui", "design-system", "coding-agent"],
40
40
  "dependencies": {
41
- "@modelcontextprotocol/sdk": "1.29.0",
41
+ "@modelcontextprotocol/sdk": "1.30.0",
42
42
  "zod": "4.4.3"
43
43
  },
44
44
  "devDependencies": {
package/skill/AGENTS.md CHANGED
@@ -39,8 +39,12 @@ dashboard, form, checkout, chat, developer console), call the **`web-stylebook`*
39
39
  the placement decision it produced and its observable verification check, and
40
40
  **selected UX principles**, each with its caution and evidence confidence label.
41
41
  No empty sections; then implement.
42
- 10. Self-audit against `webstylebook://policies/verification` - including its `principles` group:
43
- run each recorded principle check against the built UI and write down the outcome. A principle
42
+ 10. Call `get_design_audit_plan` with `styleId`, `surfaces`, `designPrincipleIds`, `uxPrincipleIds`,
43
+ matching `stateSurfaceIds`, and `locale`. Inspect the actual rendered UI, source, interactions,
44
+ console, and commands for every returned stable check id. Use `PASS` / `FIX_NOW` / `RISK` /
45
+ `NOT_APPLICABLE` / `NOT_VERIFIED`; every PASS needs observed evidence, and missing evidence is
46
+ NOT_VERIFIED. Do not skip its `principles` group: run each recorded principle check against the
47
+ built UI and write down the outcome. A principle
44
48
  name listed without a placement decision and an observed check is decoration; drop it or verify
45
49
  it. Never restate a `contextual` or `contested` principle as a law. Do this inline yourself -
46
50
  the `audit-design-direction`, `audit-design-principles`, and `audit-ux-principles` prompts are
package/skill/CLAUDE.md CHANGED
@@ -39,8 +39,12 @@ dashboard, form, checkout, chat, developer console), call the **`web-stylebook`*
39
39
  the placement decision it produced and its observable verification check, and
40
40
  **selected UX principles**, each with its caution and evidence confidence label.
41
41
  No empty sections; then implement.
42
- 10. Self-audit against `webstylebook://policies/verification` — including its `principles` group:
43
- run each recorded principle check against the built UI and write down the outcome. A principle
42
+ 10. Call `get_design_audit_plan` with `styleId`, `surfaces`, `designPrincipleIds`, `uxPrincipleIds`,
43
+ matching `stateSurfaceIds`, and `locale`. Inspect the actual rendered UI, source, interactions,
44
+ console, and commands for every returned stable check id. Use `PASS` / `FIX_NOW` / `RISK` /
45
+ `NOT_APPLICABLE` / `NOT_VERIFIED`; every PASS needs observed evidence, and missing evidence is
46
+ NOT_VERIFIED. Do not skip its `principles` group: run each recorded principle check against the
47
+ built UI and write down the outcome. A principle
44
48
  name listed without a placement decision and an observed check is decoration; drop it or verify
45
49
  it. Never restate a `contextual` or `contested` principle as a law. Do this inline yourself —
46
50
  the `audit-design-direction`, `audit-design-principles`, and `audit-ux-principles` prompts are
@@ -79,8 +79,14 @@ to scaffold a page from memory, stop and run step 1 first.
79
79
  + placement checks, selected UX principles + cautions, returned UI-state coverage, responsive,
80
80
  accessibility, anti-patterns, confirmed
81
81
  decisions (from step 4), and verification checklist. Never leave a section empty.
82
- 11. **Implement, then self-audit** against `webstylebook://policies/verification` and
83
- `…/anti-patterns` — including the opening's **furniture-check** (below): if the visual is generic
82
+ 11. **Implement, then call `get_design_audit_plan`** with `styleId`, `surfaces`,
83
+ `designPrincipleIds`, `uxPrincipleIds`, matching `stateSurfaceIds`, and `locale`. This returns a localized,
84
+ surface-aware checklist with stable ids, severity, applicability, and required evidence without
85
+ loading the full three-language policy resources. Inspect the actual rendered UI, source,
86
+ interactions, console, and commands for every returned check. Use `PASS` / `FIX_NOW` / `RISK` /
87
+ `NOT_APPLICABLE` / `NOT_VERIFIED`; every `PASS` needs observed evidence, and missing evidence is
88
+ `NOT_VERIFIED`, never an inferred pass. Include the opening's **furniture-check** when applicable:
89
+ if the visual is generic
84
90
  furniture (a stock photo, an abstract shape, or a card you could paste onto another product)
85
91
  rather than a bespoke product demonstration, or the copy column is the full quartet, recompose.
86
92
  Do not skip the checklist's **`principles` group**: run each principle's recorded verification