@su-record/vibe 2.9.2 → 2.9.3

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 (59) hide show
  1. package/CLAUDE.md +30 -10
  2. package/README.ko.md +90 -25
  3. package/README.md +139 -25
  4. package/agents/teams/figma/figma-builder.md +29 -1
  5. package/agents/teams/review-debate-team.md +1 -1
  6. package/commands/vibe.analyze.md +324 -170
  7. package/commands/vibe.figma.md +549 -34
  8. package/commands/vibe.harness.md +177 -0
  9. package/commands/vibe.run.md +44 -27
  10. package/commands/vibe.scaffold.md +195 -0
  11. package/commands/vibe.spec.md +375 -947
  12. package/commands/vibe.trace.md +17 -0
  13. package/commands/vibe.verify.md +19 -10
  14. package/dist/cli/commands/init.d.ts.map +1 -1
  15. package/dist/cli/commands/init.js +29 -1
  16. package/dist/cli/commands/init.js.map +1 -1
  17. package/dist/cli/commands/update.d.ts.map +1 -1
  18. package/dist/cli/commands/update.js +4 -2
  19. package/dist/cli/commands/update.js.map +1 -1
  20. package/dist/cli/postinstall/constants.d.ts +1 -1
  21. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  22. package/dist/cli/postinstall/constants.js +6 -1
  23. package/dist/cli/postinstall/constants.js.map +1 -1
  24. package/dist/cli/setup/ProjectSetup.d.ts +12 -1
  25. package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
  26. package/dist/cli/setup/ProjectSetup.js +259 -72
  27. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  28. package/dist/cli/setup.d.ts +1 -1
  29. package/dist/cli/setup.d.ts.map +1 -1
  30. package/dist/cli/setup.js +1 -1
  31. package/dist/cli/setup.js.map +1 -1
  32. package/hooks/scripts/figma-guard.js +220 -0
  33. package/package.json +1 -1
  34. package/skills/arch-guard/SKILL.md +1 -1
  35. package/skills/capability-loop/SKILL.md +106 -2
  36. package/skills/chub-usage/SKILL.md +43 -43
  37. package/skills/claude-md-guide/SKILL.md +175 -175
  38. package/skills/design-teach/SKILL.md +33 -33
  39. package/skills/devlog/SKILL.md +38 -38
  40. package/skills/event-comms/SKILL.md +23 -13
  41. package/skills/event-ops/SKILL.md +28 -19
  42. package/skills/event-planning/SKILL.md +13 -1
  43. package/skills/priority-todos/SKILL.md +1 -1
  44. package/skills/vibe.figma/SKILL.md +234 -154
  45. package/skills/vibe.figma.convert/SKILL.md +123 -112
  46. package/skills/vibe.figma.extract/SKILL.md +141 -129
  47. package/skills/vibe.interview/SKILL.md +358 -0
  48. package/skills/vibe.interview/checklists/api.md +101 -0
  49. package/skills/vibe.interview/checklists/feature.md +88 -0
  50. package/skills/vibe.interview/checklists/library.md +95 -0
  51. package/skills/vibe.interview/checklists/mobile.md +89 -0
  52. package/skills/vibe.interview/checklists/webapp.md +97 -0
  53. package/skills/vibe.interview/checklists/website.md +99 -0
  54. package/skills/vibe.plan/SKILL.md +216 -0
  55. package/skills/vibe.spec/SKILL.md +1155 -0
  56. package/{commands/vibe.spec.review.md → skills/vibe.spec.review/SKILL.md} +269 -108
  57. package/vibe/templates/claudemd-template.md +74 -0
  58. package/vibe/templates/constitution-template.md +15 -0
  59. package/vibe/templates/plan-template.md +194 -0
@@ -1,207 +1,219 @@
1
1
  ---
2
2
  name: vibe.figma.extract
3
- description: Figma REST API로 코드 생성 데이터 확보트리(primary), 이미지, 스크린샷(검증용)
3
+ description: Acquire code generation data via Figma REST API tree (primary), images, screenshots (for validation)
4
4
  triggers: []
