@osovv/vv-opencode 2.6.1 → 2.7.1

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -2
  3. package/dist/lib/managed-skills.d.ts +1 -1
  4. package/dist/lib/managed-skills.js +6 -2
  5. package/dist/lib/managed-skills.js.map +1 -1
  6. package/package.json +1 -1
  7. package/schemas/vvoc/v3.json +1 -1
  8. package/templates/skills/vv-execute/references/tool-contracts.md +1 -1
  9. package/templates/skills/vv-plan/SKILL.md +2 -0
  10. package/templates/skills/vv-plan/references/plan-template.xml +5 -0
  11. package/templates/skills/vv-review/SKILL.md +1 -1
  12. package/templates/skills/vv-spec/SKILL.md +3 -0
  13. package/templates/skills/vv-spec/references/spec-template.xml +6 -0
  14. package/templates/skills/vv-ui-design-principles/SKILL.md +51 -0
  15. package/templates/skills/vv-ui-design-principles/references/design-md.md +63 -0
  16. package/templates/skills/vv-ui-design-principles/references/quality-floor.md +77 -0
  17. package/templates/skills/vv-ui-design-principles/references/slop-tells.md +245 -0
  18. package/templates/skills/vv-verification/SKILL.md +78 -0
  19. package/templates/skills/vv-verification/references/create-your-verification-stack.md +185 -0
  20. package/templates/skills/vv-verification/references/evidence.md +101 -0
  21. package/templates/skills/vv-verification/references/formal.md +86 -0
  22. package/templates/skills/vv-verification/references/maintenance.md +88 -0
  23. package/templates/skills/vv-verification/references/oracles.md +102 -0
  24. package/templates/skills/vv-verification/references/strategy.md +116 -0
  25. package/templates/skills/vv-write-for-agents/SKILL.md +45 -0
  26. package/templates/skills/vv-write-for-agents/references/compilation.md +66 -0
  27. package/templates/skills/vv-write-for-agents/references/session.md +44 -0
  28. package/templates/skills/vv-write-for-agents/references/structure.md +35 -0
  29. package/templates/skills/vv-write-for-agents/references/validation.md +42 -0
  30. package/templates/skills/vv-write-for-humans/SKILL.md +58 -0
  31. package/templates/skills/vv-write-for-humans/references/fidelity.md +41 -0
  32. package/templates/skills/vv-write-for-humans/references/genres.md +38 -0
  33. package/templates/skills/vv-write-for-humans/references/patterns.md +39 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## <small>2.7.1 (2026-11-24)</small>
