ocmm 0.5.0 → 0.5.2

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 (157) hide show
  1. package/.codex/agents/dw-builder.toml +1 -1
  2. package/.codex/agents/dw-clarifier.toml +1 -1
  3. package/.codex/agents/dw-code-search.toml +1 -1
  4. package/.codex/agents/dw-coding.toml +1 -1
  5. package/.codex/agents/dw-complex.toml +1 -1
  6. package/.codex/agents/dw-creative.toml +1 -1
  7. package/.codex/agents/dw-deep.toml +1 -1
  8. package/.codex/agents/dw-doc-search.toml +1 -1
  9. package/.codex/agents/dw-documenting.toml +1 -1
  10. package/.codex/agents/dw-explore.toml +1 -1
  11. package/.codex/agents/dw-frontend.toml +1 -1
  12. package/.codex/agents/dw-hard-reasoning.toml +1 -1
  13. package/.codex/agents/dw-media-reader.toml +1 -1
  14. package/.codex/agents/dw-normal-task.toml +1 -1
  15. package/.codex/agents/dw-oracle.toml +2 -2
  16. package/.codex/agents/dw-orchestrator.toml +1 -1
  17. package/.codex/agents/dw-plan-critic.toml +1 -1
  18. package/.codex/agents/dw-planner.toml +1 -1
  19. package/.codex/agents/dw-quick.toml +1 -1
  20. package/.codex/agents/dw-research.toml +1 -1
  21. package/.codex/agents/dw-reviewer.toml +2 -2
  22. package/README.md +7 -2
  23. package/dist/codex/plugin-generator.js +40 -26
  24. package/dist/codex/plugin-generator.js.map +1 -1
  25. package/dist/config/normalize.d.ts +2 -0
  26. package/dist/config/normalize.js +17 -0
  27. package/dist/config/normalize.js.map +1 -1
  28. package/dist/config/schema.d.ts +17 -1
  29. package/dist/config/schema.js +17 -0
  30. package/dist/config/schema.js.map +1 -1
  31. package/dist/data/agents.js +2 -2
  32. package/dist/data/agents.js.map +1 -1
  33. package/dist/hooks/chat-params.js +18 -0
  34. package/dist/hooks/chat-params.js.map +1 -1
  35. package/dist/hooks/config.d.ts +1 -0
  36. package/dist/hooks/config.js +82 -25
  37. package/dist/hooks/config.js.map +1 -1
  38. package/dist/hooks/event.d.ts +1 -0
  39. package/dist/hooks/event.js +1 -0
  40. package/dist/hooks/event.js.map +1 -1
  41. package/dist/index.js +5 -1
  42. package/dist/index.js.map +1 -1
  43. package/dist/intent/prompt-loader.d.ts +4 -2
  44. package/dist/intent/prompt-loader.js +8 -2
  45. package/dist/intent/prompt-loader.js.map +1 -1
  46. package/dist/permissions/index.d.ts +1 -0
  47. package/dist/permissions/index.js +58 -0
  48. package/dist/permissions/index.js.map +1 -1
  49. package/dist/routing/model-upgrades.d.ts +3 -0
  50. package/dist/routing/model-upgrades.js +123 -0
  51. package/dist/routing/model-upgrades.js.map +1 -0
  52. package/dist/routing/resolver.d.ts +11 -1
  53. package/dist/routing/resolver.js +63 -69
  54. package/dist/routing/resolver.js.map +1 -1
  55. package/dist/runtime-fallback/event-handler.d.ts +1 -0
  56. package/dist/runtime-fallback/event-handler.js +37 -26
  57. package/dist/runtime-fallback/event-handler.js.map +1 -1
  58. package/package.json +1 -1
  59. package/plugins/deepwork/.codex-plugin/plugin.json +1 -1
  60. package/plugins/deepwork/agents/dw-builder.toml +1 -1
  61. package/plugins/deepwork/agents/dw-clarifier.toml +1 -1
  62. package/plugins/deepwork/agents/dw-code-search.toml +1 -1
  63. package/plugins/deepwork/agents/dw-coding.toml +1 -1
  64. package/plugins/deepwork/agents/dw-complex.toml +1 -1
  65. package/plugins/deepwork/agents/dw-creative.toml +1 -1
  66. package/plugins/deepwork/agents/dw-deep.toml +1 -1
  67. package/plugins/deepwork/agents/dw-doc-search.toml +1 -1
  68. package/plugins/deepwork/agents/dw-documenting.toml +1 -1
  69. package/plugins/deepwork/agents/dw-explore.toml +1 -1
  70. package/plugins/deepwork/agents/dw-frontend.toml +1 -1
  71. package/plugins/deepwork/agents/dw-hard-reasoning.toml +1 -1
  72. package/plugins/deepwork/agents/dw-media-reader.toml +1 -1
  73. package/plugins/deepwork/agents/dw-normal-task.toml +1 -1
  74. package/plugins/deepwork/agents/dw-oracle.toml +2 -2
  75. package/plugins/deepwork/agents/dw-orchestrator.toml +1 -1
  76. package/plugins/deepwork/agents/dw-plan-critic.toml +1 -1
  77. package/plugins/deepwork/agents/dw-planner.toml +1 -1
  78. package/plugins/deepwork/agents/dw-quick.toml +1 -1
  79. package/plugins/deepwork/agents/dw-research.toml +1 -1
  80. package/plugins/deepwork/agents/dw-reviewer.toml +2 -2
  81. package/plugins/deepwork/package.json +1 -1
  82. package/plugins/deepwork/skills/ast-grep/SKILL.md +2 -1
  83. package/plugins/deepwork/skills/debugging/SKILL.md +2 -1
  84. package/plugins/deepwork/skills/deepwork/SKILL.md +32 -11
  85. package/plugins/deepwork/skills/deepwork-brainstorming/SKILL.md +2 -1
  86. package/plugins/deepwork/skills/deepwork-dispatching-parallel-agents/SKILL.md +2 -1
  87. package/plugins/deepwork/skills/deepwork-receiving-code-review/SKILL.md +2 -1
  88. package/plugins/deepwork/skills/deepwork-requesting-code-review/SKILL.md +6 -1
  89. package/plugins/deepwork/skills/deepwork-subagent-driven-development/SKILL.md +2 -1
  90. package/plugins/deepwork/skills/deepwork-writing-plans/SKILL.md +13 -8
  91. package/plugins/deepwork/skills/frontend/SKILL.md +3 -2
  92. package/plugins/deepwork/skills/frontend/references/design/README.md +9 -3
  93. package/plugins/deepwork/skills/frontend/references/design/design-system-architecture.md +44 -13
  94. package/plugins/deepwork/skills/git-master/SKILL.md +2 -1
  95. package/plugins/deepwork/skills/init-deep/SKILL.md +2 -1
  96. package/plugins/deepwork/skills/remove-ai-slops/SKILL.md +2 -1
  97. package/plugins/deepwork/skills/using-git-worktrees/SKILL.md +2 -1
  98. package/prompts/codex/agents/plan-critic.md +6 -0
  99. package/prompts/codex/agents/planner.md +3 -1
  100. package/prompts/codex/category/coding.md +4 -0
  101. package/prompts/codex/category/complex.md +4 -0
  102. package/prompts/codex/category/creative.md +4 -0
  103. package/prompts/codex/category/deep.md +4 -0
  104. package/prompts/codex/category/documenting.md +4 -0
  105. package/prompts/codex/category/frontend.md +4 -0
  106. package/prompts/codex/category/hard-reasoning.md +4 -0
  107. package/prompts/codex/category/normal-task.md +4 -0
  108. package/prompts/codex/category/quick.md +4 -0
  109. package/prompts/codex/category/research.md +4 -0
  110. package/prompts/codex/deepwork/codex.md +10 -4
  111. package/prompts/codex/deepwork/default.md +6 -0
  112. package/prompts/codex/deepwork/gemini.md +7 -0
  113. package/prompts/codex/deepwork/glm.md +6 -0
  114. package/prompts/codex/deepwork/gpt-5.6.md +35 -0
  115. package/prompts/codex/deepwork/gpt.md +6 -0
  116. package/prompts/codex/deepwork/planner.md +6 -0
  117. package/prompts/omo/category/coding.md +4 -0
  118. package/prompts/omo/category/complex.md +4 -0
  119. package/prompts/omo/category/creative.md +4 -0
  120. package/prompts/omo/category/deep.md +4 -0
  121. package/prompts/omo/category/documenting.md +4 -0
  122. package/prompts/omo/category/frontend.md +4 -0
  123. package/prompts/omo/category/hard-reasoning.md +4 -0
  124. package/prompts/omo/category/normal-task.md +4 -0
  125. package/prompts/omo/category/quick.md +4 -0
  126. package/prompts/omo/category/research.md +4 -0
  127. package/prompts/omo/deepwork/codex.md +10 -4
  128. package/prompts/omo/deepwork/default.md +8 -2
  129. package/prompts/omo/deepwork/gemini.md +8 -2
  130. package/prompts/omo/deepwork/glm.md +6 -0
  131. package/prompts/omo/deepwork/gpt-5.6.md +31 -0
  132. package/prompts/omo/deepwork/gpt.md +7 -1
  133. package/prompts/omo/deepwork/planner.md +6 -0
  134. package/prompts/v1/agents/plan-critic.md +6 -0
  135. package/prompts/v1/agents/planner.md +3 -1
  136. package/prompts/v1/category/coding.md +4 -0
  137. package/prompts/v1/category/complex.md +4 -0
  138. package/prompts/v1/category/creative.md +4 -0
  139. package/prompts/v1/category/deep.md +4 -0
  140. package/prompts/v1/category/documenting.md +4 -0
  141. package/prompts/v1/category/frontend.md +4 -0
  142. package/prompts/v1/category/hard-reasoning.md +4 -0
  143. package/prompts/v1/category/normal-task.md +4 -0
  144. package/prompts/v1/category/quick.md +4 -0
  145. package/prompts/v1/category/research.md +4 -0
  146. package/prompts/v1/deepwork/codex.md +10 -4
  147. package/prompts/v1/deepwork/default.md +6 -0
  148. package/prompts/v1/deepwork/gemini.md +9 -2
  149. package/prompts/v1/deepwork/glm.md +6 -0
  150. package/prompts/v1/deepwork/gpt-5.6.md +35 -0
  151. package/prompts/v1/deepwork/gpt.md +6 -0
  152. package/prompts/v1/deepwork/planner.md +6 -0
  153. package/skills/frontend/SKILL.md +1 -1
  154. package/skills/frontend/references/design/README.md +9 -3
  155. package/skills/frontend/references/design/design-system-architecture.md +44 -13
  156. package/skills/v1/requesting-code-review/SKILL.md +4 -0
  157. package/skills/v1/writing-plans/SKILL.md +11 -7