5
5
  tier: standard
6
6
  ---
7
7
 
8
- # vibe.figma.extract — 코드 생성 데이터 확보
8
+ # vibe.figma.extract — Acquire Code Generation Data
9
9
 
10
- Figma REST API(`src/infra/lib/figma/`) 사용하여 **구조적 코드 생성에 필요한 모든 데이터**를 추출.
10
+ Uses the Figma REST API (`src/infra/lib/figma/`) to extract **all data needed for structural code generation**.
11
11
 
12
12
  ```
13
- 추출 우선순위:
14
- 1순위: 노드 트리 + CSS (코드 생성의 PRIMARY 소스)
15
- 2순위: 이미지 에셋 (fill 이미지 + 아이템 노드 렌더링)
16
- 3순위: 스크린샷 (Phase 6 시각 검증용코드 생성에 사용하지 않음)
13
+ Extraction priority:
14
+ 1st: Node tree + CSS (PRIMARY source for code generation)
15
+ 2nd: Image assets (fill images + item node rendering)
16
+ 3rd: Screenshots (for Phase 6 visual validationnot used for code generation)
17
17
  ```
18
18
 
19
19
  ---
20
20
 
21
- ## 1. 노드 트리 + CSS — 코드 생성의 원천
21
+ ## 1. Node Tree + CSS — Source of Truth for Code Generation
22
22
 
23
23
  ```
24
24
  Bash:
25
- node "[FIGMA_SCRIPT]" tree {fileKey} {nodeId}
25
+ node "{{VIBE_PATH}}/hooks/scripts/figma-extract.js" tree {fileKey} {nodeId}
26
26
 
27
- 반환 (FigmaNode JSON):
27
+ Returns (FigmaNode JSON):
28
28
  {
29
29
  nodeId, name, type, size: { width, height },
30
30
  css: { display, flexDirection, gap, ... },
31
- text: "텍스트 내용" (TEXT 노드만),
32
- imageRef: "abc123" (이미지 fill),
31
+ text: "text content" (TEXT nodes only),
32
+ imageRef: "abc123" (image fill),
33
33
  imageScaleMode: "FILL" (FILL/FIT/CROP/TILE),
34
34
  layoutSizingH: "HUG" (FIXED/HUG/FILL),
35
35
  layoutSizingV: "FILL",
36
- fills: [...] (2 이상일 때만),
37
- isMask: true (마스크 노드만),
36
+ fills: [...] (only when 2 or more),
37
+ isMask: true (mask nodes only),
38
38
  children: [...]
39
39
  }
40
40
 
41
- → /tmp/{feature}/tree.json 에 저장
41
+ Save to /tmp/{feature}/tree.json
42
42
  ```
43
43
 
44
- ### Figma 속성 → CSS 직접 매핑표
44
+ ### Figma Property → CSS Direct Mapping Table
45
45
 
46
- 트리 추출 도구가 자동 변환하는 속성. **이 값들이 SCSS에 직접 매핑된다:**
46
+ Properties automatically converted by the tree extraction tool. **These values map directly to SCSS:**
47
47
 
48
- **레이아웃:**
48
+ **Layout:**
49
49
 
50
- | Figma 속성 | CSS | vw 변환 |
50
+ | Figma Property | CSS | vw conversion |
51
51
  |-----------|-----|---------|
