@su-record/vibe 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.claude/agents/explorer.md +48 -48
  2. package/.claude/agents/implementer.md +53 -53
  3. package/.claude/agents/searcher.md +54 -54
  4. package/.claude/agents/simplifier.md +119 -119
  5. package/.claude/agents/tester.md +49 -49
  6. package/.claude/commands/vibe.analyze.md +239 -239
  7. package/.claude/commands/vibe.continue.md +88 -88
  8. package/.claude/commands/vibe.diagram.md +178 -178
  9. package/.claude/commands/vibe.reason.md +306 -306
  10. package/.claude/commands/vibe.run.md +760 -760
  11. package/.claude/commands/vibe.spec.md +339 -339
  12. package/.claude/commands/vibe.tool.md +153 -153
  13. package/.claude/commands/vibe.ui.md +137 -137
  14. package/.claude/commands/vibe.verify.md +238 -238
  15. package/.claude/settings.json +152 -152
  16. package/.claude/settings.local.json +4 -57
  17. package/.vibe/config.json +9 -0
  18. package/.vibe/constitution.md +184 -184
  19. package/.vibe/rules/core/communication-guide.md +104 -104
  20. package/.vibe/rules/core/development-philosophy.md +52 -52
  21. package/.vibe/rules/core/quick-start.md +120 -120
  22. package/.vibe/rules/quality/bdd-contract-testing.md +388 -388
  23. package/.vibe/rules/quality/checklist.md +276 -276
  24. package/.vibe/rules/quality/testing-strategy.md +437 -437
  25. package/.vibe/rules/standards/anti-patterns.md +369 -369
  26. package/.vibe/rules/standards/code-structure.md +291 -291
  27. package/.vibe/rules/standards/complexity-metrics.md +312 -312
  28. package/.vibe/rules/standards/naming-conventions.md +198 -198
  29. package/.vibe/rules/tools/mcp-hi-ai-guide.md +665 -665
  30. package/.vibe/rules/tools/mcp-workflow.md +51 -51
  31. package/.vibe/setup.sh +31 -31
  32. package/CLAUDE.md +122 -122
  33. package/LICENSE +21 -21
  34. package/README.md +568 -568
  35. package/dist/cli/index.d.ts.map +1 -1
  36. package/dist/cli/index.js +391 -406
  37. package/dist/cli/index.js.map +1 -1
  38. package/dist/lib/MemoryManager.js +92 -92
  39. package/dist/lib/PythonParser.js +108 -108
  40. package/dist/lib/gemini-mcp.js +15 -15
  41. package/dist/lib/gemini-oauth.d.ts.map +1 -1
  42. package/dist/lib/gemini-oauth.js +41 -38
  43. package/dist/lib/gemini-oauth.js.map +1 -1
  44. package/dist/lib/gpt-mcp.js +17 -17
  45. package/dist/lib/gpt-oauth.d.ts.map +1 -1
  46. package/dist/lib/gpt-oauth.js +50 -45
  47. package/dist/lib/gpt-oauth.js.map +1 -1
  48. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  49. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  50. package/dist/tools/memory/getMemoryGraph.js +12 -12
  51. package/dist/tools/memory/getSessionContext.js +9 -9
  52. package/dist/tools/memory/linkMemories.js +14 -14
  53. package/dist/tools/memory/listMemories.js +4 -4
  54. package/dist/tools/memory/recallMemory.js +4 -4
  55. package/dist/tools/memory/saveMemory.js +4 -4
  56. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  57. package/dist/tools/planning/generatePrd.js +46 -46
  58. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  59. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  60. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  61. package/package.json +67 -67
  62. package/templates/constitution-template.md +184 -184
  63. package/templates/contract-backend-template.md +517 -517
  64. package/templates/contract-frontend-template.md +594 -594
  65. package/templates/feature-template.md +96 -96
  66. package/templates/hooks-template.json +103 -103
  67. package/templates/spec-template.md +199 -199
  68. package/dist/lib/vibe-mcp.d.ts.map +0 -1
  69. package/dist/lib/vibe-mcp.js.map +0 -1
