takomi 2.1.38 → 2.1.40

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 (90) hide show
  1. package/.agents/plugins/marketplace.json +32 -0
  2. package/.pi/agents/architect.md +4 -2
  3. package/.pi/agents/designer.md +2 -0
  4. package/.pi/agents/orchestrator.md +9 -9
  5. package/.pi/prompts/design-prompt.md +3 -1
  6. package/.pi/prompts/genesis-prompt.md +2 -0
  7. package/.pi/prompts/takomi-prompt.md +10 -9
  8. package/README.md +218 -409
  9. package/assets/.agent/skills/takomi-flow/SKILL.md +244 -0
  10. package/assets/.agent/workflows/README.md +3 -3
  11. package/assets/.agent/workflows/mode-architect.md +7 -5
  12. package/assets/.agent/workflows/vibe-design.md +3 -1
  13. package/assets/.agent/workflows/vibe-genesis.md +2 -0
  14. package/assets/Takomi-Agents/custom_modes.yaml +1253 -1252
  15. package/assets/Takomi-Agents/vibe-architect.yaml +11 -6
  16. package/assets/Takomi-Agents/vibe-orchestrator.yaml +2 -2
  17. package/docs/features/TakomiFlow_Portable_Plugin.md +82 -0
  18. package/docs/takomi-flow-onboarding.md +86 -0
  19. package/docs/takomi-flow-public-distribution.md +94 -0
  20. package/package.json +19 -2
  21. package/plugins/takomi-codex/.codex-plugin/plugin.json +37 -0
  22. package/plugins/takomi-codex/assets/composer-icon.png +0 -0
  23. package/plugins/takomi-codex/assets/logo-dark.png +0 -0
  24. package/plugins/takomi-codex/assets/logo.png +0 -0
  25. package/plugins/takomi-codex/scripts/takomi-board.ps1 +197 -0
  26. package/plugins/takomi-codex/scripts/takomi-detect.ps1 +125 -0
  27. package/plugins/takomi-codex/scripts/takomi-doctor.ps1 +88 -0
  28. package/plugins/takomi-codex/scripts/takomi-harness.ps1 +52 -0
  29. package/plugins/takomi-codex/scripts/takomi-pi-dispatch.ps1 +93 -0
  30. package/plugins/takomi-codex/scripts/takomi-policy.ps1 +108 -0
  31. package/plugins/takomi-codex/skills/takomi-codex/SKILL.md +194 -0
  32. package/plugins/takomi-flow/.codex-plugin/plugin.json +36 -0
  33. package/plugins/takomi-flow/.mcp.json +11 -0
  34. package/plugins/takomi-flow/assets/capabilities.json +203 -0
  35. package/plugins/takomi-flow/assets/collection.schema.json +29 -0
  36. package/plugins/takomi-flow/assets/composer-icon.png +0 -0
  37. package/plugins/takomi-flow/assets/examples.json +94 -0
  38. package/plugins/takomi-flow/assets/logo-dark.png +0 -0
  39. package/plugins/takomi-flow/assets/logo.png +0 -0
  40. package/plugins/takomi-flow/assets/request.schema.json +91 -0
  41. package/plugins/takomi-flow/assets/result.schema.json +46 -0
  42. package/plugins/takomi-flow/assets/templates/image-request.json +17 -0
  43. package/plugins/takomi-flow/assets/templates/video-request.json +19 -0
  44. package/plugins/takomi-flow/package.json +38 -0
  45. package/plugins/takomi-flow/pnpm-lock.yaml +813 -0
  46. package/plugins/takomi-flow/references/flow-provider-contract.md +349 -0
  47. package/plugins/takomi-flow/scripts/lib/agent-plan.mjs +140 -0
  48. package/plugins/takomi-flow/scripts/lib/api.mjs +113 -0
  49. package/plugins/takomi-flow/scripts/lib/args.mjs +66 -0
  50. package/plugins/takomi-flow/scripts/lib/audit.mjs +65 -0
  51. package/plugins/takomi-flow/scripts/lib/browser.mjs +78 -0
  52. package/plugins/takomi-flow/scripts/lib/capabilities.mjs +11 -0
  53. package/plugins/takomi-flow/scripts/lib/collect.mjs +53 -0
  54. package/plugins/takomi-flow/scripts/lib/commands.mjs +192 -0
  55. package/plugins/takomi-flow/scripts/lib/doctor.mjs +77 -0
  56. package/plugins/takomi-flow/scripts/lib/examples.mjs +17 -0
  57. package/plugins/takomi-flow/scripts/lib/flow-media.mjs +39 -0
  58. package/plugins/takomi-flow/scripts/lib/flow-outcome.mjs +115 -0
  59. package/plugins/takomi-flow/scripts/lib/flow-project-session.mjs +153 -0
  60. package/plugins/takomi-flow/scripts/lib/flow-ui.mjs +204 -0
  61. package/plugins/takomi-flow/scripts/lib/generation.mjs +190 -0
  62. package/plugins/takomi-flow/scripts/lib/inspect.mjs +81 -0
  63. package/plugins/takomi-flow/scripts/lib/mcp-prompts.mjs +39 -0
  64. package/plugins/takomi-flow/scripts/lib/mcp-resources.mjs +16 -0
  65. package/plugins/takomi-flow/scripts/lib/mcp-tools.mjs +165 -0
  66. package/plugins/takomi-flow/scripts/lib/media.mjs +78 -0
  67. package/plugins/takomi-flow/scripts/lib/observe.mjs +54 -0
  68. package/plugins/takomi-flow/scripts/lib/paths.mjs +37 -0
  69. package/plugins/takomi-flow/scripts/lib/playwright-loader.mjs +23 -0
  70. package/plugins/takomi-flow/scripts/lib/prompts.mjs +72 -0
  71. package/plugins/takomi-flow/scripts/lib/report.mjs +141 -0
  72. package/plugins/takomi-flow/scripts/lib/request-validator.mjs +73 -0
  73. package/plugins/takomi-flow/scripts/lib/request.mjs +66 -0
  74. package/plugins/takomi-flow/scripts/lib/resource-files.mjs +69 -0
  75. package/plugins/takomi-flow/scripts/lib/result.mjs +31 -0
  76. package/plugins/takomi-flow/scripts/lib/review.mjs +44 -0
  77. package/plugins/takomi-flow/scripts/lib/selftest.mjs +153 -0
  78. package/plugins/takomi-flow/scripts/lib/settings-plan.mjs +44 -0
  79. package/plugins/takomi-flow/scripts/lib/templates.mjs +37 -0
  80. package/plugins/takomi-flow/scripts/lib/trusted-chrome.mjs +67 -0
  81. package/plugins/takomi-flow/scripts/lib/workflow.mjs +56 -0
  82. package/plugins/takomi-flow/scripts/mcp-server.mjs +18 -0
  83. package/plugins/takomi-flow/scripts/mcp-smoke.mjs +144 -0
  84. package/plugins/takomi-flow/scripts/takomi-flow.mjs +17 -0
  85. package/plugins/takomi-flow/skills/takomi-flow/SKILL.md +244 -0
  86. package/plugins/takomi-flow/skills/takomi-flow/agents/openai.yaml +7 -0
  87. package/scripts/install-takomi-flow.ps1 +85 -0
  88. package/src/pi-takomi-core/orchestration.ts +1 -1
  89. package/src/pi-takomi-core/workflows.ts +4 -4
  90. package/src/skills-catalog.js +11 -7