52
- | `layoutMode=VERTICAL` | `display:flex; flex-direction:column` | |
53
- | `layoutMode=HORIZONTAL` | `display:flex; flex-direction:row` | |
54
- | `primaryAxisAlignItems` | `justify-content` | |
55
- | `counterAxisAlignItems` | `align-items` | |
56
- | `itemSpacing` | `gap` | |
57
- | `layoutGrow=1` | `flex-grow: 1` | |
58
- | `padding*` | `padding` | |
59
- | `absoluteBoundingBox.width/height` | `width/height` | |
60
- | `layoutPositioning=ABSOLUTE` | `position: absolute` + `top/left` (부모 상대 좌표) | |
61
- | `layoutSizingHorizontal=HUG` | width 삭제 (auto) | — |
62
- | `layoutSizingHorizontal=FILL` | 메타데이터 `layoutSizingH` (converter flex:1/100% 결정) | — |
63
- | `layoutSizingVertical=HUG` | height 삭제 (auto) | — |
64
- | `layoutSizingVertical=FILL` | 메타데이터 `layoutSizingV` (converter 결정) | — |
65
- | `clipsContent` | `overflow: hidden` | |
66
-
67
- **비주얼:**
68
-
69
- | Figma 속성 | CSS | vw 변환 |
52
+ | `layoutMode=VERTICAL` | `display:flex; flex-direction:column` | No |
53
+ | `layoutMode=HORIZONTAL` | `display:flex; flex-direction:row` | No |
54
+ | `primaryAxisAlignItems` | `justify-content` | No |
55
+ | `counterAxisAlignItems` | `align-items` | No |
56
+ | `itemSpacing` | `gap` | Yes |
57
+ | `layoutGrow=1` | `flex-grow: 1` | No |
58
+ | `padding*` | `padding` | Yes |
59
+ | `absoluteBoundingBox.width/height` | `width/height` | Yes |
60
+ | `layoutPositioning=ABSOLUTE` | `position: absolute` + `top/left` (relative to parent) | Yes |
61
+ | `layoutSizingHorizontal=HUG` | remove width (auto) | — |
62
+ | `layoutSizingHorizontal=FILL` | metadata `layoutSizingH` (converter decides flex:1/100%) | — |
63
+ | `layoutSizingVertical=HUG` | remove height (auto) | — |
64
+ | `layoutSizingVertical=FILL` | metadata `layoutSizingV` (converter decides) | — |
65
+ | `clipsContent` | `overflow: hidden` | No |
66
+
67
+ **Visual:**
68
+
69
+ | Figma Property | CSS | vw conversion |
70
70
  |-----------|-----|---------|
71
- | `fills[].SOLID` | `background-color` | |
71
+ | `fills[].SOLID` | `background-color` | No |
72
72
  | `fills[].IMAGE` | `imageRef` + `imageScaleMode` (FILL/FIT/CROP/TILE) | — |
73
- | `fills[].GRADIENT_LINEAR` | `background-image: linear-gradient(...)` | |
74
- | `fills[].GRADIENT_RADIAL` | `background-image: radial-gradient(...)` | |
75
- | `fills[] (2 이상)` | `fills` 배열 (type, color, imageRef, gradient, blendMode, filters) | — |
76
- | `fills[].blendMode` | `background-blend-mode` | |
77
- | `fills[].filters.saturation` | `filter: grayscale(X%)` / `saturate(X%)` | |
78
- | `fills[].color` (TEXT) | `color` | |
79
- | `strokes[] + strokeAlign=INSIDE` | `border` + `box-sizing: border-box` | (width) |
80
- | `strokes[] + strokeAlign=OUTSIDE` | `outline` | (width) |
81
- | `individualStrokeWeights` | `border-top/right/bottom/left` 개별 | (width) |
82
- | `strokeDashes` | `border-style: dashed` | |
83
- | `effects[].DROP_SHADOW` | `box-shadow` | (px) |
84
- | `effects[].INNER_SHADOW` | `box-shadow` (inset) | (px) |
85
- | `effects[].LAYER_BLUR` | `filter: blur()` (누적) | |
86
- | `effects[].BACKGROUND_BLUR` | `backdrop-filter: blur()` | |
87
- | `cornerRadius` | `border-radius` | |
88
- | `opacity` | `opacity` | |
89
- | `rotation` | `transform: rotate(Xdeg)` | |
90
- | `blendMode` (노드 레벨) | `mix-blend-mode` | |
91
-
92
- **텍스트:**
93
-
94
- | Figma 속성 | CSS | vw 변환 |
73
+ | `fills[].GRADIENT_LINEAR` | `background-image: linear-gradient(...)` | No |
74
+ | `fills[].GRADIENT_RADIAL` | `background-image: radial-gradient(...)` | No |
75
+ | `fills[] (2 or more)` | `fills` array (type, color, imageRef, gradient, blendMode, filters) | — |
76
+ | `fills[].blendMode` | `background-blend-mode` | No |
77
+ | `fills[].filters.saturation` | `filter: grayscale(X%)` / `saturate(X%)` | No |
78
+ | `fills[].color` (TEXT) | `color` | No |
79
+ | `strokes[] + strokeAlign=INSIDE` | `border` + `box-sizing: border-box` | Yes (width only) |
80
+ | `strokes[] + strokeAlign=OUTSIDE` | `outline` | Yes (width only) |
81
+ | `individualStrokeWeights` | `border-top/right/bottom/left` individually | Yes (width only) |
82
+ | `strokeDashes` | `border-style: dashed` | No |
83
+ | `effects[].DROP_SHADOW` | `box-shadow` | Yes (px only) |
84
+ | `effects[].INNER_SHADOW` | `box-shadow` (inset) | Yes (px only) |
85
+ | `effects[].LAYER_BLUR` | `filter: blur()` (accumulated) | Yes |
86
+ | `effects[].BACKGROUND_BLUR` | `backdrop-filter: blur()` | Yes |
87
+ | `cornerRadius` | `border-radius` | Yes |
88
+ | `opacity` | `opacity` | No |
89
+ | `rotation` | `transform: rotate(Xdeg)` | No |
90
+ | `blendMode` (node level) | `mix-blend-mode` | No |
91
+
92
+ **Text:**
93
+
94
+ | Figma Property | CSS | vw conversion |
95
95
  |-----------|-----|---------|
