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.
- package/README.ko.md +7 -4
- package/README.md +7 -4
- package/dist/audit/planner.d.ts +95 -0
- package/dist/audit/planner.js +256 -0
- package/dist/audit/planner.js.map +1 -0
- package/dist/catalog/validate.js +43 -1
- package/dist/catalog/validate.js.map +1 -1
- package/dist/design-principles/planner.d.ts +3 -1
- package/dist/design-principles/planner.js +22 -1
- package/dist/design-principles/planner.js.map +1 -1
- package/dist/principles/planner.d.ts +3 -1
- package/dist/principles/planner.js +22 -1
- package/dist/principles/planner.js.map +1 -1
- package/dist/protocol/register-prompts.js +44 -25
- package/dist/protocol/register-prompts.js.map +1 -1
- package/dist/protocol/register-resources.js +2 -0
- package/dist/protocol/register-resources.js.map +1 -1
- package/dist/protocol/register-tools.js +88 -1
- package/dist/protocol/register-tools.js.map +1 -1
- package/dist/server-info.d.ts +2 -2
- package/dist/server-info.js +3 -2
- package/dist/server-info.js.map +1 -1
- package/dist/types.d.ts +32 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -1
- package/generated/catalog.v1.json +704 -2
- package/generated/manifest.v1.json +3 -2
- package/package.json +3 -3
- package/skill/AGENTS.md +6 -2
- package/skill/CLAUDE.md +6 -2
- package/skill/web-stylebook-design/SKILL.md +8 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"catalogVersion": "0.
|
|
3
|
-
"contentHash": "sha256:
|
|
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
|
+
"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": "
|
|
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.
|
|
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.
|
|
43
|
-
|
|
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.
|
|
43
|
-
|
|
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
|
|
83
|
-
|
|
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
|