@@ -96,7 +96,7 @@ Domains: `product` `style` `typography` `color` `landing` `chart` `ux` `react` `
96
96
 
97
97
  ## Shared axioms (all three rulesets agree — apply always)
98
98
 
99
- - **No design system = no UI work.** `DESIGN.md` exists before components do; every color, font size, and spacing value traces back to a token in it.
99
+ - **No design system = no UI work.** `DESIGN.md` exists before components do; every color, font size, and spacing value traces back to a token in it. For greenfield UI, its `## 0. Research Log` records the local design candidates and selected direction before product screens are built.
100
100
  - **Never weaken UX to buy points.** No dropping animations, hiding content, or simplifying interactions for a score or a deadline.
101
101
  - **No emojis as icons.** SVG icon sets only (Lucide, Heroicons, Radix, Phosphor).
102
102
  - **GPU-composited animation only** — `transform`, `opacity`, `filter`; never animate layout properties.
@@ -117,5 +117,6 @@ Use for any frontend, web UI, UX, visual, design, styling, layout, animation, pe
117
117
  ## Codex Compatibility
118
118
 
119
119
  - When this skill mentions TodoWrite, use Codex `update_plan`.
120
- - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract; prefer an exact profile selector, then complete direct composition, then generic/flat dispatch with role and required skills in the message.
120
+ - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.
121
+ - A generic/flat child message must be self-contained and labeled `TASK`, `ROLE`, `DELIVERABLE`, `SCOPE`, `VERIFY`, `REQUIRED SKILLS`, `CONTEXT`, and `CONSTRAINTS`; do not claim it loaded a `dw-*` profile.
121
122
  - When this skill mentions OpenCode-specific tool names, choose the nearest Codex tool with the same intent and preserve the workflow contract.
