omakaseagent 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/LICENSE +182 -0
  2. package/OMAKASE-CRITIQUE.md +12 -0
  3. package/OMAKASE-PRINCIPLES.md +15 -0
  4. package/OMAKASE-RULES.md +25 -0
  5. package/README.md +96 -0
  6. package/bin/omakase.js +571 -0
  7. package/dist/agents/.agents/skills/omakase/OMAKASE-CRITIQUE.md +12 -0
  8. package/dist/agents/.agents/skills/omakase/OMAKASE-PRINCIPLES.md +15 -0
  9. package/dist/agents/.agents/skills/omakase/OMAKASE-RULES.md +25 -0
  10. package/dist/agents/.agents/skills/omakase/SKILL.md +177 -0
  11. package/dist/agents/.agents/skills/omakase/TEAMS.md +120 -0
  12. package/dist/agents/.agents/skills/omakase/core/omakase-core.md +43 -0
  13. package/dist/agents/.agents/skills/omakase/reference/archivist-workflows.md +178 -0
  14. package/dist/agents/.agents/skills/omakase/reference/backlog-audit.md +168 -0
  15. package/dist/agents/.agents/skills/omakase/reference/critique.md +92 -0
  16. package/dist/agents/.agents/skills/omakase/reference/dark-factory.md +111 -0
  17. package/dist/agents/.agents/skills/omakase/reference/engineering.md +137 -0
  18. package/dist/agents/.agents/skills/omakase/reference/execution-plan.md +159 -0
  19. package/dist/agents/.agents/skills/omakase/reference/factory-orchestration.md +123 -0
  20. package/dist/agents/.agents/skills/omakase/reference/handoff.md +43 -0
  21. package/dist/agents/.agents/skills/omakase/reference/init.md +146 -0
  22. package/dist/agents/.agents/skills/omakase/reference/learn.md +66 -0
  23. package/dist/agents/.agents/skills/omakase/reference/native-agents.md +45 -0
  24. package/dist/agents/.agents/skills/omakase/reference/plan.md +79 -0
  25. package/dist/agents/.agents/skills/omakase/reference/skill-judge.md +133 -0
  26. package/dist/agents/.agents/skills/omakase/reference/task-intake.md +94 -0
  27. package/dist/agents/.agents/skills/omakase/reference/taste.md +33 -0
  28. package/dist/agents/.agents/skills/omakase/reference/team-architecture.md +38 -0
  29. package/dist/agents/.agents/skills/omakase/teams/archives/lead.md +77 -0
  30. package/dist/agents/.agents/skills/omakase/teams/archives/sub-personas/memory-synthesizer.md +66 -0
  31. package/dist/agents/.agents/skills/omakase/teams/critics/lead.md +94 -0
  32. package/dist/agents/.agents/skills/omakase/teams/critics/sub-personas/deslop-critic.md +52 -0
  33. package/dist/agents/.agents/skills/omakase/teams/critics/sub-personas/skill-judge.md +59 -0
  34. package/dist/agents/.agents/skills/omakase/teams/critics/sub-personas/structural-critic.md +112 -0
  35. package/dist/agents/.agents/skills/omakase/teams/critics/sub-personas/verification-critic.md +73 -0
  36. package/dist/agents/.agents/skills/omakase/teams/engineering/lead.md +111 -0
  37. package/dist/agents/.agents/skills/omakase/teams/engineering/sub-personas/debugger.md +44 -0
  38. package/dist/agents/.agents/skills/omakase/teams/engineering/sub-personas/implementation-lead.md +43 -0
  39. package/dist/agents/.agents/skills/omakase/teams/engineering/sub-personas/refactor-specialist.md +56 -0
  40. package/dist/agents/.agents/skills/omakase/teams/engineering/sub-personas/senior-reviewer.md +83 -0
  41. package/dist/agents/.opencode/agents/omakase-archivist.md +24 -0
  42. package/dist/agents/.opencode/agents/omakase-critic.md +32 -0
  43. package/dist/agents/.opencode/agents/omakase-debugger.md +15 -0
  44. package/dist/agents/.opencode/agents/omakase-deslop-critic.md +15 -0
  45. package/dist/agents/.opencode/agents/omakase-engineer.md +38 -0
  46. package/dist/agents/.opencode/agents/omakase-implementation-lead.md +15 -0
  47. package/dist/agents/.opencode/agents/omakase-memory-synthesizer.md +15 -0
  48. package/dist/agents/.opencode/agents/omakase-refactor-specialist.md +15 -0
  49. package/dist/agents/.opencode/agents/omakase-senior-reviewer.md +17 -0
  50. package/dist/agents/.opencode/agents/omakase-skill-judge.md +17 -0
  51. package/dist/agents/.opencode/agents/omakase-structural-critic.md +15 -0
  52. package/dist/agents/.opencode/agents/omakase-verification-critic.md +15 -0
  53. package/dist/chat/omakase/SKILL.md +84 -0
  54. package/dist/claude/.claude/agents/omakase-archivist.md +21 -0
  55. package/dist/claude/.claude/agents/omakase-critic.md +25 -0
  56. package/dist/claude/.claude/agents/omakase-engineer.md +32 -0
  57. package/dist/claude/.claude/skills/omakase/OMAKASE-CRITIQUE.md +12 -0
  58. package/dist/claude/.claude/skills/omakase/OMAKASE-PRINCIPLES.md +15 -0
  59. package/dist/claude/.claude/skills/omakase/OMAKASE-RULES.md +25 -0
  60. package/dist/claude/.claude/skills/omakase/SKILL.md +177 -0
  61. package/dist/claude/.claude/skills/omakase/TEAMS.md +120 -0
  62. package/dist/claude/.claude/skills/omakase/core/omakase-core.md +43 -0
  63. package/dist/claude/.claude/skills/omakase/reference/archivist-workflows.md +178 -0
  64. package/dist/claude/.claude/skills/omakase/reference/backlog-audit.md +168 -0
  65. package/dist/claude/.claude/skills/omakase/reference/critique.md +92 -0
  66. package/dist/claude/.claude/skills/omakase/reference/dark-factory.md +111 -0
  67. package/dist/claude/.claude/skills/omakase/reference/engineering.md +137 -0
  68. package/dist/claude/.claude/skills/omakase/reference/execution-plan.md +159 -0
  69. package/dist/claude/.claude/skills/omakase/reference/factory-orchestration.md +123 -0
  70. package/dist/claude/.claude/skills/omakase/reference/handoff.md +43 -0
  71. package/dist/claude/.claude/skills/omakase/reference/init.md +146 -0
  72. package/dist/claude/.claude/skills/omakase/reference/learn.md +66 -0
  73. package/dist/claude/.claude/skills/omakase/reference/native-agents.md +45 -0
  74. package/dist/claude/.claude/skills/omakase/reference/plan.md +79 -0
  75. package/dist/claude/.claude/skills/omakase/reference/skill-judge.md +133 -0
  76. package/dist/claude/.claude/skills/omakase/reference/task-intake.md +94 -0
  77. package/dist/claude/.claude/skills/omakase/reference/taste.md +33 -0
  78. package/dist/claude/.claude/skills/omakase/reference/team-architecture.md +38 -0
  79. package/dist/claude/.claude/skills/omakase/teams/archives/lead.md +77 -0
  80. package/dist/claude/.claude/skills/omakase/teams/archives/sub-personas/memory-synthesizer.md +66 -0
  81. package/dist/claude/.claude/skills/omakase/teams/critics/lead.md +94 -0
  82. package/dist/claude/.claude/skills/omakase/teams/critics/sub-personas/deslop-critic.md +52 -0
  83. package/dist/claude/.claude/skills/omakase/teams/critics/sub-personas/skill-judge.md +59 -0
  84. package/dist/claude/.claude/skills/omakase/teams/critics/sub-personas/structural-critic.md +112 -0
  85. package/dist/claude/.claude/skills/omakase/teams/critics/sub-personas/verification-critic.md +73 -0
  86. package/dist/claude/.claude/skills/omakase/teams/engineering/lead.md +111 -0
  87. package/dist/claude/.claude/skills/omakase/teams/engineering/sub-personas/debugger.md +44 -0
  88. package/dist/claude/.claude/skills/omakase/teams/engineering/sub-personas/implementation-lead.md +43 -0
  89. package/dist/claude/.claude/skills/omakase/teams/engineering/sub-personas/refactor-specialist.md +56 -0
  90. package/dist/claude/.claude/skills/omakase/teams/engineering/sub-personas/senior-reviewer.md +83 -0
  91. package/dist/codex/.codex/agents/omakase-archivist.toml +133 -0
  92. package/dist/codex/.codex/agents/omakase-critic.toml +149 -0
  93. package/dist/codex/.codex/agents/omakase-debugger.toml +92 -0
  94. package/dist/codex/.codex/agents/omakase-deslop-critic.toml +100 -0
  95. package/dist/codex/.codex/agents/omakase-engineer.toml +167 -0
  96. package/dist/codex/.codex/agents/omakase-implementation-lead.toml +91 -0
  97. package/dist/codex/.codex/agents/omakase-memory-synthesizer.toml +114 -0
  98. package/dist/codex/.codex/agents/omakase-refactor-specialist.toml +104 -0
  99. package/dist/codex/.codex/agents/omakase-senior-reviewer.toml +127 -0
  100. package/dist/codex/.codex/agents/omakase-skill-judge.toml +106 -0
  101. package/dist/codex/.codex/agents/omakase-structural-critic.toml +160 -0
  102. package/dist/codex/.codex/agents/omakase-verification-critic.toml +121 -0
  103. package/dist/cursor/.cursor/agents/omakase-archivist.md +21 -0
  104. package/dist/cursor/.cursor/agents/omakase-critic.md +25 -0
  105. package/dist/cursor/.cursor/agents/omakase-engineer.md +32 -0
  106. package/dist/cursor/.cursor/skills/omakase/OMAKASE-CRITIQUE.md +12 -0
  107. package/dist/cursor/.cursor/skills/omakase/OMAKASE-PRINCIPLES.md +15 -0
  108. package/dist/cursor/.cursor/skills/omakase/OMAKASE-RULES.md +25 -0
  109. package/dist/cursor/.cursor/skills/omakase/SKILL.md +177 -0
  110. package/dist/cursor/.cursor/skills/omakase/TEAMS.md +120 -0
  111. package/dist/cursor/.cursor/skills/omakase/core/omakase-core.md +43 -0
  112. package/dist/cursor/.cursor/skills/omakase/reference/archivist-workflows.md +178 -0
  113. package/dist/cursor/.cursor/skills/omakase/reference/backlog-audit.md +168 -0
  114. package/dist/cursor/.cursor/skills/omakase/reference/critique.md +92 -0
  115. package/dist/cursor/.cursor/skills/omakase/reference/dark-factory.md +111 -0
  116. package/dist/cursor/.cursor/skills/omakase/reference/engineering.md +137 -0
  117. package/dist/cursor/.cursor/skills/omakase/reference/execution-plan.md +159 -0
  118. package/dist/cursor/.cursor/skills/omakase/reference/factory-orchestration.md +123 -0
  119. package/dist/cursor/.cursor/skills/omakase/reference/handoff.md +43 -0
  120. package/dist/cursor/.cursor/skills/omakase/reference/init.md +146 -0
  121. package/dist/cursor/.cursor/skills/omakase/reference/learn.md +66 -0
  122. package/dist/cursor/.cursor/skills/omakase/reference/native-agents.md +45 -0
  123. package/dist/cursor/.cursor/skills/omakase/reference/plan.md +79 -0
  124. package/dist/cursor/.cursor/skills/omakase/reference/skill-judge.md +133 -0
  125. package/dist/cursor/.cursor/skills/omakase/reference/task-intake.md +94 -0
  126. package/dist/cursor/.cursor/skills/omakase/reference/taste.md +33 -0
  127. package/dist/cursor/.cursor/skills/omakase/reference/team-architecture.md +38 -0
  128. package/dist/cursor/.cursor/skills/omakase/teams/archives/lead.md +77 -0
  129. package/dist/cursor/.cursor/skills/omakase/teams/archives/sub-personas/memory-synthesizer.md +66 -0
  130. package/dist/cursor/.cursor/skills/omakase/teams/critics/lead.md +94 -0
  131. package/dist/cursor/.cursor/skills/omakase/teams/critics/sub-personas/deslop-critic.md +52 -0
  132. package/dist/cursor/.cursor/skills/omakase/teams/critics/sub-personas/skill-judge.md +59 -0
  133. package/dist/cursor/.cursor/skills/omakase/teams/critics/sub-personas/structural-critic.md +112 -0
  134. package/dist/cursor/.cursor/skills/omakase/teams/critics/sub-personas/verification-critic.md +73 -0
  135. package/dist/cursor/.cursor/skills/omakase/teams/engineering/lead.md +111 -0
  136. package/dist/cursor/.cursor/skills/omakase/teams/engineering/sub-personas/debugger.md +44 -0
  137. package/dist/cursor/.cursor/skills/omakase/teams/engineering/sub-personas/implementation-lead.md +43 -0
  138. package/dist/cursor/.cursor/skills/omakase/teams/engineering/sub-personas/refactor-specialist.md +56 -0
  139. package/dist/cursor/.cursor/skills/omakase/teams/engineering/sub-personas/senior-reviewer.md +83 -0
  140. package/dist/grok/.grok/agents/omakase-archivist.md +25 -0
  141. package/dist/grok/.grok/agents/omakase-critic.md +28 -0
  142. package/dist/grok/.grok/agents/omakase-debugger.md +17 -0
  143. package/dist/grok/.grok/agents/omakase-deslop-critic.md +17 -0
  144. package/dist/grok/.grok/agents/omakase-engineer.md +36 -0
  145. package/dist/grok/.grok/agents/omakase-implementation-lead.md +17 -0
  146. package/dist/grok/.grok/agents/omakase-memory-synthesizer.md +17 -0
  147. package/dist/grok/.grok/agents/omakase-refactor-specialist.md +17 -0
  148. package/dist/grok/.grok/agents/omakase-senior-reviewer.md +17 -0
  149. package/dist/grok/.grok/agents/omakase-skill-judge.md +17 -0
  150. package/dist/grok/.grok/agents/omakase-structural-critic.md +17 -0
  151. package/dist/grok/.grok/agents/omakase-verification-critic.md +17 -0
  152. package/dist/grok/.grok/skills/omakase/OMAKASE-CRITIQUE.md +12 -0
  153. package/dist/grok/.grok/skills/omakase/OMAKASE-PRINCIPLES.md +15 -0
  154. package/dist/grok/.grok/skills/omakase/OMAKASE-RULES.md +25 -0
  155. package/dist/grok/.grok/skills/omakase/SKILL.md +177 -0
  156. package/dist/grok/.grok/skills/omakase/TEAMS.md +120 -0
  157. package/dist/grok/.grok/skills/omakase/core/omakase-core.md +43 -0
  158. package/dist/grok/.grok/skills/omakase/reference/archivist-workflows.md +178 -0
  159. package/dist/grok/.grok/skills/omakase/reference/backlog-audit.md +168 -0
  160. package/dist/grok/.grok/skills/omakase/reference/critique.md +92 -0
  161. package/dist/grok/.grok/skills/omakase/reference/dark-factory.md +111 -0
  162. package/dist/grok/.grok/skills/omakase/reference/engineering.md +137 -0
  163. package/dist/grok/.grok/skills/omakase/reference/execution-plan.md +159 -0
  164. package/dist/grok/.grok/skills/omakase/reference/factory-orchestration.md +123 -0
  165. package/dist/grok/.grok/skills/omakase/reference/handoff.md +43 -0
  166. package/dist/grok/.grok/skills/omakase/reference/init.md +146 -0
  167. package/dist/grok/.grok/skills/omakase/reference/learn.md +66 -0
  168. package/dist/grok/.grok/skills/omakase/reference/native-agents.md +45 -0
  169. package/dist/grok/.grok/skills/omakase/reference/plan.md +79 -0
  170. package/dist/grok/.grok/skills/omakase/reference/skill-judge.md +133 -0
  171. package/dist/grok/.grok/skills/omakase/reference/task-intake.md +94 -0
  172. package/dist/grok/.grok/skills/omakase/reference/taste.md +33 -0
  173. package/dist/grok/.grok/skills/omakase/reference/team-architecture.md +38 -0
  174. package/dist/grok/.grok/skills/omakase/teams/archives/lead.md +77 -0
  175. package/dist/grok/.grok/skills/omakase/teams/archives/sub-personas/memory-synthesizer.md +66 -0
  176. package/dist/grok/.grok/skills/omakase/teams/critics/lead.md +94 -0
  177. package/dist/grok/.grok/skills/omakase/teams/critics/sub-personas/deslop-critic.md +52 -0
  178. package/dist/grok/.grok/skills/omakase/teams/critics/sub-personas/skill-judge.md +59 -0
  179. package/dist/grok/.grok/skills/omakase/teams/critics/sub-personas/structural-critic.md +112 -0
  180. package/dist/grok/.grok/skills/omakase/teams/critics/sub-personas/verification-critic.md +73 -0
  181. package/dist/grok/.grok/skills/omakase/teams/engineering/lead.md +111 -0
  182. package/dist/grok/.grok/skills/omakase/teams/engineering/sub-personas/debugger.md +44 -0
  183. package/dist/grok/.grok/skills/omakase/teams/engineering/sub-personas/implementation-lead.md +43 -0
  184. package/dist/grok/.grok/skills/omakase/teams/engineering/sub-personas/refactor-specialist.md +56 -0
  185. package/dist/grok/.grok/skills/omakase/teams/engineering/sub-personas/senior-reviewer.md +83 -0
  186. package/dist/omakase-skill.zip +0 -0
  187. package/package.json +54 -0