@@ -0,0 +1,244 @@
1
+ ---
2
+ name: takomi-flow
3
+ description: "Use when Codex needs to operate Google Flow as a reusable agent tool through safe browser automation: bootstrap/login a persistent Flow profile, smoke-check access without spending credits, prepare image or video generation request files, run guarded Flow generations, download assets, inspect results, or integrate Flow assets into a video pipeline. Trigger for TakomiFlow, Flow browser provider, use Google Flow credits, Flow automation, generate with Flow, or agent-first Flow workflows."
4
+ ---
5
+
6
+ # TakomiFlow
7
+
8
+ TakomiFlow is an agent-first workflow for using Google Flow through visible browser automation. Treat it as a local tool layer for Codex agents, not as an unofficial API.
9
+
10
+ ## Runtime Choice
11
+
12
+ Use this skill as the single TakomiFlow entrypoint.
13
+
14
+ 1. If the active harness is Codex and the user approves plugin installation or repair, install or reuse the global Codex plugin and then prefer its MCP tools.
15
+ 2. If the plugin already exists, verify it with `doctor` and use MCP tools when the session exposes them.
16
+ 3. If MCP is unavailable, use the TakomiFlow CLI directly.
17
+ 4. If the harness is not Codex or does not support plugins, keep using this skill as the workflow guide and call the CLI when shell access exists.
18
+ 5. If there is no shell access, provide the exact commands as a handoff checklist and stop.
19
+
20
+ Never install, update, or write to global plugin locations without telling the user what path will be changed and getting approval.
21
+
22
+ ## Install Or Repair The Plugin
23
+
24
+ Only follow this path when the user asks to install/repair TakomiFlow or agrees after you detect that the Codex plugin is missing.
25
+
26
+ 1. Check for an existing user plugin:
27
+
28
+ ```powershell
29
+ Test-Path "$HOME\plugins\takomi-flow"
30
+ Test-Path "$HOME\.agents\plugins\marketplace.json"
31
+ ```
32
+
33
+ 2. If the plugin exists, inspect it:
34
+
35
+ ```powershell
36
+ node "$HOME\plugins\takomi-flow\scripts\takomi-flow.mjs" doctor
37
+ ```
38
+
39
+ If this works, do not reinstall unless the user asked to update or repair.
40
+
41
+ 3. If missing, locate or get the VibeCode Protocol Suite:
42
+
43
+ ```powershell
44
+ git clone https://github.com/JStaRFilms/VibeCode-Protocol-Suite "$HOME\Source\VibeCode-Protocol-Suite"
45
+ ```
46
+
47
+ 4. Install the plugin globally for the current user:
48
+
49
+ ```powershell
50
+ cd "$HOME\Source\VibeCode-Protocol-Suite"
51
+ .\scripts\install-takomi-flow.ps1 -InstallDependencies
52
+ ```
53
+
54
+ This copies/registers the plugin at:
55
+
56
+ ```text
57
+ ~/plugins/takomi-flow
58
+ ~/.agents/plugins/marketplace.json
59
+ ```
60
+
61
+ 5. Verify:
62
+
63
+ ```powershell
64
+ node "$HOME\plugins\takomi-flow\scripts\takomi-flow.mjs" doctor
65
+ ```
66
+
67
+ If Git is unavailable, ask the user to download the VibeCode Protocol Suite ZIP and run the installer from the extracted repo. MCP is optional; the CLI works without MCP.
68
+
69
+ ## Agent Tool Surface
70
+
71
+ Prefer MCP tools when they are available in the active Codex session. Use the CLI commands as the stable fallback.
72
+ MCP tools:
73
+
74
+ - `takomi_flow_capabilities`
75
+ - `takomi_flow_doctor`
76
+ - `takomi_flow_audit`
77
+ - `takomi_flow_examples`
78
+ - `takomi_flow_template`
79
+ - `takomi_flow_prepare`
80
+ - `takomi_flow_workflow`
81
+ - `takomi_flow_validate`
82
+ - `takomi_flow_observe`
83
+ - `takomi_flow_generate`
84
+ - `takomi_flow_selftest`
85
+ - `takomi_flow_inspect`
86
+ - `takomi_flow_latest`
87
+ - `takomi_flow_runs`
88
+ - `takomi_flow_assets`
89
+ - `takomi_flow_review`
90
+ - `takomi_flow_collect`
91
+ - `takomi_flow_report`
92
+
93
+ MCP resources:
94
+
95
+ - `takomi-flow://contract`
96
+ - `takomi-flow://capabilities`
97
+ - `takomi-flow://examples`
98
+ - `takomi-flow://schemas/request`
99
+ - `takomi-flow://schemas/result`
100
+ - `takomi-flow://schemas/collection`
101
+ - `takomi-flow://templates/video`
102
+ - `takomi-flow://templates/image`
103
+
104
+ MCP prompts:
105
+
106
+ - `takomi_flow_video_workflow`
107
+ - `takomi_flow_image_workflow`
108
+ - `takomi_flow_review_workflow`
109
+ - `takomi_flow_collect_workflow`
110
+
111
+ Browser-opening MCP tools require `allowBrowser=true`. Generation still requires request `allowSpend=true` or `TAKOMI_FLOW_ALLOW_SPEND=true` before it can submit.
112
+
113
+ ## Core Rules
114
+
115
+ - Use public Flow UI automation only.
116
+ - Do not bypass captchas, login challenges, quotas, safety checks, rate limits, or hidden endpoints.
117
+ - Prefer headed mode first so the user can handle Google login, consent, quota, and safety prompts.
118
+ - Browser commands should start from trusted Chrome/CDP by default; use Playwright-launched browsers only as an explicit fallback.
119
+ - Never submit a paid generation unless the user explicitly requested it and `allowSpend` or `TAKOMI_FLOW_ALLOW_SPEND=true` is set.
120
+ - Reuse the current Flow project or pass `projectUrl`; create new projects only when the user asks or `allowNewProject` is set.
121
+ - Treat Flow as one active generation at a time: wait for the current approved generation to finish and download it before submitting another paid generation.
122
+ - A gray preview placeholder with scheduled, queue, or ready-shortly copy means the generation is in progress, not failed.
123
+ - If stale scheduled or failure text remains after media is ready, probe/open the generated media and use the top toolbar Download control instead of waiting for the full timeout.
124
+ - Download generated media by opening the media and clicking the top toolbar `Download` icon/button.
125
+ - Keep credentials out of prompts, logs, metadata, and project files.
126
+ - Store run artifacts in a predictable folder and report the exact result paths.
127
+
128
+ ## Commands
129
+
130
+ From the plugin root:
131
+
132
+ ```bash
133
+ node scripts/takomi-flow.mjs bootstrap
134
+ node scripts/takomi-flow.mjs bootstrap --browser-channel chrome
135
+ node scripts/takomi-flow.mjs trusted-chrome
136
+ node scripts/takomi-flow.mjs doctor
137
+ node scripts/takomi-flow.mjs audit
138
+ node scripts/takomi-flow.mjs selftest
139
+ node scripts/takomi-flow.mjs capabilities
140
+ node scripts/takomi-flow.mjs examples
141
+ node scripts/takomi-flow.mjs observe
142
+ node scripts/takomi-flow.mjs smoke
143
+ node scripts/takomi-flow.mjs template --kind video
144
+ node scripts/takomi-flow.mjs prepare --kind video --prompt "cinematic AI lab scene" --variations 2
145
+ node scripts/takomi-flow.mjs workflow --kind video --prompt "cinematic AI lab scene" --variations 2
146
+ node scripts/takomi-flow.mjs workflow --kind video --prompt "cinematic AI lab scene" --project-url "<Flow project URL>" --reuse-current-project
147
+ node scripts/takomi-flow.mjs validate --request output/takomi-flow/requests/<file>.json
148
+ node scripts/takomi-flow.mjs generate --request output/takomi-flow/requests/<file>.json
149
+ node scripts/takomi-flow.mjs inspect --run output/takomi-flow/<runId>/run.json
150
+ node scripts/takomi-flow.mjs latest --output-dir output/takomi-flow
151
+ node scripts/takomi-flow.mjs runs --output-dir output/takomi-flow --limit 10
152
+ node scripts/takomi-flow.mjs assets --run output/takomi-flow/<runId>/run.json --frames 4
153
+ node scripts/takomi-flow.mjs review --run output/takomi-flow/<runId>/run.json --frames 4
154
+ node scripts/takomi-flow.mjs collect --run output/takomi-flow/<runId>/run.json --target-dir output/pipeline-assets --frames 4 --include-frames
155
+ node scripts/takomi-flow.mjs report --run output/takomi-flow/<runId>/run.json
156
+ node scripts/takomi-flow.mjs report --output-dir output/takomi-flow --limit 10
157
+ ```
158
+
159
+ Important defaults:
160
+
161
+ - Profile dir: `%USERPROFILE%\.takomi-flow\browser-profile`
162
+ - Output dir: `%USERPROFILE%\.takomi-flow\runs`
163
+ - Browser channel: real Chrome by default on Windows/macOS when available
164
+ - Headed mode: enabled by default
165
+ - Spend guard: disabled by default
166
+
167
+ ## Workflow
168
+
169
+ 1. First-run/runtime detection:
170
+ - Run `doctor` first when the installation state is unknown.
171
+ - Check whether `http://127.0.0.1:9222/json/version` is already reachable.
172
+ - If the CDP endpoint is reachable, reuse it with `--cdp-url http://127.0.0.1:9222`.
173
+ - If the CDP endpoint is not reachable, launch `trusted-chrome`.
174
+ - If MCP tools are unavailable, use CLI commands from this plugin root.
175
+ - If the harness has no MCP support, TakomiFlow still works through shell commands.
176
+ 2. Bootstrap login:
177
+ - Prefer `trusted-chrome` for Google login because Google may reject Playwright-launched browsers.
178
+ - Log into Google Flow manually in the opened trusted Chrome window.
179
+ - Keep that Chrome window open and use `--cdp-url http://127.0.0.1:9222` for observe/generate.
180
+ - A signed-in dashboard should show project cards and a `New project` button during `observe`.
181
+ - The project editor prompt textbox currently contains `What do you want to create?`.
182
+ - Leave Chrome on the desired project editor or pass `--project-url`; TakomiFlow does not click `New project` unless `--allow-new-project` is set.
183
+ - Rename a project by editing the top-left header title/date-time input.
184
+ - If the chat breaks, keep the same project and let `freshChatOnFailure` try one fresh chat before manual recovery.
185
+ - Prefer video durations `4`, `6`, `8`, or `10` seconds to avoid a Flow follow-up question.
186
+ - Use `bootstrap` only when Google accepts the launched browser.
187
+ - Ask the user to log into Google Flow manually in the opened browser.
188
+ - Do not automate credential entry.
189
+ 3. Doctor check:
190
+ - Run `doctor` before browser work when reliability matters.
191
+ - Report missing Playwright, FFmpeg, profile, or output path issues.
192
+ 4. Readiness audit:
193
+ - Run `audit` when an agent needs safe next actions and gated actions in one payload.
194
+ - Treat missing profile as a login/bootstrap gate, not a script failure.
195
+ 5. Self-test:
196
+ - Run `selftest` after install, after edits, or before trusting TakomiFlow in a new project.
197
+ - Confirm no-spend request preparation, validation, spend guard behavior, and media extraction work.
198
+ 6. Capability discovery:
199
+ - Run `capabilities` when an agent needs supported kinds, modes, request fields, variations, aspect ratios, outputs, and safety rules.
200
+ - Run `examples` or read `takomi-flow://examples` when an agent needs known-good request patterns.
201
+ 7. Observe Flow UI:
202
+ - Run `observe` after bootstrap to capture current Flow controls, text inputs, buttons, screenshots, and manual-action state without submitting generation.
203
+ - Use observation output before changing selectors.
204
+ 8. Smoke check:
205
+ - Run `smoke` to open Flow and save status metadata/screenshots.
206
+ - Confirm no generation was submitted.
207
+ 9. Prepare request:
208
+ - Use `template --kind video` or `template --kind image` when an agent needs a known-good request skeleton.
209
+ - Use `takomi-flow://schemas/request` when an agent needs a machine-readable request shape.
210
+ - Use `takomi-flow://schemas/result` and `takomi-flow://schemas/collection` to consume run metadata and collected outputs.
211
+ - Use `prepare` to create a JSON request for image or video generation.
212
+ - Use `workflow` when an agent should prepare, validate, and optionally submit from one call.
213
+ - Include prompt, variations, aspect ratio, duration, model/mode hints, and output folder.
214
+ - Read `settingsPlan` to see which requested Flow options are automatic versus selector-dependent.
215
+ 10. Validate request:
216
+ - Run `validate --request <file>` before `generate`.
217
+ - Fix failed source assets, invalid kinds, or malformed request JSON before opening Flow.
218
+ - Treat spend-guard warnings as expected unless the user explicitly approved spending credits.
219
+ 11. Generate:
220
+ - Run `generate` only when spend is explicitly allowed.
221
+ - Expect Flow to ask for credit approval; approve only when `allowSpend=true` or the user explicitly approved spending.
222
+ - Stop for manual intervention if the UI asks for login, captcha, quota, safety, or consent.
223
+ - Preserve `settingsPlan` in the run metadata so downstream agents can see requested options.
224
+ 12. Inspect:
225
+ - Read `run.json`, `status.json`, screenshots, and downloaded assets.
226
+ - Record and report `projectUrl` for every created Flow project so future runs can reuse or inspect it.
227
+ - Prefer `runs`, `inspect`, or `latest` for agent-readable summaries.
228
+ - Use `assets --frames 4` to catalog downloaded images/videos and extract review frames.
229
+ - Use `review --frames 4` to combine inspect, asset cataloging, frame extraction, and Markdown report creation.
230
+ - Use `collect` to copy reviewed outputs into a downstream project folder with a manifest.
231
+ - Use `report` to write a Markdown handoff for a single run or recent history.
232
+ - Report successes, errors, and manual next steps.
233
+
234
+ ## Request Shape
235
+
236
+ Read `references/flow-provider-contract.md` before modifying scripts or integrating TakomiFlow into another project.
237
+
238
+ ## Integration Guidance
239
+
240
+ - For a project pipeline, call TakomiFlow as an external provider and pass prompt/settings by JSON file.
241
+ - Keep Flow-specific selectors isolated in `scripts/lib/flow-ui.mjs`.
242
+ - Keep generation follow-up polling, credit approval, and completion/failure detection in `scripts/lib/flow-outcome.mjs`.
243
+ - Keep request/result parsing stable so other agents can use it without reading script internals.
244
+ - If a file approaches 200 lines, split it before adding more responsibilities.
@@ -128,7 +128,7 @@ Understanding the difference:
128
128
  | Workflow | Purpose | When to Use | Generates |