96
- | `style.fontFamily` | `font-family` | |
97
- | `style.fontSize` | `font-size` | |
98
- | `style.fontWeight` | `font-weight` | |
99
- | `style.lineHeightPx` | `line-height` | |
100
- | `style.letterSpacing` | `letter-spacing` | |
101
- | `style.textAlignHorizontal` | `text-align` | |
102
- | `style.textCase` | `text-transform` | |
103
- | `style.textTruncation` | `overflow: hidden; text-overflow: ellipsis` | |
104
- | `style.paragraphSpacing` | `margin-bottom` | |
105
- | `characters` | 텍스트 내용 | — |
96
+ | `style.fontFamily` | `font-family` | No |
97
+ | `style.fontSize` | `font-size` | Yes |
98
+ | `style.fontWeight` | `font-weight` | No |
99
+ | `style.lineHeightPx` | `line-height` | No |
100
+ | `style.letterSpacing` | `letter-spacing` | Yes |
101
+ | `style.textAlignHorizontal` | `text-align` | No |
102
+ | `style.textCase` | `text-transform` | No |
103
+ | `style.textTruncation` | `overflow: hidden; text-overflow: ellipsis` | No |
104
+ | `style.paragraphSpacing` | `margin-bottom` | Yes |
105
+ | `characters` | text content | — |
106
106
 
107
107
  ---
108
108
 
109
- ## 2. 이미지 에셋노드 렌더링 기반
109
+ ## 2. Image AssetsNode Rendering Based
110
110
 
111
111
  ```
112
- imageRef 개별 다운로드 금지
113
- 텍스처 fill 공유하는 경우 원본 텍스처(22.7MB) 다운됨
114
- 노드 렌더링하면 해당 노드에 적용된 최종 결과물(364KB)이 나옴
112
+ Do NOT download imageRef individually
113
+ If a texture fill is shared, the original texture (22.7MB) will be downloaded
114
+ Rendering the node produces the final result as applied to that node (364KB)
115
115
 
116
- 모든 이미지는 Figma screenshot API로 노드 렌더링
116
+ All images must be rendered as nodes via the Figma screenshot API
117
117
  ```
118
118
 
119
- ### 2-1. BG 프레임 렌더링
119
+ ### 2-1. BG Frame Rendering
120
120
 
