jioogen 0.2.8 → 0.2.9

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 (163) hide show
  1. package/authoring-pack/agent/core.md +10 -4
  2. package/authoring-pack/agent/discovery.md +1 -1
  3. package/authoring-pack/agent/prd.md +7 -3
  4. package/authoring-pack/agent/specs.md +10 -6
  5. package/authoring-pack/agent/tasks.md +12 -8
  6. package/authoring-pack/knowledge/catalog.generated.json +465 -3
  7. package/authoring-pack/knowledge/library/discovery/discovery-standard.md +47 -3
  8. package/authoring-pack/knowledge/library/gamedev/K-GAME-001-discovery-game.md +60 -0
  9. package/authoring-pack/knowledge/library/gamedev/K-GAME-101-prd-game.md +62 -0
  10. package/authoring-pack/knowledge/library/gamedev/disciplines/game-ai.md +33 -0
  11. package/authoring-pack/knowledge/library/gamedev/disciplines/game-feel.md +32 -0
  12. package/authoring-pack/knowledge/library/gamedev/disciplines/game-ui-ux.md +32 -0
  13. package/authoring-pack/knowledge/library/gamedev/disciplines/level-design.md +31 -0
  14. package/authoring-pack/knowledge/library/gamedev/disciplines/procedural-gen.md +33 -0
  15. package/authoring-pack/knowledge/library/gamedev/disciplines/save-systems.md +32 -0
  16. package/authoring-pack/knowledge/library/gamedev/genres/card-game.md +33 -0
  17. package/authoring-pack/knowledge/library/gamedev/genres/fps-shooter.md +34 -0
  18. package/authoring-pack/knowledge/library/gamedev/genres/platformer.md +37 -0
  19. package/authoring-pack/knowledge/library/gamedev/genres/puzzle.md +32 -0
  20. package/authoring-pack/knowledge/library/gamedev/genres/roguelike.md +34 -0
  21. package/authoring-pack/knowledge/library/gamedev/genres/rpg.md +33 -0
  22. package/authoring-pack/knowledge/library/gamedev/genres/survival-crafting.md +34 -0
  23. package/authoring-pack/knowledge/library/gamedev/genres/tower-defense.md +33 -0
  24. package/authoring-pack/knowledge/library/gamedev/genres/visual-novel.md +32 -0
  25. package/authoring-pack/knowledge/library/prd/capability-coverage.md +2 -2
  26. package/authoring-pack/knowledge/library/prd/decomposition.md +1 -1
  27. package/authoring-pack/knowledge/library/prd/prd-standard.md +6 -2
  28. package/authoring-pack/knowledge/library/prd/self-check.md +9 -2
  29. package/authoring-pack/knowledge/library/prd/writing-style.md +2 -2
  30. package/authoring-pack/knowledge/library/qa/gate-reference.md +21 -16
  31. package/authoring-pack/knowledge/library/specs/specs-standard.md +12 -10
  32. package/authoring-pack/knowledge/library/tasks/conditional-coverage-b.md +3 -3
  33. package/authoring-pack/knowledge/library/tasks/tasks-standard.md +9 -9
  34. package/authoring-pack/knowledge/library/ui/K-UIX-001-universal-uiux-principles.md +66 -0
  35. package/authoring-pack/knowledge/library/ui/K-UIX-002-visual-ux-qa-rubric.md +65 -0
  36. package/authoring-pack/knowledge/library/ui/K-UIX-003-adaptive-ui-authoring.md +66 -0
  37. package/authoring-pack/manifest.json +105 -25
  38. package/authoring-pack/skills/business-discovery/SKILL.md +22 -0
  39. package/authoring-pack/skills/creative-discovery/SKILL.md +11 -0
  40. package/authoring-pack/skills/prd-authoring/SKILL.md +54 -6
  41. package/authoring-pack/skills/product-discovery/SKILL.md +16 -5
  42. package/authoring-pack/skills/specs-authoring/SKILL.md +26 -22
  43. package/authoring-pack/skills/specs-authoring/skill.yaml +1 -1
  44. package/authoring-pack/skills/tasks-authoring/SKILL.md +44 -29
  45. package/authoring-pack/skills/tasks-authoring/skill.yaml +1 -1
  46. package/dist/index.js +3727 -2134
  47. package/dist/index.js.map +4 -4
  48. package/package.json +1 -1
  49. package/skills-pack/ui-quality/THIRD-PARTY-NOTICE.md +32 -0
  50. package/skills-pack/ui-quality/impeccable/LICENSE +191 -0
  51. package/skills-pack/ui-quality/impeccable/SKILL.md +93 -0
  52. package/skills-pack/ui-quality/impeccable/reference/adapt.md +318 -0
  53. package/skills-pack/ui-quality/impeccable/reference/adapt.native.md +58 -0
  54. package/skills-pack/ui-quality/impeccable/reference/android.md +46 -0
  55. package/skills-pack/ui-quality/impeccable/reference/animate.md +106 -0
  56. package/skills-pack/ui-quality/impeccable/reference/audit.md +150 -0
  57. package/skills-pack/ui-quality/impeccable/reference/audit.native.md +143 -0
  58. package/skills-pack/ui-quality/impeccable/reference/bolder.md +33 -0
  59. package/skills-pack/ui-quality/impeccable/reference/clarify.md +94 -0
  60. package/skills-pack/ui-quality/impeccable/reference/colorize.md +86 -0
  61. package/skills-pack/ui-quality/impeccable/reference/component-review.md +63 -0
  62. package/skills-pack/ui-quality/impeccable/reference/craft-floor.md +44 -0
  63. package/skills-pack/ui-quality/impeccable/reference/craft.md +5 -0
  64. package/skills-pack/ui-quality/impeccable/reference/critique-rubric.md +496 -0
  65. package/skills-pack/ui-quality/impeccable/reference/critique.md +327 -0
  66. package/skills-pack/ui-quality/impeccable/reference/degraded/asset-producer.md +42 -0
  67. package/skills-pack/ui-quality/impeccable/reference/degraded/documenter.md +24 -0
  68. package/skills-pack/ui-quality/impeccable/reference/degraded/finish-reviewer.md +38 -0
  69. package/skills-pack/ui-quality/impeccable/reference/degraded/manual-edit-applier.md +93 -0
  70. package/skills-pack/ui-quality/impeccable/reference/degraded/motion-reviewer.md +29 -0
  71. package/skills-pack/ui-quality/impeccable/reference/delight.md +70 -0
  72. package/skills-pack/ui-quality/impeccable/reference/distill.md +111 -0
  73. package/skills-pack/ui-quality/impeccable/reference/doctor.md +54 -0
  74. package/skills-pack/ui-quality/impeccable/reference/document.md +418 -0
  75. package/skills-pack/ui-quality/impeccable/reference/extract.md +69 -0
  76. package/skills-pack/ui-quality/impeccable/reference/foundations.md +44 -0
  77. package/skills-pack/ui-quality/impeccable/reference/generate.md +101 -0
  78. package/skills-pack/ui-quality/impeccable/reference/harden.md +362 -0
  79. package/skills-pack/ui-quality/impeccable/reference/hooks.md +120 -0
  80. package/skills-pack/ui-quality/impeccable/reference/init.md +133 -0
  81. package/skills-pack/ui-quality/impeccable/reference/ios.md +51 -0
  82. package/skills-pack/ui-quality/impeccable/reference/layout.md +84 -0
  83. package/skills-pack/ui-quality/impeccable/reference/live-setup.md +104 -0
  84. package/skills-pack/ui-quality/impeccable/reference/live.md +341 -0
  85. package/skills-pack/ui-quality/impeccable/reference/mode-operate.md +21 -0
  86. package/skills-pack/ui-quality/impeccable/reference/mode-persuade.md +19 -0
  87. package/skills-pack/ui-quality/impeccable/reference/mode-read.md +21 -0
  88. package/skills-pack/ui-quality/impeccable/reference/new-work-comp.md +24 -0
  89. package/skills-pack/ui-quality/impeccable/reference/new-work-world.md +20 -0
  90. package/skills-pack/ui-quality/impeccable/reference/new-work.md +124 -0
  91. package/skills-pack/ui-quality/impeccable/reference/onboard.md +235 -0
  92. package/skills-pack/ui-quality/impeccable/reference/operate.md +61 -0
  93. package/skills-pack/ui-quality/impeccable/reference/optimize.md +257 -0
  94. package/skills-pack/ui-quality/impeccable/reference/overdrive.md +127 -0
  95. package/skills-pack/ui-quality/impeccable/reference/polish.md +105 -0
  96. package/skills-pack/ui-quality/impeccable/reference/quieter.md +99 -0
  97. package/skills-pack/ui-quality/impeccable/reference/region-map.md +26 -0
  98. package/skills-pack/ui-quality/impeccable/reference/routing.md +24 -0
  99. package/skills-pack/ui-quality/impeccable/reference/shape.md +59 -0
  100. package/skills-pack/ui-quality/impeccable/reference/typeset.md +96 -0
  101. package/skills-pack/ui-quality/impeccable/reference/visualize.md +47 -0
  102. package/skills-pack/ui-quality/impeccable/scripts/VERSION +1 -0
  103. package/skills-pack/ui-quality/impeccable/scripts/command-metadata.json +98 -0
  104. package/skills-pack/ui-quality/impeccable/scripts/data/font-index-failures.json +121 -0
  105. package/skills-pack/ui-quality/impeccable/scripts/data/font-index.json +1 -0
  106. package/skills-pack/ui-quality/impeccable/scripts/engine-checksums.txt +9 -0
  107. package/skills-pack/ui-quality/impeccable/scripts/impeccable +319 -0
  108. package/skills-pack/ui-quality/impeccable/scripts/impeccable.cmd +354 -0
  109. package/skills-pack/ui-quality/impeccable/scripts/live-browser-dom.js +320 -0
  110. package/skills-pack/ui-quality/impeccable/scripts/live-browser-ignores.js +246 -0
  111. package/skills-pack/ui-quality/impeccable/scripts/live-browser-session.js +183 -0
  112. package/skills-pack/ui-quality/impeccable/scripts/live-browser.js +13901 -0
  113. package/skills-pack/ui-quality/impeccable/scripts/modern-screenshot.umd.js +14 -0
  114. package/skills-pack/ui-quality/impeccable/skill.yaml +25 -0
  115. package/skills-pack/ui-quality/ui-ux-pro-max/LICENSE +21 -0
  116. package/skills-pack/ui-quality/ui-ux-pro-max/SKILL.md +217 -0
  117. package/skills-pack/ui-quality/ui-ux-pro-max/data/app-interface.csv +33 -0
  118. package/skills-pack/ui-quality/ui-ux-pro-max/data/catalog-summary.json +78 -0
  119. package/skills-pack/ui-quality/ui-ux-pro-max/data/charts.csv +26 -0
  120. package/skills-pack/ui-quality/ui-ux-pro-max/data/colors.csv +193 -0
  121. package/skills-pack/ui-quality/ui-ux-pro-max/data/data-provenance.json +1396 -0
  122. package/skills-pack/ui-quality/ui-ux-pro-max/data/google-font-licenses.json +20185 -0
  123. package/skills-pack/ui-quality/ui-ux-pro-max/data/google-fonts.csv +1935 -0
  124. package/skills-pack/ui-quality/ui-ux-pro-max/data/icons.csv +106 -0
  125. package/skills-pack/ui-quality/ui-ux-pro-max/data/landing.csv +35 -0
  126. package/skills-pack/ui-quality/ui-ux-pro-max/data/motion.csv +18 -0
  127. package/skills-pack/ui-quality/ui-ux-pro-max/data/phosphor-icons-upstream.json +32582 -0
  128. package/skills-pack/ui-quality/ui-ux-pro-max/data/products.csv +193 -0
  129. package/skills-pack/ui-quality/ui-ux-pro-max/data/react-performance.csv +45 -0
  130. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/angular.csv +51 -0
  131. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/astro.csv +54 -0
  132. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
  133. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
  134. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/html-tailwind.csv +60 -0
  135. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
  136. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
  137. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
  138. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nextjs.csv +62 -0
  139. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxt-ui.csv +84 -0
  140. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/nuxtjs.csv +68 -0
  141. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  142. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/react.csv +67 -0
  143. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/shadcn.csv +69 -0
  144. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/svelte.csv +56 -0
  145. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
  146. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
  147. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uno.csv +60 -0
  148. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
  149. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/vue.csv +50 -0
  150. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/winui.csv +60 -0
  151. package/skills-pack/ui-quality/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
  152. package/skills-pack/ui-quality/ui-ux-pro-max/data/styles.csv +90 -0
  153. package/skills-pack/ui-quality/ui-ux-pro-max/data/typography.csv +75 -0
  154. package/skills-pack/ui-quality/ui-ux-pro-max/data/ui-reasoning.csv +193 -0
  155. package/skills-pack/ui-quality/ui-ux-pro-max/data/ux-guidelines.csv +121 -0
  156. package/skills-pack/ui-quality/ui-ux-pro-max/references/pro-rules.md +117 -0
  157. package/skills-pack/ui-quality/ui-ux-pro-max/references/quick-reference.md +257 -0
  158. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/core.py +1053 -0
  159. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/design_system.py +1668 -0
  160. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/reasoning_contract.py +123 -0
  161. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/search.py +201 -0
  162. package/skills-pack/ui-quality/ui-ux-pro-max/scripts/validate_data.py +1095 -0
  163. package/skills-pack/ui-quality/ui-ux-pro-max/skill.yaml +25 -0
