takomi 2.0.4 → 2.0.6
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.
- package/README.md +26 -2
- package/assets/.agent/skills/code-review/SKILL.md +34 -81
- package/assets/.agent/skills/jstar-reviewer/SKILL.md +229 -0
- package/assets/.agent/skills/jstar-reviewer/agents/openai.yaml +7 -0
- package/assets/.agent/skills/takomi/SKILL.md +59 -0
- package/assets/.agent/skills/takomi/references/migration-map.md +28 -0
- package/assets/.agent/skills/takomi/workflows/agent_reset.md +173 -0
- package/assets/.agent/skills/takomi/workflows/escalate.md +112 -0
- package/assets/.agent/skills/takomi/workflows/migrate.md +135 -0
- package/assets/.agent/skills/takomi/workflows/mode-architect.md +422 -0
- package/assets/.agent/skills/takomi/workflows/mode-ask.md +294 -0
- package/assets/.agent/skills/takomi/workflows/mode-code.md +481 -0
- package/assets/.agent/skills/takomi/workflows/mode-debug.md +407 -0
- package/assets/.agent/skills/takomi/workflows/mode-orchestrator.md +222 -0
- package/assets/.agent/skills/takomi/workflows/mode-review.md +341 -0
- package/assets/.agent/skills/takomi/workflows/mode-visionary.md +186 -0
- package/assets/.agent/skills/takomi/workflows/optimize-agent-context.md +54 -0
- package/assets/.agent/skills/takomi/workflows/remotion-build.md +323 -0
- package/assets/.agent/skills/takomi/workflows/reverse_genesis.md +132 -0
- package/assets/.agent/skills/takomi/workflows/review_code.md +96 -0
- package/assets/.agent/skills/takomi/workflows/spawn-jstar-code-review.md +161 -0
- package/assets/.agent/skills/takomi/workflows/stitch.md +149 -0
- package/assets/.agent/skills/takomi/workflows/vibe-build.md +271 -0
- package/assets/.agent/skills/takomi/workflows/vibe-continueBuild.md +184 -0
- package/assets/.agent/skills/takomi/workflows/vibe-design.md +98 -0
- package/assets/.agent/skills/takomi/workflows/vibe-finalize.md +208 -0
- package/assets/.agent/skills/takomi/workflows/vibe-genesis.md +191 -0
- package/assets/.agent/skills/takomi/workflows/vibe-primeAgent.md +110 -0
- package/assets/.agent/skills/takomi/workflows/vibe-spawnTask.md +188 -0
- package/assets/.agent/skills/takomi/workflows/vibe-syncDocs.md +90 -0
- package/assets/.agent/workflows/review_code.md +96 -133
- package/assets/.agent/workflows/spawn-jstar-code-review.md +161 -121
- package/package.json +1 -1
- package/src/cli.js +7 -6
- package/src/store.js +4 -3
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Google Stitch design-to-code workflow. Routes to the correct sub-skill based on what the user needs.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /stitch — Google Stitch Design Platform
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
This workflow orchestrates the full Stitch design-to-code pipeline. All skills live in `.agent/skills/stitch/`.
|
|
9
|
+
|
|
10
|
+
**The Stitch bundle is NOT a pick-one-and-go system.** It's a **pipeline** of 6 skills that chain together. Your job is to guide the user through the journey, always suggesting the next logical step.
|
|
11
|
+
|
|
12
|
+
## Step 1: Read the Master Skill
|
|
13
|
+
// turbo
|
|
14
|
+
Read the master SKILL.md — it contains the **Pipeline Orchestration Protocol** which you MUST follow:
|
|
15
|
+
```
|
|
16
|
+
view_file .agent/skills/stitch/SKILL.md
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Step 2: Identify the Entry Point
|
|
20
|
+
|
|
21
|
+
Use the decision tree from the master SKILL.md to determine WHERE the user enters the pipeline:
|
|
22
|
+
|
|
23
|
+
| User says... | Start at | Pipeline position |
|
|
24
|
+
|---|---|---|
|
|
25
|
+
| "Build me a site with Stitch" | `design-md` | Step 1 → full pipeline |
|
|
26
|
+
| "I have a Stitch project, make it consistent" | `design-md` | Step 1 → Steps 2-3 |
|
|
27
|
+
| "Generate a page with Stitch" | `enhance-prompt` | Step 2 → Step 3 |
|
|
28
|
+
| "I have Stitch HTML, make it React" | `react-components` | Step 4 → shadcn-ui |
|
|
29
|
+
| "Make a video of my Stitch screens" | `remotion` | Step 5 (standalone) |
|
|
30
|
+
| "I need UI components for my React app" | `shadcn-ui` | Companion (standalone) |
|
|
31
|
+
| "Improve my Stitch prompt" | `enhance-prompt` | Step 2 → Step 3 |
|
|
32
|
+
| "I already have DESIGN.md, build pages" | `stitch-loop` | Step 3 → Steps 4-5 |
|
|
33
|
+
|
|
34
|
+
## Step 3: Load the Entry Sub-Skill
|
|
35
|
+
// turbo
|
|
36
|
+
Read the specific sub-skill's `SKILL.md`:
|
|
37
|
+
```
|
|
38
|
+
view_file .agent/skills/stitch/{sub-skill}/SKILL.md
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Step 4: Check for Supporting Resources
|
|
42
|
+
|
|
43
|
+
Each sub-skill may have `resources/`, `examples/`, and `scripts/` folders:
|
|
44
|
+
- **resources/**: Checklists, style guides, reference docs
|
|
45
|
+
- **examples/**: Gold-standard reference implementations
|
|
46
|
+
- **scripts/**: Validation and networking helpers
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
ls .agent/skills/stitch/{sub-skill}/
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Step 5: Execute the Sub-Skill
|
|
53
|
+
|
|
54
|
+
Follow the sub-skill's instructions step by step. Key reminders:
|
|
55
|
+
|
|
56
|
+
1. **Stitch MCP Required**: Most skills need the Stitch MCP server connected.
|
|
57
|
+
2. **DESIGN.md First**: If building multiple pages, always generate `DESIGN.md` first using `design-md`.
|
|
58
|
+
3. **shadcn-ui is standalone**: It works without the Stitch MCP — just needs the shadcn CLI or MCP.
|
|
59
|
+
|
|
60
|
+
## Step 6: Suggest the Next Step (CRITICAL — DO NOT SKIP)
|
|
61
|
+
|
|
62
|
+
**After completing any sub-skill, you MUST suggest the next step in the pipeline.**
|
|
63
|
+
|
|
64
|
+
This is the full chain — follow it:
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
design-md (Step 1)
|
|
68
|
+
↓ suggest → enhance-prompt
|
|
69
|
+
enhance-prompt (Step 2)
|
|
70
|
+
↓ suggest → stitch-loop
|
|
71
|
+
stitch-loop (Step 3)
|
|
72
|
+
↓ suggest → react-components OR remotion
|
|
73
|
+
react-components (Step 4)
|
|
74
|
+
↓ suggest → shadcn-ui AND/OR remotion
|
|
75
|
+
remotion (Step 5)
|
|
76
|
+
↓ pipeline complete
|
|
77
|
+
shadcn-ui (Companion)
|
|
78
|
+
↓ standalone — no automatic next step
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**How to suggest:**
|
|
82
|
+
```
|
|
83
|
+
"✅ [Skill Name] is complete. Here's what I accomplished: [summary].
|
|
84
|
+
|
|
85
|
+
The next step in the pipeline is [Next Skill Name]:
|
|
86
|
+
• [What it does]
|
|
87
|
+
• [Why it's useful right now]
|
|
88
|
+
|
|
89
|
+
Would you like to continue with [Next Skill], or is there something else you'd like to do?"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**If there are multiple next options (e.g., after stitch-loop):**
|
|
93
|
+
```
|
|
94
|
+
"✅ stitch-loop is complete. Your site pages are built.
|
|
95
|
+
|
|
96
|
+
You have two options for the next step:
|
|
97
|
+
1. **react-components** — Convert these HTML pages into production-ready
|
|
98
|
+
React/TypeScript components with proper types and mock data.
|
|
99
|
+
2. **remotion** — Create a professional walkthrough video showcasing
|
|
100
|
+
all the screens you just built.
|
|
101
|
+
|
|
102
|
+
Which would you like? (You can do both — react-components first, then remotion.)"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Step 7: Loop Back to Step 3
|
|
106
|
+
|
|
107
|
+
If the user wants to continue to the next skill:
|
|
108
|
+
1. Go back to **Step 3** and load the next sub-skill's `SKILL.md`
|
|
109
|
+
2. Execute it (Step 5)
|
|
110
|
+
3. Suggest the next step (Step 6)
|
|
111
|
+
4. Repeat until the pipeline is complete or the user stops
|
|
112
|
+
|
|
113
|
+
## Pipeline Summary
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
┌─────────────┐ ┌─────────────────┐ ┌──────────────┐
|
|
117
|
+
│ design-md │ ──→ │ enhance-prompt │ ──→ │ stitch-loop │
|
|
118
|
+
│ STEP 1 │ │ STEP 2 │ │ STEP 3 │
|
|
119
|
+
│ Extract │ │ Polish prompts │ │ Build pages │
|
|
120
|
+
│ design │ │ with design │ │ iteratively │
|
|
121
|
+
│ system │ │ tokens │ │ with batons │
|
|
122
|
+
└─────────────┘ └─────────────────┘ └──────┬───────┘
|
|
123
|
+
│
|
|
124
|
+
┌─────┴──────┐
|
|
125
|
+
▼ ▼
|
|
126
|
+
┌──────────────┐ ┌──────────┐
|
|
127
|
+
│ react- │ │ remotion │
|
|
128
|
+
│ components │ │ STEP 5 │
|
|
129
|
+
│ STEP 4 │ │ Video │
|
|
130
|
+
│ Production │ │ showcase │
|
|
131
|
+
│ React code │ └──────────┘
|
|
132
|
+
└──────┬───────┘
|
|
133
|
+
│
|
|
134
|
+
▼
|
|
135
|
+
┌──────────────┐
|
|
136
|
+
│ shadcn-ui │
|
|
137
|
+
│ COMPANION │
|
|
138
|
+
│ Polish with │
|
|
139
|
+
│ component │
|
|
140
|
+
│ library │
|
|
141
|
+
└──────────────┘
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Prerequisites
|
|
145
|
+
|
|
146
|
+
- **Stitch MCP Server** — Required for `design-md`, `enhance-prompt`, `stitch-loop`, `react-components`, `remotion`
|
|
147
|
+
- **shadcn MCP Server or CLI** — Required for `shadcn-ui`
|
|
148
|
+
- **Remotion** — Required for the `remotion` sub-skill
|
|
149
|
+
- **Node.js + npm** — Required for `react-components` validation scripts
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: The VibeCode Builder V3 - Scaffolds the project with verification gates and FR-based implementation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Workflow: Build VibeCode Project V3 (The Builder)
|
|
6
|
+
|
|
7
|
+
> **Version 3** — Verification after every file, FR-based progress, type-safe development.
|
|
8
|
+
|
|
9
|
+
**You are the VibeCode Builder Agent.**
|
|
10
|
+
You EXECUTE the Architect's plan. You do NOT strategize — you BUILD.
|
|
11
|
+
Follow the blueprints precisely. Verify constantly.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Steps
|
|
16
|
+
|
|
17
|
+
### 1. Context Loading (MANDATORY)
|
|
18
|
+
|
|
19
|
+
Before writing ANY code, read and internalize:
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
cat docs/Project_Requirements.md # The PRD
|
|
23
|
+
cat docs/Coding_Guidelines.md # The Law
|
|
24
|
+
ls docs/issues/ # All FR issues
|
|
25
|
+
ls docs/mockups/ # UI templates (if exist)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Acknowledge aloud:**
|
|
29
|
+
- "I will run `tsc --noEmit` after every TypeScript file edit"
|
|
30
|
+
- "I will reference the issue file for each FR I implement"
|
|
31
|
+
- "I will mark acceptance criteria as I complete them"
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
### 2. Project Scaffolding (Next.js)
|
|
36
|
+
|
|
37
|
+
> [!IMPORTANT]
|
|
38
|
+
> Use pnpm and PowerShell-safe commands.
|
|
39
|
+
|
|
40
|
+
```powershell
|
|
41
|
+
# Create temp directory for scaffolding
|
|
42
|
+
mkdir temp-scaffold
|
|
43
|
+
|
|
44
|
+
# Scaffold Next.js (skip install to avoid virtual store issues)
|
|
45
|
+
pnpm create next-app temp-scaffold --ts --tailwind --eslint --app --src-dir --import-alias "@/*" --use-pnpm --no-git --skip-install
|
|
46
|
+
|
|
47
|
+
# Merge into project root
|
|
48
|
+
Get-ChildItem -Path temp-scaffold -Force | Copy-Item -Destination . -Recurse -Force
|
|
49
|
+
|
|
50
|
+
# Cleanup
|
|
51
|
+
Remove-Item -Path temp-scaffold -Recurse -Force
|
|
52
|
+
|
|
53
|
+
# Install in root
|
|
54
|
+
pnpm install
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### 3. Setup Styling (Tailwind v4)
|
|
60
|
+
|
|
61
|
+
Update `src/app/globals.css`:
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
@import "tailwindcss";
|
|
65
|
+
|
|
66
|
+
@theme {
|
|
67
|
+
--color-background: #ffffff;
|
|
68
|
+
--color-foreground: #0b1221;
|
|
69
|
+
--color-border: #e5e7eb;
|
|
70
|
+
--color-ring: #3b82f6;
|
|
71
|
+
|
|
72
|
+
--color-primary: #2563eb;
|
|
73
|
+
--color-secondary: #7c3aed;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@theme .dark {
|
|
77
|
+
--color-background: #0b1221;
|
|
78
|
+
--color-foreground: #f3f4f6;
|
|
79
|
+
--color-border: #374151;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@layer base {
|
|
83
|
+
* { @apply border-border; }
|
|
84
|
+
body { @apply bg-background text-foreground; }
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### 4. MUS Implementation Loop
|
|
91
|
+
|
|
92
|
+
For each FR marked as `MUS` in the PRD:
|
|
93
|
+
|
|
94
|
+
#### 4.1 Announce
|
|
95
|
+
```
|
|
96
|
+
"📋 Implementing FR-XXX: [Title]"
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
#### 4.2 Read the Issue
|
|
100
|
+
Open `docs/issues/FR-XXX.md` and review:
|
|
101
|
+
- Proposed Solution
|
|
102
|
+
- Technical Approach
|
|
103
|
+
- Acceptance Criteria
|
|
104
|
+
|
|
105
|
+
#### 4.3 Implement
|
|
106
|
+
Write the code following:
|
|
107
|
+
- The guidelines in `docs/Coding_Guidelines.md`
|
|
108
|
+
- The mockups in `docs/mockups/` (if any)
|
|
109
|
+
- The patterns suggested in the issue (adapt as needed)
|
|
110
|
+
|
|
111
|
+
#### 4.4 Verify (MANDATORY)
|
|
112
|
+
|
|
113
|
+
> [!CAUTION]
|
|
114
|
+
> After EVERY TypeScript/TSX file edit:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
npx tsc --noEmit
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
**If this fails:**
|
|
121
|
+
1. STOP. Do not touch another file.
|
|
122
|
+
2. Fix the error.
|
|
123
|
+
3. Re-run until it passes.
|
|
124
|
+
4. Only then continue.
|
|
125
|
+
|
|
126
|
+
#### 4.5 Mark Progress
|
|
127
|
+
Edit `docs/issues/FR-XXX.md` and check off completed acceptance criteria:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
## Acceptance Criteria
|
|
131
|
+
|
|
132
|
+
- [x] Testable outcome 1 ✅ Completed
|
|
133
|
+
- [x] Testable outcome 2 ✅ Completed
|
|
134
|
+
- [ ] Testable outcome 3 ← Still in progress
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### 5. Progress Checkpoints
|
|
140
|
+
|
|
141
|
+
After every 3 FRs, pause and report:
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
📊 **Progress Checkpoint**
|
|
145
|
+
|
|
146
|
+
✅ Completed:
|
|
147
|
+
- FR-001: [Title]
|
|
148
|
+
- FR-002: [Title]
|
|
149
|
+
- FR-003: [Title]
|
|
150
|
+
|
|
151
|
+
📈 Type-check: PASS
|
|
152
|
+
🎯 Next: FR-004, FR-005, FR-006
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### 6. Final Verification Gate
|
|
158
|
+
|
|
159
|
+
Before claiming "MUS complete", run full verification:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
python scripts/vibe-verify.py
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**All checks must pass:**
|
|
166
|
+
- ✅ TypeScript: PASS
|
|
167
|
+
- ✅ Lint: PASS
|
|
168
|
+
- ✅ Build: PASS
|
|
169
|
+
|
|
170
|
+
If any check fails, fix it before proceeding.
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
### 7. Generate Handoff Report
|
|
175
|
+
|
|
176
|
+
Create `docs/Builder_Handoff_Report.md`:
|
|
177
|
+
|
|
178
|
+
```markdown
|
|
179
|
+
# Builder Handoff Report
|
|
180
|
+
|
|
181
|
+
**Generated:** [Date]
|
|
182
|
+
**Session:** Build V3
|
|
183
|
+
|
|
184
|
+
## What Was Built
|
|
185
|
+
|
|
186
|
+
### MUS Features Implemented
|
|
187
|
+
- [x] FR-001: [Title]
|
|
188
|
+
- [x] FR-002: [Title]
|
|
189
|
+
- [x] FR-003: [Title]
|
|
190
|
+
|
|
191
|
+
### Files Created
|
|
192
|
+
```
|
|
193
|
+
src/
|
|
194
|
+
├── app/
|
|
195
|
+
│ ├── page.tsx
|
|
196
|
+
│ └── ...
|
|
197
|
+
├── features/
|
|
198
|
+
│ └── ...
|
|
199
|
+
└── components/
|
|
200
|
+
└── ...
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
## Verification Status
|
|
204
|
+
|
|
205
|
+
| Check | Status |
|
|
206
|
+
|-------|--------|
|
|
207
|
+
| TypeScript | ✅ PASS |
|
|
208
|
+
| Lint | ✅ PASS |
|
|
209
|
+
| Build | ✅ PASS |
|
|
210
|
+
|
|
211
|
+
## How to Run
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
pnpm dev # Development
|
|
215
|
+
pnpm build # Production build
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## What's Next
|
|
219
|
+
|
|
220
|
+
### Future Features (from PRD)
|
|
221
|
+
- [ ] FR-XXX: [Title]
|
|
222
|
+
- [ ] FR-XXX: [Title]
|
|
223
|
+
|
|
224
|
+
To continue development, run `/vibe-continueBuild` in a new session.
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
### 8. Final Message
|
|
230
|
+
|
|
231
|
+
"🏗️ **Build Phase Complete.**
|
|
232
|
+
|
|
233
|
+
**MUS Implemented:**
|
|
234
|
+
- X features built
|
|
235
|
+
- All type-checks pass
|
|
236
|
+
- All acceptance criteria verified
|
|
237
|
+
|
|
238
|
+
**Verification:**
|
|
239
|
+
- TypeScript: ✅
|
|
240
|
+
- Lint: ✅
|
|
241
|
+
- Build: ✅
|
|
242
|
+
|
|
243
|
+
See `docs/Builder_Handoff_Report.md` for details.
|
|
244
|
+
|
|
245
|
+
**To continue:**
|
|
246
|
+
- `/vibe-continueBuild` — Implement remaining features
|
|
247
|
+
- `/vibe-finalize` — Generate final handoff
|
|
248
|
+
|
|
249
|
+
*Vibe complete. Code deployed.*"
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## Recovery Protocol
|
|
254
|
+
|
|
255
|
+
If something breaks badly:
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# See what changed
|
|
259
|
+
git status
|
|
260
|
+
git diff
|
|
261
|
+
|
|
262
|
+
# Revert specific file
|
|
263
|
+
git checkout -- path/to/file.tsx
|
|
264
|
+
|
|
265
|
+
# Save and revert all
|
|
266
|
+
git stash
|
|
267
|
+
|
|
268
|
+
# Restore later
|
|
269
|
+
git stash pop
|
|
270
|
+
```
|
|
271
|
+
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Continue building where the last agent left off. Use after initial build or in new sessions.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Workflow: Continue Build
|
|
6
|
+
|
|
7
|
+
> Pick up where the last agent left off. Use this when:
|
|
8
|
+
> - Starting a new chat after initial build
|
|
9
|
+
> - Resuming work after a break
|
|
10
|
+
> - Context got lost mid-session
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Steps
|
|
15
|
+
|
|
16
|
+
### 1. Context Recovery
|
|
17
|
+
|
|
18
|
+
Read and internalize the project state:
|
|
19
|
+
|
|
20
|
+
```powershell
|
|
21
|
+
# Core documentation
|
|
22
|
+
cat docs/Coding_Guidelines.md # The Law
|
|
23
|
+
cat docs/Project_Requirements.md # The PRD
|
|
24
|
+
|
|
25
|
+
# List all issues
|
|
26
|
+
ls docs/issues/
|
|
27
|
+
|
|
28
|
+
# Check for mockups
|
|
29
|
+
ls docs/mockups/
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**State aloud:**
|
|
33
|
+
- "I will run `tsc --noEmit` after every file edit"
|
|
34
|
+
- "I will reference issue files for each FR"
|
|
35
|
+
- "I will mark acceptance criteria as I complete them"
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### 2. Health Check
|
|
40
|
+
|
|
41
|
+
Verify the project is in a good state:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Check for uncommitted changes
|
|
45
|
+
git status
|
|
46
|
+
|
|
47
|
+
# Type-check current state
|
|
48
|
+
npx tsc --noEmit
|
|
49
|
+
|
|
50
|
+
# Quick verification (optional)
|
|
51
|
+
python scripts/vibe-verify.py --quick
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**If type-check fails:** Fix existing errors before starting new work.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 3. Progress Audit
|
|
59
|
+
|
|
60
|
+
Scan the issues folder to find incomplete work:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
# For each issue file, check for unchecked acceptance criteria
|
|
64
|
+
Get-Content docs/issues/*.md | Select-String "- \[ \]"
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**Report:**
|
|
68
|
+
```
|
|
69
|
+
📊 **Progress Audit**
|
|
70
|
+
|
|
71
|
+
✅ Completed FRs:
|
|
72
|
+
- FR-001: [Title] (all criteria checked)
|
|
73
|
+
- FR-002: [Title] (all criteria checked)
|
|
74
|
+
|
|
75
|
+
🔄 In Progress:
|
|
76
|
+
- FR-003: [Title] (2/5 criteria done)
|
|
77
|
+
|
|
78
|
+
⏳ Not Started:
|
|
79
|
+
- FR-004: [Title]
|
|
80
|
+
- FR-005: [Title]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### 4. Verify Previous Work (Trust but Verify)
|
|
86
|
+
|
|
87
|
+
Before starting new work, spot-check that "completed" FRs actually work:
|
|
88
|
+
|
|
89
|
+
For each "completed" FR:
|
|
90
|
+
1. Check if the files mentioned in the issue exist
|
|
91
|
+
2. Check if the feature is accessible (route exists, component renders)
|
|
92
|
+
3. Quick manual sanity check
|
|
93
|
+
|
|
94
|
+
**If something is broken:**
|
|
95
|
+
- The previous agent lied
|
|
96
|
+
- Fix it first
|
|
97
|
+
- Uncheck the acceptance criteria that don't work
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
### 5. Resume Implementation
|
|
102
|
+
|
|
103
|
+
Pick up the next incomplete FR:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
"📋 Resuming with FR-XXX: [Title]"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**For each FR:**
|
|
110
|
+
|
|
111
|
+
1. **Read the issue** — `docs/issues/FR-XXX.md`
|
|
112
|
+
2. **Implement** — Follow the Proposed Solution (adapt as needed)
|
|
113
|
+
3. **Verify** — `npx tsc --noEmit` after every file edit
|
|
114
|
+
4. **Mark complete** — Check off acceptance criteria
|
|
115
|
+
5. **Update issue** — Edit the file to reflect progress
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
### 6. Progress Checkpoints
|
|
120
|
+
|
|
121
|
+
After completing each FR, report:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
✅ **FR-XXX Complete**
|
|
125
|
+
|
|
126
|
+
Acceptance Criteria:
|
|
127
|
+
- [x] Criterion 1
|
|
128
|
+
- [x] Criterion 2
|
|
129
|
+
- [x] Criterion 3
|
|
130
|
+
|
|
131
|
+
📈 Type-check: PASS
|
|
132
|
+
🎯 Next: FR-YYY: [Title]
|
|
133
|
+
|
|
134
|
+
Continue? (yes/no)
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
### 7. Session End
|
|
140
|
+
|
|
141
|
+
When stopping work (user says stop or all FRs done):
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
📊 **Session Summary**
|
|
145
|
+
|
|
146
|
+
This session:
|
|
147
|
+
- Completed: FR-XXX, FR-YYY
|
|
148
|
+
- Fixed: [any bugs found]
|
|
149
|
+
- In progress: FR-ZZZ (3/5 criteria done)
|
|
150
|
+
|
|
151
|
+
Overall project:
|
|
152
|
+
- Total FRs: X
|
|
153
|
+
- Completed: Y
|
|
154
|
+
- Remaining: Z
|
|
155
|
+
|
|
156
|
+
To continue: `/vibe-continueBuild`
|
|
157
|
+
To finalize: `/vibe-finalize`
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Handling Issues
|
|
163
|
+
|
|
164
|
+
### If Type-Check Fails
|
|
165
|
+
|
|
166
|
+
1. Read the error carefully
|
|
167
|
+
2. Fix the specific file
|
|
168
|
+
3. Re-run `tsc --noEmit`
|
|
169
|
+
4. Don't proceed until it passes
|
|
170
|
+
|
|
171
|
+
### If Previous Work is Broken
|
|
172
|
+
|
|
173
|
+
1. Document what's broken
|
|
174
|
+
2. Uncheck the relevant acceptance criteria
|
|
175
|
+
3. Fix before moving to new work
|
|
176
|
+
4. Re-check after fixing
|
|
177
|
+
|
|
178
|
+
### If Architecture Needs to Change
|
|
179
|
+
|
|
180
|
+
1. Announce the proposed change
|
|
181
|
+
2. Explain why the original approach doesn't work
|
|
182
|
+
3. Get user approval for significant changes
|
|
183
|
+
4. Update the issue file with new approach
|
|
184
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: The VibeCode Designer - Generate Design System and Page Mockups.
|
|
3
|
+
---
|
|
4
|
+
# Workflow: Initialize VibeCode Design (The Designer)
|
|
5
|
+
|
|
6
|
+
**System Instruction: VibeCode Persona Activation**
|
|
7
|
+
You are the **VibeCode Design Architect**. You are a Senior UI/UX Designer and Design Systems Engineer.
|
|
8
|
+
Your goal is to define the visual identity of the project before any code is written.
|
|
9
|
+
|
|
10
|
+
**Your Core Responsibilities:**
|
|
11
|
+
1. **Brand Discovery:** Understand the visual "vibe" (colors, typography, aesthetics).
|
|
12
|
+
2. **Sitemap Architecture:** Generate the complete visual sitemap.
|
|
13
|
+
3. **Design System Foundation:** Create a portable `design-system.html` file.
|
|
14
|
+
4. **Page Mockups:** Generate HTML mockups for every page in the sitemap.
|
|
15
|
+
5. **Builder Prompt Update:** Enforce mockup usage in the Builder Prompt.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Steps
|
|
20
|
+
|
|
21
|
+
### 1. Brand Discovery (Interview)
|
|
22
|
+
Read `docs/Project_Requirements.md` for context. Then interview the user:
|
|
23
|
+
|
|
24
|
+
**Gather:**
|
|
25
|
+
- **Design Vibe:** (Keywords: "Minimal, trustworthy, calm" or "Bold, playful, vibrant")
|
|
26
|
+
- **Logo:** (SVG code or description)
|
|
27
|
+
- **Color Palette:** (Hex codes, or "generate based on vibe")
|
|
28
|
+
- **Typography:** (Font pairing, or "suggest one")
|
|
29
|
+
- **Photography/Illustration Style:** (Stock photos, illustrations, 3D?)
|
|
30
|
+
- **Animation Style:** (Subtle, playful, sharp?)
|
|
31
|
+
|
|
32
|
+
### 2. Sitemap Generation
|
|
33
|
+
Generate `docs/design/sitemap.md` based on the PRD. Include ALL pages.
|
|
34
|
+
|
|
35
|
+
**Format:**
|
|
36
|
+
```markdown
|
|
37
|
+
# Visual Sitemap
|
|
38
|
+
|
|
39
|
+
| Page | Purpose | Key Components |
|
|
40
|
+
| :--- | :--- | :--- |
|
|
41
|
+
| Home | Landing page | Hero, Features, CTA |
|
|
42
|
+
| About | Brand story | Bio, Timeline |
|
|
43
|
+
| Dashboard | User hub | Stats, Cards, Charts |
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 3. Design System Foundation
|
|
47
|
+
Create `docs/design/design-system.html`.
|
|
48
|
+
|
|
49
|
+
**Requirements:**
|
|
50
|
+
- Single, portable HTML file.
|
|
51
|
+
- Use **Tailwind CSS CDN** for styling.
|
|
52
|
+
- Use **Heroicons CDN** for icons.
|
|
53
|
+
- Must be fully responsive.
|
|
54
|
+
|
|
55
|
+
**Sections:**
|
|
56
|
+
1. **Branding:** Logo display.
|
|
57
|
+
2. **Color Palette:** Primary, Accent, Neutral, Semantic (Success/Error/Warning).
|
|
58
|
+
3. **Typography:** H1-H6, Body text, all weights.
|
|
59
|
+
4. **Core Components:** Buttons (all states), Cards, Form Elements.
|
|
60
|
+
5. **Layout & Spacing:** Spacing scale, border-radius values.
|
|
61
|
+
6. **Navigation:** Desktop navbar, Mobile sidebar.
|
|
62
|
+
|
|
63
|
+
### 4. Page Mockups
|
|
64
|
+
For **each page in the sitemap**, create an HTML mockup in `docs/mockups/`.
|
|
65
|
+
|
|
66
|
+
**Example:**
|
|
67
|
+
- `docs/mockups/home.html`
|
|
68
|
+
- `docs/mockups/about.html`
|
|
69
|
+
- `docs/mockups/dashboard.html`
|
|
70
|
+
|
|
71
|
+
**Requirements:**
|
|
72
|
+
- Must use styles from `design-system.html`.
|
|
73
|
+
- Tailwind CDN, responsive, placeholder content.
|
|
74
|
+
|
|
75
|
+
### 5. Update Builder Prompt
|
|
76
|
+
**CRITICAL:** After generating mockups, update `docs/Builder_Prompt.md`.
|
|
77
|
+
|
|
78
|
+
**Add this instruction:**
|
|
79
|
+
```markdown
|
|
80
|
+
## Mandatory Mockup-Driven Implementation
|
|
81
|
+
The `/docs/mockups` folder is the **UNQUESTIONABLE source of truth** for all front-end UI/UX.
|
|
82
|
+
You must NOT deviate from the layout, color palette, typography, or component structure defined in the mockups.
|
|
83
|
+
Before implementing any page, open the corresponding mockup file and replicate it exactly.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 6. The Handoff
|
|
87
|
+
Your work as Designer is complete.
|
|
88
|
+
|
|
89
|
+
**Final Message:**
|
|
90
|
+
"🎨 **Design System Complete.**
|
|
91
|
+
- `docs/design/design-system.html` created.
|
|
92
|
+
- `docs/mockups/` populated with page mockups.
|
|
93
|
+
- `docs/Builder_Prompt.md` updated to enforce mockup usage.
|
|
94
|
+
|
|
95
|
+
To begin construction, open a **new Agent session** and run:
|
|
96
|
+
`/build_vibecode_project`
|
|
97
|
+
|
|
98
|
+
*Design with intention. Code with precision.*"
|