121
121
  ```
122
- BG 프레임 판별 기준:
123
- - name "BG", "bg" 포함
124
- - 또는 부모와 크기 동일(±10%) + 자식 이미지 3개 이상
122
+ BG frame identification criteria:
123
+ - name contains "BG" or "bg"
124
+ - OR same size as parent (±10%) + 3 or more child images
125
125
 
126
- 렌더링:
127
- node "[FIGMA_SCRIPT]" screenshot {fileKey} {bg.nodeId} --out=/tmp/{feature}/bg/{section}-bg.webp
126
+ Rendering:
127
+ node "{{VIBE_PATH}}/hooks/scripts/figma-extract.js" screenshot {fileKey} {bg.nodeId} --out=/tmp/{feature}/bg/{section}-bg.webp
128
128
  ```
129
129
 
130
- ### 2-2. 콘텐츠 노드 렌더링
130
+ ### 2-2. Content Node Rendering
131
131
 
132
132
  ```
133
- 대상 (tree.json에서 식별):
134
- - 아이콘 (VECTOR/GROUP 크기 ≤ 64px)
135
- - 아이템/보상 썸네일 (name "item", "reward", "token", "coin")
136
- - 벡터 글자 GROUP (부모 아래 VECTOR 3개 이상, <60px)
137
- - 디자인 텍스트 (다음 하나):
138
- · TEXT 노드 fills 2 이상 (그래디언트+솔리드 중첩)
139
- · TEXT 노드에 effects 있음 (DROP_SHADOW, stroke)
140
- · TEXT 노드 fills GRADIENT 타입 포함
141
- · 프로젝트 웹폰트에 없는 fontFamily
142
- 반드시 렌더링 대상에 포함
143
- - 장식 패널 (목재 간판, 금속 플레이트 텍스처 배경)
144
- BG 프레임과 동일하게 렌더링
133
+ Targets (identified from tree.json):
134
+ - Icons (VECTOR/GROUP size ≤ 64px)
135
+ - Item/reward thumbnails (name contains "item", "reward", "token", "coin")
136
+ - Vector text GROUPs (3 or more VECTORs under parent, each <60px)
137
+ - Design text (any of the following):
138
+ · TEXT node with 2 or more fills (gradient + solid overlap)
139
+ · TEXT node has effects (DROP_SHADOW, stroke)
140
+ · TEXT node fills contain GRADIENT type
141
+ · fontFamily not in project web fonts
142
+ Must be included in rendering targets
143
+ - Decorative panels (wooden signs, metal plates, and other textured backgrounds)
144
+ Render the same way as BG frames
145
145
 
146
- 렌더링:
147
- node "[FIGMA_SCRIPT]" screenshot {fileKey} {node.nodeId} --out=/tmp/{feature}/content/{name}.webp
146
+ Rendering:
147
+ node "{{VIBE_PATH}}/hooks/scripts/figma-extract.js" screenshot {fileKey} {node.nodeId} --out=/tmp/{feature}/content/{name}.webp
148
148
  ```
149
149
 
150
- ### 2-3. imageRef 다운로드 (폴백)
150
+ ### 2-3. imageRef Download (Fallback)
151
151
 
152
152
  ```
153
- 노드 렌더링 불가 시에만 (API 실패, DOCUMENT 레벨):
154
- 파일 크기 5MB 초과 텍스처 fill 경고
153
+ Only when node rendering is not possible (API failure, DOCUMENT level):
154
+ File size exceeds 5MB → texture fill warning
155
155
  ```
156
156
 
157
157
  ---
158
158
 
159
- ## 3. 스크린샷 — Phase 6 검증 참조용
159
+ ## 3. ScreenshotsReference for Phase 6 Validation
160
160
 
161
161
  ```
162
- 코드 생성에 사용하지 않는다.
162
+ Not used for code generation.
163
163
 
164
- 전체: screenshot → /tmp/{feature}/full-screenshot.webp
165
- 섹션별: 1depth 자식 각각 → /tmp/{feature}/sections/{name}.webp
164
+ Full: screenshot → /tmp/{feature}/full-screenshot.webp
165
+ Per section: each 1-depth child → /tmp/{feature}/sections/{name}.webp
166
166
  ```
167
167
 
168
168
  ---
