@su-record/vibe 2.6.14 → 2.6.16
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 +1 -394
- package/LICENSE +21 -21
- package/README.md +203 -497
- 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 -199
- package/agents/research/codebase-patterns-agent.md +157 -157
- package/agents/research/framework-docs-agent.md +188 -188
- package/agents/research/security-advisory-agent.md +213 -213
- 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 +268 -268
- package/commands/vibe.analyze.md +356 -356
- package/commands/vibe.reason.md +329 -329
- package/commands/vibe.review.md +412 -412
- package/commands/vibe.run.md +1266 -1266
- package/commands/vibe.spec.md +1054 -1054
- package/commands/vibe.spec.review.md +319 -319
- package/commands/vibe.trace.md +161 -161
- package/commands/vibe.utils.md +376 -376
- package/commands/vibe.verify.md +375 -375
- package/dist/cli/collaborator.js +52 -52
- package/dist/cli/detect.js +32 -32
- package/dist/cli/hud.js +20 -20
- package/dist/cli/index.js +118 -118
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm.js +144 -144
- package/dist/cli/mcp.d.ts +49 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +169 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/postinstall.js +858 -858
- package/dist/cli/setup/ProjectSetup.d.ts +3 -3
- package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
- package/dist/cli/setup/ProjectSetup.js +76 -30
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/dist/lib/DeepInit.js +24 -24
- package/dist/lib/IterationTracker.js +11 -11
- package/dist/lib/PythonParser.js +108 -108
- package/dist/lib/ReviewRace.js +96 -96
- 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/gemini-api.js +5 -5
- package/dist/lib/gemini-mcp.d.ts +10 -0
- package/dist/lib/gemini-mcp.d.ts.map +1 -0
- package/dist/lib/gemini-mcp.js +353 -0
- package/dist/lib/gemini-mcp.js.map +1 -0
- package/dist/lib/gpt-api.js +4 -4
- package/dist/lib/gpt-mcp.d.ts +10 -0
- package/dist/lib/gpt-mcp.d.ts.map +1 -0
- package/dist/lib/gpt-mcp.js +352 -0
- package/dist/lib/gpt-mcp.js.map +1 -0
- 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/analytics/getUsageAnalytics.d.ts +10 -0
- package/dist/tools/analytics/getUsageAnalytics.d.ts.map +1 -0
- package/dist/tools/analytics/getUsageAnalytics.js +246 -0
- package/dist/tools/analytics/getUsageAnalytics.js.map +1 -0
- package/dist/tools/analytics/index.d.ts +5 -0
- package/dist/tools/analytics/index.d.ts.map +1 -0
- package/dist/tools/analytics/index.js +5 -0
- package/dist/tools/analytics/index.js.map +1 -0
- package/dist/tools/convention/analyzeComplexity.test.js +115 -115
- package/dist/tools/convention/getCodingGuide.d.ts +7 -0
- package/dist/tools/convention/getCodingGuide.d.ts.map +1 -0
- package/dist/tools/convention/getCodingGuide.js +69 -0
- package/dist/tools/convention/getCodingGuide.js.map +1 -0
- package/dist/tools/convention/validateCodeQuality.test.js +104 -104
- package/dist/tools/planning/analyzeRequirements.d.ts +9 -0
- package/dist/tools/planning/analyzeRequirements.d.ts.map +1 -0
- package/dist/tools/planning/analyzeRequirements.js +171 -0
- package/dist/tools/planning/analyzeRequirements.js.map +1 -0
- package/dist/tools/planning/createUserStories.d.ts +9 -0
- package/dist/tools/planning/createUserStories.d.ts.map +1 -0
- package/dist/tools/planning/createUserStories.js +124 -0
- package/dist/tools/planning/createUserStories.js.map +1 -0
- package/dist/tools/planning/featureRoadmap.d.ts +10 -0
- package/dist/tools/planning/featureRoadmap.d.ts.map +1 -0
- package/dist/tools/planning/featureRoadmap.js +207 -0
- package/dist/tools/planning/featureRoadmap.js.map +1 -0
- package/dist/tools/planning/generatePrd.d.ts +11 -0
- package/dist/tools/planning/generatePrd.d.ts.map +1 -0
- package/dist/tools/planning/generatePrd.js +161 -0
- package/dist/tools/planning/generatePrd.js.map +1 -0
- package/dist/tools/planning/index.d.ts +8 -0
- package/dist/tools/planning/index.d.ts.map +1 -0
- package/dist/tools/planning/index.js +8 -0
- package/dist/tools/planning/index.js.map +1 -0
- package/dist/tools/prompt/analyzePrompt.d.ts +7 -0
- package/dist/tools/prompt/analyzePrompt.d.ts.map +1 -0
- package/dist/tools/prompt/analyzePrompt.js +150 -0
- package/dist/tools/prompt/analyzePrompt.js.map +1 -0
- package/dist/tools/prompt/enhancePrompt.d.ts +8 -0
- package/dist/tools/prompt/enhancePrompt.d.ts.map +1 -0
- package/dist/tools/prompt/enhancePrompt.js +110 -0
- package/dist/tools/prompt/enhancePrompt.js.map +1 -0
- package/dist/tools/prompt/enhancePromptGemini.d.ts +8 -0
- package/dist/tools/prompt/enhancePromptGemini.d.ts.map +1 -0
- package/dist/tools/prompt/enhancePromptGemini.js +332 -0
- package/dist/tools/prompt/enhancePromptGemini.js.map +1 -0
- package/dist/tools/prompt/index.d.ts +7 -0
- package/dist/tools/prompt/index.d.ts.map +1 -0
- package/dist/tools/prompt/index.js +7 -0
- package/dist/tools/prompt/index.js.map +1 -0
- package/dist/tools/reasoning/applyReasoningFramework.d.ts +8 -0
- package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +1 -0
- package/dist/tools/reasoning/applyReasoningFramework.js +266 -0
- package/dist/tools/reasoning/applyReasoningFramework.js.map +1 -0
- package/dist/tools/reasoning/index.d.ts +5 -0
- package/dist/tools/reasoning/index.d.ts.map +1 -0
- package/dist/tools/reasoning/index.js +5 -0
- package/dist/tools/reasoning/index.js.map +1 -0
- package/dist/tools/spec/prdParser.test.js +171 -171
- package/dist/tools/spec/specGenerator.js +169 -169
- package/dist/tools/spec/traceabilityMatrix.js +64 -64
- package/dist/tools/spec/traceabilityMatrix.test.js +28 -28
- package/dist/tools/thinking/analyzeProblem.d.ts +7 -0
- package/dist/tools/thinking/analyzeProblem.d.ts.map +1 -0
- package/dist/tools/thinking/analyzeProblem.js +55 -0
- package/dist/tools/thinking/analyzeProblem.js.map +1 -0
- package/dist/tools/thinking/breakDownProblem.d.ts +8 -0
- package/dist/tools/thinking/breakDownProblem.d.ts.map +1 -0
- package/dist/tools/thinking/breakDownProblem.js +145 -0
- package/dist/tools/thinking/breakDownProblem.js.map +1 -0
- package/dist/tools/thinking/createThinkingChain.d.ts +7 -0
- package/dist/tools/thinking/createThinkingChain.d.ts.map +1 -0
- package/dist/tools/thinking/createThinkingChain.js +44 -0
- package/dist/tools/thinking/createThinkingChain.js.map +1 -0
- package/dist/tools/thinking/formatAsPlan.d.ts +9 -0
- package/dist/tools/thinking/formatAsPlan.d.ts.map +1 -0
- package/dist/tools/thinking/formatAsPlan.js +78 -0
- package/dist/tools/thinking/formatAsPlan.js.map +1 -0
- package/dist/tools/thinking/index.d.ts +10 -0
- package/dist/tools/thinking/index.d.ts.map +1 -0
- package/dist/tools/thinking/index.js +10 -0
- package/dist/tools/thinking/index.js.map +1 -0
- package/dist/tools/thinking/stepByStepAnalysis.d.ts +8 -0
- package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +1 -0
- package/dist/tools/thinking/stepByStepAnalysis.js +63 -0
- package/dist/tools/thinking/stepByStepAnalysis.js.map +1 -0
- package/dist/tools/thinking/thinkAloudProcess.d.ts +8 -0
- package/dist/tools/thinking/thinkAloudProcess.d.ts.map +1 -0
- package/dist/tools/thinking/thinkAloudProcess.js +80 -0
- package/dist/tools/thinking/thinkAloudProcess.js.map +1 -0
- 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/gemini-ui-gen.js +281 -281
- package/hooks/scripts/generate-brand-assets.js +474 -474
- 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 +84 -84
- 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/CLAUDE.md
CHANGED
|
@@ -30,18 +30,6 @@ Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) f
|
|
|
30
30
|
- No `@ts-ignore` → Fix type issues at root
|
|
31
31
|
- Explicit return types on all functions
|
|
32
32
|
|
|
33
|
-
### TypeScript Rules
|
|
34
|
-
- No `any` type → use `unknown` + type guards
|
|
35
|
-
- No `as any` casting → define proper interfaces
|
|
36
|
-
- No `@ts-ignore` → fix type issues at root
|
|
37
|
-
- Explicit return types on all functions
|
|
38
|
-
|
|
39
|
-
### TypeScript Rules
|
|
40
|
-
- No `any` type → use `unknown` + type guards
|
|
41
|
-
- No `as any` casting → define proper interfaces
|
|
42
|
-
- No `@ts-ignore` → fix type issues at root
|
|
43
|
-
- Explicit return types on all functions
|
|
44
|
-
|
|
45
33
|
### Error Handling Required
|
|
46
34
|
- try-catch or error state required
|
|
47
35
|
- Loading state handling
|
|
@@ -690,385 +678,4 @@ flowchart TD
|
|
|
690
678
|
| 4. Agent Review | 13+ agent parallel review | ✅ Auto |
|
|
691
679
|
| 5. Auto-Fix | P1/P2 issue auto-fix | ✅ Auto |
|
|
692
680
|
|
|
693
|
-
|
|
694
|
-
title: Rule Title
|
|
695
|
-
impact: CRITICAL
|
|
696
|
-
tags: security, performance
|
|
697
|
-
---
|
|
698
|
-
|
|
699
|
-
## Rule Title
|
|
700
|
-
|
|
701
|
-
Explanation of the rule.
|
|
702
|
-
|
|
703
|
-
**Incorrect:**
|
|
704
|
-
\`\`\`typescript
|
|
705
|
-
// Bad code
|
|
706
|
-
\`\`\`
|
|
707
|
-
|
|
708
|
-
**Correct:**
|
|
709
|
-
\`\`\`typescript
|
|
710
|
-
// Good code
|
|
711
|
-
\`\`\`
|
|
712
|
-
```
|
|
713
|
-
|
|
714
|
-
### Impact-Based Classification
|
|
715
|
-
|
|
716
|
-
Rules are classified by impact level:
|
|
717
|
-
|
|
718
|
-
| Level | Color | Priority |
|
|
719
|
-
|-------|-------|----------|
|
|
720
|
-
| CRITICAL | 🔴 Red | 0 (highest) |
|
|
721
|
-
| HIGH | 🟡 Yellow | 1 |
|
|
722
|
-
| MEDIUM-HIGH | 🟡 Yellow | 2 |
|
|
723
|
-
| MEDIUM | 🔵 Cyan | 3 |
|
|
724
|
-
| LOW-MEDIUM | 🔵 Cyan | 4 |
|
|
725
|
-
| LOW | 🟢 Green | 5 |
|
|
726
|
-
|
|
727
|
-
### Framework Auto-Detection
|
|
728
|
-
|
|
729
|
-
Automatically detect project framework from package.json:
|
|
730
|
-
|
|
731
|
-
```typescript
|
|
732
|
-
import { detectFramework, getFrameworkRecommendations } from '@su-record/vibe/tools';
|
|
733
|
-
|
|
734
|
-
const result = await detectFramework('./my-project');
|
|
735
|
-
// { framework: { id: 'nextjs', name: 'Next.js', category: 'fullstack' }, ... }
|
|
736
|
-
|
|
737
|
-
const recs = getFrameworkRecommendations(result.framework);
|
|
738
|
-
// { reviewers: ['react-reviewer'], rules: ['react-*'], features: ['ssr'] }
|
|
739
|
-
```
|
|
740
|
-
|
|
741
|
-
**Supported frameworks (40+):**
|
|
742
|
-
- Fullstack: Next.js, Remix, Nuxt, SvelteKit, Astro, RedwoodJS
|
|
743
|
-
- Frontend: React, Vue, Svelte, Angular, Preact
|
|
744
|
-
- Backend: NestJS, Express, Fastify, Hono, Elysia
|
|
745
|
-
- Docs: Docusaurus, VitePress, Eleventy
|
|
746
|
-
|
|
747
|
-
### Test Case Extraction
|
|
748
|
-
|
|
749
|
-
Extract good/bad examples from rules for LLM evaluation:
|
|
750
|
-
|
|
751
|
-
```typescript
|
|
752
|
-
import { extractTestCases, validateRule } from '@su-record/vibe/tools';
|
|
753
|
-
|
|
754
|
-
const testCases = extractTestCases(rules);
|
|
755
|
-
// [{ ruleId: '1.1', type: 'bad', code: '...', ... }]
|
|
756
|
-
|
|
757
|
-
const validation = validateRule(rule);
|
|
758
|
-
// { valid: true, errors: [] }
|
|
759
|
-
```
|
|
760
|
-
|
|
761
|
-
## Previous Features (v2.5.7-v2.5.11)
|
|
762
|
-
|
|
763
|
-
### Intelligent Model Routing
|
|
764
|
-
|
|
765
|
-
Automatic model selection based on task complexity:
|
|
766
|
-
|
|
767
|
-
| Complexity | Model | When |
|
|
768
|
-
|------------|-------|------|
|
|
769
|
-
| Low (0-7) | Haiku | Simple fixes, searches |
|
|
770
|
-
| Medium (8-19) | Sonnet | Standard features, 3-5 files |
|
|
771
|
-
| High (20+) | Opus | Architecture, security, 6+ files |
|
|
772
|
-
|
|
773
|
-
### Agent Tier System
|
|
774
|
-
|
|
775
|
-
Cost-optimized agent variants:
|
|
776
|
-
|
|
777
|
-
| Agent | Low | Medium | High |
|
|
778
|
-
|-------|-----|--------|------|
|
|
779
|
-
| explorer | explorer-low | explorer-medium | explorer |
|
|
780
|
-
| implementer | implementer-low | implementer-medium | implementer |
|
|
781
|
-
| architect | architect-low | architect-medium | architect |
|
|
782
|
-
|
|
783
|
-
### Magic Keywords
|
|
784
|
-
|
|
785
|
-
| Keyword | Effect |
|
|
786
|
-
|---------|--------|
|
|
787
|
-
| `ultrawork` / `ulw` | Parallel + auto-continue + Ralph Loop |
|
|
788
|
-
| `ralph` | **Ralph Loop**: Iterate until 100% complete (no scope reduction) |
|
|
789
|
-
| `ralplan` | Iterative planning + persistence |
|
|
790
|
-
| `verify` | Strict verification mode |
|
|
791
|
-
| `quick` | Fast mode, minimal verification |
|
|
792
|
-
|
|
793
|
-
**Combinations supported:** `ralph ultrawork`, `ralph verify`, etc.
|
|
794
|
-
|
|
795
|
-
**Ralph Loop** (from [ghuntley.com/ralph](https://ghuntley.com/ralph)):
|
|
796
|
-
|
|
797
|
-
- Compares ORIGINAL request vs current implementation
|
|
798
|
-
- Lists ALL missing items explicitly
|
|
799
|
-
- Iterates until 100% complete (max 5 iterations)
|
|
800
|
-
- **ZERO tolerance for scope reduction** - Never say "basic version" or "simplified"
|
|
801
|
-
|
|
802
|
-
### Skill Quality Gate
|
|
803
|
-
|
|
804
|
-
Memory saves are validated for quality:
|
|
805
|
-
|
|
806
|
-
- Rejects generic/searchable information
|
|
807
|
-
- Requires context, specificity, actionability
|
|
808
|
-
- Suggests principle format: "When X, do Y because Z"
|
|
809
|
-
|
|
810
|
-
### HUD Status (Real-time)
|
|
811
|
-
|
|
812
|
-
```bash
|
|
813
|
-
node hooks/scripts/hud-status.js show full
|
|
814
|
-
node hooks/scripts/hud-status.js start ultrawork "feature"
|
|
815
|
-
node hooks/scripts/hud-status.js phase 2 5 "Implementing core"
|
|
816
|
-
```
|
|
817
|
-
|
|
818
|
-
### Pre/Post Tool Hooks
|
|
819
|
-
|
|
820
|
-
- **PreToolUse**: Validates dangerous commands before execution
|
|
821
|
-
- **PostToolUse**: Provides error recovery hints
|
|
822
|
-
|
|
823
|
-
### Orchestrate Workflow
|
|
824
|
-
|
|
825
|
-
Intent Gate → Codebase Assessment → Delegation → Verification pattern:
|
|
826
|
-
|
|
827
|
-
```typescript
|
|
828
|
-
import { checkIntentGate, assessCodebase, createDelegationPlan } from '@su-record/vibe/tools';
|
|
829
|
-
```
|
|
830
|
-
|
|
831
|
-
### UltraQA (5-Cycle Autonomous QA)
|
|
832
|
-
|
|
833
|
-
```
|
|
834
|
-
Test/Build/Lint → Fail → Architect Diagnosis → Executor Fix → Repeat (max 5)
|
|
835
|
-
```
|
|
836
|
-
|
|
837
|
-
Exit conditions: All pass, Max cycles, Same failure 3x
|
|
838
|
-
|
|
839
|
-
### DeepInit (Hierarchical AGENTS.md)
|
|
840
|
-
|
|
841
|
-
```
|
|
842
|
-
project/
|
|
843
|
-
├── AGENTS.md ← Root
|
|
844
|
-
├── src/
|
|
845
|
-
│ └── AGENTS.md ← <!-- Parent: ../AGENTS.md -->
|
|
846
|
-
```
|
|
847
|
-
|
|
848
|
-
### Skill Frontmatter System
|
|
849
|
-
|
|
850
|
-
```yaml
|
|
851
|
-
---
|
|
852
|
-
name: my-skill
|
|
853
|
-
model: sonnet
|
|
854
|
-
triggers: [keyword1, keyword2]
|
|
855
|
-
---
|
|
856
|
-
```
|
|
857
|
-
|
|
858
|
-
### Trigger-Based Skill Injection
|
|
859
|
-
|
|
860
|
-
Skills in `~/.claude/vibe/skills/` or `.claude/vibe/skills/` auto-inject on keyword match.
|
|
861
|
-
|
|
862
|
-
### Multi-Line HUD
|
|
863
|
-
|
|
864
|
-
```bash
|
|
865
|
-
node hooks/scripts/hud-multiline.js multi # Tree view
|
|
866
|
-
node hooks/scripts/hud-multiline.js compact # 2-line view
|
|
867
|
-
node hooks/scripts/hud-multiline.js single # 1-line view
|
|
868
|
-
```
|
|
869
|
-
|
|
870
|
-
### Parallel Code Review (/vibe.review)
|
|
871
|
-
|
|
872
|
-
13+ specialized agents review code simultaneously:
|
|
873
|
-
|
|
874
|
-
- Security: security-reviewer, data-integrity-reviewer
|
|
875
|
-
- Performance: performance-reviewer, complexity-reviewer
|
|
876
|
-
- Architecture: architecture-reviewer, simplicity-reviewer
|
|
877
|
-
- Language-Specific: python, typescript, rails, react reviewers
|
|
878
|
-
- Context: git-history, test-coverage reviewers
|
|
879
|
-
|
|
880
|
-
**Priority System:**
|
|
881
|
-
- 🔴 P1 (Critical): Blocks merge
|
|
882
|
-
- 🟡 P2 (Important): Fix recommended
|
|
883
|
-
- 🔵 P3 (Nice-to-have): Backlog
|
|
884
|
-
|
|
885
|
-
### E2E Testing (/vibe.utils --e2e)
|
|
886
|
-
|
|
887
|
-
Playwright-based automated testing:
|
|
888
|
-
|
|
889
|
-
```bash
|
|
890
|
-
/vibe.utils --e2e "login flow" # Scenario test
|
|
891
|
-
/vibe.utils --e2e --visual # Visual regression test
|
|
892
|
-
/vibe.utils --e2e --record # Video recording
|
|
893
|
-
```
|
|
894
|
-
|
|
895
|
-
### Enhanced Research Agents
|
|
896
|
-
|
|
897
|
-
4 parallel research agents run **after requirements confirmed** during `/vibe.spec`:
|
|
898
|
-
|
|
899
|
-
| Agent | Role |
|
|
900
|
-
|-------|------|
|
|
901
|
-
| best-practices-agent | Best practices for confirmed feature+stack |
|
|
902
|
-
| framework-docs-agent | Latest docs for confirmed stack (context7) |
|
|
903
|
-
| codebase-patterns-agent | Analyze existing similar patterns |
|
|
904
|
-
| security-advisory-agent | Security advisory for confirmed feature |
|
|
905
|
-
|
|
906
|
-
## PTCF Structure
|
|
907
|
-
|
|
908
|
-
SPEC documents are AI-executable prompt format:
|
|
909
|
-
|
|
910
|
-
```
|
|
911
|
-
<role> AI role definition
|
|
912
|
-
<context> Background, tech stack, related code
|
|
913
|
-
<task> Phase-by-phase task list
|
|
914
|
-
<constraints> Constraints
|
|
915
|
-
<output_format> Files to create/modify
|
|
916
|
-
<acceptance> Verification criteria
|
|
917
|
-
```
|
|
918
|
-
|
|
919
|
-
## Built-in Tools
|
|
920
|
-
|
|
921
|
-
### Semantic Code Analysis
|
|
922
|
-
| Tool | Purpose |
|
|
923
|
-
|------|---------|
|
|
924
|
-
| `vibe_find_symbol` | Find symbol definitions |
|
|
925
|
-
| `vibe_find_references` | Find references |
|
|
926
|
-
| `vibe_analyze_complexity` | Analyze complexity |
|
|
927
|
-
| `vibe_validate_code_quality` | Validate quality |
|
|
928
|
-
|
|
929
|
-
### Context Management
|
|
930
|
-
| Tool | Purpose |
|
|
931
|
-
|------|---------|
|
|
932
|
-
| `vibe_start_session` | Start session (restore previous context) |
|
|
933
|
-
| `vibe_auto_save_context` | Save current state |
|
|
934
|
-
| `vibe_save_memory` | Save important decisions |
|
|
935
|
-
|
|
936
|
-
## Agents
|
|
937
|
-
|
|
938
|
-
### Review Agents (12)
|
|
939
|
-
```
|
|
940
|
-
.claude/agents/review/
|
|
941
|
-
├── security-reviewer.md # Security vulnerabilities
|
|
942
|
-
├── performance-reviewer.md # Performance bottlenecks
|
|
943
|
-
├── architecture-reviewer.md # Architecture violations
|
|
944
|
-
├── complexity-reviewer.md # Complexity exceeded
|
|
945
|
-
├── simplicity-reviewer.md # Over-abstraction
|
|
946
|
-
├── data-integrity-reviewer.md # Data integrity
|
|
947
|
-
├── test-coverage-reviewer.md # Missing tests
|
|
948
|
-
├── git-history-reviewer.md # Risk patterns
|
|
949
|
-
├── python-reviewer.md # Python specialist
|
|
950
|
-
├── typescript-reviewer.md # TypeScript specialist
|
|
951
|
-
├── rails-reviewer.md # Rails specialist
|
|
952
|
-
└── react-reviewer.md # React specialist
|
|
953
|
-
```
|
|
954
|
-
|
|
955
|
-
### Research Agents (4)
|
|
956
|
-
```
|
|
957
|
-
.claude/agents/research/
|
|
958
|
-
├── best-practices-agent.md # Best practices
|
|
959
|
-
├── framework-docs-agent.md # Framework docs
|
|
960
|
-
├── codebase-patterns-agent.md # Code pattern analysis
|
|
961
|
-
└── security-advisory-agent.md # Security advisory
|
|
962
|
-
```
|
|
963
|
-
|
|
964
|
-
## Skills
|
|
965
|
-
|
|
966
|
-
### Git Worktree
|
|
967
|
-
```bash
|
|
968
|
-
# Isolated environment for PR review
|
|
969
|
-
git worktree add ../review-123 origin/pr/123
|
|
970
|
-
cd ../review-123 && npm test
|
|
971
|
-
git worktree remove ../review-123
|
|
972
|
-
```
|
|
973
|
-
|
|
974
|
-
### Priority Todos
|
|
975
|
-
```
|
|
976
|
-
.claude/vibe/todos/
|
|
977
|
-
├── P1-security-sql-injection.md # 🔴 Blocks merge
|
|
978
|
-
├── P2-perf-n1-query.md # 🟡 Fix recommended
|
|
979
|
-
└── P3-style-extract-helper.md # 🔵 Backlog
|
|
980
|
-
```
|
|
981
|
-
|
|
982
|
-
## Context Management Strategy
|
|
983
|
-
|
|
984
|
-
### Model Selection
|
|
985
|
-
- **Exploration/Search**: Haiku (sub-agent default)
|
|
986
|
-
- **Implementation/Debugging**: Sonnet
|
|
987
|
-
- **Architecture/Complex logic**: Opus
|
|
988
|
-
|
|
989
|
-
### At 70%+ Context (⚠️ Important)
|
|
990
|
-
```
|
|
991
|
-
❌ Don't use /compact (risk of information loss/distortion)
|
|
992
|
-
✅ save_memory to store important decisions → /new for new session
|
|
993
|
-
```
|
|
994
|
-
|
|
995
|
-
vibe maintains context across sessions with its own memory system:
|
|
996
|
-
1. `save_memory` - Explicitly save important decisions
|
|
997
|
-
2. `/new` - Start new session
|
|
998
|
-
3. `start_session` - Auto-restore previous session
|
|
999
|
-
|
|
1000
|
-
### Session Restore
|
|
1001
|
-
To continue previous work in a new session:
|
|
1002
|
-
```
|
|
1003
|
-
/vibe.utils --continue
|
|
1004
|
-
```
|
|
1005
|
-
This command calls `vibe_start_session` to restore previous context from project memory.
|
|
1006
|
-
|
|
1007
|
-
### Other Commands
|
|
1008
|
-
- `/rewind` - Revert to previous point
|
|
1009
|
-
- `/context` - Check current usage
|
|
1010
|
-
|
|
1011
|
-
### Using context7
|
|
1012
|
-
Use context7 plugin when you need latest library documentation:
|
|
1013
|
-
```
|
|
1014
|
-
"Search React 19 use() hook with context7"
|
|
1015
|
-
```
|
|
1016
|
-
|
|
1017
|
-
## Documentation Guidelines
|
|
1018
|
-
|
|
1019
|
-
### Diagrams/Structure Representation
|
|
1020
|
-
- Avoid ASCII boxes (┌─┐) → Alignment breaks with mixed-width characters
|
|
1021
|
-
- Use alternatives:
|
|
1022
|
-
- Mermaid diagrams (GitHub/Notion supported)
|
|
1023
|
-
- Markdown tables
|
|
1024
|
-
- Indentation + separators
|
|
1025
|
-
|
|
1026
|
-
### Preferred Formats
|
|
1027
|
-
| Purpose | Recommended |
|
|
1028
|
-
|---------|-------------|
|
|
1029
|
-
| Flowcharts | Mermaid flowchart |
|
|
1030
|
-
| Structure/Hierarchy | Indented lists |
|
|
1031
|
-
| Comparisons/Lists | Markdown tables |
|
|
1032
|
-
| Sequences | Mermaid sequenceDiagram |
|
|
1033
|
-
|
|
1034
|
-
## Git Commit Rules
|
|
1035
|
-
|
|
1036
|
-
**Must include:**
|
|
1037
|
-
- `.claude/vibe/specs/`, `.claude/vibe/features/`, `.claude/vibe/todos/` (project docs)
|
|
1038
|
-
- `.claude/vibe/config.json`, `.claude/vibe/constitution.md` (project config)
|
|
1039
|
-
- `CLAUDE.md`
|
|
1040
|
-
|
|
1041
|
-
**Exclude (globally installed):**
|
|
1042
|
-
- `~/.claude/vibe/rules/`, `~/.claude/vibe/languages/`, `~/.claude/vibe/templates/` (global)
|
|
1043
|
-
- `~/.claude/commands/`, `~/.claude/agents/`, `~/.claude/skills/` (global)
|
|
1044
|
-
- `.claude/settings.local.json` (personal settings)
|
|
1045
|
-
|
|
1046
|
-
## Getting Started
|
|
1047
|
-
|
|
1048
|
-
```bash
|
|
1049
|
-
vibe init
|
|
1050
|
-
/vibe.spec "login feature"
|
|
1051
|
-
```
|
|
1052
|
-
|
|
1053
|
-
## Full Workflow
|
|
1054
|
-
|
|
1055
|
-
```mermaid
|
|
1056
|
-
flowchart TD
|
|
1057
|
-
A["/vibe.spec"] --> B["(auto) SPEC review"]
|
|
1058
|
-
B --> C["SPEC auto-enhancement"]
|
|
1059
|
-
C --> D["/vibe.run ultrawork"]
|
|
1060
|
-
D --> E["Gemini code review"]
|
|
1061
|
-
E --> F["(auto) 13+ Agent Review"]
|
|
1062
|
-
F --> G{"P1/P2 issues?"}
|
|
1063
|
-
G -->|Yes| H["(auto) Auto-Fix"]
|
|
1064
|
-
H --> I["✅ Done"]
|
|
1065
|
-
G -->|No| I
|
|
1066
|
-
```
|
|
1067
|
-
|
|
1068
|
-
| Step | Description | Automation |
|
|
1069
|
-
|------|-------------|------------|
|
|
1070
|
-
| 1. `/vibe.spec` | Collect requirements + Generate SPEC | Manual start |
|
|
1071
|
-
| 2. SPEC review | Gemini reviews SPEC + Auto-apply | ✅ Auto |
|
|
1072
|
-
| 3. `/vibe.run` | Implementation + Gemini review | Manual start |
|
|
1073
|
-
| 4. Agent Review | 13+ agent parallel review | ✅ Auto |
|
|
1074
|
-
| 5. Auto-Fix | P1/P2 issue auto-fix | ✅ Auto |
|
|
681
|
+
<!-- VIBE:END -->
|
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.
|