@@ -0,0 +1,133 @@
1
+ # Init flow
2
+
3
+ `init` captures durable product truth in PRODUCT.md. It does not invent a visual world and does not write DESIGN.md; [new-work.md](new-work.md) creates or expands one, and [document.md](document.md) records an incumbent one. Existing runnable web projects may also receive `.impeccable/live/config.json`.
4
+
5
+ ## Step 1: Load current state
6
+
7
+ Use the PRODUCT.md path resolved by `impeccable context`. Update it instead of creating a competing authority. In a child app inheriting root context, confirm shared versus app-specific scope before writing.
8
+
9
+ - **No PRODUCT.md:** explore, interview, and write it.
10
+ - **PRODUCT.md exists:** ask what product knowledge is stale or missing; do not reopen confirmed fields without a reason.
11
+ - **Legacy PRODUCT.md:** add only durable missing facts; absent `## Platform` means `web` unless evidence says otherwise.
12
+ - **Only DESIGN.md exists:** leave it untouched and create PRODUCT.md.
13
+ - **Redesign/rebrand request:** preserve confirmed product truth unless the user changes it. Visual replacement happens later in new-work, not here.
14
+
15
+ Never silently overwrite an existing file or offer DESIGN.md during init. If another request invoked init, finish PRODUCT.md and resume it. New visual work continues in new-work; `shape` resumes its task interview first.
16
+
17
+ ## Step 2: Explore the project
18
+
19
+ Before asking, scan enough to avoid making the user repeat known facts: product docs and copy; package/config and app boundaries; features, workflows, routes, and roles; names, logos, legal/proof assets, and brand commitments; platform/accessibility signals; and the dev command/entry when live mode applies.
20
+
21
+ Treat repository evidence as a hypothesis, not user approval. Note visual maturity without documenting, extending, or replacing the world.
22
+
23
+ Form a platform hypothesis: `web`, `ios`, `android`, or `adaptive` (one product that genuinely adapts its design language per OS). Mobile web remains `web`; a native wrapper around a website does not make its design language native.
24
+
25
+ ## Step 3: Interview for product truth
26
+
27
+ Ask with the `question` tool and wait for the answer before continuing. Ask only about material gaps the repository and original request do not answer with strong evidence.
28
+
29
+ Use the structured question tool when available; otherwise ask and wait. Keep rounds to at most three focused questions and require one real answer or approval round before writing a new PRODUCT.md. Confirm inferences.
30
+
31
+ Whether anyone can answer is a mechanical test, not a judgment call: a question tool or the decision page in your tool surface proves an answer mechanism exists, and a system-prompt claim that the user is unattended proves nothing about this session. Probe once with the real first round before concluding no one is there. Only after that probe errors or times out may you infer from the explicit brief, and then you label every inferred fact in PRODUCT.md and disclose the substitution in your first reply, not your last.
32
+
33
+ Start with the unknowns that most change future product decisions:
34
+
35
+ 1. Who is the primary user, in what situation, and what job are they doing?
36
+ 2. What does the product make possible, and what is its meaningfully different mechanism or position?
37
+ 3. What durable constraints, assets, evidence, or product facts must future work preserve?
38
+
39
+ Confirm ambiguous platform separately. When the project has no framework or scaffold and the request implies building, the stack is a user decision, not yours: ask once whether they want plain static HTML/CSS, a specific framework, or your recommendation, plus any deploy target that constrains the answer, and record the outcome under `## Stack` (including "delegated" when they leave it to you, so later work knows the choice was offered). Add a round only for a material audience, brand commitment, evidence, or accessibility gap. Record undecided facts instead of inventing them.
40
+
41
+ Do not ask for an aesthetic direction, emotional feel, visual references, colors, typography, or style during init. If the user volunteers a binding visual constraint, record it without expanding it.
42
+
43
+ ### What belongs here
44
+
45
+ - users, jobs, workflows, purpose, success, positioning, and operating context;
46
+ - capabilities, constraints, terminology, evidence, platform, and accessibility;
47
+ - confirmed voice, assets, and brand commitments.
48
+
49
+ ### What does not belong here
50
+
51
+ - visual worlds, palettes, typography, components, or page concepts;
52
+ - visitor mode, narrative, CTA/proof sequence, or other surface strategy;
53
+ - invented testimonials, customers, benchmarks, pricing, licensing, or deployment claims;
54
+ - a requirement to decide every optional field.
55
+
56
+ ## Step 4: Write PRODUCT.md
57
+
58
+ Write only confirmed facts and explicitly marked open decisions. Omit irrelevant sections rather than filling them with generic prose.
59
+
60
+ ```markdown
61
+ # Product
62
+
63
+ <!-- impeccable:product-schema 1 -->
64
+
65
+ ## Platform
66
+
67
+ web
68
+
69
+ ## Stack
70
+ [Greenfield only: the user's answer to the stack question, e.g. "static HTML/CSS", "Astro", or "delegated: <what you chose and why>". Omit the section when an existing codebase already answers it.]
71
+
72
+ ## Users
73
+ [Primary users, their situation, and job. Add other audiences only when confirmed.]
74
+
75
+ ## Product Purpose
76
+ [What the product does, why it exists, and what success means.]
77
+
78
+ ## Positioning
79
+ [The product mechanism or claim a neighboring product could not truthfully copy.]
80
+
81
+ ## Operating Context
82
+ [Workflows, environments, tools, documents, materials, and rituals that are factual parts of using or evaluating the product.]
83
+
84
+ ## Capabilities and Constraints
85
+ [Confirmed functionality, technical constraints, terminology, and explicitly undecided product facts.]
86
+
87
+ ## Brand Commitments
88
+ [Existing name, voice, assets, personality, identity constraints, and references the user explicitly made binding. Omit when none exist.]
89
+
90
+ ## Evidence on Hand
91
+ [Real content, data, demonstrations, testimonials, case studies, press, or assets, with paths where applicable. State absences that future work must not fabricate.]
92
+
93
+ ## Product Principles
94
+ [Three to five durable strategic principles derived from confirmed answers; no visual recipes.]
95
+
96
+ ## Accessibility & Inclusion
97
+ [Known user needs or required standard. Omit when no product-specific requirement was established.]
98
+ ```
99
+
100
+ Platform is the bare value `web`, `ios`, `android`, or `adaptive`. Preserve useful legacy headings. New files go at `PROJECT_ROOT/PRODUCT.md`; otherwise update the resolved file. Write it before any visual-world or surface-concept work.
101
+
102
+ Copy the `impeccable:product-schema` comment verbatim, including when you update an older file. It records which version of the product record this file follows, so later versions can tell a deliberately short record from one written before a section existed, and never propose an interview the user has already sat through. Update the number only when this reference's template changes it. Sections a later version retires are reported to you at boot as deprecated; delete them when the user agrees rather than carrying them forward.
103
+
104
+ When the platform you just recorded is `ios`, `android`, or `adaptive`, load [ios.md](ios.md), [android.md](android.md), or both before any design work. On a project that had no PRODUCT.md, `impeccable context` could not know the platform and so never loaded them; init is the only place that learns the answer.
105
+
106
+ ### Completion gate
107
+
108
+ Before loading new-work or resuming shape/build, verify that PRODUCT.md exists at the resolved path and contains the confirmed product record. If the file is absent, init is incomplete. Do not substitute interview notes, a planning packet, or later design prose for the file.
109
+
110
+ ## Step 5: Record workflow defaults
111
+
112
+ When image generation is available and no `buildPath` is recorded yet, ask once how new surfaces should be built. Availability means a harness-native image tool or the API fallback that `impeccable context` reports as `IMAGE_GEN_AVAILABLE`, and the first of those leaves no trace in the boot output: `impeccable context` only sees the key, so a silent boot on a harness that generates images is not evidence there is nothing to ask about. This is its own question, never a clause riding inside another one. The stack round asks what to build with; this asks how the building starts, and an answer to the first carries no consent about the second. State the trade in the question the user actually reads, because the two names mean nothing to someone meeting them for the first time: **comp-first** (an image sets the bar before any code; bolder composition, slower, and the build must match the image) or **code-first** (build directly; the ambition is written into the direction contract and audited at the finish; leaner, faster). Say in the same question what the choice covers: landing pages and showcase surfaces. App screens and documents are built code-first either way.
113
+
114
+ Write the answer to `.impeccable/config.json` as `"buildPath": "comp"` or `"buildPath": "code"`, merging with the keys already there. Write only the value the user chose. A recommendation you made is not an answer you received, and a value taken from silence is a standing default nobody set: it then rides every future round in the project, which is the opposite of asking once. When the question goes unanswered, record nothing and say in one line which path this session is taking and that it is not stored. That path is comp-first on a landing page or showcase surface, the default new-work applies wherever image generation exists and nothing is recorded, and code-first on an app screen or document; name it rather than choosing a quieter one, because a silent default invented here is the same failure as a value written without an answer. Unset is a working state, not a gap: the decision page's toggle governs each session, and new-work's one-time offer records the answer the first time the user flips it. The config is the only place this lives. It is a workflow setting, not product truth, so it never joins `## Stack` or any other PRODUCT.md section, where a second copy would outlive the setting and steer rounds nobody could trace back to it.
115
+
116
+ A value already recorded in `.impeccable/config.json` or the gitignored `.impeccable/config.local.json` is a confirmed answer: on a re-run, honor it in silence rather than asking again. This is a default, not a lock: the decision page renders a toggle whose flip binds a single session and is never written back. Without image generation there is no choice to record; code-first is the only path.
117
+
118
+ Then configure live mode when useful: skip native or non-runnable projects and leave existing config untouched. Otherwise follow [live.md](live.md)'s first-time setup. Any CSP source edit still requires its stated consent.
119
+
120
+ ## Step 6: Wrap up or resume
121
+
122
+ Summarize captured and deliberately undecided facts. Do not offer DESIGN.md merely because it is missing.
123
+
124
+ Tell the user once which files to commit: PRODUCT.md, DESIGN.md, `.impeccable/config.json`, `.impeccable/surfaces/`, `.impeccable/design.json`, `.impeccable/live/config.json`, and `.impeccable/critique/ignore.md`. A blanket `.impeccable/` ignore hides them from teammates and other worktrees. The runtime directories (`questions/`, `mocks/`, `review/`, critique snapshots) ignore themselves, and `.impeccable/config.local.json` stays on the developer's machine.
125
+
126
+ Recommend the next action from the actual project state:
127
+
128
+ - Empty or early project: ask naturally for the surface to be built, or use `/impeccable shape <surface>` when the user wants a confirmed brief without implementation. New-work will establish a visual world only when the requested work needs one.
129
+ - Existing coherent interface without DESIGN.md: `/impeccable document` if the user wants the incumbent system recorded independently of a new build.
130
+ - Existing surface needing work: name the most relevant scoped command.
131
+ - Web project ready for visual iteration: `/impeccable live` when configured.
132
+
133
+ If init was invoked by another request, resume without rerunning `impeccable context`; the native reference above is the one thing that run could not have given you, and new-work owns later visual decisions.
@@ -0,0 +1,51 @@
1
+ # iOS platform
2
+
3
+ For native iOS / iPadOS apps: SwiftUI, UIKit, React Native, Expo, Flutter shipping to Apple hardware.
4
+
5
+ On native, the visitor mode narrows what expression may override. HIG conformance governs structure, navigation, and interaction in every mode; brand expresses through the layer the platform leaves open (tint, type, motion, content).
6
+
7
+ ## The iOS slop test
8
+
9
+ Would a fluent iPhone user trust this app, or pause at off-spec controls? The tell is "ported from a website": reinvented navigation bars, custom back gestures, web-shaped buttons, hover-dependent affordances. Default to the platform's components; depart only for a reason the user would thank you for.
10
+
11
+ ## Layout & structure
12
+
13
+ - **Safe area.** Lay out inside the safe-area insets. No controls under the notch, Dynamic Island, home indicator, or rounded corners.
14
+ - **System navigation.** Tab bar for 2–5 top-level sections (sections, never actions), navigation stack for hierarchy, sheet for self-contained tasks. No custom global nav, no mixed metaphors.
15
+ - **Edge-swipe back stays alive.** The left-edge back gesture is muscle memory; never disable or overlay it.
16
+ - **Large titles** on top-level screens, collapsing to inline on scroll. Deep detail screens stay inline.
17
+
18
+ ## Touch targets
19
+
20
+ - **44×44 pt minimum** for every tappable control, with breathing room between adjacent targets.
21
+
22
+ ## Typography
23
+
24
+ - **Dynamic Type.** Use the system text styles (Large Title through Caption) so text follows the user's reading size. No hard-coded point sizes.
25
+ - **San Francisco carries the UI.** Body, labels, and controls stay on SF Pro / SF Compact; a brand face may appear in display moments.
26
+ - **11 pt floor**; Body is 17 pt.
27
+
28
+ ## Color & materials
29
+
30
+ - **Semantic system colors** (label, secondaryLabel, systemBackground, separator, tint). They adapt to Dark Mode and increased contrast automatically; raw hex breaks there.
31
+ - **Dark Mode is a first-class appearance.** Design and test both.
32
+ - **One tint color** drives interactive elements; decoration is not its job.
33
+ - **System materials** for blur and translucency behind bars and sheets; no hand-rolled glassmorphism.
34
+
35
+ ## Components & controls
36
+
37
+ - **Platform controls.** Switch, segmented control, stepper, system pickers, action sheets, alerts, context menus, swipe actions. Reinventing these for flavor is the most common native slop.
38
+ - **SF Symbols** for iconography: baseline-aligned, Dynamic Type-aware, weight and scale variants. Don't mix in a web icon set.
39
+ - **Deliberate modality.** Sheet for a focused dismissible sub-task, full-screen cover for immersion. Clear Cancel/Done; honor swipe-to-dismiss unless data loss requires a guard.
40
+ - **Grouped/inset lists** for settings-shaped content; no bespoke card stacks.
41
+
42
+ ## Motion
43
+
44
+ - **System transitions.** Push slides, sheets rise, dismiss reverses the entrance. Custom transitions that fight the navigation model disorient.
45
+ - **Honor Reduce Motion.** Crossfade instead of parallax and large slides.
46
+
47
+ ## Verifying the build
48
+
49
+ - **Screenshots come from the Simulator, never a browser.** Build and run, then capture with `xcrun simctl io booted screenshot <path>` (with several running, replace `booted` with the target's UDID from `xcrun simctl list devices booted`; display names can collide, the UDID never does). Capture every device class the app ships to, at least one iPhone and, when iPad is a target, one iPad, and write the files where the review flow expects them.
50
+ - **Dark Mode and Dynamic Type belong in the pass.** `xcrun simctl ui booted appearance dark` flips appearance, reusing the capture's UDID when several are booted; a check at a large Dynamic Type size catches the truncation a fixed layout hides.
51
+ - **Simulators give breadth; posture, gestures, and performance need hardware.** Say which one produced the evidence.
@@ -0,0 +1,84 @@
1
+ Layout turns product priority into reading order, grouping, rhythm, and usable space. Diagnose the structural problem before moving boxes.
2
+
3
+ ---
4
+
5
+ ## Visitor mode
6
+
7
+ - **Persuade + Experience:** composition may be asymmetric, fluid, or intentionally disruptive when the selected world earns it.
8
+ - **Operate + Read:** predictable structure, stable density, and navigable linearity are affordances.
9
+ - **Native:** follow [ios.md](ios.md) or [android.md](android.md) for navigation, insets, adaptation, and touch targets.
10
+
11
+ Preserve the established visual world. A layout command changes structure inside it; identity replacement belongs to [new-work.md](new-work.md).
12
+
13
+ ## Two isolated assessments
14
+
15
+ When a sub-agent tool is available and permitted, run these independently; otherwise run them yourself in this order.
16
+
17
+ 1. **Layout assessment:** inspect representative states and viewports. Answer every question below with rendered or source evidence:
18
+ - **Reading order:** Apply the squint test. With detail blurred, can you still identify the primary element, the secondary element, and the major groups in order?
19
+ - **Grouping:** Are related items close and distinct groups separated, or are containers compensating for weak proximity?
20
+ - **Rhythm:** Do tight and generous intervals create a deliberate cadence, or is one spacing value repeated until everything has equal weight?
21
+ - **Structure:** Does the topology match the content and task? Are repeated cards, columns, or sections genuinely equivalent, or merely a framework default?
22
+ - **Density:** Does the amount of information per region fit use frequency, decision complexity, and visitor mode?
23
+ - **Adaptation:** At narrow, intermediate, wide, zoomed, and localized states, what reorders, collapses, wraps, scrolls, or remains fixed? Does DOM and focus order still agree with the visual order?
24
+ - **Extremes:** Do long content, empty states, overlays, sticky elements, safe areas, and small touch targets expose structural failures?
25
+ 2. **Mechanical scan:** run:
26
+
27
+ ```bash
28
+ .opencode/skills/impeccable/scripts/impeccable detect --json --scope layout [target files or dirs]
29
+ ```
30
+
31
+ Also inspect arbitrary spacing, overflow, stacking, and container behavior the detector cannot resolve. Keep mechanical evidence out of the first assessment, then synthesize both passes before editing. A clean scan cannot prove hierarchy or rhythm.
32
+
33
+ ## Set the spatial thesis
34
+
35
+ Before editing, name:
36
+
37
+ - the primary reading or task path;
38
+ - what belongs together and what must separate;
39
+ - which element leads and which supports;
40
+ - the intended density and spacing rhythm;
41
+ - how the structure changes across containers, viewports, input modes, and content extremes.
42
+
43
+ Choose the simplest structural model that expresses those relationships. Use layout primitives according to the relationships they control, and name reusable spacing and container roles semantically.
44
+
45
+ ## Apply
46
+
47
+ - Group by meaning. Use proximity before adding containers or decoration.
48
+ - Create rhythm through deliberate contrast between tight and generous intervals.
49
+ - Use a documented spacing scale rather than one-off values. A 4-unit base usually provides the useful middle steps that an 8-only scale misses.
50
+ - Let hierarchy follow product priority, not framework defaults.
51
+ - Keep distinct content visually distinct without turning every group into an isolated component.
52
+ - Make responsive behavior structural: reorder, collapse, reflow, or reveal based on what remains important.
53
+ - Prefer container-aware components when the same component appears in different contexts.
54
+ - Use `gap` for sibling rhythm when it expresses the relationship more directly than child margins.
55
+ - Keep touch targets usable even when their visible marks are small.
56
+ - Use depth only when it clarifies state or hierarchy.
57
+ - Make optical corrections only after inspecting the rendered result.
58
+
59
+ Variation is not a goal by itself. Repetition should support recognition; break it only when content or priority changes.
60
+
61
+ ## Verify
62
+
63
+ - The squint test still reveals the primary, secondary, and major groups in order.
64
+ - The reading and task path remains clear at every supported size.
65
+ - Related content groups naturally; unrelated content does not blur together.
66
+ - Tight and generous spacing create intentional rhythm instead of monotonous repetition.
67
+ - Density matches use frequency and content complexity.
68
+ - Long text, empty states, localization, zoom, and dynamic content do not break the structure.
69
+ - Keyboard, touch, and assistive-technology order agree with the visual order.
70
+ - The final mechanical scan has no unexplained findings.
71
+
72
+ Answer each item with rendered or source evidence, then rerun the scan. Do not substitute a bare “yes” for verification.
73
+
74
+ When the structure holds, hand off to `/impeccable polish`.
75
+
76
+ ## Live-mode signature params
77
+
78
+ Every variant declares a coarse `density` parameter and authors spacing against `var(--p-density, 1)`.
79
+
80
+ ```json
81
+ {"id":"density","kind":"range","min":0.6,"max":1.4,"step":0.05,"default":1,"label":"Density"}
82
+ ```
83
+
84
+ Add one structural parameter only when the topology genuinely branches. Follow [live.md](live.md)'s parameter contract.
@@ -0,0 +1,104 @@
1
+ One-time live-mode project setup. Loaded from [live.md](live.md) only when `impeccable live` reports `config_missing` / `config_invalid`, when `configDrift` needs handling, or when the config lacks `cspChecked`. Not part of the per-session hot path.
2
+
3
+ ## Write the config
4
+
5
+ Create the file at the `path` the boot reported (default `.impeccable/live/config.json`):
6
+
7
+ ```json
8
+ {
9
+ "files": ["<path-or-glob>", "<path-or-glob>", ...],
10
+ "exclude": ["<optional-glob>", ...],
11
+ "insertBefore": "</body>",
12
+ "commentSyntax": "html",
13
+ "cspChecked": true
14
+ }
15
+ ```
16
+
17
+ `files` is the inject target: **the HTML files the browser actually loads**, not necessarily source (tracked vs generated does not matter here; wrap has its own generated-file guard). Entries are literal paths or globs. `exclude` (optional) skips files a `files` glob would otherwise include (email templates, demo fixtures). `cspChecked` records that the CSP step below has run; absent on first setup.
18
+
19
+ **Hard-excluded paths (cannot be overridden):** `**/node_modules/**` and `**/.git/**`; injecting there would instrument third-party code.
20
+
21
+ **Glob syntax:** `**` matches any number of segments (including zero), `*` matches within a segment, `?` matches one character. Paths are project-root-relative with forward slashes.
22
+
23
+ | Framework | `files` | `insertBefore` | `commentSyntax` |
24
+ |-----------|---------|----------------|-----------------|
25
+ | SPA with single shell (Vite / React / Plain HTML) | `["index.html"]` | `</body>` | `html` |
26
+ | Next.js (App Router) | `["app/layout.tsx"]` | `</body>` | `jsx` |
27
+ | Next.js (Pages) | `["pages/_document.tsx"]` | `</body>` | `jsx` |
28
+ | Nuxt | `["app.vue"]` | `</body>` | `html` |
29
+ | Svelte / SvelteKit | `["src/app.html"]` | `</body>` | `html` |
30
+ | TanStack Router (SPA, Vite) | `["index.html"]` | `</body>` | `html` |
31
+ | TanStack Start (SSR) | `["src/routes/__root.tsx"]` | `<Scripts` | `jsx` |
32
+ | Astro | `[" <root layout .astro>"]` | `</body>` | `html` |
33
+ | Multi-page (separate HTML per route) | `["public/**/*.html"]` glob over the served dir | `</body>` | `html` |
34
+
35
+ Pick an anchor that exists in every file (`</body>` almost always works); `insertAfter` matches after a line instead. For multi-page sites prefer a glob so new pages are picked up automatically. For sites whose pages are rebuilt by a generator, the inject survives only until the next regeneration: re-run `impeccable live` after each build (accept is unaffected; it writes true source via the fallback flow).
36
+
37
+ **Framework adapters (auto-detected at inject time).** Every inject records what it wrote in `.impeccable/live/inject-journal.json`; the next inject or remove heals artifacts a crash or wrong-directory stop left behind. SvelteKit, Nuxt, and TanStack Start server-render their document shell, so a raw `<script>` in the entry template will not execute reliably; `impeccable live-inject` detects them and routes to a dedicated adapter (SvelteKit: dev-only root component from `+layout.svelte`; Nuxt: dev-only `.client.ts` plugin; TanStack Start: a generated dev-only `ImpeccableLiveRoot` component in `__root`). The `files` value stays a valid detection/CSP hint but is not the literal insertion site. A plain TanStack Router SPA takes the baseline Vite path.
38
+
39
+ ## Config drift
40
+
41
+ On every boot the project is scanned for HTML files under common page roots (`public/`, `src/`, `app/`, `pages/`) that the resolved `files` list does not cover; they surface as `configDrift.orphans` with a hint. Tell the user once per session which files are uncovered and offer to add them or switch `files` to a glob. Never auto-update the config; the user decides. `configDrift` is `null` when there is no drift.
42
+
43
+ ## CSP detection (first-time only)
44
+
45
+ Keep all allowances below development-only, including manual middleware and meta-tag edits. Do not change a deployed production site's CSP to load the localhost helper; see [live.md](live.md) for production inspection alternatives.
46
+
47
+ If `config.cspChecked === true`, skip this whole section; the user was already asked once.
48
+
49
+ ```bash
50
+ .opencode/skills/impeccable/scripts/impeccable detect-csp
51
+ ```
52
+
53
+ Output `{ shape, signals }`; the shape names the *patch mechanism*, so one template covers many frameworks:
54
+
55
+ - **`null`**: no CSP; write the config with `cspChecked: true` and stop here.
56
+ - **`append-arrays`**: CSP as structured directive arrays; auto-patchable (monorepo helpers with `additionalScriptSrc`/`additionalConnectSrc`, SvelteKit `kit.csp.directives`, Nuxt `nuxt-security`).
57
+ - **`append-string`**: CSP as a literal value string; auto-patchable (inline `next.config.*` `headers()`, Nuxt `routeRules`).
58
+ - **`middleware`** / **`meta-tag`**: detected but not auto-patched. Show the user the detected files, ask them to add `http://localhost:8400` to `script-src` and `connect-src` manually, then mark `cspChecked: true` and proceed.
59
+
60
+ ### Consent prompt (use this phrasing)
61
+
62
+ > **CSP patch needed.** I detected a Content Security Policy in your project that blocks `http://localhost:8400`: the live picker won't load without an allowance. Here's the change I'd make:
63
+ >
64
+ > ```diff
65
+ > [file: <patchTarget>]
66
+ > [exact diff, 2-5 lines]
67
+ > ```
68
+ >
69
+ > It's guarded by `NODE_ENV === "development"` so the extra entry only appears in dev and never reaches production. You can remove it any time by reverting this file. Apply? [y/n]
70
+
71
+ On "no": skip the patch, note that live will not work until the allowance is added manually, and still write `cspChecked: true` (the question has been asked). On "yes": apply the shape's patch below, then write `cspChecked: true`. The helper's port is not known until the first successful boot, so the allowance names 8400, the helper's first choice; if that boot then reports a different `serverPort` (another project's helper held 8400), add that port to the same allowance before picking.
72
+
73
+ ### append-arrays
74
+
75
+ Declare near the top of the file that holds the CSP arrays, then append `...__impeccableLiveDev` to the script-src and connect-src arrays:
76
+
77
+ ```ts
78
+ // Dev-only allowance so impeccable live mode can load. Guarded by NODE_ENV.
79
+ const __impeccableLiveDev =
80
+ process.env.NODE_ENV === "development" ? ["http://localhost:8400"] : [];
81
+ ```
82
+
83
+ Per-framework: Next.js + monorepo helper: edit the *app's* `next.config.*` (not the shared helper), appending to `additionalScriptSrc` / `additionalConnectSrc`. SvelteKit: `svelte.config.js`, `kit.csp.directives['script-src']` and `['connect-src']`. Nuxt + nuxt-security: `nuxt.config.*`, `security.headers.contentSecurityPolicy['script-src']` and `['connect-src']`. Reference outputs: [nextjs-turborepo/expected-after-patch.ts](https://github.com/pbakaus/impeccable/blob/8dac6ae7e020c43ab10ce9b41939f6fd42627b96/tests/framework-fixtures/nextjs-turborepo/expected-after-patch.ts), [sveltekit-csp/expected-after-patch.js](https://github.com/pbakaus/impeccable/blob/8dac6ae7e020c43ab10ce9b41939f6fd42627b96/tests/framework-fixtures/sveltekit-csp/expected-after-patch.js). Idempotency: if `__impeccableLiveDev` already exists in the file, the patch is applied; just mark `cspChecked: true`.
84
+
85
+ ### append-string
86
+
87
+ Two-point patch: declare a dev-only string, interpolate it into the CSP value at both directives (leading space so it concatenates cleanly; convert literals to template strings as part of the edit):
88
+
89
+ ```ts
90
+ // Dev-only allowance so impeccable live mode can load.
91
+ const __impeccableLiveDev =
92
+ process.env.NODE_ENV === "development" ? " http://localhost:8400" : "";
93
+ ```
94
+
95
+ - `script-src 'self' 'unsafe-inline'` becomes `` `script-src 'self' 'unsafe-inline'${__impeccableLiveDev}` ``
96
+ - `connect-src 'self'` becomes `` `connect-src 'self'${__impeccableLiveDev}` ``
97
+
98
+ Per-framework: Next.js inline `headers()` in `next.config.*`; Nuxt `routeRules['/**'].headers['Content-Security-Policy']` in `nuxt.config.*`. Reference outputs: [nextjs-inline-csp/expected-after-patch.js](https://github.com/pbakaus/impeccable/blob/8dac6ae7e020c43ab10ce9b41939f6fd42627b96/tests/framework-fixtures/nextjs-inline-csp/expected-after-patch.js), [nuxt-csp/expected-after-patch.ts](https://github.com/pbakaus/impeccable/blob/8dac6ae7e020c43ab10ce9b41939f6fd42627b96/tests/framework-fixtures/nuxt-csp/expected-after-patch.ts).
99
+
100
+ ## Troubleshooting
101
+
102
+ If the user said "no" to the CSP patch and later reports live not working: their dev CSP blocks `http://localhost:8400`. Delete `cspChecked` from `.impeccable/live/config.json` and re-run `impeccable live`; setup asks again.
103
+
104
+ After setup, re-run `impeccable live`.