@@ -34,8 +34,9 @@ Before touching any UI code, before routing to any reference, before even thinki
34
34
  2. Explore the project: what is the product domain? Who are the users? What feeling should it evoke?
35
35
  3. If the project has existing UI code, **extract** the implicit system (colors, fonts, spacing already in use) rather than inventing from scratch.
36
36
  4. If the project is greenfield, **ask the user one question**: "What should this feel like?" — or infer from context.
37
- 5. Write `DESIGN.md` at project root following the 7-section structure from the reference.
38
- 6. **Do not proceed to any component implementation until `DESIGN.md` exists and is committed to context.**
37
+ 5. For greenfield UI, start `DESIGN.md` with `## 0. Research Log`: record 2-3 relevant local Layer B/design candidates, the selected Layer A + Layer B and rationale, and any optional evidence from `ui-ux-db`, a user-provided image, or a local mockup. If a source/tool is unavailable or irrelevant, record why; do not force network research.
38
+ 6. Write `DESIGN.md` at project root following the nine-section structure from the reference.
39
+ 7. **Do not proceed to any component implementation until `DESIGN.md` exists and is committed to context.**
39
40
 
40
41
  #### If YES design system exists → READ IT, FOLLOW IT
41
42
 
@@ -46,6 +47,10 @@ Before touching any UI code, before routing to any reference, before even thinki
46
47
 
47
48
  **This gate is non-negotiable. No design system = no UI work. Period.**
48
49
 
50
+ ### Primitive Showcase Gate (MANDATORY for greenfield product UI)
51
+
52
+ Before building a product screen, add the intended primitives and states to `DESIGN.md` Section 5 under `Planned Showcase Primitives`. This is a pre-implementation verification checklist, not reusable component documentation. Verify each relevant primitive in a component showcase or equivalent state page: default, hover, focus, disabled, loading, empty, and error. Keep component documentation only for implemented reusable patterns used 2+ times. For runnable UI, retain real-browser validation at 375 / 768 / 1280px; when a runnable surface is unavailable, state exactly which states and breakpoints were not verified rather than claiming the gate passed.
53
+
49
54
 
50
55
  ## Phase 0.5 — React Dev Tooling Gate (MANDATORY for React projects)
51
56
 
@@ -180,7 +185,8 @@ Once references are loaded, before writing any UI code:
180
185
  6. **Server vs client components (Next.js).** If motion/state/portals are involved, isolate as a `'use client'` leaf component. Don't bleed `'use client'` to the page level.
181
186
  7. **Match the project's existing patterns FIRST.** If the codebase already uses CSS Modules, don't introduce Tailwind. If it uses styled-components, don't introduce CSS-in-JS variants. The references guide *style*, not *infrastructure*.
182
187
  8. **All tokens trace back to `DESIGN.md`.** No orphan hex codes, no magic px values. If you need a new token, update `DESIGN.md` first.
183
- 9. **New reusable patterns (used 2+ times) get documented back into `DESIGN.md` Section 5.**
188
+ 9. **Implemented reusable patterns used 2+ times get documented back into `DESIGN.md` Section 5.**
189
+ 10. **Greenfield product screens passed the Primitive Showcase Gate.** Complete the Section 5 `Planned Showcase Primitives` pre-implementation verification checklist for default, hover, focus, disabled, loading, empty, and error states before composing them into a product screen; the checklist is not reusable component documentation.
184
190
 
185
191
  ## Quick lookup table — most common requests
186
192
 
@@ -15,11 +15,19 @@ Every frontend project MUST have a `DESIGN.md` at its root. This file is the sin
15
15
 
16
16
  ## DESIGN.md Structure
17
17
 
18
- The file has 7 sections. Every section is mandatory. Skip nothing.
18
+ The file has nine sections, numbered 0 through 8. Every section is mandatory. Skip nothing. Section 0 applies to greenfield UI; existing-project extraction may state that historical research is unavailable instead of inventing it.
19
19
 