129
129
  |----------|---------|-------------|-----------|
130
130
  | `/vibe-genesis` | **V3 Architect** — Plans with templates | Starting new project | PRD, Issues (1 per FR), Guidelines template |
131
- | `/vibe-design` | The Designer — Creates visual system | After Genesis, before Build | `docs/design/design-system.html`, `docs/mockups/*.html` |
131
+ | `/vibe-design` | The Designer — Creates UI/UX visual system and mockups | After Genesis, before Build | `docs/design/design-system.html`, `docs/mockups/*.html` |
132
132
  | `/vibe-build` | **V3 Builder** — With verification gates | After Genesis (and optionally Design) | Project structure, MUS features with verification |
133
133
  | `/vibe-continueBuild` | **Resume work** — Post-build sessions | New chat after initial build | Continues from incomplete FRs |
134
134
  | `/vibe-finalize` | **Final handoff** — Verification + report | When MUS complete | `docs/Builder_Handoff_Report.md` |
@@ -142,7 +142,7 @@ Inspired by KiloCode's mode system, these workflows provide specialized capabili
142
142
  | Workflow | Purpose | When to Use |
143
143
  |----------|---------|-------------|
144
144
  | `/mode-orchestrator` | **Coordinate complex projects** — Delegate to sub-agents | Multi-step projects requiring coordination across domains |
