@su-record/vibe 3.2.5 → 3.2.7
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.en.md +1 -1
- package/README.md +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +10 -9
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
- package/dist/cli/setup/ProjectSetup.js +5 -0
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -3
- package/package.json +2 -2
- package/skills/vibe/SKILL.md +27 -86
- package/skills/vibe/references/routing-examples.md +85 -0
- package/skills/vibe.agents-md/SKILL.md +12 -10
- package/skills/vibe.analyze/SKILL.md +22 -211
- package/skills/vibe.analyze/references/mode1-feature.md +81 -0
- package/skills/vibe.analyze/references/mode2-document.md +50 -0
- package/skills/vibe.analyze/references/mode3-website.md +47 -0
- package/skills/vibe.analyze/references/mode4-quality.md +35 -0
- package/skills/vibe.brand-assets/SKILL.md +2 -2
- package/skills/vibe.brand-assets/references/mobile-assets.md +6 -0
- package/skills/vibe.capability-loop/SKILL.md +14 -80
- package/skills/vibe.capability-loop/references/escalate.md +86 -0
- package/skills/vibe.chub-usage/SKILL.md +3 -132
- package/skills/vibe.clone/SKILL.md +43 -358
- package/skills/vibe.clone/references/phase-commands.md +118 -0
- package/skills/vibe.clone/references/setup-and-layout.md +34 -0
- package/skills/vibe.clone/references/verification-loops.md +64 -0
- package/skills/vibe.commit-push-pr/SKILL.md +10 -4
- package/skills/vibe.context7-usage/SKILL.md +3 -99
- package/skills/vibe.continue/SKILL.md +17 -7
- package/skills/{vibe.handoff → vibe.continue}/agents/context-summarizer.md +1 -1
- package/skills/{vibe.handoff → vibe.continue}/agents/document-writer.md +1 -1
- package/skills/{vibe.handoff → vibe.continue}/agents/state-collector.md +1 -1
- package/skills/{vibe.handoff → vibe.continue}/agents/verifier.md +1 -1
- package/skills/{vibe.handoff/rubrics/completeness.md → vibe.continue/references/handoff-completeness.md} +1 -1
- package/skills/{vibe.handoff/templates → vibe.continue/references}/handoff.md +37 -2
- package/skills/vibe.contract/SKILL.md +4 -27
- package/skills/vibe.create-prd/SKILL.md +8 -1
- package/skills/vibe.design/SKILL.md +18 -5
- package/skills/vibe.design/references/design-context.md +184 -0
- package/skills/vibe.design-refine/SKILL.md +7 -0
- package/skills/vibe.design-review/SKILL.md +7 -0
- package/skills/vibe.design-teach/SKILL.md +2 -175
- package/skills/vibe.devlog/SKILL.md +14 -11
- package/skills/vibe.devlog/references/auto-push.md +10 -0
- package/skills/vibe.docs/SKILL.md +27 -198
- package/skills/vibe.docs/references/agent.md +55 -0
- package/skills/vibe.docs/references/arch.md +28 -0
- package/skills/vibe.docs/references/codemaps.md +17 -0
- package/skills/vibe.docs/references/diagram.md +24 -0
- package/skills/vibe.docs/references/guide.md +23 -0
- package/skills/vibe.docs/references/readme.md +45 -0
- package/skills/vibe.docs/references/release.md +31 -0
- package/skills/vibe.documentation-provider/SKILL.md +22 -0
- package/skills/vibe.documentation-provider/references/chub.md +141 -0
- package/skills/vibe.documentation-provider/references/context7.md +107 -0
- package/skills/vibe.educational-content/SKILL.md +7 -0
- package/skills/vibe.event/SKILL.md +47 -146
- package/skills/vibe.event/references/comms.md +173 -0
- package/skills/vibe.event/references/operations.md +208 -0
- package/skills/vibe.event/references/orchestration-legacy.md +97 -0
- package/skills/vibe.event/references/planning.md +145 -0
- package/skills/vibe.event-comms/SKILL.md +3 -165
- package/skills/vibe.event-ops/SKILL.md +3 -200
- package/skills/vibe.event-planning/SKILL.md +3 -137
- package/skills/vibe.figma/SKILL.md +26 -692
- package/skills/vibe.figma/references/branch1-read-convention.md +82 -0
- package/skills/vibe.figma/references/branch2-read-standalone.md +69 -0
- package/skills/vibe.figma/references/branch3-write.md +122 -0
- package/skills/vibe.figma/references/core-implementation.md +453 -0
- package/skills/vibe.git-worktree/SKILL.md +2 -6
- package/skills/vibe.git-worktree/references/troubleshooting.md +9 -0
- package/skills/vibe.handoff/SKILL.md +2 -103
- package/skills/vibe.harness/SKILL.md +17 -12
- package/skills/vibe.image/SKILL.md +8 -1
- package/skills/vibe.llm/SKILL.md +8 -1
- package/skills/vibe.loop/SKILL.md +9 -11
- package/skills/vibe.loop/references/install-adapters.md +10 -0
- package/skills/vibe.presentation/SKILL.md +7 -0
- package/skills/vibe.prioritization/SKILL.md +7 -0
- package/skills/vibe.priority-todos/SKILL.md +2 -57
- package/skills/vibe.react-best-practices/SKILL.md +1 -1
- package/skills/vibe.reason/SKILL.md +9 -2
- package/skills/vibe.regress/SKILL.md +6 -28
- package/skills/vibe.regress/templates/{test-jest.md → test-template.md} +1 -0
- package/skills/vibe.review/SKILL.md +35 -38
- package/skills/vibe.review/references/priority-todos.md +66 -0
- package/skills/vibe.review/references/ui-ux-review.md +39 -0
- package/skills/vibe.run/SKILL.md +57 -656
- package/skills/vibe.run/references/arch-guard.md +178 -0
- package/skills/vibe.run/references/e2e-and-autofix.md +40 -0
- package/skills/vibe.run/references/exec-plan.md +145 -0
- package/skills/vibe.run/references/guidelines-and-tools.md +84 -0
- package/skills/vibe.run/references/process-steps.md +179 -0
- package/skills/vibe.run/references/restraint.md +66 -0
- package/skills/vibe.scaffold/SKILL.md +9 -13
- package/skills/vibe.scaffold/references/clean-architecture.md +17 -0
- package/skills/vibe.spec/SKILL.md +12 -8
- package/skills/vibe.spec/references/legacy-artifacts.md +6 -0
- package/skills/vibe.test/SKILL.md +93 -70
- package/skills/vibe.test/references/report-template.md +101 -0
- package/skills/vibe.tool-fallback/SKILL.md +10 -32
- package/skills/vibe.tool-fallback/references/external-llm.md +10 -0
- package/skills/vibe.tool-fallback/references/file-lookup.md +9 -0
- package/skills/vibe.tool-fallback/references/web-search.md +11 -0
- package/skills/vibe.trace/SKILL.md +2 -264
- package/skills/vibe.ui-ux-pro-max/SKILL.md +1 -3
- package/skills/vibe.ui-ux-pro-max/references/charts-and-data.md +7 -0
- package/skills/vibe.user-personas/SKILL.md +8 -1
- package/skills/vibe.verify/SKILL.md +30 -4
- package/skills/vibe.verify/references/trace-mode.md +271 -0
- package/skills/vibe.regress/templates/test-vitest.md +0 -30
- /package/skills/{vibe.design-teach/rubrics → vibe.design/references}/brand-personality.md +0 -0
- /package/skills/{vibe.design-teach → vibe.design}/templates/design-context.json +0 -0
- /package/skills/{vibe.context7-usage/rubrics/when-to-use.md → vibe.documentation-provider/references/context7-when-to-use.md} +0 -0
- /package/skills/{vibe.event-ops/rubrics → vibe.event/references}/contingency.md +0 -0
- /package/skills/{vibe.event-ops/templates/d-day-checklist.md → vibe.event/references/d-day-checklist-template.md} +0 -0
- /package/skills/{vibe.event-comms/templates/email-invite.md → vibe.event/references/email-invite-template.md} +0 -0
- /package/skills/{vibe.event-planning/templates/event-plan.md → vibe.event/references/event-plan-template.md} +0 -0
- /package/skills/{vibe.event-comms/templates/sns-post.md → vibe.event/references/sns-post-template.md} +0 -0
- /package/skills/{vibe.event-planning/rubrics → vibe.event/references}/timeline.md +0 -0
- /package/skills/{vibe.priority-todos/templates/todo-board.md → vibe.review/references/todo-board-template.md} +0 -0
- /package/skills/{vibe.priority-todos/rubrics/prioritization.md → vibe.review/references/todo-prioritization.md} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vibe.analyze
|
|
3
|
-
description:
|
|
3
|
+
description: Use when code, documents, websites, Figma, or project quality must be analyzed into an evidence-backed report.
|
|
4
4
|
argument-hint: '"feature-name" or file.pdf or https://... or --code or --deps or --arch'
|
|
5
5
|
user-invocable: true
|
|
6
6
|
---
|
|
@@ -39,9 +39,9 @@ Determine analysis mode from the argument pattern:
|
|
|
39
39
|
|
|
40
40
|
## File Reading Policy (Mandatory)
|
|
41
41
|
|
|
42
|
-
- **SPEC/Feature files**: Always use
|
|
42
|
+
- **SPEC/Feature files**: Always use the harness's full-file reading capability (never text search for content)
|
|
43
43
|
- **Source files**: Read the entire file before analyzing (no partial reads)
|
|
44
|
-
- **
|
|
44
|
+
- **Text-search restriction**: Use only for locating files, not for understanding content
|
|
45
45
|
- **Agent prompts**: Always include "Read target files in full before analyzing"
|
|
46
46
|
- **No partial analysis**: Never judge a file by a few lines around a Grep match
|
|
47
47
|
|
|
@@ -55,217 +55,19 @@ Determine analysis mode from the argument pattern:
|
|
|
55
55
|
|
|
56
56
|
> **Timer**: Record start time at the beginning. Include elapsed time in the final report.
|
|
57
57
|
|
|
58
|
-
##
|
|
58
|
+
## 모드 라우팅 (하나만 로드)
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
입력 판별 결과에 따라 **아래 reference 중 정확히 하나만** 읽는다. 한 번의 호출은 한 모드만 실행하므로,
|
|
61
|
+
나머지 셋은 읽지 않는다 — 이것이 이 스킬에서 컨텍스트를 가장 크게 줄이는 지점이다.
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
| 모드 | 선택 조건 | 본문 |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| **1** Feature/Module | 인자가 기능·모듈 이름 (코드 분석) | `references/mode1-feature.md` |
|
|
66
|
+
| **2** Document | 인자가 PDF·Markdown·슬라이드 파일 | `references/mode2-document.md` |
|
|
67
|
+
| **3** Website | 인자가 http(s) URL | `references/mode3-website.md` |
|
|
68
|
+
| **4** Project Quality | `--code` / `--deps` / `--arch` 플래그 | `references/mode4-quality.md` |
|
|
66
69
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
#### 1. Request Analysis
|
|
70
|
-
|
|
71
|
-
Extract keywords from the user request:
|
|
72
|
-
- Feature name (e.g., login, feed, payment)
|
|
73
|
-
- Action (e.g., create, read, update, delete)
|
|
74
|
-
- Scope (e.g., backend only, frontend only, full)
|
|
75
|
-
|
|
76
|
-
#### 2. Understand Project Structure
|
|
77
|
-
|
|
78
|
-
Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack.
|
|
79
|
-
|
|
80
|
-
> Read `references/output-templates.md` for the full backend/frontend stack → directory mapping.
|
|
81
|
-
|
|
82
|
-
#### 3. Explore Related Code (Parallel Sub-Agents)
|
|
83
|
-
|
|
84
|
-
**MANDATORY: Always use native Explore sub-agents. Never explore in main session.**
|
|
85
|
-
|
|
86
|
-
> Why: 3 Explore agents return ~600 tokens of summaries to main session.
|
|
87
|
-
> Direct Glob/Grep/Read in main session would add 5-15K tokens of raw content.
|
|
88
|
-
|
|
89
|
-
**Parallel exploration (ALL in ONE message):**
|
|
90
|
-
|
|
91
|
-
```text
|
|
92
|
-
Agent(subagent_type="Explore", model="haiku",
|
|
93
|
-
prompt="Find all [FEATURE] related API endpoints. List file paths, HTTP methods, routes, and auth requirements.")
|
|
94
|
-
|
|
95
|
-
Agent(subagent_type="Explore", model="haiku",
|
|
96
|
-
prompt="Find all [FEATURE] related services, business logic, and utility functions. Map dependencies.")
|
|
97
|
-
|
|
98
|
-
Agent(subagent_type="Explore", model="haiku",
|
|
99
|
-
prompt="Find all [FEATURE] related data models, schemas, and database queries. Document relationships and key fields.")
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
> Read `references/output-templates.md` for the additional "Scale for large projects (6+ related files)" agent prompts.
|
|
103
|
-
|
|
104
|
-
**After all agents return:**
|
|
105
|
-
- Synthesize results → proceed to Flow Analysis
|
|
106
|
-
- Only Read specific files in main session when agent summaries need clarification
|
|
107
|
-
|
|
108
|
-
#### 4. Flow Analysis
|
|
109
|
-
|
|
110
|
-
**API Flow:**
|
|
111
|
-
- Endpoint URL and HTTP method
|
|
112
|
-
- Request/response schema
|
|
113
|
-
- Authentication/authorization requirements
|
|
114
|
-
|
|
115
|
-
**Business Logic:**
|
|
116
|
-
- Core methods and their roles
|
|
117
|
-
- Validation rules
|
|
118
|
-
- External service integrations
|
|
119
|
-
|
|
120
|
-
**Data Flow:**
|
|
121
|
-
- Related tables/models
|
|
122
|
-
- Relationships (1:N, N:M)
|
|
123
|
-
- Key query patterns
|
|
124
|
-
|
|
125
|
-
#### 5. Output
|
|
126
|
-
|
|
127
|
-
> Read `references/output-templates.md` for the full Mode 1 output format.
|
|
128
|
-
|
|
129
|
-
#### 6. Next Steps
|
|
130
|
-
|
|
131
|
-
After analysis, suggest mode-specific follow-up actions.
|
|
132
|
-
|
|
133
|
-
> Read `references/output-templates.md` for the full Next Steps decision tables (code/feature, document, website).
|
|
134
|
-
|
|
135
|
-
Wait for user's choice before proceeding.
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## Mode 2: Document Analysis (PDF, Markdown, Slides)
|
|
140
|
-
|
|
141
|
-
### Goal
|
|
142
|
-
|
|
143
|
-
Analyze document **structure, key content, quality, and applicability** to:
|
|
144
|
-
1. Extract and organize information from the document
|
|
145
|
-
2. Map relevance to the current project
|
|
146
|
-
3. Suggest follow-up actions (development, improvement, application)
|
|
147
|
-
|
|
148
|
-
### Process
|
|
149
|
-
|
|
150
|
-
#### 1. Read Document
|
|
151
|
-
|
|
152
|
-
- **PDF**: Use `Read` tool with `pages` parameter (split large documents into chunks of 20 pages)
|
|
153
|
-
- **Markdown/Text**: Use `Read` tool for the full file
|
|
154
|
-
- **Image-heavy documents**: Analyze visual elements (slides, diagrams) alongside text
|
|
155
|
-
|
|
156
|
-
#### 2. Classify Document Type
|
|
157
|
-
|
|
158
|
-
> Read `references/output-templates.md` for the full document-type → analysis-focus table.
|
|
159
|
-
|
|
160
|
-
#### 3. Analyze Content (Parallel Sub-Agents)
|
|
161
|
-
|
|
162
|
-
```text
|
|
163
|
-
Agent(subagent_type="general-purpose", model="haiku",
|
|
164
|
-
prompt="Read the document at [PATH] and extract: 1) Section structure / table of contents 2) Key concepts and definitions 3) Main arguments or claims. Use the Read tool with pages parameter for PDFs.")
|
|
165
|
-
|
|
166
|
-
Agent(subagent_type="general-purpose", model="haiku",
|
|
167
|
-
prompt="Read the document at [PATH] and extract: 1) Actionable recommendations 2) Data points, metrics, examples 3) References to external resources. Use the Read tool with pages parameter for PDFs.")
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
#### 4. Project Relevance Analysis
|
|
171
|
-
|
|
172
|
-
- Map how document content applies to the current project
|
|
173
|
-
- Check if patterns/tools/techniques mentioned are already implemented
|
|
174
|
-
- Gap analysis: document recommendations vs current project state
|
|
175
|
-
|
|
176
|
-
#### 5. Output
|
|
177
|
-
|
|
178
|
-
> Read `references/output-templates.md` for the full Mode 2 output format.
|
|
179
|
-
|
|
180
|
-
#### Fallback
|
|
181
|
-
|
|
182
|
-
If `Read` fails for a document format:
|
|
183
|
-
1. Check file extension and try alternative parsing
|
|
184
|
-
2. If binary format is unsupported, inform user and suggest converting to PDF/markdown
|
|
185
|
-
3. Never produce an analysis based on partial or failed reads
|
|
186
|
-
|
|
187
|
-
---
|
|
188
|
-
|
|
189
|
-
## Mode 3: Website Analysis (URL)
|
|
190
|
-
|
|
191
|
-
### Goal
|
|
192
|
-
|
|
193
|
-
Analyze website **tech stack, UX/UI, SEO, accessibility, and performance** to:
|
|
194
|
-
1. Understand technical implementation
|
|
195
|
-
2. Identify improvement opportunities
|
|
196
|
-
3. Collect benchmarking insights
|
|
197
|
-
|
|
198
|
-
### Process
|
|
199
|
-
|
|
200
|
-
#### 1. Fetch Website
|
|
201
|
-
|
|
202
|
-
- Use `WebFetch` tool to retrieve HTML
|
|
203
|
-
- Fetch key pages (home, main feature pages, login, etc.)
|
|
204
|
-
|
|
205
|
-
#### 2. Analyze (Parallel Sub-Agents)
|
|
206
|
-
|
|
207
|
-
```text
|
|
208
|
-
Agent(subagent_type="general-purpose", model="haiku",
|
|
209
|
-
prompt="Analyze the HTML from [URL] (use WebFetch). Extract: 1) Tech stack (framework, meta tags, scripts) 2) Page structure (header, nav, main sections, footer) 3) SEO elements (title, meta description, OG tags, structured data)")
|
|
210
|
-
|
|
211
|
-
Agent(subagent_type="general-purpose", model="haiku",
|
|
212
|
-
prompt="Analyze the HTML from [URL] (use WebFetch). Extract: 1) Accessibility (ARIA labels, semantic HTML, alt texts, heading hierarchy) 2) Performance hints (script loading, image optimization) 3) Mobile responsiveness (viewport meta, media queries)")
|
|
213
|
-
|
|
214
|
-
Agent(subagent_type="general-purpose", model="haiku",
|
|
215
|
-
prompt="Analyze the HTML from [URL] (use WebFetch). Extract: 1) UX patterns (navigation, CTA placement, form design) 2) Design system hints (CSS variables, component patterns) 3) Content strategy (copywriting tone, information hierarchy)")
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
#### 3. Figma URL Handling
|
|
219
|
-
|
|
220
|
-
If a Figma URL is detected, switch to **Figma-specific analysis**:
|
|
221
|
-
- Use `get_design_context` or `get_screenshot` to collect design data
|
|
222
|
-
- Analyze component structure, design tokens, layout patterns
|
|
223
|
-
- Compare design intent with current project code
|
|
224
|
-
|
|
225
|
-
#### 4. Output
|
|
226
|
-
|
|
227
|
-
> Read `references/output-templates.md` for the full Mode 3 output format.
|
|
228
|
-
|
|
229
|
-
#### Fallback
|
|
230
|
-
|
|
231
|
-
If `WebFetch` fails:
|
|
232
|
-
1. Retry once with a simplified URL (strip query params)
|
|
233
|
-
2. If still failing, inform user of the error (timeout, DNS, etc.)
|
|
234
|
-
3. Suggest user provide HTML file directly: `/vibe.analyze page.html`
|
|
235
|
-
|
|
236
|
-
---
|
|
237
|
-
|
|
238
|
-
## Mode 4: Project Quality Analysis (--code/--deps/--arch)
|
|
239
|
-
|
|
240
|
-
### Scope
|
|
241
|
-
|
|
242
|
-
- **Default** (`/vibe.analyze`): Full analysis (code + dependencies + architecture)
|
|
243
|
-
- `--code`: Code quality only
|
|
244
|
-
- `--deps`: Dependency analysis only
|
|
245
|
-
- `--arch`: Architecture analysis only
|
|
246
|
-
|
|
247
|
-
### Code Quality (--code)
|
|
248
|
-
|
|
249
|
-
- Cyclomatic complexity analysis
|
|
250
|
-
- Code quality validation
|
|
251
|
-
- Coupling/cohesion assessment
|
|
252
|
-
|
|
253
|
-
### Dependencies (--deps)
|
|
254
|
-
|
|
255
|
-
- Read `package.json` / `pyproject.toml` / `pubspec.yaml`
|
|
256
|
-
- Detect version conflicts, security vulnerabilities, outdated packages
|
|
257
|
-
|
|
258
|
-
### Architecture (--arch)
|
|
259
|
-
|
|
260
|
-
- Identify core modules
|
|
261
|
-
- Map module dependencies
|
|
262
|
-
- Detect circular dependencies and layer violations
|
|
263
|
-
|
|
264
|
-
### Report
|
|
265
|
-
|
|
266
|
-
Save to `.vibe/reports/analysis-{date}.md`:
|
|
267
|
-
|
|
268
|
-
> Read `references/output-templates.md` for the full Mode 4 report format.
|
|
70
|
+
두 모드가 동시에 해당하면 사용자에게 어느 쪽인지 묻는다 — 임의로 고르지 않는다.
|
|
269
71
|
|
|
270
72
|
## Core Tools (Semantic Analysis)
|
|
271
73
|
|
|
@@ -294,3 +96,12 @@ Each mode has a weighted completeness checklist. Score = sum(checked items × we
|
|
|
294
96
|
---
|
|
295
97
|
|
|
296
98
|
ARGUMENTS: $ARGUMENTS
|
|
99
|
+
|
|
100
|
+
## Done Criteria
|
|
101
|
+
|
|
102
|
+
- [ ] The report records the target and selected mode.
|
|
103
|
+
- [ ] Every material finding has a file/line, URL, or source-location citation.
|
|
104
|
+
- [ ] The selected mode's minimum depth and quality score pass.
|
|
105
|
+
- [ ] The specified `.vibe/reports/` output exists.
|
|
106
|
+
|
|
107
|
+
ARGUMENTS: $ARGUMENTS
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Mode 1: Feature/Module Analysis
|
|
2
|
+
|
|
3
|
+
> vibe.analyze SKILL.md 의 모드 라우팅에서 **이 모드가 선택됐을 때만** 로드한다.
|
|
4
|
+
|
|
5
|
+
## Mode 1: Feature/Module Analysis (`/vibe.analyze "feature-name"`)
|
|
6
|
+
|
|
7
|
+
### Goal
|
|
8
|
+
|
|
9
|
+
Explore all source code related to the requested feature/module and analyze flow to:
|
|
10
|
+
1. Understand current implementation status
|
|
11
|
+
2. Map code structure and dependencies
|
|
12
|
+
3. Build context for future development/modification requests
|
|
13
|
+
|
|
14
|
+
### Process
|
|
15
|
+
|
|
16
|
+
#### 1. Request Analysis
|
|
17
|
+
|
|
18
|
+
Extract keywords from the user request:
|
|
19
|
+
- Feature name (e.g., login, feed, payment)
|
|
20
|
+
- Action (e.g., create, read, update, delete)
|
|
21
|
+
- Scope (e.g., backend only, frontend only, full)
|
|
22
|
+
|
|
23
|
+
#### 2. Understand Project Structure
|
|
24
|
+
|
|
25
|
+
Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack.
|
|
26
|
+
|
|
27
|
+
> Read `references/output-templates.md` for the full backend/frontend stack → directory mapping.
|
|
28
|
+
|
|
29
|
+
#### 3. Explore Related Code (Parallel Sub-Agents)
|
|
30
|
+
|
|
31
|
+
**MANDATORY: Delegate independent exploration through the harness's native collaboration capability. Never explore all branches in the coordinator session.**
|
|
32
|
+
|
|
33
|
+
> Why: 3 Explore agents return ~600 tokens of summaries to main session.
|
|
34
|
+
> Direct file-pattern search, text search, and full-file reading in the coordinator session would add 5-15K tokens of raw content.
|
|
35
|
+
|
|
36
|
+
**Harness adapter:** Claude Code maps each worker to Task/Agent; Codex maps each
|
|
37
|
+
worker to native collaboration. Inherit the session model by default. Dispatch
|
|
38
|
+
the following independent workers concurrently when capacity permits:
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
- Worker: find all [FEATURE] related API endpoints; list paths, methods, routes, and auth requirements.
|
|
42
|
+
- Worker: find all [FEATURE] related services, business logic, utilities, and dependencies.
|
|
43
|
+
- Worker: find all [FEATURE] related data models, schemas, queries, relationships, and key fields.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
> Read `references/output-templates.md` for the additional "Scale for large projects (6+ related files)" agent prompts.
|
|
47
|
+
|
|
48
|
+
**After all agents return:**
|
|
49
|
+
- Synthesize results → proceed to Flow Analysis
|
|
50
|
+
- Only Read specific files in main session when agent summaries need clarification
|
|
51
|
+
|
|
52
|
+
#### 4. Flow Analysis
|
|
53
|
+
|
|
54
|
+
**API Flow:**
|
|
55
|
+
- Endpoint URL and HTTP method
|
|
56
|
+
- Request/response schema
|
|
57
|
+
- Authentication/authorization requirements
|
|
58
|
+
|
|
59
|
+
**Business Logic:**
|
|
60
|
+
- Core methods and their roles
|
|
61
|
+
- Validation rules
|
|
62
|
+
- External service integrations
|
|
63
|
+
|
|
64
|
+
**Data Flow:**
|
|
65
|
+
- Related tables/models
|
|
66
|
+
- Relationships (1:N, N:M)
|
|
67
|
+
- Key query patterns
|
|
68
|
+
|
|
69
|
+
#### 5. Output
|
|
70
|
+
|
|
71
|
+
> Read `references/output-templates.md` for the full Mode 1 output format.
|
|
72
|
+
|
|
73
|
+
#### 6. Next Steps
|
|
74
|
+
|
|
75
|
+
After analysis, suggest mode-specific follow-up actions.
|
|
76
|
+
|
|
77
|
+
> Read `references/output-templates.md` for the full Next Steps decision tables (code/feature, document, website).
|
|
78
|
+
|
|
79
|
+
Wait for user's choice before proceeding.
|
|
80
|
+
|
|
81
|
+
---
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Mode 2: Document Analysis (PDF, Markdown, Slides)
|
|
2
|
+
|
|
3
|
+
> vibe.analyze SKILL.md 의 모드 라우팅에서 **이 모드가 선택됐을 때만** 로드한다.
|
|
4
|
+
|
|
5
|
+
## Mode 2: Document Analysis (PDF, Markdown, Slides)
|
|
6
|
+
|
|
7
|
+
### Goal
|
|
8
|
+
|
|
9
|
+
Analyze document **structure, key content, quality, and applicability** to:
|
|
10
|
+
1. Extract and organize information from the document
|
|
11
|
+
2. Map relevance to the current project
|
|
12
|
+
3. Suggest follow-up actions (development, improvement, application)
|
|
13
|
+
|
|
14
|
+
### Process
|
|
15
|
+
|
|
16
|
+
#### 1. Read Document
|
|
17
|
+
|
|
18
|
+
- **PDF**: Use `Read` tool with `pages` parameter (split large documents into chunks of 20 pages)
|
|
19
|
+
- **Markdown/Text**: Use `Read` tool for the full file
|
|
20
|
+
- **Image-heavy documents**: Analyze visual elements (slides, diagrams) alongside text
|
|
21
|
+
|
|
22
|
+
#### 2. Classify Document Type
|
|
23
|
+
|
|
24
|
+
> Read `references/output-templates.md` for the full document-type → analysis-focus table.
|
|
25
|
+
|
|
26
|
+
#### 3. Analyze Content (Parallel Sub-Agents)
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
- Worker: read [PATH] in full (page ranges for PDFs) and extract section structure, key concepts, definitions, and claims.
|
|
30
|
+
- Worker: read [PATH] in full (page ranges for PDFs) and extract recommendations, data points, examples, and references.
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### 4. Project Relevance Analysis
|
|
34
|
+
|
|
35
|
+
- Map how document content applies to the current project
|
|
36
|
+
- Check if patterns/tools/techniques mentioned are already implemented
|
|
37
|
+
- Gap analysis: document recommendations vs current project state
|
|
38
|
+
|
|
39
|
+
#### 5. Output
|
|
40
|
+
|
|
41
|
+
> Read `references/output-templates.md` for the full Mode 2 output format.
|
|
42
|
+
|
|
43
|
+
#### Fallback
|
|
44
|
+
|
|
45
|
+
If `Read` fails for a document format:
|
|
46
|
+
1. Check file extension and try alternative parsing
|
|
47
|
+
2. If binary format is unsupported, inform user and suggest converting to PDF/markdown
|
|
48
|
+
3. Never produce an analysis based on partial or failed reads
|
|
49
|
+
|
|
50
|
+
---
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Mode 3: Website Analysis (URL)
|
|
2
|
+
|
|
3
|
+
> vibe.analyze SKILL.md 의 모드 라우팅에서 **이 모드가 선택됐을 때만** 로드한다.
|
|
4
|
+
|
|
5
|
+
## Mode 3: Website Analysis (URL)
|
|
6
|
+
|
|
7
|
+
### Goal
|
|
8
|
+
|
|
9
|
+
Analyze website **tech stack, UX/UI, SEO, accessibility, and performance** to:
|
|
10
|
+
1. Understand technical implementation
|
|
11
|
+
2. Identify improvement opportunities
|
|
12
|
+
3. Collect benchmarking insights
|
|
13
|
+
|
|
14
|
+
### Process
|
|
15
|
+
|
|
16
|
+
#### 1. Fetch Website
|
|
17
|
+
|
|
18
|
+
- Use the harness's web-page retrieval capability to retrieve HTML
|
|
19
|
+
- Fetch key pages (home, main feature pages, login, etc.)
|
|
20
|
+
|
|
21
|
+
#### 2. Analyze (Parallel Sub-Agents)
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
- Worker: retrieve and analyze [URL] for tech stack, page structure, and SEO elements.
|
|
25
|
+
- Worker: retrieve and analyze [URL] for accessibility, performance hints, and responsiveness.
|
|
26
|
+
- Worker: retrieve and analyze [URL] for UX patterns, design-system signals, and content strategy.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
#### 3. Figma URL Handling
|
|
30
|
+
|
|
31
|
+
If a Figma URL is detected, switch to **Figma-specific analysis**:
|
|
32
|
+
- Use `get_design_context` or `get_screenshot` to collect design data
|
|
33
|
+
- Analyze component structure, design tokens, layout patterns
|
|
34
|
+
- Compare design intent with current project code
|
|
35
|
+
|
|
36
|
+
#### 4. Output
|
|
37
|
+
|
|
38
|
+
> Read `references/output-templates.md` for the full Mode 3 output format.
|
|
39
|
+
|
|
40
|
+
#### Fallback
|
|
41
|
+
|
|
42
|
+
If web-page retrieval fails:
|
|
43
|
+
1. Retry once with a simplified URL (strip query params)
|
|
44
|
+
2. If still failing, inform user of the error (timeout, DNS, etc.)
|
|
45
|
+
3. Suggest user provide HTML file directly: `/vibe.analyze page.html`
|
|
46
|
+
|
|
47
|
+
---
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Mode 4: Project Quality Analysis (--code/--deps/--arch)
|
|
2
|
+
|
|
3
|
+
> vibe.analyze SKILL.md 의 모드 라우팅에서 **이 모드가 선택됐을 때만** 로드한다.
|
|
4
|
+
|
|
5
|
+
## Mode 4: Project Quality Analysis (--code/--deps/--arch)
|
|
6
|
+
|
|
7
|
+
### Scope
|
|
8
|
+
|
|
9
|
+
- **Default** (`/vibe.analyze`): Full analysis (code + dependencies + architecture)
|
|
10
|
+
- `--code`: Code quality only
|
|
11
|
+
- `--deps`: Dependency analysis only
|
|
12
|
+
- `--arch`: Architecture analysis only
|
|
13
|
+
|
|
14
|
+
### Code Quality (--code)
|
|
15
|
+
|
|
16
|
+
- Cyclomatic complexity analysis
|
|
17
|
+
- Code quality validation
|
|
18
|
+
- Coupling/cohesion assessment
|
|
19
|
+
|
|
20
|
+
### Dependencies (--deps)
|
|
21
|
+
|
|
22
|
+
- Read `package.json` / `pyproject.toml` / `pubspec.yaml`
|
|
23
|
+
- Detect version conflicts, security vulnerabilities, outdated packages
|
|
24
|
+
|
|
25
|
+
### Architecture (--arch)
|
|
26
|
+
|
|
27
|
+
- Identify core modules
|
|
28
|
+
- Map module dependencies
|
|
29
|
+
- Detect circular dependencies and layer violations
|
|
30
|
+
|
|
31
|
+
### Report
|
|
32
|
+
|
|
33
|
+
Save to `.vibe/reports/analysis-{date}.md`:
|
|
34
|
+
|
|
35
|
+
> Read `references/output-templates.md` for the full Mode 4 report format.
|
|
@@ -32,8 +32,8 @@ Auto-generate app icons and favicons based on SPEC brand information.
|
|
|
32
32
|
- `android-chrome-512x512.png`
|
|
33
33
|
|
|
34
34
|
### Mobile (if applicable)
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
|
|
36
|
+
For native iOS or Android targets only, read `references/mobile-assets.md`. Web-only favicon/OG calls do not load it.
|
|
37
37
|
|
|
38
38
|
## SPEC Brand Section
|
|
39
39
|
|
|
@@ -3,7 +3,7 @@ name: vibe.capability-loop
|
|
|
3
3
|
user-invocable: false
|
|
4
4
|
invocation: [auto]
|
|
5
5
|
tier: standard
|
|
6
|
-
description:
|
|
6
|
+
description: Use when the same agent or tool failure repeats, or a missing capability blocks progress, to reproduce the cause and build a permanent repository capability.
|
|
7
7
|
triggers: [capability loop, failure loop, build capability, missing capability, agent failed, why did it fail]
|
|
8
8
|
priority: 60
|
|
9
9
|
---
|
|
@@ -113,87 +113,13 @@ Based on classification, build the appropriate artifact:
|
|
|
113
113
|
- ✅ **Capability prevents the failure** → Step 5 PERSIST
|
|
114
114
|
- ❌ **Capability does NOT prevent the failure** → Step 4.5 ESCALATE (re-diagnose or ask user)
|
|
115
115
|
|
|
116
|
-
### Step 4.5: ESCALATE — When VERIFY Fails
|
|
116
|
+
### Step 4.5: ESCALATE — When VERIFY Fails (조건부)
|
|
117
117
|
|
|
118
|
-
>
|
|
119
|
-
>
|
|
120
|
-
>
|
|
118
|
+
> **진입 조건**: Step 4 VERIFY 실패. 통과했으면 이 단계 전체를 건너뛴다.
|
|
119
|
+
> **Problem**: 만든 capability 가 실제로 실패를 막지 못했다는 뜻 — 대개 초기 진단이 틀렸거나(Tool 로 골랐는데 Guardrail 이 필요했다) 누락 capability 가 여럿이다.
|
|
120
|
+
> **조용히 진행 금지** — 미달 capability 로그는 `.vibe/capabilities-log.md` 를 오염시키고 실패는 재발한다.
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
```python
|
|
125
|
-
tried = [current_diagnosis.category] # e.g., ["Tool"]
|
|
126
|
-
|
|
127
|
-
while True:
|
|
128
|
-
# Re-diagnose excluding already-tried categories
|
|
129
|
-
next_diagnosis = diagnose(failure, exclude=tried)
|
|
130
|
-
|
|
131
|
-
if next_diagnosis is None:
|
|
132
|
-
# All 5 categories (Tool/Guardrail/Abstraction/Documentation/Feedback) exhausted
|
|
133
|
-
escalate_to_user(failure, tried)
|
|
134
|
-
break
|
|
135
|
-
|
|
136
|
-
if next_diagnosis.category in tried:
|
|
137
|
-
# Stuck: diagnose keeps returning the same category
|
|
138
|
-
escalate_to_user(failure, tried)
|
|
139
|
-
break
|
|
140
|
-
|
|
141
|
-
tried.append(next_diagnosis.category)
|
|
142
|
-
capability = build(next_diagnosis)
|
|
143
|
-
|
|
144
|
-
if verify(capability, failure):
|
|
145
|
-
persist(capability)
|
|
146
|
-
return # Success — go to Step 5
|
|
147
|
-
|
|
148
|
-
# Still failing — next iteration
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**User escalation prompt (interactive mode):**
|
|
152
|
-
|
|
153
|
-
```
|
|
154
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
155
|
-
⚠️ CAPABILITY LOOP STUCK
|
|
156
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
157
|
-
|
|
158
|
-
Failure: {original failure description}
|
|
159
|
-
|
|
160
|
-
Tried capabilities (all failed to prevent the failure):
|
|
161
|
-
❌ Tool: {what was built, why it didn't work}
|
|
162
|
-
❌ Guardrail: {what was built, why it didn't work}
|
|
163
|
-
❌ Documentation: {what was built, why it didn't work}
|
|
164
|
-
|
|
165
|
-
Automated diagnosis has run out of angles. This failure may require
|
|
166
|
-
human judgment (process issue, cross-category solution, or external factor).
|
|
167
|
-
|
|
168
|
-
How would you like to proceed?
|
|
169
|
-
1. Suggest a different angle (e.g., "this is a process issue", "needs Tool+Guardrail combination")
|
|
170
|
-
→ Attempt custom approach per user instruction, then enter next verify
|
|
171
|
-
2. "manual" — resolve this failure via manual intervention, end capability loop
|
|
172
|
-
(record "escalated to manual" in capabilities-log.md)
|
|
173
|
-
3. "abort" — give up, record failure only
|
|
174
|
-
(record "diagnosis exhausted" in capabilities-log.md, do not halt the rest of the workflow)
|
|
175
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
**ultrawork mode exception:**
|
|
179
|
-
|
|
180
|
-
```python
|
|
181
|
-
if ultrawork_mode:
|
|
182
|
-
# Skip user prompt: try all 5 categories in sequence, record final state
|
|
183
|
-
all_tried_exhausted = exhaust_all_categories(failure, tried)
|
|
184
|
-
record_failure_to_log(
|
|
185
|
-
status="diagnosis_exhausted",
|
|
186
|
-
tried=all_tried_exhausted,
|
|
187
|
-
failure=failure
|
|
188
|
-
)
|
|
189
|
-
return # Proceed without blocking downstream workflow
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
**Rollback of failed builds:**
|
|
193
|
-
|
|
194
|
-
- Each failed capability build should be rolled back before trying the next category (unless it's non-destructive documentation).
|
|
195
|
-
- For code additions (tool/guardrail/abstraction): `git checkout -- {files}` or delete created files.
|
|
196
|
-
- For docs-only additions: leave in place (low risk) but note in escalation prompt.
|
|
122
|
+
에스컬레이션 루프 전문(재진단·타입 재분류·롤백 판단): `references/escalate.md`
|
|
197
123
|
|
|
198
124
|
### Step 5: PERSIST — Record for Future Reference
|
|
199
125
|
|
|
@@ -272,3 +198,11 @@ VERIFY: Does the built capability actually prevent the failure?
|
|
|
272
198
|
- After `/vibe.run` failure → auto-trigger capability-loop diagnosis
|
|
273
199
|
- After `/vibe.review` findings → suggest capability-loop for recurring patterns
|
|
274
200
|
- After manual agent correction → prompt "What capability would have prevented this?"
|
|
201
|
+
|
|
202
|
+
## Done Criteria
|
|
203
|
+
|
|
204
|
+
- [ ] The pre-change reproduction command and failing output are recorded.
|
|
205
|
+
- [ ] The missing capability type and selection evidence are recorded.
|
|
206
|
+
- [ ] The same reproduction command passes after the change.
|
|
207
|
+
- [ ] The related deterministic test or guard passes.
|
|
208
|
+
- [ ] The capability log contains status and verification evidence.
|