20
20
  ```markdown
21
21
  # [Project Name] Design System
22
22
 
23
+ ## 0. Research Log
24
+
25
+ For greenfield UI, record the design decision before writing product screens.
26
+
27
+ - **Candidates considered**: 2-3 relevant local Layer B/design references, with a short reason each fits or does not fit.
28
+ - **Selection**: the chosen Layer A execution skill and Layer B/design reference, with rationale tied to the product and audience.
29
+ - **Evidence (optional)**: a local `ui-ux-db` lookup, user-provided image, or local mockup. If a tool/source is unavailable or not relevant, record the reason instead of forcing network research.
30
+
23
31
  ## 1. Atmosphere & Identity
24
32
 
25
33
  One paragraph. What this product FEELS like. Not what it does — how it feels to use.
@@ -112,18 +120,23 @@ All spacing derives from a base of **4px**.
112
120
 
113
121
  ## 5. Components
114
122
 
115
- Document reusable patterns as they emerge. Format:
123
+ ### Planned Showcase Primitives
124
+
125
+ This is a pre-implementation verification checklist, not reusable component documentation. Before composing a greenfield product screen, list each intended primitive and check its applicable default, hover, focus, disabled, loading, empty, and error states in a component showcase or equivalent state page.
126
+
127
+ ### Implemented Reusable Patterns
128
+
129
+ Document only implemented reusable patterns used 2+ times. Format:
116
130
 
117
131
  ### [Component Name]
118
132
  - **Structure**: HTML/JSX outline
119
133
  - **Variants**: list
120
134
  - **Spacing**: which tokens
121
- - **States**: default, hover, active, focus, disabled, loading, error
135
+ - **States**: default, hover, active, focus, disabled, loading, empty, error
122
136
  - **Accessibility**: keyboard, ARIA, contrast
123
137
  - **Motion**: entry/exit animations
124
138
 
125
- Start with components used 2+ times. Do not pre-document components
126
- that don't exist yet.
139
+ Do not promote planned primitives or one-off implementations into reusable component documentation.
127
140
 
128
141
  ## 6. Motion & Interaction
129
142
 
@@ -162,6 +175,20 @@ If borders:
162
175
 
163
176
  If tonal-shift:
164
177
  Surfaces use progressively lighter/darker shades. No borders, no shadows.
178
+
179
+ ## 8. Accessibility Constraints & Accepted Debt
180
+
181
+ ### Constraints
182
+
183
+ - **WCAG goal**: state the target level and the testable scope.
184
+ - **Contrast**: document text, control, and focus-indicator contrast requirements.
185
+ - **Keyboard and focus**: every interactive primitive has a keyboard path and visible focus treatment.
186
+ - **ARIA**: semantic HTML first; document required names, roles, and live-region behavior for custom controls.
187
+ - **Reduced motion**: respect `prefers-reduced-motion` and identify any essential motion.
188
+
189
+ ### Accepted Debt
190
+
191
+ Each exception records its location, reason, owner, and exit criteria. An agent may not accept accessibility debt or a constraint exception silently: it requires explicit user authorization.
165
192
  ```
166
193
 
167
194
  ## Creation Workflow
@@ -169,13 +196,15 @@ Surfaces use progressively lighter/darker shades. No borders, no shadows.
169
196
  ### For New Projects
170
197
 
171
198
  1. **Ask or infer the product domain** — SaaS dashboard? Marketing site? Dev tool?
172
- 2. **Write the Atmosphere paragraph** — one chance to establish identity.
173
- 3. **Define palette** — derive from atmosphere. Not random. Not generic.
174
- 4. **Set typography** — match the atmosphere. Editorial = serif. Technical = mono-heavy. Clean = geometric sans.
175
- 5. **Lock spacing** — base-4 system. Customize only the section-level values.
176
- 6. **Document initial components** — only those you are about to build.
177
- 7. **Choose depth strategy** — one. Not "a mix."
178
- 8. **Write it to `DESIGN.md`** at project root.
199
+ 2. **Write the Research Log** — consider 2-3 relevant local design candidates, select Layer A + Layer B, and record optional local evidence or why it was unavailable.
200
+ 3. **Write the Atmosphere paragraph** — one chance to establish identity.
201
+ 4. **Define palette** — derive from atmosphere. Not random. Not generic.
202
+ 5. **Set typography** — match the atmosphere. Editorial = serif. Technical = mono-heavy. Clean = geometric sans.
203
+ 6. **Lock spacing** — base-4 system. Customize only the section-level values.
204
+ 7. **Fill in Planned Showcase Primitives** — use the pre-implementation verification checklist to cover intended primitives and states before composing a product screen; do not treat it as reusable component documentation.
205
+ 8. **Choose depth strategy** — one. Not "a mix."
206
+ 9. **Set accessibility constraints and record no debt without user authorization.**
207
+ 10. **Write it to `DESIGN.md`** at project root.
179
208
 
180
209
  ### For Existing Projects (Extraction)
181
210
 
@@ -194,8 +223,10 @@ After every component implementation, check:
194
223
  - [ ] All spacing values are multiples of `--space-1` (4px). No magic numbers.
195
224
  - [ ] Interactive elements have all required states from Section 6.
196
225
  - [ ] Depth treatment matches the chosen strategy from Section 7.
197
- - [ ] Component reused 2+ times? Documented in Section 5.
226
+ - [ ] Implemented reusable pattern used 2+ times? Documented in Section 5.
198
227
  - [ ] Motion follows the timing table. No arbitrary durations.
228
+ - [ ] `Planned Showcase Primitives` is complete for greenfield UI, with a showcase (or equivalent state page) covering default, hover, focus, disabled, loading, empty, and error before product-screen composition.
229
+ - [ ] Section 8 constraints were checked; any accepted debt has location, reason, owner, exit criteria, and explicit user authorization.
199
230
 
200
231
  ## Memory Management
201
232
 