145
- | `/mode-architect` | **Plan and design** — Create technical specifications | Before implementation, designing systems, breaking down complex problems |
145
+ | `/mode-architect` | **Plan technical architecture** — Create technical specifications | Before implementation, defining systems, breaking down complex problems |
146
146
  | `/mode-code` | **Write and refactor code** — Full implementation access | Implementing features, fixing bugs, creating files |
147
147
  | `/mode-debug` | **Diagnose issues** — Systematic problem solving | Troubleshooting errors, investigating bugs, analyzing failures |
148
148
  | `/mode-ask` | **Explain and analyze** — Answer questions without changes | Understanding concepts, analyzing code, getting recommendations |
@@ -481,7 +481,7 @@ These skills are auto-loaded based on context. Location: `.agent/skills/`
481
481
  | I want to... | Use this |
482
482
  |--------------|----------|
483
483
  | **Start a new project** | `/vibe-genesis` |
484
- | **Design the UI** | `/vibe-design` |
484
+ | **Design the UI/UX** | `/vibe-design` |
485
485
  | **Build the foundation** | `/vibe-build` |
486
486
  | **Resume work (new session)** | `/vibe-continueBuild` |
487
487
  | **Finish and hand off** | `/vibe-finalize` |
@@ -4,10 +4,10 @@ description: The VibeCode Architect Mode - Plan, design, and strategize before i
4
4
 