169
169
 
170
- ## 4. 추출 데이터 정리
170
+ ## 4. Extracted Data Summary
171
171
 
172
172
  ```
173
173
  /tmp/{feature}/
174
- ├── tree.json ← PRIMARY 소스
175
- ├── bg/ ← BG 프레임 렌더링
176
- ├── content/ ← 콘텐츠 노드 렌더링
177
- ├── full-screenshot.webp ← 검증용
178
- └── sections/ ← 섹션별 검증용
179
-
180
- 이미지 분류 요약:
181
- | 분류 | 처리 |
174
+ ├── tree.json ← PRIMARY source
175
+ ├── bg/ ← BG frame rendering
176
+ ├── content/ ← Content node rendering
177
+ ├── full-screenshot.webp ← For validation
178
+ └── sections/ ← Per-section validation
179
+
180
+ Image classification summary:
181
+ | Category | Handling |
182
182
  |------|------|
183
- | BG 프레임 | 프레임 렌더링 → bg/ |
184
- | 디자인 텍스트 | 노드 렌더링 → content/ |
185
- | 벡터 글자 | GROUP 렌더링 → content/ |
186
- | 콘텐츠 | 노드 렌더링 → content/ |
187
- | 장식 패널 | 프레임 렌더링 → content/ |
188
- | 장식 | BG 렌더링에 포함 |
183
+ | BG frames | Frame rendering → bg/ |
184
+ | Design text | Node rendering → content/ |
185
+ | Vector text | GROUP rendering → content/ |
186
+ | Content | Node rendering → content/ |
187
+ | Decorative panels | Frame rendering → content/ |
188
+ | Decorations | Included in BG rendering |
189
189
  ```
190
190
 
191
191
  ---
192
192
 
193
- ## 5. 추출 완료 검증 (Phase 3 진입 필수)
193
+ ## 5. Extraction Completion Validation (Required Before Entering Phase 3)
194
194
 
195
195
  ```
196
- 하나라도 누락재추출 (Phase 3 진행 금지)
196
+ If any item is missing re-extract (do NOT proceed to Phase 3)
197
197
 
198
- 1. tree.json 존재 + 루트 노드 children > 0
199
- 2. 섹션별 BGbg/ 파일 존재
200
- 3. 디자인 텍스트 체크:
201
- tree.json 순회 fills 2개 이상 또는 effects 있는 TEXT 노드 목록 생성
202
- 해당 노드 전부 content/ 렌더링 파일 존재
203
- 4. 벡터 글자 체크:
204
- GROUP 아래 VECTOR 3 이상content/ 렌더링 파일 존재
205
- 5. 섹션별 검증용 스크린샷sections/ 파일 존재
206
- 6. 파일명 규칙: 모두 kebab-case (해시 파일명 없음)
198
+ 1. tree.json exists + root node children > 0
199
+ 2. BG for each section file exists in bg/
200
+ 3. Design text check:
201
+ Traverse tree.json → generate list of TEXT nodes with 2 or more fills or effects
202
+ All such nodes must have rendering files in content/
203
+ 4. Vector text check:
204
+ GROUP with 3 or more VECTORs rendering file exists in content/
205
+ 5. Per-section validation screenshotsfiles exist in sections/
206
+ 6. File naming convention: all kebab-case (no hash filenames)
207
207
  ```
208
+
209
+ ---
210
+
211
+ ## Error Recovery
212
+
213
+ | Failure | Recovery |
214
+ |---------|----------|
215
+ | Figma API 401 (unauthorized) | Prompt user to set FIGMA_ACCESS_TOKEN in environment or ~/.vibe/config.json |
216
+ | Figma API 404 (file not found) | Verify fileKey extracted from URL. Check if file is shared/accessible. |
217
+ | Figma API 429 (rate limit) | Wait 60s, retry with reduced node scope (single page instead of full file) |
218
+ | API timeout on large file | Split request by page — fetch one page at a time via nodeId parameter |
219
+ | Screenshot download failure | Skip screenshot, proceed with tree.json only (mark visual verification as manual) |