@@ -102,5 +102,6 @@ Before finishing:
102
102
  ## Codex Compatibility
103
103
 
104
104
  - When this skill mentions TodoWrite, use Codex `update_plan`.
105
- - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract; prefer an exact profile selector, then complete direct composition, then generic/flat dispatch with role and required skills in the message.
105
+ - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.
106
+ - A generic/flat child message must be self-contained and labeled `TASK`, `ROLE`, `DELIVERABLE`, `SCOPE`, `VERIFY`, `REQUIRED SKILLS`, `CONTEXT`, and `CONSTRAINTS`; do not claim it loaded a `dw-*` profile.
106
107
  - When this skill mentions OpenCode-specific tool names, choose the nearest Codex tool with the same intent and preserve the workflow contract.
@@ -313,5 +313,6 @@ Hierarchy:
313
313
  ## Codex Compatibility
314
314
 
315
315
  - When this skill mentions TodoWrite, use Codex `update_plan`.
316
- - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract; prefer an exact profile selector, then complete direct composition, then generic/flat dispatch with role and required skills in the message.
316
+ - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.
317
+ - A generic/flat child message must be self-contained and labeled `TASK`, `ROLE`, `DELIVERABLE`, `SCOPE`, `VERIFY`, `REQUIRED SKILLS`, `CONTEXT`, and `CONSTRAINTS`; do not claim it loaded a `dw-*` profile.
317
318
  - When this skill mentions OpenCode-specific tool names, choose the nearest Codex tool with the same intent and preserve the workflow contract.
@@ -155,5 +155,6 @@ CLEAN | ISSUES FIXED | REQUIRES ATTENTION
155
155
  ## Codex Compatibility
156
156
 
157
157
  - When this skill mentions TodoWrite, use Codex `update_plan`.
158
- - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract; prefer an exact profile selector, then complete direct composition, then generic/flat dispatch with role and required skills in the message.
158
+ - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.
159
+ - A generic/flat child message must be self-contained and labeled `TASK`, `ROLE`, `DELIVERABLE`, `SCOPE`, `VERIFY`, `REQUIRED SKILLS`, `CONTEXT`, and `CONSTRAINTS`; do not claim it loaded a `dw-*` profile.
159
160
  - When this skill mentions OpenCode-specific tool names, choose the nearest Codex tool with the same intent and preserve the workflow contract.
@@ -131,5 +131,6 @@ git branch -d <branch> # if merged; -D if abandoned
131
131
  ## Codex Compatibility
132
132
 
133
133
  - When this skill mentions TodoWrite, use Codex `update_plan`.
134
- - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract; prefer an exact profile selector, then complete direct composition, then generic/flat dispatch with role and required skills in the message.
134
+ - When this skill mentions OpenCode `task(...)`, use the current callable Codex subagent-dispatch tool and preserve the task contract. Treat an agent_type, agent_path, or agent_nickname field as an exact profile selector only when its current schema or documentation explicitly guarantees that behavior; otherwise prefer complete direct composition, then generic/flat dispatch.
135
+ - A generic/flat child message must be self-contained and labeled `TASK`, `ROLE`, `DELIVERABLE`, `SCOPE`, `VERIFY`, `REQUIRED SKILLS`, `CONTEXT`, and `CONSTRAINTS`; do not claim it loaded a `dw-*` profile.
135
136
  - When this skill mentions OpenCode-specific tool names, choose the nearest Codex tool with the same intent and preserve the workflow contract.
@@ -13,6 +13,12 @@ If the input contains exactly one markdown plan path, read the current on-disk f
13
13
 
14
14
  If a follow-up names the same plan path, re-read from disk. Previous verdicts are not trusted without reading the current file.
15
15
 
16
+ ## Receipt Contract
17
+
18
+ One review round covers one complete, current plan revision. Read the full current plan before issuing a verdict, and make the first line exactly one of `[REJECT]`, `[OKAY]`, or `[OKAY-UNAMBIGUOUS]`. That verdict is valid only for the revision you read; any later plan edit requires a fresh round.
19
+
20
+ If you cannot read the current complete plan, the plan is incomplete, or the evidence is insufficient, issue `[REJECT]` with the missing item. Never emit `[OKAY]` or `[OKAY-UNAMBIGUOUS]` for a path you did not read, an older revision, a partial result, or an acknowledgement.
21
+
16
22
  ## Purpose
17
23
 
18
24
  Answer one question: can a capable builder execute this plan without getting stuck?
