design-playbook 0.9.2 → 0.10.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.md CHANGED
@@ -9,7 +9,7 @@ Declarations + contracts — not a style CSV pack. Compose with [ui-ux-pro-max](
9
9
  Path of record (published) - the marketplace catalog lives at the **repo root**, not in this package:
10
10
 
11
11
  ```text
12
- /plugin marketplace add <owner>/<repo>
12
+ /plugin marketplace add https://github.com/Bandersnatch0x/design-playbook.git
13
13
  /plugin install design-playbook@design-playbook
14
14
  ```
15
15
 
@@ -55,6 +55,7 @@ After install, skills and commands are **namespaced** by the plugin name:
55
55
  | `/design-playbook:design-io` | Full pipeline command |
56
56
  | `/design-playbook:ux-spec` | Spec-only command |
57
57
  | `/design-playbook:ui-review` | Review command |
58
+ | `/design-playbook:run-review` | Cross-run review command |
58
59
 
59
60
  Bare `/design-io` is **not** the installed name — always use the `design-playbook:` prefix.
60
61
 
@@ -72,7 +73,7 @@ pi has no plugin namespace — skills are `/skill:<name>`, commands are bare `/<
72
73
  | --- | --- |
73
74
  | `/skill:design-playbook` | Orchestrator skill (model-invoked) |
74
75
  | `/skill:ux-spec` … `/skill:ui-evaluator` | Same eight skills as above |
75
- | `/design-io` · `/ux-spec` · `/ui-review` | Pipeline / spec-only / review commands |
76
+ | `/design-io` · `/ux-spec` · `/ui-review` · `/run-review` | Pipeline / spec-only / review / cross-run commands |
76
77
 
77
78
  pi ships no built-in MCP, so `preview*` and `observe*` skip by default (ADR-0009 absent→skip; the pipeline still runs spec → picker → fill → craft → accept). To enable both gates, install an MCP adapter and register the bundled servers in your project `.mcp.json`:
78
79
 
@@ -116,7 +117,7 @@ pi install npm:pi-mcp-adapter
116
117
  .mcp.json ← bundled MCP servers, launched via ${CLAUDE_PLUGIN_ROOT} (ADR-0009)
117
118
  mcp/{preview,evidence}/← MCP adapter runtimes (preview_prototype / execute_capture_plan)
118
119
  skills/<name>/SKILL.md ← model-invoked skills
119
- commands/<name>.md ← slash commands (design-io, ux-spec, ui-review only)
120
+ commands/<name>.md ← slash commands (design-io, ux-spec, ui-review, run-review)
120
121
  codex/AGENTS.md ← Codex bridge notes
121
122
  examples/ ← self-authored onboarding samples
122
123
  LICENSE · NOTICE ← authored-only scope
@@ -0,0 +1,30 @@
1
+ ---
2
+ description: Cross-run review of Design I/O runs — gate table + repeat blockers
3
+ ---
4
+
5
+ Cross-run **run review** over `.scratch/<run>/` dirs in the user project. Not a step of a single Design I/O run. Markdown only; report header **`run-review/v1`**.
6
+
7
+ ## Discover
8
+
9
+ Scan user-side `.scratch/<run>/` (not monorepo `dogfood/*` globs). **Include** only dirs that have `point-back.md` (one table row each). List dirs without `point-back.md` as skipped + reason — they contribute **0** rows. If runs-with-point-back **< 2**, refuse and report that N.
10
+
11
+ ## Report (tables, in order)
12
+
13
+ 1. **Inclusion manifest** first: `path | status` (`included` / `skipped` + reason). Note: hash match ≠ honest transcription of `observed`.
14
+ 2. **Per-run table** — mandatory **run-path** column; other columns as needed; **gate** from real `validate_run.py` exit when the script is present (plugin install: `packages/design-playbook/scripts/validate_run.py` per run); else literal `not checked`. **Never** infer ok from "artifacts look complete".
15
+ 3. **Repeat blockers** — pure frequency table `count | runs | observed text` (verbatim first-seen text). A **repeat blocker** is the same normalized `observed` text recurring across runs (**counting, not judging**). Rows only where ledger `result != pass`. Grouping key = `observed` **casefold + whitespace-collapsed**, then **char-for-char** equality only; `count ≥ 2`. Literal differences stay separate; optional `similar:` pointer line, never merge counts. **`_none_` is normal** when nothing qualifies (do not loosen normalization to manufacture repeats).
16
+ 4. **Point-back** cites: path + verbatim `observed:` quote; no line numbers.
17
+ 5. Rollup numbers derived **row-by-row** from the tables above — no "overall it seems".
18
+
19
+ Ledger row shape: **ui-evaluator** step 2 (do not restate).
20
+
21
+ ```
22
+ 禁止:
23
+ - no new run ledger
24
+ - no prose lessons / narrative "learning"
25
+ - no auto-writeback to baseline
26
+ - no semantic clustering of observed — verbatim grouping only
27
+ ```
28
+
29
+ Scope:
30
+ $ARGUMENTS
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "design-playbook",
3
- "version": "0.9.2",
4
- "description": "Design I/O for coding agents: controllable UI generation via declarations (spec/domain/craft/design/components/template) and contracts (skill/evaluator). Use for product UI—console, dashboard, agent-ops, CJK-first apps.",
5
- "keywords": [
6
- "pi-package",
7
- "ui",
8
- "ux",
9
- "design",
10
- "design-io",
11
- "design-playbook",
12
- "spec",
13
- "craft",
14
- "evaluator",
15
- "console",
16
- "cjk"
17
- ],
18
- "license": "MIT",
19
- "author": "Bandersnatch0x (https://github.com/Bandersnatch0x)",
20
- "homepage": "https://github.com/Bandersnatch0x/design-playbook",
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://github.com/Bandersnatch0x/design-playbook.git",
24
- "directory": "packages/design-playbook"
25
- },
26
- "files": [
27
- "skills",
28
- "commands",
29
- "mcp",
30
- "NOTICE",
31
- "!**/__pycache__"
32
- ],
33
- "pi": {
34
- "skills": [
35
- "./skills"
36
- ],
37
- "prompts": [
38
- "./commands"
39
- ],
40
- "image": "https://raw.githubusercontent.com/Bandersnatch0x/design-playbook/main/packages/design-playbook/showcase/screenshots/hero.png"
41
- }
42
- }
1
+ {
2
+ "name": "design-playbook",
3
+ "version": "0.10.0",
4
+ "description": "Design I/O for coding agents: controllable UI generation via declarations (spec/domain/craft/design/components/template) and contracts (skill/evaluator). Use for product UI—console, dashboard, agent-ops, CJK-first apps.",
5
+ "keywords": [
6
+ "pi-package",
7
+ "ui",
8
+ "ux",
9
+ "design",
10
+ "design-io",
11
+ "design-playbook",
12
+ "spec",
13
+ "craft",
14
+ "evaluator",
15
+ "console",
16
+ "cjk"
17
+ ],
18
+ "license": "MIT",
19
+ "author": "Bandersnatch0x (https://github.com/Bandersnatch0x)",
20
+ "homepage": "https://github.com/Bandersnatch0x/design-playbook",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/Bandersnatch0x/design-playbook.git",
24
+ "directory": "packages/design-playbook"
25
+ },
26
+ "files": [
27
+ "skills",
28
+ "commands",
29
+ "mcp",
30
+ "NOTICE",
31
+ "!**/__pycache__"
32
+ ],
33
+ "pi": {
34
+ "skills": [
35
+ "./skills"
36
+ ],
37
+ "prompts": [
38
+ "./commands"
39
+ ],
40
+ "image": "https://raw.githubusercontent.com/Bandersnatch0x/design-playbook/main/packages/design-playbook/showcase/screenshots/hero.png"
41
+ }
42
+ }
@@ -195,6 +195,8 @@ Invoke **ui-evaluator**. Issues must **point back** to a declaration.
195
195
 
196
196
  **Done when:** the report includes the criterion-shaped evidence ledger (`criterion / required / observed / result`) and findings as `issue / source / fix / severity`; the authoritative verdict completion criterion in `ui-evaluator` is met; **and** you show the user a short **run artifact index** (paths under `.scratch/<run>/`) so declaration products are discoverable — at minimum: `design-baseline/` (if triggered), `reference/` (if any), `spec.md`, `plan.md`, `decision-report.md`, `preview/` (if any), Fill surface path, `evidence/` (if any), `point-back.md`. One block is enough; do not only leave paths buried in tool logs.
197
197
 
198
+ Cross-run review of multiple `.scratch/<run>/` runs lives in command **run-review** (cross-run, not a step of this run).
199
+
198
200
  Machine seam (optional local check): `python scripts/validate_run.py <spec.md> <point-back.md> [--preview-dir <preview/>] [--decision-report <report>] [--evidence-dir <evidence/>] [--run-root <run>]`.
199
201
 
200
202
  ## Recirculate