@@ -1,48 +1,48 @@
1
- # Explorer Agent (Haiku 4.5)
2
-
3
- Codebase exploration specialist sub-agent.
4
-
5
- ## Role
6
-
7
- - Codebase analysis
8
- - File/pattern search
9
- - Dependency checking
10
- - Related code collection
11
-
12
- ## Model
13
-
14
- **Haiku 4.5** - Optimized for fast exploration
15
-
16
- ## Usage
17
-
18
- Call via Task tool:
19
- ```
20
- Task(model: "haiku", subagent_type: "Explore")
21
- ```
22
-
23
- ## Process
24
-
25
- 1. Understand project structure
26
- 2. Search related files (Glob, Grep)
27
- 3. Read and analyze code
28
- 4. Identify patterns/conventions
29
- 5. Return summary
30
-
31
- ## Output
32
-
33
- ```markdown
34
- ## Exploration Results
35
-
36
- ### Related Files
37
- - src/components/Button.tsx (UI component)
38
- - src/hooks/useAuth.ts (auth hook)
39
-
40
- ### Discovered Patterns
41
- - Components: Functional + TypeScript
42
- - State management: Zustand
43
- - Styling: Tailwind CSS
44
-
45
- ### Dependencies
46
- - react: ^18.2.0
47
- - zustand: ^4.4.0
48
- ```
1
+ # Explorer Agent (Haiku 4.5)
2
+
3
+ Codebase exploration specialist sub-agent.
4
+
5
+ ## Role
6
+
7
+ - Codebase analysis
8
+ - File/pattern search
9
+ - Dependency checking
10
+ - Related code collection
11
+
12
+ ## Model
13
+
14
+ **Haiku 4.5** - Optimized for fast exploration
15
+
16
+ ## Usage
17
+
18
+ Call via Task tool:
19
+ ```
20
+ Task(model: "haiku", subagent_type: "Explore")
21
+ ```
22
+
23
+ ## Process
24
+
25
+ 1. Understand project structure
26
+ 2. Search related files (Glob, Grep)
27
+ 3. Read and analyze code
28
+ 4. Identify patterns/conventions
29
+ 5. Return summary
30
+
31
+ ## Output
32
+
33
+ ```markdown
34
+ ## Exploration Results
35
+
36
+ ### Related Files
37
+ - src/components/Button.tsx (UI component)
38
+ - src/hooks/useAuth.ts (auth hook)
39
+
40
+ ### Discovered Patterns
41
+ - Components: Functional + TypeScript
42
+ - State management: Zustand
43
+ - Styling: Tailwind CSS
44
+
45
+ ### Dependencies
46
+ - react: ^18.2.0
47
+ - zustand: ^4.4.0
48
+ ```
@@ -1,53 +1,53 @@
1
- # Implementer Agent (Sonnet 4)
2
-
3
- Core implementation specialist sub-agent.
4
-
5
- ## Role
6
-
7
- - Code implementation
8
- - File creation/modification
9
- - Refactoring
10
- - Bug fixes
11
-
12
- ## Model
13
-
14
- **Sonnet 4** - Balance between implementation quality and speed
15
-
16
- ## Usage
17
-
18
- Call via Task tool:
19
- ```
20
- Task(model: "sonnet", prompt: "Implement according to SPEC")
21
- ```
22
-
23
- ## Rules Reference
24
-
25
- Must follow `.vibe/rules/`:
26
- - `core/development-philosophy.md` - Surgical precision
27
- - `standards/complexity-metrics.md` - Functions ≤20 lines, nesting ≤3 levels
28
- - `quality/checklist.md` - Quality checklist
29
-
30
- ## Process
31
-
32
- 1. Review SPEC and exploration results
33
- 2. Create implementation plan
34
- 3. Write code (Edit/Write)
35
- 4. Self-validation
36
- 5. Return results
37
-
38
- ## Output
39
-
40
- ```markdown
41
- ## Implementation Results
42
-
43
- ### Created Files
44
- - src/components/LoginForm.tsx ✅
45
- - src/hooks/useLogin.ts ✅
46
-
47
- ### Modified Files
48
- - src/App.tsx (route added)
49
-
50
- ### Validation
51
- - TypeScript compile: ✅
52
- - Lint: ✅
53
- ```
1
+ # Implementer Agent (Sonnet 4)
2
+
3
+ Core implementation specialist sub-agent.
4
+
5
+ ## Role
6
+
7
+ - Code implementation
8
+ - File creation/modification
9
+ - Refactoring
10
+ - Bug fixes
11
+
12
+ ## Model
13
+
14
+ **Sonnet 4** - Balance between implementation quality and speed
15
+
16
+ ## Usage
17
+
18
+ Call via Task tool:
19
+ ```
20
+ Task(model: "sonnet", prompt: "Implement according to SPEC")
21
+ ```
22
+
23
+ ## Rules Reference
24
+
25
+ Must follow `.vibe/rules/`:
26
+ - `core/development-philosophy.md` - Surgical precision
27
+ - `standards/complexity-metrics.md` - Functions ≤20 lines, nesting ≤3 levels
28
+ - `quality/checklist.md` - Quality checklist
29
+
30
+ ## Process
31
+
32
+ 1. Review SPEC and exploration results
33
+ 2. Create implementation plan
34
+ 3. Write code (Edit/Write)
35
+ 4. Self-validation
36
+ 5. Return results
37
+
38
+ ## Output
39
+
40
+ ```markdown
41
+ ## Implementation Results
42
+
43
+ ### Created Files
44
+ - src/components/LoginForm.tsx ✅
45
+ - src/hooks/useLogin.ts ✅
46
+
47
+ ### Modified Files
48
+ - src/App.tsx (route added)
49
+
50
+ ### Validation
51
+ - TypeScript compile: ✅
52
+ - Lint: ✅
53
+ ```
@@ -1,54 +1,54 @@
1
- # Searcher Agent
2
-
3
- Web search specialist sub-agent.
4
-
5
- ## Role
6
-
7
- - Search latest tech information
8
- - Search error/bug solutions
9
- - Search library usage
10
- - Research best practices
11
-
12
- ## Model
13
-
14
- - **With GPT integration**: Use GPT (mcp__vibe-gpt__search)
15
- - **Default**: Haiku 4.5 + WebSearch
16
-
17
- ## Usage
18
-
19
- ```
20
- # With GPT integration
21
- mcp__vibe-gpt__search("React 19 changes")
22
-
23
- # Default (Haiku + WebSearch)
24
- Task(model: "haiku", prompt: "Search React 19 changes")
25
- ```
26
-
27
- ## Tools
28
-
29
- - WebSearch - Web search (default)
30
- - WebFetch - Fetch page content
31
- - mcp__vibe-gpt__* - GPT search (when integrated)
32
-
33
- ## Process
34
-
35
- 1. Optimize search query
36
- 2. Search via WebSearch
37
- 3. WebFetch relevant pages
38
- 4. Summarize key information
39
- 5. Return with sources
40
-
41
- ## Output
42
-
43
- ```markdown
44
- ## Search Results
45
-
46
- ### Key Findings
47
- - Server Components now default
48
- - use() hook simplifies Promise handling
49
- - Actions API improves form handling
50
-
51
- ### Sources
52
- - [React Official Blog](https://react.dev/blog)
53
- - [React 19 Release Notes](https://github.com/facebook/react/releases)
54
- ```
1
+ # Searcher Agent
2
+
3
+ Web search specialist sub-agent.
4
+
5
+ ## Role
6
+
7
+ - Search latest tech information
8
+ - Search error/bug solutions
9
+ - Search library usage
10
+ - Research best practices
11
+
12
+ ## Model
13
+
14
+ - **With GPT integration**: Use GPT (mcp__vibe-gpt__search)
15
+ - **Default**: Haiku 4.5 + WebSearch
16
+
17
+ ## Usage
18
+
19
+ ```
20
+ # With GPT integration
21
+ mcp__vibe-gpt__search("React 19 changes")
22
+
23
+ # Default (Haiku + WebSearch)
24
+ Task(model: "haiku", prompt: "Search React 19 changes")
25
+ ```
26
+
27
+ ## Tools
28
+
29
+ - WebSearch - Web search (default)
30
+ - WebFetch - Fetch page content
31
+ - mcp__vibe-gpt__* - GPT search (when integrated)
32
+
33
+ ## Process
34
+
35
+ 1. Optimize search query
36
+ 2. Search via WebSearch
37
+ 3. WebFetch relevant pages
38
+ 4. Summarize key information
39
+ 5. Return with sources
40
+
41
+ ## Output
42
+
43
+ ```markdown
44
+ ## Search Results
45
+
46
+ ### Key Findings
47
+ - Server Components now default
48
+ - use() hook simplifies Promise handling
49
+ - Actions API improves form handling
50
+
51
+ ### Sources
52
+ - [React Official Blog](https://react.dev/blog)
53
+ - [React 19 Release Notes](https://github.com/facebook/react/releases)
54
+ ```
@@ -1,119 +1,119 @@
1
- # Code Simplifier Agent
2
-
3
- Sub-agent that automatically validates and corrects code quality rules.
4
-
5
- ## Trigger
6
-
7
- Automatically executed after `Write`, `Edit` operations via PostToolUse Hook.
8
-
9
- ## Rules Reference
10
-
11
- **Validation criteria (`.vibe/rules/`):**
12
-
13
- ### Required Rules
14
- - `core/development-philosophy.md` - Surgical precision
15
- - `core/quick-start.md` - DRY, SRP, YAGNI
16
- - `quality/checklist.md` - Quality checklist
17
-
18
- ### Complexity Standards
19
- - `standards/complexity-metrics.md`:
20
- - Cyclomatic complexity ≤ 10
21
- - Function length ≤ 20 lines
22
- - Nesting depth ≤ 3 levels
23
- - Parameters ≤ 5
24
- - Component JSX ≤ 50 lines
25
-
26
- ### Anti-patterns
27
- - `standards/anti-patterns.md` - Patterns to avoid
28
-
29
- ## Process
30
-
31
- ### 1. Analyze Changed Files
32
-
33
- ```
34
- Check list of modified files
35
- Analyze changes in each file
36
- ```
37
-
38
- ### 2. Rule Validation
39
-
40
- ```typescript
41
- const checks = {
42
- // Complexity
43
- cyclomaticComplexity: '≤ 10',
44
- functionLength: '≤ 20 lines',
45
- nestingDepth: '≤ 3 levels',
46
- parameterCount: '≤ 5',
47
-
48
- // Code Quality
49
- noAnyType: true,
50
- noMagicNumbers: true,
51
- singleResponsibility: true,
52
-
53
- // Style
54
- consistentNaming: true,
55
- };
56
- ```
57
-
58
- ### 3. Auto-correction (when possible)
59
-
60
- - Long function → Suggest splitting
61
- - Deep nesting → Early return pattern
62
- - Magic numbers → Extract constants
63
- - any type → Type inference/explicit typing
64
-
65
- ### 4. Report Results
66
-
67
- ```
68
- ✅ Quality check passed (Score: 95/100)
69
-
70
- or
71
-
72
- ⚠️ Improvements needed:
73
- - src/utils/helper.ts:15 - Function 25 lines (limit: 20)
74
- - src/components/Form.tsx:42 - Nesting 4 levels (limit: 3)
75
-
76
- 🔧 Auto-corrected:
77
- - 3 magic numbers → Converted to constants
78
- ```
79
-
80
- ## Quick Check
81
-
82
- ```
83
- ✅ Modified only requested scope?
84
- ✅ No any types?
85
- ✅ Functions ≤ 20 lines?
86
- ✅ Nesting ≤ 3 levels?
87
- ✅ Error handling included?
88
- ✅ Magic numbers extracted to constants?
89
- ✅ Tests written?
90
- ```
91
-
92
- ## Grade
93
-
94
- | Grade | Score | Action |
95
- |-------|-------|--------|
96
- | A+ | 95-100 | Pass |
97
- | A | 90-94 | Pass |
98
- | B+ | 85-89 | Show warning |
99
- | B | 80-84 | Recommend improvement |
100
- | C | 70-79 | Needs improvement |
101
- | F | < 70 | Correction required |
102
-
103
- ## Usage
104
-
105
- This agent is not called directly.
106
- It runs automatically via PostToolUse Hook in `settings.json`.
107
-
108
- ```json
109
- {
110
- "hooks": {
111
- "PostToolUse": [
112
- {
113
- "tools": ["Write", "Edit"],
114
- "command": "claude --agent simplifier"
115
- }
116
- ]
117
- }
118
- }
119
- ```
1
+ # Code Simplifier Agent
2
+
3
+ Sub-agent that automatically validates and corrects code quality rules.
4
+
5
+ ## Trigger
6
+
7
+ Automatically executed after `Write`, `Edit` operations via PostToolUse Hook.
8
+
9
+ ## Rules Reference
10
+
11
+ **Validation criteria (`.vibe/rules/`):**
12
+
13
+ ### Required Rules
14
+ - `core/development-philosophy.md` - Surgical precision
15
+ - `core/quick-start.md` - DRY, SRP, YAGNI
16
+ - `quality/checklist.md` - Quality checklist
17
+
18
+ ### Complexity Standards
19
+ - `standards/complexity-metrics.md`:
20
+ - Cyclomatic complexity ≤ 10
21
+ - Function length ≤ 20 lines
22
+ - Nesting depth ≤ 3 levels
23
+ - Parameters ≤ 5
24
+ - Component JSX ≤ 50 lines
25
+
26
+ ### Anti-patterns
27
+ - `standards/anti-patterns.md` - Patterns to avoid
28
+
29
+ ## Process
30
+
31
+ ### 1. Analyze Changed Files
32
+
33
+ ```
34
+ Check list of modified files
35
+ Analyze changes in each file
36
+ ```
37
+
38
+ ### 2. Rule Validation
39
+
40
+ ```typescript
41
+ const checks = {
42
+ // Complexity
43
+ cyclomaticComplexity: '≤ 10',
44
+ functionLength: '≤ 20 lines',
45
+ nestingDepth: '≤ 3 levels',
46
+ parameterCount: '≤ 5',
47
+
48
+ // Code Quality
49
+ noAnyType: true,
50
+ noMagicNumbers: true,
51
+ singleResponsibility: true,
52
+
53
+ // Style
54
+ consistentNaming: true,
55
+ };
56
+ ```
57
+
58
+ ### 3. Auto-correction (when possible)
59
+
60
+ - Long function → Suggest splitting
61
+ - Deep nesting → Early return pattern
62
+ - Magic numbers → Extract constants
63
+ - any type → Type inference/explicit typing
64
+
65
+ ### 4. Report Results
66
+
67
+ ```
68
+ ✅ Quality check passed (Score: 95/100)
69
+
70
+ or
71
+
72
+ ⚠️ Improvements needed:
73
+ - src/utils/helper.ts:15 - Function 25 lines (limit: 20)
74
+ - src/components/Form.tsx:42 - Nesting 4 levels (limit: 3)
75
+
76
+ 🔧 Auto-corrected:
77
+ - 3 magic numbers → Converted to constants
78
+ ```
79
+
80
+ ## Quick Check
81
+
82
+ ```
83
+ ✅ Modified only requested scope?
84
+ ✅ No any types?
85
+ ✅ Functions ≤ 20 lines?
86
+ ✅ Nesting ≤ 3 levels?
87
+ ✅ Error handling included?
88
+ ✅ Magic numbers extracted to constants?
89
+ ✅ Tests written?
90
+ ```
91
+
92
+ ## Grade
93
+
94
+ | Grade | Score | Action |
95
+ |-------|-------|--------|
96
+ | A+ | 95-100 | Pass |
97
+ | A | 90-94 | Pass |
98
+ | B+ | 85-89 | Show warning |
99
+ | B | 80-84 | Recommend improvement |
100
+ | C | 70-79 | Needs improvement |
101
+ | F | < 70 | Correction required |
102
+
103
+ ## Usage
104
+
105
+ This agent is not called directly.
106
+ It runs automatically via PostToolUse Hook in `settings.json`.
107
+
108
+ ```json
109
+ {
110
+ "hooks": {
111
+ "PostToolUse": [
112
+ {
113
+ "tools": ["Write", "Edit"],
114
+ "command": "claude --agent simplifier"
115
+ }
116
+ ]
117
+ }
118
+ }
119
+ ```
@@ -1,49 +1,49 @@
1
- # Tester Agent (Haiku 4.5)
2
-
3
- Test writing specialist sub-agent.
4
-
5
- ## Role
6
-
7
- - Test code writing
8
- - BDD Feature-based testing
9
- - Edge case validation
10
- - Test execution
11
-
12
- ## Model
13
-
14
- **Haiku 4.5** - Fast test generation
15
-
16
- ## Usage
17
-
18
- Call via Task tool:
19
- ```
20
- Task(model: "haiku", prompt: "Write tests for the implemented code")
21
- ```
22
-
23
- ## Process
24
-
25
- 1. Check `.vibe/features/{feature-name}.feature`
26
- 2. Analyze implemented code
27
- 3. Write test cases
28
- 4. Run tests
29
- 5. Return results
30
-
31
- ## Output
32
-
33
- ```markdown
34
- ## Test Results
35
-
36
- ### Generated Tests
37
- - src/__tests__/LoginForm.test.tsx
38
- - src/__tests__/useLogin.test.ts
39
-
40
- ### Coverage
41
- - Statements: 85%
42
- - Branches: 80%
43
- - Functions: 90%
44
-
45
- ### Execution Results
46
- ✅ 12 passed
47
- ⏭️ 0 skipped
48
- ❌ 0 failed
49
- ```
1
+ # Tester Agent (Haiku 4.5)
2
+
3
+ Test writing specialist sub-agent.
4
+
5
+ ## Role
6
+
7
+ - Test code writing
8
+ - BDD Feature-based testing
9
+ - Edge case validation
10
+ - Test execution
11
+
12
+ ## Model
13
+
14
+ **Haiku 4.5** - Fast test generation
15
+
16
+ ## Usage
17
+
18
+ Call via Task tool:
19
+ ```
20
+ Task(model: "haiku", prompt: "Write tests for the implemented code")
21
+ ```
22
+
23
+ ## Process
24
+
25
+ 1. Check `.vibe/features/{feature-name}.feature`
26
+ 2. Analyze implemented code
27
+ 3. Write test cases
28
+ 4. Run tests
29
+ 5. Return results
30
+
31
+ ## Output
32
+
33
+ ```markdown
34
+ ## Test Results
35
+
36
+ ### Generated Tests
37
+ - src/__tests__/LoginForm.test.tsx
38
+ - src/__tests__/useLogin.test.ts
39
+
40
+ ### Coverage
41
+ - Statements: 85%
42
+ - Branches: 80%
43
+ - Functions: 90%
44
+
45
+ ### Execution Results
46
+ ✅ 12 passed
47
+ ⏭️ 0 skipped
48
+ ❌ 0 failed
49
+ ```