@@ -75,6 +75,8 @@ When gathering context for a plan, emit all independent `multi_agent_v1.spawn_ag
75
75
 
76
76
  ## Handoff
77
77
 
78
- Report the plan path, the intended execution order, and any risks or assumptions that still matter.
78
+ Saving a plan is not permission to hand it off. Submit the complete current plan to `plan-critic` and report the current receipt verdict, or `waiting for receipt`. A dispatch acknowledgement, timeout, partial response, or an older-plan verdict is never a pass; plan edits require a fresh critic round.
79
+
80
+ Report the plan path, the intended execution order, the current receipt status, and any risks or assumptions that still matter.
79
81
 
80
82
  </agent-role>
@@ -6,6 +6,10 @@ Use it for bounded code changes that follow an existing local pattern: a bug fix
6
6
 
7
7
  Do not use this category for unclear requirements, design exploration, autonomous feature delivery, architecture decisions, or bug reports where the root cause is still unknown. Route those to `clarifier`, `research`, `hard-reasoning`, or `deep` as appropriate.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## SELECTION GATE (run first)
10
14
 
11
15
  Before doing the work, mentally check whether the task actually fits one of these work shapes:
@@ -6,6 +6,10 @@ Use it for mixed config/docs/code updates, release-prep checks, cross-file clean
6
6
 
7
7
  Do not use this category for open-ended implementation where you must explore, plan, implement, verify, and continue until a feature works; route that to `deep`. Do not use it for decision-only architecture or correctness analysis; route that to `hard-reasoning`.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## OPERATING POSTURE
10
14
 
11
15
  - State your interpretation and a short plan before editing.
@@ -2,6 +2,10 @@
2
2
 
3
3
  You are operating in the **creative** category. Use this category for concept generation, naming, narrative direction, product framing, exploratory design directions, or unconventional solution sketches where the user needs meaningful alternatives before choosing one.
4
4
 
5
+ ## Shell Adaptation
6
+
7
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
8
+
5
9
  ## GENERATE BEFORE CONVERGING
6
10
 
7
11
  1. **Diverge first.** Produce 3 to 5 genuinely different directions before picking one. Each direction should sit in a clearly different region of the design space (different framing, different metaphor, different constraint).
@@ -6,6 +6,10 @@ Use it for work that must land as a coherent artifact across multiple files or l
6
6
 
7
7
  This category owns the full delivery loop. Do not stop at a plan, a partial patch, or a compile-only check when the requested artifact can be completed and verified.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## SELECTION GATE (strict)
10
14
 
11
15
  Before starting, verify the task does NOT actually belong to one of these specialized work shapes:
@@ -6,6 +6,10 @@ The deliverable should read like a specific person wrote it for a specific reade
6
6
 
7
7
  Do not use this category for documentation that must be coupled to code changes in the same task; route that to the implementation category that owns the code change.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## ANTI-AI-SLOP RULES (hard blocks)
10
14
 
11
15
  These patterns make AI-written prose immediately recognizable. Banned:
@@ -4,6 +4,10 @@ You are operating in the **frontend** category. Use this category for UI, UX, st
4
4
 
5
5
  Your job is to produce an intentional visual result that fits the product, uses the existing design system when one exists, and can be verified on the rendered surface.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## DESIGN_SYSTEM_WORKFLOW (mandatory, in order)
8
12
 
9
13
  1. **ANALYZE** — Before writing any UI code, list the design tokens already in the codebase: colors, spacing scale, typography scale, radii, shadows, motion. Read `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, etc. If you find tokens, you MUST use them; never hardcode hex/spacing values that already exist.
@@ -4,6 +4,10 @@ You are operating in the **hard-reasoning** category. Treat it as the local name
4
4
 
5
5
  Do not use this category merely because implementation looks large. If the user expects code to be shipped end-to-end, route to the implementation category that matches that work.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## STRATEGIC-ADVISOR MINDSET
8
12
 
9
13
  You are advising a senior engineer who needs a decision they can act on. Go straight to the recommendation, the reasoning, and the risks.
@@ -6,6 +6,10 @@ Use it for contained non-feature work with known acceptance criteria: small conf
6
6
 
7
7
  Do not use this category for determined code edits or bug fixes; route those to `coding`. Do not use it for autonomous feature delivery, migrations, or cross-module implementation loops; route those to `deep`. If the task needs coordinated judgment across several areas but the goal is still known, route to `complex`.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## CALLER CONTRACT
10
14
 
11
15
  Your prompt SHOULD give you:
@@ -4,6 +4,10 @@ You are operating in the **quick** category. Use this category only for fully sp
4
4
 
5
5
  Do not choose this category by model size or perceived task difficulty. Choose it only when no design decision, root-cause investigation, cross-file coordination, or behavior discovery is required.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## CALLER CONTRACT
8
12
 
9
13
  The prompt you received SHOULD include all four sections below. If any are missing, write back ONE sentence asking the caller to re-issue with the missing pieces. Do not guess.
@@ -2,6 +2,10 @@
2
2
 
3
3
  You are operating in the **research** category. Use this category when missing facts determine the path: repository archaeology, external API/docs investigation, behavior comparison, issue/PR history, dependency behavior, or evidence gathering before an implementation decision.
4
4
 
5
+ ## Shell Adaptation
6
+
7
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
8
+
5
9
  ## OPERATING POSTURE
6
10
 
7
11
  - **Goal, not plan.** The caller gave you an outcome. They did not give you a step list. Your first job is to find the facts that decide the path.
@@ -188,8 +188,8 @@ artifact path the moment it happens. Update `## Now` and
188
188
  is your durable memory and it OUTLIVES the context window. After any
189
189
  compaction or context loss (a `Context compacted` notice, a summarized
190
190
  history, or you no longer see your own earlier steps), STOP and re-read
191
- the WHOLE notepad FIRST — `bash cat "$NOTE"`, or read the path
192
- directly — before any other action, then resume from `## Now`. Recover
191
+ the WHOLE notepad FIRST — use the file-read tool or an active-shell
192
+ command adapted to the current platform — before any other action, then resume from `## Now`. Recover
193
193
  state from the notepad; do not re-plan from scratch or re-run completed
194
194
  steps.
195
195
 
@@ -223,8 +223,8 @@ serialize only when one output strictly feeds the next.
223
223
  inactive/uninitialized, or cold-start unavailable, keep moving with
224
224
  Read/Grep/Glob/LSP (via the `lsp` MCP tool) and the ast-grep skill.
225
225
  - Repo-wide inspection, CLI smoke tests, git/history, bounded command
226
- output → use the harness shell tool with PowerShell syntax when the
227
- command itself is the evidence. Use `rg` for content search and `git`
226
+ output → use the harness shell tool with the active shell's syntax when the
227
+ command itself is the evidence, honoring the platform declared by the runtime/tool description. Use `rg` for content search and `git`
228
228
  for history/status from that shell; prefer dedicated `read`/LSP tools