@@ -0,0 +1,159 @@
1
+ # Execution plan — tactical spec for factory handoff
2
+
3
+ Use when **@omakase-engineer** (or router `plan` with implementation intent) writes a backlog item after audit — or when scoping a single well-known fix without a full audit.
4
+
5
+ **Not** the same as `reference/plan.md` (strategic: why, options, trade-offs). Execution plans are **how**: self-contained specs for `omakase-implementation-lead` or a follow-up Engineer session with zero audit context.
6
+
7
+ **Storage:** `.omakaseagent/backlog/NNN-<slug>.md`
8
+ **Index:** `.omakaseagent/backlog/README.md`
9
+
10
+ Patterns adapted from senior advisor / executor-spec practice (self-contained context, verification gates, STOP conditions).
11
+
12
+ ---
13
+
14
+ ## Three properties (non-negotiable)
15
+
16
+ 1. **Self-contained context** — paths, excerpts, conventions, commands inlined; no "as discussed in audit."
17
+ 2. **Verification gates** — every step ends with a command and expected result from `factory.md` or recon.
18
+ 3. **Hard boundaries** — in-scope / out-of-scope lists; STOP conditions instead of improvisation when reality diverges.
19
+
20
+ ---
21
+
22
+ ## Template
23
+
24
+ ```markdown
25
+ # Plan NNN: <Imperative title — what will be true after this>
26
+
27
+ > **Executor instructions**: Follow step by step. Run every verification command
28
+ > and confirm the expected result before the next step. On any STOP condition,
29
+ > stop and report — do not improvise. When done, update this plan's status row
30
+ > in `.omakaseagent/backlog/README.md`.
31
+ >
32
+ > **Drift check (run first)**: `git diff --stat <planned-at SHA>..HEAD -- <in-scope paths>`
33
+ > If in-scope files changed, compare "Current state" excerpts to live code; mismatch
34
+ > → STOP.
35
+
36
+ ## Status
37
+
38
+ - **Priority**: P1 | P2 | P3
39
+ - **Effort**: S | M | L
40
+ - **Risk class**: 0–3+ (per `.omakaseagent/factory.md`)
41
+ - **Depends on**: `backlog/NNN-*.md` or none
42
+ - **Category**: bug | security | perf | tests | tech-debt | migration | dx | docs | direction
43
+ - **Planned at**: commit `<short SHA>`, <YYYY-MM-DD>
44
+ - **Gate**: (filled after factory close — path to `.omakaseagent/gates/...` or "n/a Class 0–1")
45
+
46
+ ## Why this matters
47
+
48
+ 2–5 sentences: problem, cost, what improves. Cite `taste.md` / `decisions.md` when they constrain the shape.
49
+
50
+ ## Current state
51
+
52
+ - Files and roles (`path` — one line each)
53
+ - Short excerpts with `file:line` markers
54
+ - Convention exemplar: "Match error handling in `src/foo.ts`"
55
+
56
+ ## Commands you will need
57
+
58
+ | Purpose | Command | Expected on success |
59
+ |---------|---------|---------------------|
60
+ | ... | from `factory.md` mechanical list | exit 0 / all pass |
61
+
62
+ ## Scope
63
+
64
+ **In scope** (only files you may modify):
65
+ - ...
66
+
67
+ **Out of scope** (do NOT touch):
68
+ - ...
69
+
70
+ ## Steps
71
+
72
+ ### Step 1: <imperative title>
73
+
74
+ Precise instructions. Target shape when load-bearing.
75
+
76
+ **Verify**: `<command>` → <expected output>
77
+
78
+ ### Step 2: ...
79
+
80
+ ## Test plan
81
+
82
+ - New tests: file, cases, pattern file to copy
83
+ - **Verify**: `<test command>` → all pass including N new tests
84
+
85
+ ## Done criteria
86
+
87
+ Machine-checkable. ALL must hold:
88
+
89
+ - [ ] ...
90
+ - [ ] No files outside in-scope modified (`git status`)
91
+ - [ ] `backlog/README.md` status updated
92
+ - [ ] (Class 2+) Gate file written and plan path linked
93
+
94
+ ## STOP conditions
95
+
96
+ Stop and report (do not improvise) if:
97
+
98
+ - Current state excerpts do not match live code (drift)
99
+ - Verification fails twice after reasonable fix attempt
100
+ - Fix requires an out-of-scope file
101
+ - Key assumption "<...>" is false
102
+ - Risk class escalates (e.g. touches auth) — escalate to Engineer before continuing
103
+
104
+ ## Maintenance notes
105
+
106
+ What future changes interact with this; what reviewers should scrutinize; explicit deferrals.
107
+ ```
108
+
109
+ ---
110
+
111
+ ## Index: `.omakaseagent/backlog/README.md`
112
+
113
+ ```markdown
114
+ # Backlog — execution plans
115
+
116
+ Omakase backlog. Execute in order unless dependencies say otherwise.
117
+ Factory loop (critic + gate) applies per `reference/factory-orchestration.md`.
118
+
119
+ ## Execution order & status
120
+
121
+ | Plan | Title | Priority | Effort | Risk | Depends on | Status |
122
+ |------|-------|----------|--------|------|------------|--------|
123
+ | 001 | ... | P1 | S | 1 | — | TODO |
124
+
125
+ Status: TODO | IN PROGRESS | DONE | BLOCKED (reason) | STALE (drift) | REJECTED (reason)
126
+
127
+ ## Dependency notes
128
+
129
+ - 002 requires 001 because ...
130
+
131
+ ## Findings considered and rejected
132
+
133
+ - <finding>: <one line why> (optional: see `decisions.md` <date>)
134
+ ```
135
+
136
+ ---
137
+
138
+ ## Quality bar (check before shipping each plan)
139
+
140
+ - Could a model that has never seen this repo execute with only this file?
141
+ - Is every verification a command + expected result, not judgment?
142
+ - Does every step name exact files and symbols?
143
+ - Are STOP conditions specific to this plan's risks?
144
+ - Would critic + human reading "Why" + "Done criteria" know what they're approving?
145
+ - No secret values — locations and types only.
146
+ - Planned-at SHA filled; drift check paths match Scope.
147
+ - Plan passes taste bar — no over-engineering spec'd into steps.
148
+
149
+ ---
150
+
151
+ ## After execution (factory close)
152
+
153
+ Engineer updates:
154
+
155
+ 1. Plan **Gate** field → path to gate report
156
+ 2. `backlog/README.md` status → DONE (only after critic + gate on Class 2+)
157
+ 3. `decisions.md` when the work establishes durable policy (via archivist when appropriate)
158
+
159
+ Critic checks **both** Omakase rubric and plan done criteria.
@@ -0,0 +1,123 @@
1
+ # Factory orchestration — one goal, multiple agents
2
+
3
+ Use when a user gives a **goal** (single or multi-step) and expects the **Omakase team** to run Level 4 — not a single chat reply.
4
+
5
+ **User says:** “Add gate report CI and make sure our factory checkpoints are real.”
6
+ **User does not:** name leads, seeds, scenarios, or handoffs.
7
+
8
+ ---
9
+
10
+ ## Who owns what
11
+
12
+ | Role | Lead | Responsibility |
13
+ |------|------|----------------|
14
+ | Orchestrator | **@omakase-engineer** | Task brief, scenarios, delegation, mechanical checks, **final gate file**, human checkpoint |
15
+ | Build | `omakase-implementation-lead` (delegated) | Focused implementation charter |
16
+ | Review | **@omakase-critic** | Evidence + rubric on Class 2+ before human checkpoint |
17
+ | Memory | **@omakase-archivist** | Durable decisions / taste when factory policy changes |
18
+ | Specialists | senior-reviewer, verify path via critic | As Engineer routes |
19
+
20
+ **Engineer is the factory floor manager.** Other leads are invoked at defined points — not optional on Class 2+ factory work.
21
+
22
+ ---
23
+
24
+ ## Phases (one goal)
25
+
26
+ ```mermaid
27
+ flowchart LR
28
+ U[User goal] --> E[Engineer: brief + scenarios]
29
+ E --> W[Work: impl lead / engineer]
30
+ W --> M[Mechanical checks]
31
+ M --> C[Critic: evidence review]
32
+ C --> G[Gate report file]
33
+ G --> A[Archivist: memory if durable]
34
+ G --> H[Human checkpoint]
35
+ ```
36
+
37
+ ### Phase 1 — Intake (Engineer)
38
+
39
+ 1. Read `factory.md`, `taste.md`, `decisions.md`, `reference/task-intake.md`.
40
+ 2. Publish **Task brief** (plain language).
41
+ 3. Class **2+:** draft scenarios → one user confirm.
42
+ 4. Save brief to `.omakaseagent/handoffs/<date>-<slug>-brief.md` on multi-step or Class 2+ work.
43
+
44
+ ### Phase 2 — Work (Engineer + specialists)
45
+
46
+ - Delegate implementation when isolated context helps (`omakase-implementation-lead`).
47
+ - Handoff charter: brief excerpt + files in scope + mechanical commands to run.
48
+ - **Backlog item:** charter = full `.omakaseagent/backlog/NNN-*.md`; executor runs drift check and STOP rules from the plan (`reference/execution-plan.md`).
49
+ - Save handoff: `.omakaseagent/handoffs/<date>-<slug>-to-implementation.md` (optional when backlog plan is the charter).
50
+
51
+ ### Phase 3 — Mechanical evidence (Engineer)
52
+
53
+ Run every command in `factory.md` mechanical list relevant to the change. Capture exit codes in gate draft.
54
+
55
+ ### Phase 4 — Critic gate (mandatory Class 2+)
56
+
57
+ Invoke **@omakase-critic** with:
58
+
59
+ - Task brief
60
+ - Diff summary or paths
61
+ - Mechanical output
62
+ - Ask: rubric pass? P0/P1 issues?
63
+
64
+ Save critic summary into gate `## Critic` section. Handoff file optional: `handoffs/<date>-<slug>-to-critic.md`.
65
+
66
+ **Do not** tell the user “done” before critic pass on Class 2+.
67
+
68
+ ### Phase 5 — Gate artifact (Engineer)
69
+
70
+ Write `.omakaseagent/gates/<date>-<slug>-gate.md` — all headings in `reference/learn.md`.
71
+ If repo has `npm run verify:gate-reports`, run it.
72
+
73
+ ### Phase 6 — Memory (Archivist, when warranted)
74
+
75
+ If the task changes factory policy (new CI rule, new required heading, new risk class):
76
+
77
+ - **@omakase-archivist** proposes `decisions.md` diff — user confirms.
78
+ - Skip for one-off features with no durable policy.
79
+
80
+ ### Phase 7 — Human checkpoint
81
+
82
+ Tell the user: gate path, what was proven, what decision remains. Not a full diff walkthrough unless they ask.
83
+
84
+ ---
85
+
86
+ ## Multi-step goals
87
+
88
+ User: “Fix CI, then add gate verifier, then document the factory run.”
89
+
90
+ Engineer:
91
+
92
+ 1. One **program brief** with ordered steps.
93
+ 2. **Per step:** mini brief → work → mechanical → critic (if Class 2+) → sub-gate or section in one gate.
94
+ 3. **One final gate** references all steps — preferred for related work.
95
+
96
+ Do not spawn separate user threads per step unless harness requires it.
97
+
98
+ ---
99
+
100
+ ## Routing failures to avoid
101
+
102
+ | Failure | Fix |
103
+ |---------|-----|
104
+ | Engineer implements + says “done” with no critic | Phase 4 mandatory on Class 2+ |
105
+ | User told to “create a seed” | `task-intake.md` — Engineer co-writes brief |
106
+ | No `factory.md` | Offer `omakase learn` once; continue Class 0–1 |
107
+ | Router/chef mode on engineering goal | Redirect to `@omakase-engineer` |
108
+ | Chat-only evidence | Gate file + mechanical output |
109
+
110
+ ---
111
+
112
+ ## Backlog-driven work
113
+
114
+ User: "Implement backlog/002" or Engineer proposes next item after audit.
115
+
116
+ 1. Read execution plan; drift check first.
117
+ 2. Phases 1–7 unchanged — plan does not waive critic or gate.
118
+ 3. Gate `## Seed` links backlog path; `## Mechanical evidence` includes plan done-criteria commands.
119
+ 4. Update `backlog/README.md` status on close; reconcile on next audit (`reference/backlog-audit.md`).
120
+
121
+ ## Reference E2E
122
+
123
+ Full worked example with handoffs: `examples/factory-e2e/` in the omakaseagent repo.
@@ -0,0 +1,43 @@
1
+ # Handoff — Clean Protocol
2
+
3
+ When work moves from one agent (or person) to another, a high-quality handoff is mandatory (Rule 6).
4
+
5
+ ## Required Elements
6
+
7
+ Every handoff must include:
8
+
9
+ 1. **Goal restatement** (in the recipient's terms)
10
+ 2. **Context that matters** (only what the next party needs — no dump)
11
+ 3. **Decisions made + Why** (link to or excerpt from `decisions.md` when relevant)
12
+ 4. **Current state** (what exists, what works, what is known to be broken or incomplete)
13
+ 5. **Open questions / risks / assumptions**
14
+ 6. **Recommended next actions** (prioritized, with rationale)
15
+ 7. **How to verify success** (observable criteria)
16
+
17
+ ## Tone & Density
18
+
19
+ - Direct. No motivational language.
20
+ - High signal-to-noise. If a sentence does not change what the recipient should do or know, delete it.
21
+ - Use the same "Why this approach" standard as engineering work.
22
+
23
+ ## When to Produce a Handoff
24
+
25
+ - Explicit `/omakase handoff`
26
+ - Before switching to a different persona or sub-agent
27
+ - At natural phase boundaries (plan → implement, research → build, etc.)
28
+ - When the current agent is stopping and expects another to continue
29
+
30
+ ## Storage
31
+
32
+ Save substantial handoffs to `.omakaseagent/handoffs/` with a clear slug (date + topic). This builds institutional memory over time.
33
+
34
+ The recipient should be able to pick up the work with minimal back-and-forth.
35
+
36
+ ## Execution plans vs handoffs
37
+
38
+ | Artifact | When |
39
+ |----------|------|
40
+ | **Handoff** (`handoffs/`) | Session continuity, context between agents mid-task |
41
+ | **Execution plan** (`backlog/`) | Scoped implementation spec — steps, STOP, verify gates (`reference/execution-plan.md`) |
42
+
43
+ After a backlog audit, a short findings summary may live in `handoffs/`; durable work specs go to `backlog/`. Implementation always follows factory orchestration — an execution plan is not a substitute for critic + gate on Class 2+.
@@ -0,0 +1,146 @@
1
+ # Init — Bootstrap the Omakase Standard in a Project
2
+
3
+ **Preferred (deterministic):** run the CLI from the project root:
4
+
5
+ ```bash
6
+ npx omakase init
7
+ # or, in the omakase repo: node bin/omakase.js init
8
+ ```
9
+
10
+ This creates `.omakaseagent/`, updates `AGENTS.md`, installs the skill bundle, and registers **native agents** (`omakase-engineer`, `omakase-critic`, `omakase-archivist`, plus hidden/internal specialists) for OpenCode, Cursor, Claude Code, and Codex.
11
+
12
+ **Next:** `npx omakase learn` — bootstrap Level 4 factory for this repo (`factory.md`, scenarios, gates). See `reference/learn.md`.
13
+
14
+ **Skill fallback:** `/omakase init` in a harness chat follows the steps below when the CLI cannot be run — but the CLI path is strongly preferred so native agents are actually on disk.
15
+
16
+ `omakase init` creates the persistent memory layer and sets the project up to use the standard.
17
+
18
+ ## What It Creates
19
+
20
+ At minimum:
21
+ - `.omakaseagent/` directory at project root
22
+ - `.omakaseagent/taste.md` — running record of what good looks like for this project/team and what patterns are rejected
23
+ - `.omakaseagent/decisions.md` — key architectural and product decisions with date + "Why"
24
+ - `AGENTS.md` (created or enhanced) — lightweight project-level guidance including Omakase team model reference
25
+
26
+ Optionally (when the project justifies it):
27
+ - `.omakaseagent/context/` for additional high-signal reference material
28
+ - `.omakaseagent/handoffs/` for saved handoff documents
29
+
30
+ ## Behavior
31
+
32
+ 1. **Detect existing state.**
33
+ - If `.omakaseagent/` already exists, read the current taste and decisions.
34
+ - Ask the user whether they want to refresh / expand the existing memory or leave it alone.
35
+ - Never silently overwrite.
36
+
37
+ 2. **Explore the project (light but real).**
38
+ - Read README, AGENTS.md / CLAUDE.md / any existing standards docs, package.json or equivalent.
39
+ - Note the primary language/stack and any obvious architectural patterns.
40
+ - Form a hypothesis about what "senior work" looks like in this codebase.
41
+
42
+ 3. **Create the .omakaseagent/ directory and files (exact steps).**
43
+ - `mkdir -p .omakaseagent`
44
+ - Write `.omakaseagent/taste.md` using the high-signal starter below (customize the "What Good Looks Like Here" section based on your project exploration in step 2).
45
+ - Write `.omakaseagent/decisions.md` with at least one initial entry capturing the current context + the decision to adopt Omakase.
46
+ - If this repo already has excellent examples (see the ones in this project's own `.omakaseagent/`), use those as the gold standard for tone and density rather than the generic templates.
47
+
48
+ 4. **Explain what was created and why it matters.**
49
+ - Tell the user the exact paths.
50
+ - Show the first few lines of taste.md and decisions.md.
51
+ - Explain that per SKILL.md Setup, these files are now mandatory context for every significant task (with required "Memory consulted" citation).
52
+
53
+ 5. **Generate or enhance AGENTS.md**
54
+ - Create `AGENTS.md` in the project root (or enhance it if it already exists).
55
+ - Add a clear Omakase section that references the core principles and the team model (Engineering, Archives, Critics).
56
+ - Keep the addition lightweight — link to the installed Omakase skill for the full rules and rubric.
57
+ - Example section to add:
58
+ ```markdown
59
+ ## Omakase Standards
60
+ This project follows the Omakase standard (senior craftsmanship, zero AI slop, mandatory critique gate, ruthless simplicity).
61
+
62
+ Teams:
63
+ - Engineering (lead: The Engineer) — primary implementation and technical work
64
+ - Archives (lead: The Archivist) — memory, decisions, and knowledge management
65
+ - Critics (lead: The Critic) — cross-cutting quality enforcement
66
+
67
+ Use `/omakase engineer`, `/omakase critique`, etc. once the skill is installed.
68
+ See the installed Omakase skill for the full 12 Rules and Critique Rubric.
69
+ ```
70
+
71
+ 6. **Offer the obvious next step.**
72
+ - Usually: "Now you can say `/omakase engineer <task>` or just describe what you want built/reviewed/planned."
73
+ - If the project has no prior standards, this is often the moment to do a light first critique or shape a small piece of work so the taste memory gets its first real data point.
74
+
75
+ **Minimal Seed for First Task (used by SKILL.md when no .omakaseagent/ exists on first significant engineering work, and user elects to proceed without full /omakase init):**
76
+ Create only:
77
+ - `.omakaseagent/decisions.md` with exactly this starter (customize date/project name):
78
+ ```markdown
79
+ # Key Decisions
80
+
81
+ ## YYYY-MM-DD — Core Omakase Standards Adopted
82
+ **Context**: First significant engineering task on a project with no prior .omakaseagent/ memory.
83
+ **Decision**: Adopt core Omakase Rules + Critique Rubric immediately. Full taste.md and richer decisions will be captured on first real body of work or via explicit `/omakase init`.
84
+ **Why**: Prevents total context loss and generic output from the very first deliverable. Matches Rule 5 (Persistent Taste Memory) and the Setup requirement in SKILL.md. A minimal seed is better than none for Context Fidelity.
85
+ **Revisit if**: User runs full init or provides project-specific taste.
86
+ ```
87
+ - No taste.md yet (or a 1-line placeholder directing to run init for real preferences).
88
+ After creating, tell the user the exact path created and that the next significant output will cite this seed entry. Then proceed with the task under core + engineering (if signals) standards. This is the *only* allowed path for "proceed without init" on first heavy task.
89
+
90
+ **Gold standard reference:** The `.omakaseagent/taste.md` and `decisions.md` in this very repository (the Omakase source) are the current best examples of the expected density, directness, and "Why" quality. When in doubt during init, bias toward matching that tone rather than the generic templates below.
91
+
92
+ ## Starter taste.md (high-signal template)
93
+
94
+ ```markdown
95
+ # Omakase Taste Memory
96
+
97
+ ## What Good Looks Like Here
98
+ - [Project-specific observation 1]
99
+ - [Project-specific observation 2]
100
+ - Ruthless simplicity is valued more than clever abstractions
101
+ - Code that a strong mid-level engineer can understand and modify six months later
102
+
103
+ ## What We Reject
104
+ - Unnecessary comments that restate the obvious
105
+ - Defensive code around trusted paths
106
+ - `any` casts used as escape hatches
107
+ - Files that grow past ~1000 lines without clear justification
108
+ - "For future flexibility" abstractions that add cost today
109
+
110
+ ## Current Standards
111
+ - Every non-trivial engineering change includes a short "Why this approach" section
112
+ - Critique gate is mandatory before significant work is considered done
113
+ - Persistent decisions are recorded in decisions.md
114
+ ```
115
+
116
+ ## Starter decisions.md (high-signal template)
117
+
118
+ ```markdown
119
+ # Key Decisions
120
+
121
+ ## YYYY-MM-DD — Decision Title
122
+ **Context**: One sentence on the situation.
123
+ **Decision**: What we chose.
124
+ **Why**: The senior reasoning (trade-offs, constraints, taste).
125
+ **Revisit if**: Conditions under which we would reconsider.
126
+
127
+ ---
128
+
129
+ (Older decisions go below. Keep the most recent ones near the top.)
130
+ ```
131
+
132
+ ## Success Criteria for This Command
133
+
134
+ After running `omakase init`, a new or existing project should have a clean, useful `.omakaseagent/` that the skill will actually consult on future work. The files should feel like they were written by someone with taste, not by a generic template engine.
135
+
136
+ If the project already has strong standards elsewhere, `init` should acknowledge them and focus on creating the minimal bridge into the Omakase memory layer rather than fighting existing conventions.
137
+
138
+ ## Minimum Seed Content for First-Task / Proactive Seeding (when init is not explicit)
139
+
140
+ When the router creates a seed on the first significant task (see SKILL.md Routing Logic):
141
+ - taste.md must contain **at least three concrete, observable, task-derived entries** (not generic aspirations) in "What Good Looks Like Here" and "What We Reject", pulled directly from the files, request, or smells under discussion in the current turn.
142
+ - decisions.md must contain the adoption entry plus the context of the triggering task.
143
+ - After writing, the persona must re-read the created files and perform a quick internal rubric pass, recording the result in the output or decisions.md.
144
+ - The seed must be high-signal enough that a future agent loading it 10 minutes later can make a better decision on the *same* task than it could with no memory.
145
+
146
+ Generic one-line placeholders ("Core standards adopted") are a failure of Context Fidelity.
@@ -0,0 +1,66 @@
1
+ # omakase learn — repo factory bootstrap
2
+
3
+ **Owner:** The Archivist (method). **CLI:** `bin/omakase.js learn` (deterministic discover + write).
4
+
5
+ ## Purpose
6
+
7
+ Install a **Level 4 dark factory** for *this* repo — not generic templates. `learn` discovers stack and scripts, then writes:
8
+
9
+ - `.omakaseagent/factory.md` — repo playbook (checks, risk classes, workflow)
10
+ - `.omakaseagent/scenarios/` — up to 5 starter scenarios (approve before Class 2+ work)
11
+ - `.omakaseagent/gates/` + `handoffs/` + `backlog/` — empty with README
12
+ - Taste/decisions/AGENTS.md updates when missing factory markers
13
+
14
+ Global bar: `reference/dark-factory.md`. This command installs **instrumentation**.
15
+
16
+ ## CLI
17
+
18
+ ```bash
19
+ omakase learn # factory + memory markers
20
+ omakase learn --dry-run # list paths only
21
+ omakase learn --memory-only # taste/decisions only, no scenarios
22
+ omakase learn --factory-only # factory.md + scenarios, skip taste merge
23
+ omakase learn --project-agents-only # project-agents/ + native emit only
24
+ ```
25
+
26
+ **Precondition:** `.omakaseagent/` exists (`omakase init` first).
27
+
28
+ ## Agent fallback (no CLI)
29
+
30
+ 1. Confirm `.omakaseagent/` exists; else tell user to run `omakase init`.
31
+ 2. Read README, `package.json`, CI workflows, main source dirs.
32
+ 3. Propose same artifacts as CLI would write; show diffs.
33
+ 4. **Wait for confirm** before writing.
34
+ 5. Log decision in `decisions.md`.
35
+
36
+ ## After learn
37
+
38
+ Agents follow **`reference/task-intake.md`** (single tasks) and **`reference/factory-orchestration.md`** (Class 2+ team loop: Engineer → critic → gate → archivist when needed). Backlog audit and execution plans: **`reference/backlog-audit.md`**, **`reference/execution-plan.md`**.
39
+
40
+ - Class **0–1:** brief inline; mechanical checks; light checkpoint OK.
41
+ - Class **2+:** brief + scenarios (agent drafts); one confirm; gate file at end.
42
+ - Re-run `learn` when stack or CI changes (`--dry-run` first).
43
+
44
+ ## Gate report shape (minimum headings)
45
+
46
+ ```markdown
47
+ # Gate: <task>
48
+
49
+ ## Seed
50
+ ## Scenarios
51
+ ## Mechanical evidence
52
+ ## Critic
53
+ ## Memory consulted
54
+ ## Risks / human decision
55
+ ```
56
+
57
+ ## Project agents (Phase G)
58
+
59
+ `learn` proposes up to **3** namespaced agents under `.omakaseagent/project-agents/` from repo signals (`skill/`, `bin/`, domain dirs). On learn, stubs emit to installed harness `agents/` dirs (e.g. `.cursor/agents/omakase-<pkg>-skill.md`).
60
+
61
+ - **Canonical source:** `.omakaseagent/project-agents/*.md` — edit here, re-run learn
62
+ - **Does not replace** core leads (`@omakase-engineer`, etc.)
63
+ - **Gate:** skill-judge report on new/changed bodies (report-only; human decides)
64
+ - **Refresh:** `omakase learn --project-agents-only` after editing project agent files
65
+
66
+ See `reference/team-architecture.md` for delegation patterns.
@@ -0,0 +1,45 @@
1
+ # Native Omakase Agents
2
+
3
+ Portable reference (shipped with the skill). Full doc: `docs/NATIVE-SUBAGENTS.md` in the repo.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx omakase init
9
+ ```
10
+
11
+ ## User-facing leads
12
+
13
+ | Agent id | Use for |
14
+ |----------|---------|
15
+ | `omakase-engineer` | Implementation, architecture, refactoring |
16
+ | `omakase-critic` | Quality enforcement, critique |
17
+ | `omakase-archivist` | Memory, decisions, synthesis; git recap & chat preferences (`reference/archivist-workflows.md`) |
18
+
19
+ ## Invoke
20
+
21
+ | Harness | Command |
22
+ |---------|---------|
23
+ | OpenCode | `opencode run --agent omakase-engineer "…"` |
24
+ | Grok Build | `grok --agent omakase-engineer "…"` |
25
+ | Claude | `claude -p --agent omakase-engineer "…"` |
26
+ | Cursor | `@omakase-engineer` |
27
+ | Codex | `codex exec -c 'agent="omakase_engineer"' "…"` |
28
+
29
+ ## Delegation (leads only)
30
+
31
+ Task → `subagent_type` from the lead’s delegation list (e.g. `omakase-senior-reviewer`, `omakase-skill-judge`). See each lead agent file.
32
+
33
+ Specialists are **INTERNAL ONLY** — not user-facing.
34
+
35
+ ## Skill router (fallback)
36
+
37
+ This install includes skill **`omakase-router`** at `.agents/skills/omakase/SKILL.md` (folder name `omakase`).
38
+
39
+ Use for: `/omakase-router plan`, taste, handoff — **not** for `@omakase-engineer`.
40
+
41
+ ## Verify
42
+
43
+ ```bash
44
+ npm run verify:native-agents
45
+ ```
@@ -0,0 +1,79 @@
1
+ # Plan — Senior Planning with Domain Awareness
2
+
3
+ `plan` is a core command. It produces plans that a strong senior engineer or team would actually want to follow.
4
+
5
+ Like `critique`, it is a smart traffic-cop: it detects the nature of the request, merges the appropriate standards, and then delivers a high-signal plan with explicit reasoning.
6
+
7
+ ## Core Principle
8
+
9
+ A mediocre plan is worse than no plan. Every Omakase plan must itself pass the Critique Rubric (core + relevant merged extensions) before being delivered.
10
+
11
+ ## Detection & Merge Logic
12
+
13
+ **Strong signals to merge Engineering extensions** (from `reference/engineering.md`):
14
+ - Implementation, architecture, refactoring, performance, system design, "how should we build X"
15
+ - Code, modules, boundaries, tech choices, team process around code
16
+ - Any request that will result in significant code or technical decisions
17
+ - "Sketch the core data model", "API surface", "backend service" or similar technical depth
18
+
19
+ **Non-Engineering Signals (core standards only — do not merge engineering extensions)**:
20
+ - Pure product strategy, GTM, org design, high-level roadmap, ICP/positioning/pricing work with explicit or implied "high-level" or "no implementation details" framing.
21
+ - Writing, narrative, or process-focused requests: "develop the messaging", "write the strategy brief for execs", "design a better operating rhythm for feature requests", "critique this customer email sequence for voice".
22
+ - Requests that actively disclaim technical depth.
23
+
24
+ **Mixed / Ambiguous (common)**:
25
+ - When the request combines product/strategy with any meaningful technical architecture, data model, or implementation implications → merge engineering extensions for the relevant portions only.
26
+ - When in doubt (e.g., "plan improvements to the developer platform" or "add X feature" without clear qualifiers), **ask once** rather than guessing: "This plan request blends product strategy with potential technical elements. Should I produce a plan under core Omakase standards only, or merge in engineering standards (ruthless simplicity for architecture, boundary hygiene, etc.) for the technical sections?"
27
+
28
+ When in doubt, ask once rather than guessing the register. The plan output must always include an explicit Domain Detection & Merge note near the top (see required elements below).
29
+
30
+ ## What a Senior Omakase Plan Must Contain
31
+
32
+ A good plan is not a list of tasks. It is a clear, reasoned artifact that reduces ambiguity and surfaces the important thinking.
33
+
34
+ Required elements:
35
+
36
+ 1. **Domain Detection & Merge Declaration** (mandatory, placed early — right after Goal Restatement or as a top callout box): Explicitly state the detected domain and merge decision with reasoning. Examples:
37
+ - "Domain: Pure product strategy / GTM. Standards: Core Omakase only (no engineering extensions merged). Reason: Request was high-level positioning and launch phases with no technical architecture or implementation content."
38
+ - "Domain: Mixed (product positioning + technical implementation sketch). Standards: Core + Engineering extensions (applied to data model and API sections for code judo and contract clarity). Reason: Explicit request for both strategy and core data model/API surface."
39
+ This fulfills the requirement that every plan (and its subsequent critique) transparently documents whether engineering standards were correctly avoided or applied.
40
+ 2. **Problem / Goal Restatement** (sharper and more precise than the original request)
41
+ 3. **Key Constraints & Non-Goals** (what we are deliberately *not* doing and why)
42
+ 4. **Recommended Approach** with explicit "Why this approach" section (trade-offs, why this shape over obvious alternatives)
43
+ 5. **Options Considered** (at least the main 2-3 alternatives and why they were rejected or deferred)
44
+ 6. **Risks, Assumptions & Open Questions**
45
+ 7. **Proposed Phasing / Order of Work** (with justification — not just a flat list)
46
+ 8. **Success Criteria** (observable, testable outcomes)
47
+ 9. **Handoff Notes** (what the implementer needs to know that isn't in the plan itself)
48
+
49
+ ## Quality Bar
50
+
51
+ - Ruthless simplicity in the *plan itself*. Bloated plans are a smell.
52
+ - The plan must pass the Critique Rubric (core only for pure product/strategy/writing work; core + engineering extensions when the plan contains meaningful technical decisions or architecture).
53
+ - Every non-obvious recommendation must have "Why this approach" reasoning.
54
+ - The Domain Detection & Merge Declaration must itself be accurate and defensible (this is part of the self-critique gate).
55
+ - The plan should feel like it was written by someone who has actually shipped similar work and knows where things usually go wrong.
56
+
57
+ ## Tone
58
+
59
+ Calm, senior, decisive but not arrogant. You are comfortable saying "this is the right shape" while still showing the thinking that led there. You surface uncomfortable trade-offs early.
60
+
61
+ ## Self-Application
62
+
63
+ The output of `plan` is frequently handed to `engineer` or other agents. Poor plans create expensive downstream problems. Hold the plan to the same standard you would hold the final implementation.
64
+
65
+ ## Relationship to Handoff
66
+
67
+ When the plan is substantial, consider also producing a crisp handoff document (see `reference/handoff.md`) for the transition from planning to execution.
68
+
69
+ ## Strategic plan vs execution plan
70
+
71
+ | | Strategic (`reference/plan.md`) | Execution (`.omakaseagent/backlog/`) |
72
+ |---|--------------------------------|--------------------------------------|
73
+ | **Purpose** | Why, options, trade-offs, phasing | How — steps, excerpts, verify gates |
74
+ | **Trigger** | `/omakase plan`, shaping direction | Backlog audit selection, "fix X" spec |
75
+ | **Audience** | Human + Engineer deciding shape | `omakase-implementation-lead` with zero session context |
76
+ | **Template** | Required elements in this file | `reference/execution-plan.md` |
77
+ | **Close** | Handoff to Engineer | Factory loop: critic + gate |
78
+
79
+ A strategic plan may recommend backlog items; Engineer writes execution plans when it's time to spec concrete file-level work (`reference/backlog-audit.md`).