@su-record/vibe 2.5.14 → 2.5.17
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/CLAUDE.md +96 -267
- package/LICENSE +21 -21
- package/README.md +262 -262
- package/agents/architect-low.md +41 -41
- package/agents/architect-medium.md +59 -59
- package/agents/architect.md +80 -80
- package/agents/build-error-resolver.md +115 -115
- package/agents/compounder.md +261 -261
- package/agents/diagrammer.md +178 -178
- package/agents/e2e-tester.md +266 -266
- package/agents/explorer-low.md +42 -42
- package/agents/explorer-medium.md +59 -59
- package/agents/explorer.md +48 -48
- package/agents/implementer-low.md +43 -43
- package/agents/implementer-medium.md +52 -52
- package/agents/implementer.md +54 -54
- package/agents/refactor-cleaner.md +143 -143
- package/agents/research/best-practices-agent.md +199 -189
- package/agents/research/codebase-patterns-agent.md +157 -147
- package/agents/research/framework-docs-agent.md +188 -178
- package/agents/research/security-advisory-agent.md +213 -203
- package/agents/review/architecture-reviewer.md +107 -107
- package/agents/review/complexity-reviewer.md +116 -116
- package/agents/review/data-integrity-reviewer.md +88 -88
- package/agents/review/git-history-reviewer.md +103 -103
- package/agents/review/performance-reviewer.md +86 -86
- package/agents/review/python-reviewer.md +150 -150
- package/agents/review/rails-reviewer.md +139 -139
- package/agents/review/react-reviewer.md +144 -144
- package/agents/review/security-reviewer.md +80 -80
- package/agents/review/simplicity-reviewer.md +140 -140
- package/agents/review/test-coverage-reviewer.md +116 -116
- package/agents/review/typescript-reviewer.md +127 -127
- package/agents/searcher.md +54 -54
- package/agents/simplifier.md +120 -120
- package/agents/tester.md +49 -49
- package/agents/ui-previewer.md +129 -129
- package/commands/vibe.analyze.md +356 -356
- package/commands/vibe.reason.md +329 -329
- package/commands/vibe.review.md +326 -326
- package/commands/vibe.run.md +1117 -1117
- package/commands/vibe.spec.md +1066 -1058
- package/commands/vibe.utils.md +353 -353
- package/commands/vibe.verify.md +375 -375
- package/dist/cli/collaborator.js +52 -52
- package/dist/cli/detect.js +32 -32
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +109 -108
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm.js +144 -144
- package/dist/lib/DeepInit.js +24 -24
- package/dist/lib/FrameworkDetector.d.ts +56 -0
- package/dist/lib/FrameworkDetector.d.ts.map +1 -0
- package/dist/lib/FrameworkDetector.js +287 -0
- package/dist/lib/FrameworkDetector.js.map +1 -0
- package/dist/lib/IterationTracker.js +11 -11
- package/dist/lib/PythonParser.js +108 -108
- package/dist/lib/RuleBuildSystem.d.ts +117 -0
- package/dist/lib/RuleBuildSystem.d.ts.map +1 -0
- package/dist/lib/RuleBuildSystem.js +402 -0
- package/dist/lib/RuleBuildSystem.js.map +1 -0
- package/dist/lib/SkillFrontmatter.js +28 -28
- package/dist/lib/SkillQualityGate.js +9 -9
- package/dist/lib/SkillRepository.js +159 -159
- package/dist/lib/UltraQA.js +77 -77
- package/dist/lib/gpt-api.js +4 -4
- package/dist/lib/memory/KnowledgeGraph.js +4 -4
- package/dist/lib/memory/MemorySearch.js +20 -20
- package/dist/lib/memory/MemoryStorage.js +64 -64
- package/dist/orchestrator/AgentManager.js +12 -12
- package/dist/orchestrator/MultiLlmResearch.js +8 -8
- package/dist/orchestrator/SmartRouter.js +11 -11
- package/dist/orchestrator/parallelResearch.js +24 -24
- package/dist/tools/convention/analyzeComplexity.test.js +115 -115
- package/dist/tools/convention/validateCodeQuality.test.js +104 -104
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/hooks/hooks.json +222 -222
- package/hooks/scripts/code-check.js +22 -22
- package/hooks/scripts/code-review.js +22 -22
- package/hooks/scripts/complexity.js +22 -22
- package/hooks/scripts/compound.js +23 -23
- package/hooks/scripts/context-save.js +33 -33
- package/hooks/scripts/generate-brand-assets.js +472 -472
- package/hooks/scripts/hud-multiline.js +262 -262
- package/hooks/scripts/hud-status.js +291 -291
- package/hooks/scripts/keyword-detector.js +214 -214
- package/hooks/scripts/llm-orchestrate.js +171 -171
- package/hooks/scripts/post-edit.js +97 -97
- package/hooks/scripts/post-tool-verify.js +210 -210
- package/hooks/scripts/pre-tool-guard.js +125 -125
- package/hooks/scripts/recall.js +22 -22
- package/hooks/scripts/session-start.js +30 -30
- package/hooks/scripts/skill-injector.js +191 -191
- package/hooks/scripts/utils.js +97 -97
- package/languages/csharp-unity.md +515 -515
- package/languages/gdscript-godot.md +470 -470
- package/languages/ruby-rails.md +489 -489
- package/languages/typescript-angular.md +433 -433
- package/languages/typescript-astro.md +416 -416
- package/languages/typescript-electron.md +406 -406
- package/languages/typescript-nestjs.md +524 -524
- package/languages/typescript-svelte.md +407 -407
- package/languages/typescript-tauri.md +365 -365
- package/package.json +83 -83
- package/skills/brand-assets.md +141 -141
- package/skills/commerce-patterns.md +361 -361
- package/skills/context7-usage.md +102 -102
- package/skills/e2e-commerce.md +304 -304
- package/skills/frontend-design.md +92 -92
- package/skills/git-worktree.md +181 -181
- package/skills/parallel-research.md +77 -77
- package/skills/priority-todos.md +239 -239
- package/skills/seo-checklist.md +244 -244
- package/skills/tool-fallback.md +190 -190
- package/skills/vibe-capabilities.md +161 -161
- package/vibe/constitution.md +227 -227
- package/vibe/rules/core/communication-guide.md +98 -98
- package/vibe/rules/core/development-philosophy.md +52 -52
- package/vibe/rules/core/quick-start.md +102 -102
- package/vibe/rules/quality/bdd-contract-testing.md +393 -393
- package/vibe/rules/quality/checklist.md +276 -276
- package/vibe/rules/quality/testing-strategy.md +440 -440
- package/vibe/rules/standards/anti-patterns.md +541 -541
- package/vibe/rules/standards/code-structure.md +291 -291
- package/vibe/rules/standards/complexity-metrics.md +313 -313
- package/vibe/rules/standards/naming-conventions.md +198 -198
- package/vibe/setup.sh +31 -31
- package/vibe/templates/constitution-template.md +252 -252
- package/vibe/templates/contract-backend-template.md +526 -526
- package/vibe/templates/contract-frontend-template.md +599 -599
- package/vibe/templates/feature-template.md +96 -96
- package/vibe/templates/spec-template.md +221 -221
- package/dist/cli/mcp.d.ts +0 -49
- package/dist/cli/mcp.d.ts.map +0 -1
- package/dist/cli/mcp.js +0 -169
- package/dist/cli/mcp.js.map +0 -1
- package/dist/lib/gemini-mcp.d.ts +0 -10
- package/dist/lib/gemini-mcp.d.ts.map +0 -1
- package/dist/lib/gemini-mcp.js +0 -353
- package/dist/lib/gemini-mcp.js.map +0 -1
- package/dist/lib/gpt-mcp.d.ts +0 -10
- package/dist/lib/gpt-mcp.d.ts.map +0 -1
- package/dist/lib/gpt-mcp.js +0 -352
- package/dist/lib/gpt-mcp.js.map +0 -1
- package/dist/tools/analytics/getUsageAnalytics.d.ts +0 -10
- package/dist/tools/analytics/getUsageAnalytics.d.ts.map +0 -1
- package/dist/tools/analytics/getUsageAnalytics.js +0 -246
- package/dist/tools/analytics/getUsageAnalytics.js.map +0 -1
- package/dist/tools/analytics/index.d.ts +0 -5
- package/dist/tools/analytics/index.d.ts.map +0 -1
- package/dist/tools/analytics/index.js +0 -5
- package/dist/tools/analytics/index.js.map +0 -1
- package/dist/tools/convention/getCodingGuide.d.ts +0 -7
- package/dist/tools/convention/getCodingGuide.d.ts.map +0 -1
- package/dist/tools/convention/getCodingGuide.js +0 -69
- package/dist/tools/convention/getCodingGuide.js.map +0 -1
- package/dist/tools/planning/analyzeRequirements.d.ts +0 -9
- package/dist/tools/planning/analyzeRequirements.d.ts.map +0 -1
- package/dist/tools/planning/analyzeRequirements.js +0 -171
- package/dist/tools/planning/analyzeRequirements.js.map +0 -1
- package/dist/tools/planning/createUserStories.d.ts +0 -9
- package/dist/tools/planning/createUserStories.d.ts.map +0 -1
- package/dist/tools/planning/createUserStories.js +0 -124
- package/dist/tools/planning/createUserStories.js.map +0 -1
- package/dist/tools/planning/featureRoadmap.d.ts +0 -10
- package/dist/tools/planning/featureRoadmap.d.ts.map +0 -1
- package/dist/tools/planning/featureRoadmap.js +0 -207
- package/dist/tools/planning/featureRoadmap.js.map +0 -1
- package/dist/tools/planning/generatePrd.d.ts +0 -11
- package/dist/tools/planning/generatePrd.d.ts.map +0 -1
- package/dist/tools/planning/generatePrd.js +0 -161
- package/dist/tools/planning/generatePrd.js.map +0 -1
- package/dist/tools/planning/index.d.ts +0 -8
- package/dist/tools/planning/index.d.ts.map +0 -1
- package/dist/tools/planning/index.js +0 -8
- package/dist/tools/planning/index.js.map +0 -1
- package/dist/tools/prompt/analyzePrompt.d.ts +0 -7
- package/dist/tools/prompt/analyzePrompt.d.ts.map +0 -1
- package/dist/tools/prompt/analyzePrompt.js +0 -150
- package/dist/tools/prompt/analyzePrompt.js.map +0 -1
- package/dist/tools/prompt/enhancePrompt.d.ts +0 -8
- package/dist/tools/prompt/enhancePrompt.d.ts.map +0 -1
- package/dist/tools/prompt/enhancePrompt.js +0 -110
- package/dist/tools/prompt/enhancePrompt.js.map +0 -1
- package/dist/tools/prompt/enhancePromptGemini.d.ts +0 -8
- package/dist/tools/prompt/enhancePromptGemini.d.ts.map +0 -1
- package/dist/tools/prompt/enhancePromptGemini.js +0 -332
- package/dist/tools/prompt/enhancePromptGemini.js.map +0 -1
- package/dist/tools/prompt/index.d.ts +0 -7
- package/dist/tools/prompt/index.d.ts.map +0 -1
- package/dist/tools/prompt/index.js +0 -7
- package/dist/tools/prompt/index.js.map +0 -1
- package/dist/tools/reasoning/applyReasoningFramework.d.ts +0 -8
- package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +0 -1
- package/dist/tools/reasoning/applyReasoningFramework.js +0 -266
- package/dist/tools/reasoning/applyReasoningFramework.js.map +0 -1
- package/dist/tools/reasoning/index.d.ts +0 -5
- package/dist/tools/reasoning/index.d.ts.map +0 -1
- package/dist/tools/reasoning/index.js +0 -5
- package/dist/tools/reasoning/index.js.map +0 -1
- package/dist/tools/thinking/analyzeProblem.d.ts +0 -7
- package/dist/tools/thinking/analyzeProblem.d.ts.map +0 -1
- package/dist/tools/thinking/analyzeProblem.js +0 -55
- package/dist/tools/thinking/analyzeProblem.js.map +0 -1
- package/dist/tools/thinking/breakDownProblem.d.ts +0 -8
- package/dist/tools/thinking/breakDownProblem.d.ts.map +0 -1
- package/dist/tools/thinking/breakDownProblem.js +0 -145
- package/dist/tools/thinking/breakDownProblem.js.map +0 -1
- package/dist/tools/thinking/createThinkingChain.d.ts +0 -7
- package/dist/tools/thinking/createThinkingChain.d.ts.map +0 -1
- package/dist/tools/thinking/createThinkingChain.js +0 -44
- package/dist/tools/thinking/createThinkingChain.js.map +0 -1
- package/dist/tools/thinking/formatAsPlan.d.ts +0 -9
- package/dist/tools/thinking/formatAsPlan.d.ts.map +0 -1
- package/dist/tools/thinking/formatAsPlan.js +0 -78
- package/dist/tools/thinking/formatAsPlan.js.map +0 -1
- package/dist/tools/thinking/index.d.ts +0 -10
- package/dist/tools/thinking/index.d.ts.map +0 -1
- package/dist/tools/thinking/index.js +0 -10
- package/dist/tools/thinking/index.js.map +0 -1
- package/dist/tools/thinking/stepByStepAnalysis.d.ts +0 -8
- package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +0 -1
- package/dist/tools/thinking/stepByStepAnalysis.js +0 -63
- package/dist/tools/thinking/stepByStepAnalysis.js.map +0 -1
- package/dist/tools/thinking/thinkAloudProcess.d.ts +0 -8
- package/dist/tools/thinking/thinkAloudProcess.d.ts.map +0 -1
- package/dist/tools/thinking/thinkAloudProcess.js +0 -80
- package/dist/tools/thinking/thinkAloudProcess.js.map +0 -1
package/CLAUDE.md
CHANGED
|
@@ -26,18 +26,6 @@ Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) f
|
|
|
26
26
|
- No `@ts-ignore` → Fix type issues at root
|
|
27
27
|
- Explicit return types on all functions
|
|
28
28
|
|
|
29
|
-
### TypeScript Rules
|
|
30
|
-
- No `any` type → use `unknown` + type guards
|
|
31
|
-
- No `as any` casting → define proper interfaces
|
|
32
|
-
- No `@ts-ignore` → fix type issues at root
|
|
33
|
-
- Explicit return types on all functions
|
|
34
|
-
|
|
35
|
-
### TypeScript Rules
|
|
36
|
-
- No `any` type → use `unknown` + type guards
|
|
37
|
-
- No `as any` casting → define proper interfaces
|
|
38
|
-
- No `@ts-ignore` → fix type issues at root
|
|
39
|
-
- Explicit return types on all functions
|
|
40
|
-
|
|
41
29
|
### Error Handling Required
|
|
42
30
|
- try-catch or error state required
|
|
43
31
|
- Loading state handling
|
|
@@ -125,7 +113,97 @@ Include `ultrawork` or `ulw` keyword to activate maximum performance mode:
|
|
|
125
113
|
| `/vibe.utils --ui "description"` | UI preview |
|
|
126
114
|
| `/vibe.utils --continue` | **Session restore** (load previous context) |
|
|
127
115
|
|
|
128
|
-
## New Features (v2.5.
|
|
116
|
+
## New Features (v2.5.15)
|
|
117
|
+
|
|
118
|
+
### Rule Build System
|
|
119
|
+
|
|
120
|
+
Compile individual rule files into consolidated AGENTS.md:
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import { buildRulesDocument, extractTestCasesFromDir } from '@su-record/vibe/tools';
|
|
124
|
+
|
|
125
|
+
// Build rules from directory
|
|
126
|
+
await buildRulesDocument('./rules', './AGENTS.md', {
|
|
127
|
+
version: '1.0.0',
|
|
128
|
+
title: 'Code Quality Rules',
|
|
129
|
+
abstract: 'Guidelines for code quality',
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
// Extract test cases for LLM evaluation
|
|
133
|
+
await extractTestCasesFromDir('./rules', './test-cases.json');
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Rule file structure:**
|
|
137
|
+
```markdown
|
|
138
|
+
---
|
|
139
|
+
title: Rule Title
|
|
140
|
+
impact: CRITICAL
|
|
141
|
+
tags: security, performance
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Rule Title
|
|
145
|
+
|
|
146
|
+
Explanation of the rule.
|
|
147
|
+
|
|
148
|
+
**Incorrect:**
|
|
149
|
+
\`\`\`typescript
|
|
150
|
+
// Bad code
|
|
151
|
+
\`\`\`
|
|
152
|
+
|
|
153
|
+
**Correct:**
|
|
154
|
+
\`\`\`typescript
|
|
155
|
+
// Good code
|
|
156
|
+
\`\`\`
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Impact-Based Classification
|
|
160
|
+
|
|
161
|
+
Rules are classified by impact level:
|
|
162
|
+
|
|
163
|
+
| Level | Color | Priority |
|
|
164
|
+
|-------|-------|----------|
|
|
165
|
+
| CRITICAL | 🔴 Red | 0 (highest) |
|
|
166
|
+
| HIGH | 🟡 Yellow | 1 |
|
|
167
|
+
| MEDIUM-HIGH | 🟡 Yellow | 2 |
|
|
168
|
+
| MEDIUM | 🔵 Cyan | 3 |
|
|
169
|
+
| LOW-MEDIUM | 🔵 Cyan | 4 |
|
|
170
|
+
| LOW | 🟢 Green | 5 |
|
|
171
|
+
|
|
172
|
+
### Framework Auto-Detection
|
|
173
|
+
|
|
174
|
+
Automatically detect project framework from package.json:
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
import { detectFramework, getFrameworkRecommendations } from '@su-record/vibe/tools';
|
|
178
|
+
|
|
179
|
+
const result = await detectFramework('./my-project');
|
|
180
|
+
// { framework: { id: 'nextjs', name: 'Next.js', category: 'fullstack' }, ... }
|
|
181
|
+
|
|
182
|
+
const recs = getFrameworkRecommendations(result.framework);
|
|
183
|
+
// { reviewers: ['react-reviewer'], rules: ['react-*'], features: ['ssr'] }
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Supported frameworks (40+):**
|
|
187
|
+
- Fullstack: Next.js, Remix, Nuxt, SvelteKit, Astro, RedwoodJS
|
|
188
|
+
- Frontend: React, Vue, Svelte, Angular, Preact
|
|
189
|
+
- Backend: NestJS, Express, Fastify, Hono, Elysia
|
|
190
|
+
- Docs: Docusaurus, VitePress, Eleventy
|
|
191
|
+
|
|
192
|
+
### Test Case Extraction
|
|
193
|
+
|
|
194
|
+
Extract good/bad examples from rules for LLM evaluation:
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import { extractTestCases, validateRule } from '@su-record/vibe/tools';
|
|
198
|
+
|
|
199
|
+
const testCases = extractTestCases(rules);
|
|
200
|
+
// [{ ruleId: '1.1', type: 'bad', code: '...', ... }]
|
|
201
|
+
|
|
202
|
+
const validation = validateRule(rule);
|
|
203
|
+
// { valid: true, errors: [] }
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Previous Features (v2.5.7-v2.5.11)
|
|
129
207
|
|
|
130
208
|
### Intelligent Model Routing
|
|
131
209
|
|
|
@@ -231,254 +309,11 @@ node hooks/scripts/hud-multiline.js single # 1-line view
|
|
|
231
309
|
|
|
232
310
|
13+ specialized agents review code simultaneously:
|
|
233
311
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
│ Performance │ performance-reviewer, complexity-reviewer │
|
|
240
|
-
│ Architecture │ architecture-reviewer, simplicity-reviewer │
|
|
241
|
-
│ Language-Specific │ python, typescript, rails, react reviewers │
|
|
242
|
-
│ Context │ git-history, test-coverage reviewers │
|
|
243
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
**Priority System:**
|
|
247
|
-
- 🔴 P1 (Critical): Blocks merge
|
|
248
|
-
- 🟡 P2 (Important): Fix recommended
|
|
249
|
-
- 🔵 P3 (Nice-to-have): Backlog
|
|
250
|
-
|
|
251
|
-
### E2E Testing (/vibe.utils --e2e)
|
|
252
|
-
|
|
253
|
-
Playwright-based automated testing:
|
|
254
|
-
|
|
255
|
-
```bash
|
|
256
|
-
/vibe.utils --e2e "login flow" # Scenario test
|
|
257
|
-
/vibe.utils --e2e --visual # Visual regression test
|
|
258
|
-
/vibe.utils --e2e --record # Video recording
|
|
259
|
-
```
|
|
260
|
-
|
|
261
|
-
### Enhanced Research Agents
|
|
262
|
-
|
|
263
|
-
4 parallel research agents run **after requirements confirmed** during `/vibe.spec`:
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
Q&A to confirm requirements → Parallel research → SPEC writing
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
| Agent | Role |
|
|
270
|
-
|-------|------|
|
|
271
|
-
| best-practices-agent | Best practices for confirmed feature+stack |
|
|
272
|
-
| framework-docs-agent | Latest docs for confirmed stack (context7) |
|
|
273
|
-
| codebase-patterns-agent | Analyze existing similar patterns |
|
|
274
|
-
| security-advisory-agent | Security advisory for confirmed feature |
|
|
275
|
-
|
|
276
|
-
**⚠️ Research runs after requirements confirmed** (VIBE principle: requirements first)
|
|
277
|
-
|
|
278
|
-
## PTCF Structure
|
|
279
|
-
|
|
280
|
-
SPEC documents are AI-executable prompt format:
|
|
281
|
-
|
|
282
|
-
```
|
|
283
|
-
<role> AI role definition
|
|
284
|
-
<context> Background, tech stack, related code
|
|
285
|
-
<task> Phase-by-phase task list
|
|
286
|
-
<constraints> Constraints
|
|
287
|
-
<output_format> Files to create/modify
|
|
288
|
-
<acceptance> Verification criteria
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
## Built-in Tools
|
|
292
|
-
|
|
293
|
-
### Semantic Code Analysis
|
|
294
|
-
| Tool | Purpose |
|
|
295
|
-
|------|---------|
|
|
296
|
-
| `vibe_find_symbol` | Find symbol definitions |
|
|
297
|
-
| `vibe_find_references` | Find references |
|
|
298
|
-
| `vibe_analyze_complexity` | Analyze complexity |
|
|
299
|
-
| `vibe_validate_code_quality` | Validate quality |
|
|
300
|
-
|
|
301
|
-
### Context Management
|
|
302
|
-
| Tool | Purpose |
|
|
303
|
-
|------|---------|
|
|
304
|
-
| `vibe_start_session` | Start session (restore previous context) |
|
|
305
|
-
| `vibe_auto_save_context` | Save current state |
|
|
306
|
-
| `vibe_save_memory` | Save important decisions |
|
|
307
|
-
|
|
308
|
-
## Agents
|
|
309
|
-
|
|
310
|
-
### Review Agents (12)
|
|
311
|
-
```
|
|
312
|
-
.claude/agents/review/
|
|
313
|
-
├── security-reviewer.md # Security vulnerabilities
|
|
314
|
-
├── performance-reviewer.md # Performance bottlenecks
|
|
315
|
-
├── architecture-reviewer.md # Architecture violations
|
|
316
|
-
├── complexity-reviewer.md # Complexity exceeded
|
|
317
|
-
├── simplicity-reviewer.md # Over-abstraction
|
|
318
|
-
├── data-integrity-reviewer.md # Data integrity
|
|
319
|
-
├── test-coverage-reviewer.md # Missing tests
|
|
320
|
-
├── git-history-reviewer.md # Risk patterns
|
|
321
|
-
├── python-reviewer.md # Python specialist
|
|
322
|
-
├── typescript-reviewer.md # TypeScript specialist
|
|
323
|
-
├── rails-reviewer.md # Rails specialist
|
|
324
|
-
└── react-reviewer.md # React specialist
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
### Research Agents (4)
|
|
328
|
-
```
|
|
329
|
-
.claude/agents/research/
|
|
330
|
-
├── best-practices-agent.md # Best practices
|
|
331
|
-
├── framework-docs-agent.md # Framework docs
|
|
332
|
-
├── codebase-patterns-agent.md # Code pattern analysis
|
|
333
|
-
└── security-advisory-agent.md # Security advisory
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
## Skills
|
|
337
|
-
|
|
338
|
-
### Git Worktree
|
|
339
|
-
```bash
|
|
340
|
-
# Isolated environment for PR review
|
|
341
|
-
git worktree add ../review-123 origin/pr/123
|
|
342
|
-
cd ../review-123 && npm test
|
|
343
|
-
git worktree remove ../review-123
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
### Priority Todos
|
|
347
|
-
```
|
|
348
|
-
.claude/vibe/todos/
|
|
349
|
-
├── P1-security-sql-injection.md # 🔴 Blocks merge
|
|
350
|
-
├── P2-perf-n1-query.md # 🟡 Fix recommended
|
|
351
|
-
└── P3-style-extract-helper.md # 🔵 Backlog
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
## Context Management Strategy
|
|
355
|
-
|
|
356
|
-
### Model Selection
|
|
357
|
-
- **Exploration/Search**: Haiku (sub-agent default)
|
|
358
|
-
- **Implementation/Debugging**: Sonnet
|
|
359
|
-
- **Architecture/Complex logic**: Opus
|
|
360
|
-
|
|
361
|
-
### At 70%+ Context (⚠️ Important)
|
|
362
|
-
```
|
|
363
|
-
❌ Don't use /compact (risk of information loss/distortion)
|
|
364
|
-
✅ save_memory to store important decisions → /new for new session
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
vibe maintains context across sessions with its own memory system:
|
|
368
|
-
1. `save_memory` - Explicitly save important decisions
|
|
369
|
-
2. `/new` - Start new session
|
|
370
|
-
3. `start_session` - Auto-restore previous session
|
|
371
|
-
|
|
372
|
-
### Session Restore
|
|
373
|
-
To continue previous work in a new session:
|
|
374
|
-
```
|
|
375
|
-
/vibe.utils --continue
|
|
376
|
-
```
|
|
377
|
-
This command calls `vibe_start_session` to restore previous context from project memory.
|
|
378
|
-
|
|
379
|
-
### Other Commands
|
|
380
|
-
- `/rewind` - Revert to previous point
|
|
381
|
-
- `/context` - Check current usage
|
|
382
|
-
|
|
383
|
-
### Using context7
|
|
384
|
-
Use context7 plugin when you need latest library documentation:
|
|
385
|
-
```
|
|
386
|
-
"Search React 19 use() hook with context7"
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
## Documentation Guidelines
|
|
390
|
-
|
|
391
|
-
### Diagrams/Structure Representation
|
|
392
|
-
- Avoid ASCII boxes (┌─┐) → Alignment breaks with mixed-width characters
|
|
393
|
-
- Use alternatives:
|
|
394
|
-
- Mermaid diagrams (GitHub/Notion supported)
|
|
395
|
-
- Markdown tables
|
|
396
|
-
- Indentation + separators
|
|
397
|
-
|
|
398
|
-
### Preferred Formats
|
|
399
|
-
| Purpose | Recommended |
|
|
400
|
-
|---------|-------------|
|
|
401
|
-
| Flowcharts | Mermaid flowchart |
|
|
402
|
-
| Structure/Hierarchy | Indented lists |
|
|
403
|
-
| Comparisons/Lists | Markdown tables |
|
|
404
|
-
| Sequences | Mermaid sequenceDiagram |
|
|
405
|
-
|
|
406
|
-
## Git Commit Rules
|
|
407
|
-
|
|
408
|
-
**Must include:**
|
|
409
|
-
- `.claude/vibe/specs/`, `.claude/vibe/features/`, `.claude/vibe/todos/` (project docs)
|
|
410
|
-
- `.claude/vibe/config.json`, `.claude/vibe/constitution.md` (project config)
|
|
411
|
-
- `CLAUDE.md`
|
|
412
|
-
|
|
413
|
-
**Exclude (globally installed):**
|
|
414
|
-
- `~/.claude/vibe/rules/`, `~/.claude/vibe/languages/`, `~/.claude/vibe/templates/` (global)
|
|
415
|
-
- `~/.claude/commands/`, `~/.claude/agents/`, `~/.claude/skills/` (global)
|
|
416
|
-
- `.claude/settings.local.json` (personal settings)
|
|
417
|
-
|
|
418
|
-
## Getting Started
|
|
419
|
-
|
|
420
|
-
```bash
|
|
421
|
-
vibe init
|
|
422
|
-
/vibe.spec "login feature"
|
|
423
|
-
```
|
|
424
|
-
|
|
425
|
-
## Full Workflow
|
|
426
|
-
|
|
427
|
-
```mermaid
|
|
428
|
-
flowchart TD
|
|
429
|
-
A["/vibe.spec"] --> B["(auto) SPEC review"]
|
|
430
|
-
B --> C["SPEC auto-enhancement"]
|
|
431
|
-
C --> D["/vibe.run ultrawork"]
|
|
432
|
-
D --> E["Gemini code review"]
|
|
433
|
-
E --> F["(auto) 13+ Agent Review"]
|
|
434
|
-
F --> G{"P1/P2 issues?"}
|
|
435
|
-
G -->|Yes| H["(auto) Auto-Fix"]
|
|
436
|
-
H --> I["✅ Done"]
|
|
437
|
-
G -->|No| I
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
| Step | Description | Automation |
|
|
441
|
-
|------|-------------|------------|
|
|
442
|
-
| 1. `/vibe.spec` | Collect requirements + Generate SPEC | Manual start |
|
|
443
|
-
| 2. SPEC review | Gemini reviews SPEC + Auto-apply | ✅ Auto |
|
|
444
|
-
| 3. `/vibe.run` | Implementation + Gemini review | Manual start |
|
|
445
|
-
| 4. Agent Review | 13+ agent parallel review | ✅ Auto |
|
|
446
|
-
| 5. Auto-Fix | P1/P2 issue auto-fix | ✅ Auto |
|
|
447
|
-
|
|
448
|
-
---
|
|
449
|
-
name: my-skill
|
|
450
|
-
model: sonnet
|
|
451
|
-
triggers: [keyword1, keyword2]
|
|
452
|
-
---
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
### Trigger-Based Skill Injection
|
|
456
|
-
|
|
457
|
-
Skills in `~/.claude/vibe/skills/` or `.claude/vibe/skills/` auto-inject on keyword match.
|
|
458
|
-
|
|
459
|
-
### Multi-Line HUD
|
|
460
|
-
|
|
461
|
-
```bash
|
|
462
|
-
node hooks/scripts/hud-multiline.js multi # Tree view
|
|
463
|
-
node hooks/scripts/hud-multiline.js compact # 2-line view
|
|
464
|
-
node hooks/scripts/hud-multiline.js single # 1-line view
|
|
465
|
-
```
|
|
466
|
-
|
|
467
|
-
### Parallel Code Review (/vibe.review)
|
|
468
|
-
|
|
469
|
-
13+ specialized agents review code simultaneously:
|
|
470
|
-
|
|
471
|
-
```
|
|
472
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
473
|
-
│ 🚀 PARALLEL REVIEW AGENTS │
|
|
474
|
-
├─────────────────────────────────────────────────────────────────┤
|
|
475
|
-
│ Security │ security-reviewer, data-integrity-reviewer │
|
|
476
|
-
│ Performance │ performance-reviewer, complexity-reviewer │
|
|
477
|
-
│ Architecture │ architecture-reviewer, simplicity-reviewer │
|
|
478
|
-
│ Language-Specific │ python, typescript, rails, react reviewers │
|
|
479
|
-
│ Context │ git-history, test-coverage reviewers │
|
|
480
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
481
|
-
```
|
|
312
|
+
- Security: security-reviewer, data-integrity-reviewer
|
|
313
|
+
- Performance: performance-reviewer, complexity-reviewer
|
|
314
|
+
- Architecture: architecture-reviewer, simplicity-reviewer
|
|
315
|
+
- Language-Specific: python, typescript, rails, react reviewers
|
|
316
|
+
- Context: git-history, test-coverage reviewers
|
|
482
317
|
|
|
483
318
|
**Priority System:**
|
|
484
319
|
- 🔴 P1 (Critical): Blocks merge
|
|
@@ -499,10 +334,6 @@ Playwright-based automated testing:
|
|
|
499
334
|
|
|
500
335
|
4 parallel research agents run **after requirements confirmed** during `/vibe.spec`:
|
|
501
336
|
|
|
502
|
-
```
|
|
503
|
-
Q&A to confirm requirements → Parallel research → SPEC writing
|
|
504
|
-
```
|
|
505
|
-
|
|
506
337
|
| Agent | Role |
|
|
507
338
|
|-------|------|
|
|
508
339
|
| best-practices-agent | Best practices for confirmed feature+stack |
|
|
@@ -510,8 +341,6 @@ Q&A to confirm requirements → Parallel research → SPEC writing
|
|
|
510
341
|
| codebase-patterns-agent | Analyze existing similar patterns |
|
|
511
342
|
| security-advisory-agent | Security advisory for confirmed feature |
|
|
512
343
|
|
|
513
|
-
**⚠️ Research runs after requirements confirmed** (VIBE principle: requirements first)
|
|
514
|
-
|
|
515
344
|
## PTCF Structure
|
|
516
345
|
|
|
517
346
|
SPEC documents are AI-executable prompt format:
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Su
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Su
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|