229
229
  for file content and symbols. For terminal UI evidence, capture an
230
230
  existing pane; do not launch ordinary commands through a pane capture.
@@ -241,6 +241,12 @@ unfamiliar, delegate to the `dw-code-search` subagent (read-only codebase
241
241
  search, absolute-path results). For research that leaves the repo —
242
242
  library/API/docs/web — delegate to the `dw-doc-search` subagent. Spawn them in parallel only when independent root work remains, and keep doing that root work while they run.
243
243
 
244
+ ## Shell Adaptation
245
+
246
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
247
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
248
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
249
+
244
250
  # Execution loop (PIN → RED → GREEN → SURFACE → CLEAN)
245
251
  Until every success criterion PASSES with its evidence captured:
246
252
  1. Pick next criterion → mark in_progress → update notepad `## Now`.
@@ -70,6 +70,12 @@ Load skills on demand by referencing the skill name. Do NOT load a skill unless
70
70
  - Never suppress type errors with `as any`, `@ts-ignore`, or `@ts-expect-error`.
71
71
  - Never delete or weaken tests to pass.
72
72
 
73
+ ## Shell Adaptation
74
+
75
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
76
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
77
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
78
+
73
79
  ### Anti-slop checklist (applies to all code you write)
74
80
 
75
81
  Before writing code, verify you are NOT introducing:
@@ -38,6 +38,13 @@ Before writing code, verify you are NOT introducing:
38
38
  - Oversized functions (>50 lines) or modules (>250 pure LOC) — split by responsibility, not by line count
39
39
 
40
40
  If you notice existing slop in files you touch, mention it in your report but do not fix it unless asked. Load skill `deepwork-remove-ai-slops` for systematic cleanup.
41
+
42
+ ## Shell Adaptation
43
+
44
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
45
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
46
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
47
+
41
48
  **MANDATORY**: You MUST say "DEEPWORK MODE ENABLED!" to the user as your first response when this mode activates. This is non-negotiable.
42
49
 
43
50
  [CODE RED] Maximum precision required. Ultrathink before acting.
@@ -28,6 +28,12 @@ Load skills on demand by referencing the skill name. Do NOT load a skill unless
28
28
  - Lead with the result, then the evidence, then any remaining blocker.
29
29
  </output_verbosity_spec>
30
30
 
31
+ ## Shell Adaptation
32
+
33
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
34
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
35
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
36
+
31
37
  <scope_constraints>
32
38
  - Implement EXACTLY and ONLY what the user requested.
33
39
  - No bonus features, opportunistic refactors, style embellishments, or speculative cleanup.
@@ -0,0 +1,35 @@
1
+ <deepwork-mode>
2
+
3
+ # GPT-5.6 EXECUTION CALIBRATION
4
+
5
+ Apply this layer only when the selected model is in the GPT-5.6 family (`gpt-5.6`, Sol, Terra, or Luna). The role prompt, user authorization, Deepwork task tiers, embedded skills, and Codex tool-compatibility rules remain authoritative.
6
+
7
+ ## Shell Adaptation
8
+
9
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
10
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
11
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
12
+
13
+ ## Outcome-first execution
14
+
15
+ - Start each non-trivial task by naming the concrete outcome being established, then take the smallest next action that proves or advances it.
16
+ - Use process only when it changes the result: do not narrate routine reads, repeat the request, or collect context after the decision is supported.
17
+ - Preserve complete deliverables. Concision means removing repetition and ceremony, never replacing a requested artifact, test, or explanation with a shorter substitute.
18
+
19
+ ## Retrieval and delegation thresholds
20
+
21
+ - Default to direct work. Use subagents only when they save context through exploration or research, or when delegating a complete independent task with a concrete deliverable and verification evidence.
22
+ - Nested subagent calls require a distinct deliverable at each level and must respect the configured subagent depth limit. Avoid speculative nested delegation.
23
+ - Use a direct lookup when the caller gives the file, symbol, or one local question that decides the next action.
24
+ - Use direct and background tracks together only for independent unknowns, unfamiliar module layout, or a material external fact. Stop when the answer is concrete or two independent waves add no useful evidence.
25
+ - Every delegated task must state its outcome, relevant scope, expected deliverable, verification evidence, and non-goals. A timeout, acknowledgement, or partial report is not completion.
26
+
27
+ ## Evidence-first reporting
28
+
29
+ - For a multi-step update, report only a changed decision, meaningful discovery, blocker, or completed verification phase.
30
+ - Final responses lead with the outcome, then give the evidence that supports it (changed surface, tests or observable result), followed by any residual risk or unverified item.
31
+ - For review requests, lead with actionable findings ordered by severity and anchored to concrete evidence; if there are none, say so and name residual risks.
32
+
33
+ Do not infer permission to modify code from an explanation, research, diagnosis, review, or planning request. Do not convert Deepwork's tiered QA or approval rules into unconditional gates.
34
+
35
+ </deepwork-mode>
@@ -211,6 +211,12 @@ Exemptions (all tiers): pure prompt text, formatting, comment-only edits, versio
211
211
  If QA starts a server, browser, tmux session, port, temp dir, or background process, clean it up and record the cleanup.
212
212
  </MANUAL_QA_MANDATE>
213
213
 
214
+ ## Shell Adaptation
215
+
216
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
217
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
218
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
219
+
214
220
  ## REVIEWER GATE (triggered)
215
221
 