2
+
3
+ ### Summary
4
+
5
+ Version 2.7.1 expands the bundled managed skills that guide day-to-day work. A new vv-verification skill adds one language-agnostic decision workflow with six on-demand references covering strategy, oracles, evidence, formal methods, maintenance, and bootstrapping a project verification stack, while vv-spec and vv-plan now ask for verification intent inside their existing fields so plans name the property and oracle behind each criterion. Two new writing skills, vv-write-for-humans for reader-facing prose and vv-write-for-agents for agent-executed instructions, are hardened with clearer trigger wording and tighter content, banned-token, and volume gates so they install predictably. The design-guidance skill is renamed from vv-design-principles to vv-ui-design-principles, so anyone invoking the old name should switch to the new one. Install and sync test expectations are now derived from the skill registry, keeping counts accurate as skills are added, and the guidance docs gained a rule against piping gate commands without pipefail plus a pinned reviewer prompt shape.
6
+
7
+ * refactor(skills): rename vv-design-principles to vv-ui-design-principles ([1d5c5e2](https://github.com/osovv/vv-opencode/commit/1d5c5e2))
8
+ * docs: steering and review-template follow-ups from session reflection ([0098498](https://github.com/osovv/vv-opencode/commit/0098498))
9
+ * docs(grace): add approved C-WRITE-FOR-AGENTS-SKILL spec bundle ([9ade2d0](https://github.com/osovv/vv-opencode/commit/9ade2d0))
10
+ * docs(grace): add approved C-WRITE-FOR-HUMANS-SKILL spec bundle ([bf3729a](https://github.com/osovv/vv-opencode/commit/bf3729a))
11
+ * docs(grace): document vv-verification and archive C-VV-VERIFICATION-SKILL ([41eb1fd](https://github.com/osovv/vv-opencode/commit/41eb1fd))
12
+ * feat(skills): add vv-verification and require verification intent ([088339d](https://github.com/osovv/vv-opencode/commit/088339d))
13
+ * feat(skills): add vv-write-for-humans and vv-write-for-agents writing skills ([b979d56](https://github.com/osovv/vv-opencode/commit/b979d56))
14
+ * test(opencode): derive managed-skill install/sync counts from the registry ([8c0d650](https://github.com/osovv/vv-opencode/commit/8c0d650))
15
+ * fix(skills): harden writing-skill gates and align routing/ask-trigger wording ([984ca1c](https://github.com/osovv/vv-opencode/commit/984ca1c)), closes [#57](https://github.com/osovv/vv-opencode/issues/57)
16
+ * chore: apply and archive C-WRITE-FOR-HUMANS-SKILL and C-WRITE-FOR-AGENTS-SKILL ([160e54b](https://github.com/osovv/vv-opencode/commit/160e54b))
17
+
18
+ ## 2.7.0 (2026-11-24)
19
+
20
+ ### Summary
21
+
22
+ Version 2.7.0 adds the vv-design-principles managed skill, giving agents a build-and-audit design process for web and app UI: it plans design tokens before writing code, enforces a measurable quality floor, runs a subtractive audit against a catalog of generic design tells, and anchors decisions in a project DESIGN.md design-system file, with the tell catalog, quality-floor numbers, and DESIGN.md contract loaded on demand from three bundled references. The skill is registered in the managed-skill list so vvoc install and sync ship it and doctor can report drift, and it is documented in the README as an additive companion to existing design skills. The release also tightens DESIGN.md discovery so it stays within the current package, reorganizes and clarifies several catalog entries for more accurate guidance, and improves the quality-floor verification steps to distinguish what was actually checked from what still needs confirmation.
23
+
24
+ * chore: apply and archive C-VV-DESIGN-PRINCIPLES-SKILL ([bd2707d](https://github.com/osovv/vv-opencode/commit/bd2707d))
25
+ * fix(skills): bound DESIGN.md discovery and recategorize copy tell ([e54538c](https://github.com/osovv/vv-opencode/commit/e54538c))
26
+ * fix(skills): resolve review findings in vv-design-principles wording ([b53bb11](https://github.com/osovv/vv-opencode/commit/b53bb11))
27
+ * docs(grace): document vv-design-principles and sync skill ownership ([6b35c3e](https://github.com/osovv/vv-opencode/commit/6b35c3e))
28
+ * feat(skills): add vv-design-principles templates and references ([69cc704](https://github.com/osovv/vv-opencode/commit/69cc704))
29
+ * feat(skills): register vv-design-principles and cover its catalog ([8f2f334](https://github.com/osovv/vv-opencode/commit/8f2f334))
30
+ * grace: approve C-VV-DESIGN-PRINCIPLES-SKILL spec and plan ([1f16e30](https://github.com/osovv/vv-opencode/commit/1f16e30))
31
+
1
32
  ## <small>2.6.1 (2026-11-22)</small>
2
33
 
3
34
  ### Summary
package/README.md CHANGED
@@ -206,7 +206,7 @@ The complete controller prompt has seven sections: `task_and_scope`, `project_co
206
206
 
207
207
  ### Managed skills
208
208
 
209
- Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills operate and observe the vvoc/OpenCode tooling itself.
209
+ Two families: `vv-*` skills guide the work protocol and its craft companions — design and writing guidance — while `vvoc-*` skills operate and observe the vvoc/OpenCode tooling itself.
210
210
 
211
211
  | Skill | When to use it | What it gives you |
212
212
  |---|---|---|
@@ -214,8 +214,12 @@ Two families: `vv-*` skills guide the work protocol, while `vvoc-*` skills opera
214
214
  | `vv-plan` | A spec is approved and ready to implement | A task-level implementation plan with file targets, contracts, dependencies, and acceptance criteria |
215
215
  | `vv-execute` | A plan is approved and you want it applied step by step | Ordered execution with verification, an explicit inline-or-classic mode choice, and applied spec/plan archival |
216
216
  | `vv-review` | You want findings, not fixes | A review-only workflow that reports spec/code issues and stops before implementation |
217
+ | `vv-verification` | You need to prove a change works, choose tests or oracles, or apply evidence-based or formal verification | One language-agnostic decision workflow plus six on-demand references: strategy, oracles, evidence, formal methods, maintenance, and a project bootstrap that generates `VERIFICATION.md`, a thin verification CLI, and the project-local `verify` and `maintain-verification` skills. Additive: it supplies the verification vocabulary without changing workflow gates |
217
218
  | `vv-reflect` | A long development, debugging, ops, or investigation session exposed environment friction or produced reusable knowledge | Dispatches the read-only `vv-reflector` subagent over the session and its subagent tree — or the streaming `--archive` aggregate when the question spans sessions/projects — then applies environment improvements (documents, steering, guardrails, skills, tooling) or lessons/runbooks only after per-entry approval |
218
219
  | `vv-handoff` | You are ending a session and want the visible context preserved | A redacted XML note at `.vvoc/handoff/YYYY-MM-DD-<session-slug>/handoff.xml`, written from already-visible context only |
220
+ | `vv-ui-design-principles` | You are building, redesigning, or reviewing web or app UI and want craft, not generic output | A token-plan-first process, a measurable quality floor, a subtractive AI-slop audit, and a project `DESIGN.md` design-system anchor — with catalogs loaded on demand from three references. Additive: it coexists with any personal design skill |
221
+ | `vv-write-for-humans` | You are writing or editing prose a person will read — README/docs, PR descriptions, design notes, commit messages, reports, error messages — or a draft reads vague, inflated, or hedged beyond the evidence | A fidelity-first editorial contract: meaning invariants and protected content, four edit modes with copyedit as the default, genre sufficiency criteria, reader-behavior deletion/addition tests, and bilingual EN/RU pattern catalogs. Good text may be left unchanged |
222
+ | `vv-write-for-agents` | You are writing or revising text an agent executes — delegation prompts, AGENTS.md, skill bodies, spec and plan prose, runtime prompts | Compilation of raw intent into minimal sufficient task specifications, structure and addressability, session update semantics, pointer craft, and a lint-and-eval validation reference, bounded in volume and free of internal jargon |
219
223
  | `vvoc-usage-analytics` | You ask about token usage, cache hit rate, costs, or caching regressions | Read-only analysis across `vvoc analytics`, the analytics JSONL, and historical `opencode.db` data |
220
224
 
221
225
  Skills are discovered by OpenCode through the native `skills` string array in `opencode.json(c)` — `vvoc install`/`sync` write the path reference and maintain the OpenCode skills-directory symlink. OpenCode supplies the available descriptions and loading instructions; the full skill is loaded when selected or explicitly invoked. The controller prompt does not repeat that catalog or its loading protocol.
@@ -362,7 +366,7 @@ An explicit `--channel latest|rc` argument may only confirm the derived channel;
362
366
 
363
367
  ### Stability and compatibility
364
368
 
365
- Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the supported host window (`>=2.0.18 <3.0.0`), the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
369
+ Since 1.0, vv-opencode treats the daily-driver surface as stable. The compatibility surfaces are: `vvoc install` / `vvoc sync` / `vvoc launch`, the supported host window (`>=2.0.18 <3.0.0`), the managed skill names (`vv-spec`, `vv-plan`, `vv-execute`, `vv-review`, `vv-reflect`, `vv-handoff`; `vv-write-for-humans`, `vv-write-for-agents`, `vv-ui-design-principles`, `vv-verification`, and `vvoc-usage-analytics` are additive), the published package exports, canonical vvoc schema v3, and the date-prefixed `.vvoc/specs/YYYY-MM-DD-<slug>/` artifact layout. Breaking workflow or config changes are documented in release notes. The project still prefers conservative, explicit changes over hidden migration magic: user-owned config is never silently clobbered, and invalid current config fails loudly.
366
370
 
367
371
  ### Deterministic local launch
368
372
 
@@ -1,4 +1,4 @@
1
- export declare const MANAGED_SKILL_NAMES: readonly ["vv-spec", "vv-plan", "vv-review", "vv-execute", "vv-reflect", "vv-handoff", "vvoc-usage-analytics"];
1
+ export declare const MANAGED_SKILL_NAMES: readonly ["vv-spec", "vv-plan", "vv-review", "vv-execute", "vv-verification", "vv-reflect", "vv-handoff", "vv-write-for-humans", "vv-write-for-agents", "vv-ui-design-principles", "vvoc-usage-analytics"];
2
2
  export type ManagedSkillName = (typeof MANAGED_SKILL_NAMES)[number];
3
3
  export declare function getManagedSkillFilePath(skillsDirPath: string, name: ManagedSkillName): string;
4
4
  export declare function loadManagedSkillTemplate(name: ManagedSkillName): Promise<string>;
@@ -10,7 +10,7 @@
10
10
  // END_MODULE_CONTRACT
11
11
  //
12
12
  // START_MODULE_MAP
13
- // MANAGED_SKILL_NAMES - Canonical vvoc-managed skill names: vv-* work-protocol skills plus vvoc-* tooling skills.
13
+ // MANAGED_SKILL_NAMES - Canonical vvoc-managed skill names: vv-* work-protocol and guidance skills plus vvoc-* tooling skills.
14
14
  // ManagedSkillName - Type for vvoc-managed skill names.
15
15
  // getManagedSkillFilePath - Resolves the skill file path inside a vvoc skills directory.
16
16
  // loadManagedSkillTemplate - Loads the bundled skill template for a managed skill.
@@ -20,7 +20,7 @@
20
20
  // END_MODULE_MAP
21
21
  //
22
22
  // START_CHANGE_SUMMARY
23
- // LAST_CHANGE: [C-WORKFLOW-PROMPT-SYNC-DOCTOR-ARCHIVE T-003 - Reference discovery now returns regular files only so an accidental directory in a bundled references folder cannot be read as a skill reference.]
23
+ // LAST_CHANGE: [DIRECT-FIX - Rename the bundled design guidance skill to vv-ui-design-principles so its UI scope is explicit next to GRACE change-design artifacts.]
24
24
  // END_CHANGE_SUMMARY
25
25
  import { readdir, readFile } from "node:fs/promises";
26
26
  import { join } from "node:path";
@@ -30,8 +30,12 @@ export const MANAGED_SKILL_NAMES = [
30
30
  "vv-plan",
31
31
  "vv-review",
32
32
  "vv-execute",
33
+ "vv-verification",
33
34
  "vv-reflect",
34
35
  "vv-handoff",
36
+ "vv-write-for-humans",
37
+ "vv-write-for-agents",
38
+ "vv-ui-design-principles",
35
39
  "vvoc-usage-analytics",
36
40
  ];
37
41
  export function getManagedSkillFilePath(skillsDirPath, name) {
@@ -1 +1 @@
1
- {"version":3,"file":"managed-skills.js","sourceRoot":"","sources":["../../src/lib/managed-skills.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,iBAAiB;AACjB,wBAAwB;AACxB,qHAAqH;AACrH,iJAAiJ;AACjJ,4EAA4E;AAC5E,gCAAgC;AAChC,kBAAkB;AAClB,sBAAsB;AACtB,sBAAsB;AACtB,EAAE;AACF,mBAAmB;AACnB,oHAAoH;AACpH,0DAA0D;AAC1D,2FAA2F;AAC3F,qFAAqF;AACrF,oFAAoF;AACpF,qFAAqF;AACrF,kHAAkH;AAClH,iBAAiB;AACjB,EAAE;AACF,uBAAuB;AACvB,mNAAmN;AACnN,qBAAqB;AAErB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS;IACT,SAAS;IACT,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,sBAAsB;CACd,CAAC;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,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACvD,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,SAAiB,EACjB,IAAsB;IAEtB,MAAM,cAAc,GAAG;QACrB,uBAAuB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7E,uBAAuB,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,CAAC,EAAE,IAAI,CAAC;KACpE,CAAC;IAEF,KAAK,MAAM,aAAa,IAAI,cAAc,EAAE,CAAC;QAC3C,IAAI,CAAC;YACH,OAAO,MAAM,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACvD,SAAS;YACX,CAAC;YACD,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CACb,oCAAoC,IAAI,qDAAqD,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACzH,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osovv/vv-opencode",
3
- "version": "2.6.1",
3
+ "version": "2.7.1",
4
4
  "description": "An opinionated agentic development layer for OpenCode — spec-first when it matters, review-driven execution, portable model roles, safer tools, and long-run safety.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/@osovv/vv-opencode@2.6.1/schemas/vvoc/v3.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/@osovv/vv-opencode@2.7.1/schemas/vvoc/v3.json",
4
4
  "title": "vvoc config",
5
5
  "description": "Canonical vvoc configuration document.",
6
6
  "type": "object",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Generated from the pure tool catalog. Do not edit by hand; run `bun run contracts:generate`.
4
4
 
5
- - Package: `@osovv/vv-opencode@2.6.1`
5
+ - Package: `@osovv/vv-opencode@2.7.1`
6
6
  - Tool contract revision: `1`
7
7
  - Reference path: `templates/skills/vv-execute/references/tool-contracts.md`
8
8
  - Current model-facing size: descriptions 9082 bytes, published input schemas 22572 bytes
@@ -68,6 +68,7 @@ You are the vv-plan skill. Your job is to take an approved spec and write an imp
68
68
  <rule>Criteria cover: success paths, failure paths, edge cases, boundary conditions, concurrency when relevant.</rule>
69
69
  <rule>Derive acceptance criteria and verification commands from the spec contract and the directly affected consumers, not from a preferred implementation. Criteria cover the material properties that must be preserved and the interactions with the consumers the change touches.</rule>
70
70
  <rule>Choose verification at the level where the risk arises: name the targeted command or scenario that exercises the changed behavior, and do not present a general check that cannot reach the changed path as evidence for a material criterion.</rule>
71
+ <rule>Every criterion names the property it protects and the oracle that decides it. Every verification command must exercise the changed behavior and produce inspectable evidence; a check that cannot fail for the claimed reason is not evidence. Use the vv-verification references for oracle and evidence vocabulary rather than inventing a second taxonomy.</rule>
71
72
  <rule>Use plain English assertions: "Returns X when Y", "Throws Z if W", "Handles N concurrent calls without data loss".</rule>
72
73
  <rule>Each criterion is a separate child tag: &lt;criterion&gt;...&lt;/criterion&gt;. Line breaks between them for readability. No numbered tags.</rule>
73
74
  </acceptance_criteria_format>
@@ -160,6 +161,7 @@ export type CacheStoreOptions = {
160
161
  <check>Spec coverage: For each requirement in the spec, identify the task that implements it. List any gaps as issues to fix.</check>
161
162
  <check>Contract completeness: Does every task's contract show all public signatures and types? Are edge cases covered by acceptance criteria?</check>
162
163
  <check>Acceptance criteria quality: Is every criterion testable? Could a reviewer or implementer write a failing test for it? Are the material properties that must be preserved and the directly affected consumers covered by criteria whose verification actually reaches them?</check>
164
+ <check>Verification intent: does every criterion name its property and oracle? Does every verification command produce inspectable evidence at the level the risk arises?</check>
163
165
  <check>Type consistency: Do types, signatures, and property names match across tasks? A function called `clearLayers()` in Task 3 but `clearFullLayers()` in Task 7 is a bug.</check>
164
166
  <rule>Fix issues inline as you find them. No second review pass needed — just fix and continue.</rule>
165
167
  <check>Format compliance: Are there zero XML attributes? Is every snippet in CDATA? Is every task a &lt;TASK-T-NNN&gt; element with identity in the element name and no child id element?</check>
@@ -46,6 +46,11 @@
46
46
  <snippet><![CDATA[
47
47
  // code here
48
48
  ]]></snippet>
49
+ <!--
50
+ Each acceptance criterion names the property and the oracle.
51
+ Each verification command exercises the changed behavior and produces
52
+ inspectable evidence. Use the vv-verification references for vocabulary.
53
+ -->
49
54
  <acceptance>
50
55
  <criterion></criterion>
51
56
  </acceptance>
@@ -15,7 +15,7 @@ You are the vv-review skill. Your job is to route review requests to the appropr
15
15
  - Code review (vv-code-reviewer): when checking for bugs, regressions, maintainability, or security
16
16
  - Both: when the request calls for comprehensive review</rule>
17
17
  <step>Open one review-only work item with work_item_open before dispatching tracked reviewer sub-agents. Use `mode: "review_only"` and set `requiredReviewers` to `['spec']`, `['code']`, or `['spec', 'code']` based on the selected reviewers. A standalone review-only item takes only `key`, `title`, `mode`, and `requiredReviewers`; do not pass generic task fields.</step>
18
- <step>Put the work item's returned `header` as the first meaningful line of each reviewer sub-agent prompt, exactly `VVOC_WORK_ITEM_ID: wi-<n>`: colon after the id, nothing else on that line (no `=`, no trailing prose). Reviewer results report `PASS`, `FAIL`, or `NEEDS_CONTEXT` and carry no route. If the launch gate rejects the reviewer, read the rejection: `REVIEW_ROUND_NOT_ACTIVE` means no active round exists, and `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for the report instead of relaunching.</step>
18
+ <step>Put the work item's returned `header` as the first meaningful line of each reviewer sub-agent prompt, exactly `VVOC_WORK_ITEM_ID: wi-<n>`: colon after the id, nothing else on that line (no `=`, no trailing prose). Use the literal shape — the header line, a blank line, then the assignment prose — because no instruction preamble may precede the header: the launch gate rejects prose before it with `MALFORMED_WORK_ITEM_HEADER`. Reviewer results report `PASS`, `FAIL`, or `NEEDS_CONTEXT` and carry no route. If the launch gate rejects the reviewer, read the rejection: `REVIEW_ROUND_NOT_ACTIVE` means no active round exists, and `REVIEWER_ALREADY_IN_FLIGHT` means that reviewer is already running; wait for the report instead of relaunching.</step>
19
19
  <step>Collect findings from each required reviewer. In review_only mode, reviewer FAIL is a completed finding result; it does not route to vv-implementer and must not prevent other required reviewers from completing.</step>
20
20
  <step>Findings are the FINAL output. Do NOT proceed to fixes without explicit user confirmation.</step>
21
21
  <step>When the request is a re-review after a fix, scope the reviewer packets to a scoped re-review: verify the prior findings against the fix and the fix's material effects — including directly affected consumers where necessary — rather than re-reviewing an entire unchanged change from scratch. Cosmetic preferences and unrelated optional improvements do not renew the correction loop.</step>
@@ -24,6 +24,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
24
24
  <principle>Resolve dependencies in order. Start with the highest-impact decision (purpose, scope, data model) and work outward (API shape, error handling, testing). A decision about the data model must be settled before deciding the API surface.</principle>
25
25
  <principle>Understand the full landscape: purpose, constraints, success criteria, non-goals, edge cases, existing code patterns.</principle>
26
26
  <principle>While walking components and data flow, capture the material properties that must be preserved — existing behavior, contracts, and consumers the change must not break — so testing and error handling can demand their verification instead of covering only the new happy path.</principle>
27
+ <principle>Capture verification intent while designing: for each material claim, decide the oracle, the evidence artifact, and the residual risk. Put this into testing.strategy and testing.coverage, and use the vv-verification references for oracle and evidence vocabulary rather than inventing a second taxonomy.</principle>
27
28
  <principle>When the decision tree reaches a fork (2-3 viable approaches), present all options with trade-offs. Lead with your recommendation and explain why. The user picks one — that closes the fork and the tree continues from that branch.</principle>
28
29
  <principle>When presenting design sections, do it one section at a time. After each section: "Does this look right?" If yes, move to the next. If no, resolve concerns before continuing.</principle>
29
30
  <principle>Cover every section of the spec template: goal, architecture, tech_stack, components, data_flow, error_handling, testing, non_goals. The roadmap shown at the start IS the coverage checklist. A section is "closed" only when its template element is fully decidable.</principle>
@@ -51,6 +52,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
51
52
  <rule>A component's identity is its element name in the COMPONENT-UPPER-SLUG pattern: &lt;COMPONENT-CACHE-STORE&gt;…&lt;/COMPONENT-CACHE-STORE&gt;. The identity repeats on both boundaries so components stay addressable. Slug rules: uppercase alphanumeric and hyphens only, no leading or trailing hyphen, unique within the document. Derive the slug from the component's display name. The child &lt;name&gt; element holds the human-readable display name. Do NOT add a child id element — the element name is the single authoritative identity.</rule>
52
53
  <rule>Component references use bare slugs: each &lt;depends_on&gt; element contains exactly one component slug declared elsewhere in the same components section. Never reference a component by prose name.</rule>
53
54
  <rule>The top-level &lt;status&gt; element is the document lifecycle status and MUST be one of: draft, approved, applied.</rule>
55
+ <rule>testing.strategy must name each material claim, its oracle, the evidence artifact, and the residual risk. testing.coverage must state what is deliberately not covered and why. Use the existing testing fields; do not add a new XML element for verification intent. The vv-verification references supply the oracle and evidence vocabulary.</rule>
54
56
  <rule>When first saving the spec, set &lt;status&gt;draft&lt;/status&gt;. Only change it to approved after the user explicitly approves the final spec. Never set applied yourself; applied is reserved for vv-execute after the approved plan has been fully executed.</rule>
55
57
  <location>Canonical layout — all artifacts for one feature live in a single spec package directory:</location>
56
58
  <layout>
@@ -84,6 +86,7 @@ UX cues (roadmap, progress markers, depth estimates, checkpoints) are TRANSPAREN
84
86
  <check>Internal consistency: Do any sections contradict each other? Does the architecture match the component descriptions?</check>
85
87
  <check>Scope check: Is this focused enough for a single implementation plan, or does it need decomposition into sub-projects?</check>
86
88
  <check>Ambiguity check: Could any requirement be interpreted two different ways? Resolve repository-answerable engineering ambiguity from the established code and contracts; a genuine business-semantics fork goes to the user as an explicit question — never silently pick a business interpretation.</check>
89
+ <check>Verification intent: does testing.strategy name each material claim, its oracle, the evidence artifact, and the residual risk? Does testing.coverage state what is deliberately not covered and why?</check>
87
90
  <rule>Fix issues inline. No need to re-review — just fix and move on.</rule>
88
91
  </self_review>
89
92
 
@@ -21,6 +21,12 @@
21
21
  <data_flow></data_flow>
22
22
  <error_handling></error_handling>
23
23
  <testing>
24
+ <!--
25
+ testing.strategy must name each material claim, its oracle, the evidence artifact,
26
+ and the residual risk. testing.coverage must state what is deliberately not covered
27
+ and why. Use the vv-verification references for oracle and evidence vocabulary;
28
+ do not add a new element for verification intent.
29
+ -->
24
30
  <strategy></strategy>
25
31
  <coverage></coverage>
26
32
  </testing>
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: vv-ui-design-principles
3
+ description: Use when UI work needs verifiable design quality — auditing an existing page, component, or design system for AI-slop tells and accessibility-floor violations, or building new UI with a token plan, a measurable quality floor, and a project DESIGN.md design-system anchor. Complements aesthetic-direction skills: this skill supplies the subtractive AI-slop audit, hard numbers, and DESIGN.md checks.
4
+ ---
5
+
6
+ <skill>
7
+ <identity>
8
+ You are the vv-ui-design-principles skill. You bring a design process to UI work: plan tokens before code, build against a measurable quality floor, then audit your own output by removing machine-recognizable tells. You are guidance, not a linter — every rule here is a reason to look closer, weighed against the brief.
9
+ </identity>
10
+
11
+ <principle>
12
+ AI slop is density, not a banned list. Any single tell (an eyebrow label, a cream background, a serif headline) is a legitimate choice; a page stacking ten of them reads as machine-made. Research on AI-built pages shows that written encouragement like "be distinctive" makes output worse — the model reads it as "add more". So this skill works by subtraction: make one deliberate choice, then remove everything that does not serve it. Banning Inter and purple does not produce design; it produces Instrument Serif and mono captions. The list of tells steers attention; the brief decides.
13
+ </principle>
14
+
15
+ <workflow>
16
+ <step>Identify the subject before styling: what the product is, who it is for, and the one job of this page or screen. Distinctive choices come from the subject's industry, materials, and vocabulary — not from a stylesheet of safe "premium" moves. If the brief does not name a subject, propose one and confirm.</step>
17
+ <step>Look for a project DESIGN.md before choosing any token. Load references/design-md.md when you need the discovery procedure and file contract. If the file exists, validate every later choice against it and report deviations explicitly. If it is missing, plan tokens first and propose creating DESIGN.md from your plan — ask before writing it.</step>
18
+ <step>Plan tokens before code: 4–8 named hex colors with roles, one or two brand typefaces with roles plus a mono or data face where the product needs one, a layout concept (alignment, density, one sentence per section), and one signature element the page will be remembered by. Spend your boldness in that one place and keep everything around it quiet. Review the plan against genericity: if a similar brief would produce the same plan, revise the part that would match — and say what you changed and why.</step>
19
+ <step>Build against the quality floor. Load references/quality-floor.md for the measurable numbers (contrast, type sizes, measure, focus, targets, motion, content states) and treat them as non-negotiable. Use real content — actual product names, screenshots, numbers — because placeholder content makes a design feel templated as surely as default colors do.</step>
20
+ <step>Run the subtractive audit before declaring the work done. Load references/slop-tells.md, walk the catalog by category, and count tells per section. When a section stacks several tells, fix by removing first — simpler hierarchy, fewer containers, less decoration — never by adding a counter-effect. Remove one more thing than feels necessary (take one accessory off before leaving the house).</step>
21
+ <step>Report honestly: list the tells you removed, the tells you kept deliberately (with the brief-based reason), and the quality-floor violations you fixed with numbers. A deliberate keep is legitimate; an unexamined default is not.</step>
22
+ </workflow>
23
+
24
+ <audit_rules>
25
+ <rule>A tell may remain only when the brief or subject genuinely calls for it and you can state that reason in one sentence. An editorial publication may keep a serif display and hairline rules; a fintech dashboard may not inherit them by default.</rule>
26
+ <rule>Fix by removal before addition: merge containers, delete badges, drop entrances, shorten headlines. If a fix requires adding a new decoration, it is probably not a fix.</rule>
27
+ <rule>Density ladder for the audit: one tell is a choice; more than 2 in one section is a pattern to break by removal; more than 5 on a page is a redesign of those areas.</rule>
28
+ <rule>Do not fix slop by inverting it into the next default (cream to neon, serif to mono). Re-derive the choice from the subject.</rule>
29
+ <rule>The quality floor is a requirement, not a style preference: it ranks above the brief, DESIGN.md, and this skill's other rules. If the brief or a documented decision asks for less than the floor, flag the conflict and confirm; absent confirmation, implement the floor-compliant version.</rule>
30
+ <rule>Motion is judgment, not compliance: keep at most one purposeful reveal and the feedback that answers user actions, gate all of it behind reduced-motion, and never strip motion entirely just to pass an audit.</rule>
31
+ </audit_rules>
32
+
33
+ <report_format>
34
+ <format>
35
+ - Removed: tell → what replaced it (per section)
36
+ - Kept deliberately: tell → one-sentence brief-based reason
37
+ - Quality floor: violation → measured fix (numbers where applicable)
38
+ - DESIGN.md: found and followed | found with deviations listed | missing → proposal attached
39
+ </format>
40
+ </report_format>
41
+
42
+ <references>
43
+ <rule>references/slop-tells.md — the tell catalog grouped by category (typography, color and contrast, layout and space, motion, copy, imagery, template chrome). Load when auditing or when a choice feels familiar.</rule>
44
+ <rule>references/quality-floor.md — the measurable non-negotiables for any build. Load before writing UI code.</rule>
45
+ <rule>references/design-md.md — the DESIGN.md contract: discovery, validation, and the create-or-fill proposal. Load at plan time and whenever a token choice is contested.</rule>
46
+ </references>
47
+
48
+ <task>
49
+ Apply this process to the current user request. If the request is a build or redesign, run the full sequence: subject, DESIGN.md check, token plan, build, audit, report. If the request is a review of existing UI, run the audit pass and the report without rebuilding. Do not modify files the request does not cover, and never write DESIGN.md without asking first.
50
+ </task>
51
+ </skill>
@@ -0,0 +1,63 @@
1
+ # DESIGN.md: the project design system
2
+
3
+ DESIGN.md is the project-owned record of its design decisions. The skill's audit checks choices against it before falling back to generic taste rules. It is plain markdown, edited by humans and agents together.
4
+
5
+ ## Discovery
6
+
7
+ Walk upward from the file you are editing, staying inside the current package, and stop at the first hit:
8
+
9
+ 1. `DESIGN.md` in the directory of the code being edited or its nearest ancestor within the package — monorepo packages own their own file, and the closest file is the one that governs this work.
10
+ 2. `docs/DESIGN.md` or `.design/DESIGN.md` inside the package, as fallbacks when the package has no root file.
11
+ 3. The repository-root `DESIGN.md`, which supplies project-wide defaults when the package itself has no file.
12
+
13
+ If two candidate files sit at the same level with overlapping scope, ask the user which one governs instead of guessing. If none exists, follow the missing-file procedure below.
14
+
15
+ ## What the file documents
16
+
17
+ A useful DESIGN.md stays short — roughly 40 to 80 lines — and contains only decisions that shipped or are about to ship:
18
+
19
+ - **Voice** — three sentences on how the product talks: tone, formality, what it never says.
20
+ - **Typefaces** — each family, its role (display, body, mono, data), and its fallback stack.
21
+ - **Palette** — 4 to 8 named colors as hex values with roles (surface, text, muted, accent, success, warning, danger), plus any state variants.
22
+ - **Type scale** — the allowed sizes and weights, with the role of each step.
23
+ - **Radii** — the allowed corner radii and which element types use them.
24
+ - **Spacing** — the scale, and the gap conventions between elements and sections.
25
+ - **Borders and elevation** — the border widths and the shadow set, or an explicit "no shadows" decision.
26
+ - **Motion** — durations, easing, and which moments are allowed to animate.
27
+ - **Imagery** — what kind of images belong (product screenshots, photography, illustration) and what is forbidden.
28
+ - **Do-nots** — product-specific traps, for example "never purple gradients; our brand accent is X" or "numbers are always tabular".
29
+
30
+ ## Validating against it
31
+
32
+ During the plan and audit phases, compare every choice to DESIGN.md:
33
+
34
+ - A font family, color value, type size, radius, shadow, or duration outside the documented system is a finding, even if it looks good.
35
+ - Report the deviation as `chosen value → documented value or proposed addition`, and either fix it or ask for the system to be extended.
36
+ - Never silently add a token to the file to justify a choice. Additions are proposed, with a reason, and confirmed.
37
+ - A documented decision wins over the skill's generic preferences. If DESIGN.md says "Inter everywhere", Inter is correct; the audit does not relitigate it.
38
+ - The quality floor is not a generic preference. If a documented decision asks for less than the floor — contrast below AA, body text smaller than 16px, hidden content, missing focus — report the conflict and confirm; absent confirmation, implement the floor-compliant version.
39
+ - If a documented decision contradicts the brief, surface it in one sentence and let the user decide before applying either.
40
+
41
+ ## When it is missing: propose creating it
42
+
43
+ Do not invent a design system on the fly, and do not write the file without asking.
44
+
45
+ 1. Finish the token plan for the current work first: named palette, typefaces and roles, layout intent, signature element.
46
+ 2. Propose creating DESIGN.md seeded from that plan, with the section skeleton above filled only with the tokens this build actually uses.
47
+ 3. Show the draft (or its outline plus key values) and ask for confirmation; on approval, write it and mention the path in the report.
48
+ 4. If the user declines, proceed with the brief alone and record in the audit report that DESIGN.md is absent and the choices are unanchored.
49
+
50
+ A proposal that claims more than the project has decided is worse than no file: leave unknown sections out rather than filling them with defaults.
51
+
52
+ ## Precedence
53
+
54
+ 1. The quality floor — accessibility, visible content, hit targets, legibility. A requirement, not a style preference; conflicts are surfaced and confirmed.
55
+ 2. DESIGN.md, where it covers the decision.
56
+ 3. The brief's explicit direction, where DESIGN.md is silent or explicitly defers.
57
+ 4. This skill's generic rules and defaults.
58
+
59
+ The skill never overrides an explicit brief ask to satisfy a generic preference. Where DESIGN.md and the brief disagree, say so in one sentence and let the user decide; apply the brief for this piece of work only if the user confirms, and propose the DESIGN.md update separately instead of rewriting it during the task.
60
+
61
+ ## Keeping it current
62
+
63
+ After the build, list the decisions that actually shipped — new tokens, changed radii, a new motion rule — and propose appending them. Stale files teach the next audit the wrong rules; an out-of-date DESIGN.md is a finding in its own right.
@@ -0,0 +1,77 @@
1
+ # Quality floor
2
+
3
+ The non-negotiable base every build must clear before any audit of taste. Each rule is checkable: compute it from the code when possible (contrast from the hex pair, sizes and measure from the stylesheet), measure it in the running page when tooling exists, and otherwise report the check as not verified instead of inventing a number.
4
+
5
+ ## Typography
6
+
7
+ - Body text starts at 16px. Check the actual rendered size on a phone-width viewport, not just the CSS variable.
8
+ - Line height sits near 1.5 for body copy; serif faces and long measures get slightly more. Tight leading below 1.4 makes paragraphs hard to track.
9
+ - Measure is 65–75 characters per line (hard ceiling around 80). Serif body may run slightly longer.
10
+ - Body text is left-aligned; justified text without hyphenation creates rivers of space.
11
+ - Headings: one h1 per page, no skipped levels (h2 under h1, h3 for subsections), and no heading used purely for visual size.
12
+ - Use `text-wrap: balance` for headings and `text-wrap: pretty` for paragraphs so a last line is not a single orphaned word.
13
+ - Small text below 14px is reserved for non-essential labels; navigation and controls stay readable without zoom.
14
+ - Letter spacing stays at the font's default for body text; wide tracking only for short labels.
15
+
16
+ ## Color and contrast
17
+
18
+ - Body text: at least 4.5:1 against its actual background. Large text (24px+, or 19px+ bold) and essential UI boundaries: at least 3:1.
19
+ - Secondary text may be lighter but still passes 4.5:1 when it carries meaning. Lightness is not a hierarchy tool if it makes text unreadable.
20
+ - Contrast is checked against the real surface — tinted cards, gradient stops, and images included — not against white.
21
+ - Color is never the only signal for state: pair it with text, icon, or shape.
22
+ - One accent color carries one meaning across the product; badges and status colors are rare enough to stay meaningful.
23
+
24
+ ## Layout and space
25
+
26
+ - Grouping is expressed by proximity first: related items close, separate groups clearly apart. A heading gets more space above it than below.
27
+ - Spacing follows a small scale (for example 4/8/12/16/24/32/48/64) instead of arbitrary values.
28
+ - Content containers keep horizontal padding at every width; body text never touches the viewport edge.
29
+ - Nothing overflows its container: no sideways page scroll, no text spilling from cards, no menu or popover clipped by an ancestor's overflow.
30
+ - One visual hierarchy per screen: the primary action is unmistakable next to secondary ones.
31
+ - Interactions have at least one clear affordance; clickable things do not look identical to static surfaces.
32
+
33
+ ## Interaction and accessibility
34
+
35
+ - Semantic markup: real buttons for actions, real links for navigation, real lists for lists, landmarks (`header`, `nav`, `main`, `footer`).
36
+ - Keyboard: every interactive element is reachable in a sensible order, and focus is always visible (a focus ring with at least 3:1 contrast against its surroundings).
37
+ - Touch targets are at least 44px on their smallest side, with spacing between adjacent targets.
38
+ - Form fields have visible labels (not placeholder-only), and errors are announced next to the field with a repair instruction.
39
+ - Images that carry meaning have descriptive alt text; decorative images use empty alt.
40
+ - Dialogs trap focus while open, close on Escape, and return focus to the trigger.
41
+
42
+ ## Motion
43
+
44
+ - Content is visible by default. Entrance animations are enhancement; with JavaScript disabled or the handler failing, nothing stays at opacity zero.
45
+ - Non-user-triggered motion: at most one orchestrated moment per page, under 300ms per element.
46
+ - `prefers-reduced-motion` is respected for every animation, including carousels, scroll reveals, and parallax.
47
+ - Auto-playing motion longer than 5 seconds can be paused, stopped, or hidden.
48
+ - Motion answers an action (open, expand, confirm) or marks a real change; it does not decorate static content.
49
+
50
+ ## Content and states
51
+
52
+ - Real content: actual product names, real screenshots or photos, sourced numbers. No lorem ipsum, no invented testimonials, no initials-in-a-circle avatars, no grey logo placeholders.
53
+ - Buttons and links say what happens: "Save changes", not "Submit"; the action's name stays consistent through the flow ("Publish" → "Published").
54
+ - Every list, table, and dashboard has designed empty, loading, and error states that tell the user what to do next.
55
+ - Error copy states what happened and how to fix it, in the interface's voice; it does not apologize or blame.
56
+ - Written content follows the same minimalism as spacing: each element on the page does one job.
57
+
58
+ ## Responsive and robustness
59
+
60
+ - Layout holds at 375px wide: no horizontal scroll, no overlapping text, no cut-off controls.
61
+ - Text scales without breaking layout; test 200% zoom.
62
+ - No uncaught JavaScript errors on load; interactive components work with keyboard only.
63
+ - Images have explicit dimensions or aspect ratios so content does not jump while loading.
64
+ - The page is usable before fonts finish loading (a matched fallback stack with similar metrics).
65
+
66
+ ## Verification pass
67
+
68
+ Run these checks and record what you actually observed. Compute from source where possible; run in a browser only when tooling is available; label anything you could not execute as not verified.
69
+
70
+ 1. Contrast of body text and the main CTA against their actual backgrounds — compute the ratios from the hex values.
71
+ 2. Body font size and line height from the stylesheet, plus rendered values at 375px and 1440px when a browser is available.
72
+ 3. Measure of the longest paragraph in characters — compute from font size and container width.
73
+ 4. Keyboard order, visible focus, and traps — needs a running page. Without one, inspect the markup (semantic elements, tabindex values, focus styles) and state which part is unverified.
74
+ 5. Reduced-motion handling — inspect the media query and the animated declarations; runtime confirmation is optional.
75
+ 6. Content visibility without JavaScript — inspect whether content starts hidden; runtime confirmation is optional.
76
+ 7. Layout at 375px — inspect fixed widths, overflow, and min-width rules; confirm in a browser when available.
77
+ 8. Empty, loading, and error states — inspect the components; confirm in a browser when available.