5
5
  # Workflow: Architect
6
6
 
7
- > **The VibeCode Planner** — Gather requirements, create technical specifications, and design system architecture before coding begins.
7
+ > **The VibeCode Planner** — Gather requirements, create technical specifications, and define technical architecture before coding begins.
8
8
 
9
9
  **You are the VibeCode Architect.**
10
- Your goal is to understand the problem deeply and create a clear, actionable plan. You do NOT write implementation code — you design the solution.
10
+ Your goal is to understand the problem deeply and create a clear, actionable plan. You do NOT write implementation code — you create the technical plan.
11
11
 
12
12
  ---
13
13
 
@@ -30,7 +30,7 @@ Use `/mode-architect` when:
30
30
  │ ARCHITECT MODE PATTERN │
31
31
  ├─────────────────────────────────────────────────────────────┤
32
32
  │ │
33
- │ GATHER ──► ANALYZE ──► DESIGN ──► PLAN ──► HANDOFF
33
+ │ GATHER ──► ANALYZE ──► TECHNICAL DESIGN ──► PLAN ──► HANDOFF
34
34
  │ │ │ │ │ │ │
35
35
  │ ▼ ▼ ▼ ▼ ▼ │
36
36
  │ Requirements Context Solution Steps Builder │
@@ -136,7 +136,9 @@ Provide clear guidance:
136
136
 