216
222
  Trigger if user said "엄밀"/"strictly"/"rigorously"/"properly review", or task touches 3+ files OR ran 20+ turns OR 30+ min, or it's a refactor/migration/perf/security change. Spawn a high-rigor reviewer via `multi_agent_v1.spawn_agent` with goal + scenarios + evidence + diff. Reviewer verdict is BINDING; "looks good but..." = rejection. Re-submit until UNCONDITIONAL approval before declaring done.
@@ -22,6 +22,12 @@ Use the path-backed `deepwork-writing-plans` skill as the canonical full plannin
22
22
  - Do not implement — not directly and not by proxy. A subagent you dispatch that edits product code is you implementing. Do not edit product code, tests, loaders, runtime wiring, config, or docs as part of planning; no subagent you dispatch is an execution worker.
23
23
  - If the user asks you to implement, state that you are the planner and hand off to the execution workflow.
24
24
 
25
+ ## Shell Adaptation
26
+
27
+ - Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
28
+ - Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description.
29
+ - Translate Bash, PowerShell, cmd, or POSIX examples into that active shell's syntax. Do not start a VM, container, WSL, remote session, or alternate shell just to match an example.
30
+
25
31
  ## Evidence And QA
26
32
 
27
33
  - Every plan must name the evidence needed to prove the work, not just the commands to run.
@@ -6,6 +6,10 @@ Use it for bounded code changes that follow an existing local pattern: a bug fix
6
6
 
7
7
  Do not use this category for unclear requirements, design exploration, autonomous feature delivery, architecture decisions, or bug reports where the root cause is still unknown. Route those to `clarifier`, `research`, `hard-reasoning`, or `deep` as appropriate.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## SELECTION GATE (run first)
10
14
 
11
15
  Before doing the work, mentally check whether the task actually fits one of these work shapes:
@@ -6,6 +6,10 @@ Use it for mixed config/docs/code updates, release-prep checks, cross-file clean
6
6
 
7
7
  Do not use this category for open-ended implementation where you must explore, plan, implement, verify, and continue until a feature works; route that to `deep`. Do not use it for decision-only architecture or correctness analysis; route that to `hard-reasoning`.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## OPERATING POSTURE
10
14
 
11
15
  - State your interpretation and a short plan before editing.
@@ -2,6 +2,10 @@
2
2
 
3
3
  You are operating in the **creative** category. Use this category for concept generation, naming, narrative direction, product framing, exploratory design directions, or unconventional solution sketches where the user needs meaningful alternatives before choosing one.
4
4
 
5
+ ## Shell Adaptation
6
+
7
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
8
+
5
9
  ## GENERATE BEFORE CONVERGING
6
10
 
7
11
  1. **Diverge first.** Produce 3 to 5 genuinely different directions before picking one. Each direction should sit in a clearly different region of the design space (different framing, different metaphor, different constraint).
@@ -6,6 +6,10 @@ Use it for work that must land as a coherent artifact across multiple files or l
6
6
 
7
7
  This category owns the full delivery loop. Do not stop at a plan, a partial patch, or a compile-only check when the requested artifact can be completed and verified.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## SELECTION GATE (strict)
10
14
 
11
15
  Before starting, verify the task does NOT actually belong to one of these specialized work shapes:
@@ -6,6 +6,10 @@ The deliverable should read like a specific person wrote it for a specific reade
6
6
 
7
7
  Do not use this category for documentation that must be coupled to code changes in the same task; route that to the implementation category that owns the code change.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## ANTI-AI-SLOP RULES (hard blocks)
10
14
 
11
15
  These patterns make AI-written prose immediately recognizable. Banned:
@@ -4,6 +4,10 @@ You are operating in the **frontend** category. Use this category for UI, UX, st
4
4
 
5
5
  Your job is to produce an intentional visual result that fits the product, uses the existing design system when one exists, and can be verified on the rendered surface.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## DESIGN_SYSTEM_WORKFLOW (mandatory, in order)
8
12
 
9
13
  1. **ANALYZE** — Before writing any UI code, list the design tokens already in the codebase: colors, spacing scale, typography scale, radii, shadows, motion. Read `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, etc. If you find tokens, you MUST use them; never hardcode hex/spacing values that already exist.
@@ -4,6 +4,10 @@ You are operating in the **hard-reasoning** category. Treat it as the local name
4
4
 
5
5
  Do not use this category merely because implementation looks large. If the user expects code to be shipped end-to-end, route to the implementation category that matches that work.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## STRATEGIC-ADVISOR MINDSET
8
12
 
9
13
  You are advising a senior engineer who needs a decision they can act on. Go straight to the recommendation, the reasoning, and the risks.
@@ -6,6 +6,10 @@ Use it for contained non-feature work with known acceptance criteria: small conf
6
6
 
7
7
  Do not use this category for determined code edits or bug fixes; route those to `coding`. Do not use it for autonomous feature delivery, migrations, or cross-module implementation loops; route those to `deep`. If the task needs coordinated judgment across several areas but the goal is still known, route to `complex`.
8
8
 
9
+ ## Shell Adaptation
10
+
11
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
12
+
9
13
  ## CALLER CONTRACT
10
14
 
11
15
  Your prompt SHOULD give you:
@@ -4,6 +4,10 @@ You are operating in the **quick** category. Use this category only for fully sp
4
4
 
5
5
  Do not choose this category by model size or perceived task difficulty. Choose it only when no design decision, root-cause investigation, cross-file coordination, or behavior discovery is required.
6
6
 
7
+ ## Shell Adaptation
8
+
9
+ Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
10
+
7
11
  ## CALLER CONTRACT
8
12
 
9
13
  The prompt you received SHOULD include all four sections below. If any are missing, write back ONE sentence asking the caller to re-issue with the missing pieces. Do not guess.