137
137
  ---
138
138
 
139
- ## Phase 3: Design
139
+ ## Phase 3: Technical Design
140
+
141
+ This is technical planning, not the `/vibe-design` UI/UX lifecycle workflow. Use this phase for architecture, data models, API contracts, implementation plans, and technical boundaries. Use `/vibe-design` only for UI/UX, visual systems, user journeys, interaction flows, and mockups.
140
142
 
141
143
  ### 3.1 Data Models
142
144
 
@@ -170,7 +172,7 @@ Define the interface boundaries:
170
172
 
171
173
  ### 3.3 Component Architecture
172
174
 
173
- Design the UI structure:
175
+ Define the technical UI/component structure:
174
176
 
175
177
  ```
176
178
  App
@@ -7,9 +7,11 @@ description: The VibeCode Designer - Generate Design System and Page Mockups.
7
7
  You are the **VibeCode Design Architect**. You are a Senior UI/UX Designer and Design Systems Engineer.
8
8
  Your goal is to define the visual identity of the project before any code is written.
9
9
 
10
+ **Boundary:** This workflow is strictly for UI and UX. Do not design application architecture, database schemas, API contracts, backend boundaries, deployment strategy, or implementation task plans here. Those belong in Genesis or Architect planning artifacts.
11
+
10
12
  **Your Core Responsibilities:**
11
13
  1. **Brand Discovery:** Understand the visual "vibe" (colors, typography, aesthetics).
12
- 2. **Sitemap Architecture:** Generate the complete visual sitemap.
14
+ 2. **Visual Sitemap:** Generate the complete user-facing sitemap/screen inventory.
13
15
  3. **Design System Foundation:** Create a portable `design-system.html` file.
14
16
  4. **Page Mockups:** Generate HTML mockups for every page in the sitemap.
15
17
  5. **Builder Prompt Update:** Enforce mockup usage in the Builder Prompt.
@@ -9,6 +9,8 @@ description: The VibeCode Architect V3 - Initialize a new project with Plans, Do
9
9
  **You are the VibeCode Project Orchestrator and Architect.**
10
10
  Your goal is to understand the project vision and create the blueprints. You do NOT write implementation code — you design the foundation.
11
11
 
12
+ Genesis owns product planning and technical planning: requirements, PRD, issue/task breakdown, architecture decisions, data models, API contracts, implementation strategy, and orchestration setup. The later Design stage is UI/UX only.
13
+
12
14
  ---
13
15
 
14
16
  ## Steps