@su-record/vibe 2.16.4 → 3.0.0
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 +8 -8
- package/README.en.md +46 -29
- package/README.md +41 -24
- package/agents/acceptance-tester.md +56 -0
- package/agents/architect.md +25 -67
- package/agents/build-error-resolver.md +28 -97
- package/agents/code-reviewer.md +89 -0
- package/agents/diagrammer.md +34 -169
- package/agents/documenter.md +43 -0
- package/agents/e2e-tester.md +46 -281
- package/agents/event/event-ops.md +54 -77
- package/agents/event/event-planner.md +63 -0
- package/agents/figma/figma-engineer.md +76 -0
- package/agents/implementer.md +26 -41
- package/agents/security-reviewer.md +56 -0
- package/agents/tester.md +37 -33
- package/agents/ui/design-reviewer.md +62 -0
- package/agents/ui/design-system-gen.md +63 -0
- package/dist/cli/commands/remove.d.ts.map +1 -1
- package/dist/cli/commands/remove.js +8 -10
- package/dist/cli/commands/remove.js.map +1 -1
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +0 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/llm/model-refresh.js +1 -1
- package/dist/cli/llm/model-refresh.js.map +1 -1
- package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/claude-agents.js +16 -77
- package/dist/cli/postinstall/claude-agents.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +80 -296
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/postinstall/cursor-agents.d.ts +5 -0
- package/dist/cli/postinstall/cursor-agents.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-agents.js +26 -68
- package/dist/cli/postinstall/cursor-agents.js.map +1 -1
- package/dist/cli/postinstall/cursor-skills.d.ts.map +1 -1
- package/dist/cli/postinstall/cursor-skills.js +26 -30
- package/dist/cli/postinstall/cursor-skills.js.map +1 -1
- package/dist/cli/postinstall/main.d.ts.map +1 -1
- package/dist/cli/postinstall/main.js +0 -2
- package/dist/cli/postinstall/main.js.map +1 -1
- package/dist/cli/setup/Provisioner.d.ts.map +1 -1
- package/dist/cli/setup/Provisioner.js +19 -21
- package/dist/cli/setup/Provisioner.js.map +1 -1
- package/dist/cli/utils.d.ts +4 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js +4 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/infra/lib/FrameworkDetector.js +4 -4
- package/dist/infra/lib/FrameworkDetector.js.map +1 -1
- package/dist/infra/lib/OrchestrateWorkflow.js +2 -2
- package/dist/infra/lib/OrchestrateWorkflow.js.map +1 -1
- package/dist/infra/lib/browser/launch.js +1 -1
- package/dist/infra/lib/browser/launch.js.map +1 -1
- package/dist/infra/lib/browser/types.d.ts +1 -1
- package/dist/infra/lib/browser/types.js +1 -1
- package/dist/infra/lib/constants.d.ts +1 -1
- package/dist/infra/lib/constants.d.ts.map +1 -1
- package/dist/infra/lib/constants.js +4 -5
- package/dist/infra/lib/constants.js.map +1 -1
- package/dist/infra/lib/evolution/__tests__/integration.test.js +7 -7
- package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
- package/dist/infra/lib/memory/index.d.ts +0 -2
- package/dist/infra/lib/memory/index.d.ts.map +1 -1
- package/dist/infra/lib/memory/index.js +0 -2
- package/dist/infra/lib/memory/index.js.map +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js +1 -1
- package/dist/infra/lib/telemetry/SkillTelemetry.test.js.map +1 -1
- package/dist/tools/index.d.ts +0 -4
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -4
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/memory/autoSaveContext.d.ts +0 -1
- package/dist/tools/memory/autoSaveContext.d.ts.map +1 -1
- package/dist/tools/memory/autoSaveContext.js +13 -27
- package/dist/tools/memory/autoSaveContext.js.map +1 -1
- package/hooks/scripts/__tests__/code-check-detectors.test.js +2 -2
- package/hooks/scripts/__tests__/run-ledger.test.js +1 -1
- package/hooks/scripts/__tests__/scope-from-spec.test.js +12 -12
- package/hooks/scripts/__tests__/step-counter.test.js +1 -1
- package/hooks/scripts/code-check.js +16 -203
- package/hooks/scripts/context-save.js +0 -11
- package/hooks/scripts/lib/scope-from-spec.js +9 -6
- package/hooks/scripts/post-edit-dispatcher.js +1 -1
- package/hooks/scripts/prompt-dispatcher.js +7 -18
- package/hooks/scripts/session-start.js +25 -35
- package/package.json +2 -4
- package/skills/agents-md/SKILL.md +62 -15
- package/skills/arch-guard/SKILL.md +1 -1
- package/skills/brand-assets/SKILL.md +2 -2
- package/skills/capability-loop/SKILL.md +1 -1
- package/skills/chub-usage/SKILL.md +1 -1
- package/skills/commerce-patterns/SKILL.md +2 -2
- package/skills/commit-push-pr/SKILL.md +0 -1
- package/skills/context7-usage/SKILL.md +1 -1
- package/skills/design-refine/SKILL.md +140 -0
- package/skills/{design-polish → design-refine}/templates/polish-report.md +1 -1
- package/skills/{design-normalize → design-refine}/templates/token-audit.md +3 -3
- package/skills/design-review/SKILL.md +143 -0
- package/skills/{design-audit → design-review}/agents/a11y-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/performance-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/responsive-auditor.md +1 -1
- package/skills/{design-audit → design-review}/agents/slop-detector.md +1 -1
- package/skills/{design-audit → design-review}/frameworks/core-web-vitals.md +1 -1
- package/skills/{design-audit → design-review}/frameworks/wcag-checklist.md +1 -1
- package/skills/{design-audit → design-review}/orchestrator.md +3 -3
- package/skills/{design-critique → design-review}/templates/critique-report.md +3 -3
- package/skills/{design-audit → design-review}/templates/report.md +3 -3
- package/skills/design-teach/SKILL.md +11 -11
- package/skills/docs/SKILL.md +14 -16
- package/skills/e2e-commerce/SKILL.md +1 -1
- package/skills/event-comms/SKILL.md +1 -1
- package/skills/event-ops/SKILL.md +2 -2
- package/skills/event-planning/SKILL.md +1 -1
- package/skills/exec-plan/SKILL.md +2 -2
- package/skills/figma/SKILL.md +240 -148
- package/skills/figma/rubrics/css-mapping.md +125 -0
- package/skills/git-worktree/SKILL.md +1 -1
- package/skills/handoff/SKILL.md +1 -1
- package/skills/parallel-research/SKILL.md +14 -28
- package/skills/priority-todos/SKILL.md +1 -1
- package/skills/regress/SKILL.md +11 -0
- package/skills/restraint/SKILL.md +72 -0
- package/skills/seo-checklist/SKILL.md +2 -2
- package/skills/spec/SKILL.md +65 -836
- package/skills/test/SKILL.md +3 -3
- package/skills/tool-fallback/SKILL.md +2 -2
- package/skills/vercel-react-best-practices/SKILL.md +1 -1
- package/skills/vibe/SKILL.md +20 -35
- package/skills/vibe.analyze/SKILL.md +7 -9
- package/skills/vibe.docs/SKILL.md +1 -1
- package/skills/vibe.event/SKILL.md +27 -27
- package/skills/vibe.figma/SKILL.md +14 -18
- package/skills/vibe.harness/SKILL.md +5 -5
- package/skills/vibe.reason/SKILL.md +0 -2
- package/skills/vibe.review/SKILL.md +45 -49
- package/skills/vibe.run/SKILL.md +2 -5
- package/skills/vibe.run/references/parallel-agents.md +33 -98
- package/skills/vibe.spec/SKILL.md +38 -535
- package/skills/vibe.utils/SKILL.md +3 -3
- package/skills/vibe.verify/SKILL.md +70 -542
- package/skills/video-production/SKILL.md +1 -1
- package/vibe/rules/orchestrator-contract.md +5 -4
- package/vibe/rules/quality/performance.md +1 -1
- package/vibe/templates/claudemd-template.md +1 -1
- package/vibe/templates/spec-template.md +35 -185
- package/agents/architect-low.md +0 -41
- package/agents/architect-medium.md +0 -59
- package/agents/compounder.md +0 -265
- package/agents/docs/api-documenter.md +0 -99
- package/agents/docs/changelog-writer.md +0 -93
- package/agents/event/event-comms.md +0 -78
- package/agents/event/event-content.md +0 -68
- package/agents/event/event-image.md +0 -95
- package/agents/event/event-scheduler.md +0 -69
- package/agents/event/event-speaker.md +0 -86
- package/agents/explorer-low.md +0 -42
- package/agents/explorer-medium.md +0 -59
- package/agents/explorer.md +0 -48
- package/agents/figma/figma-analyst.md +0 -56
- package/agents/figma/figma-architect.md +0 -116
- package/agents/figma/figma-auditor.md +0 -86
- package/agents/figma/figma-builder.md +0 -104
- package/agents/implementer-low.md +0 -43
- package/agents/implementer-medium.md +0 -52
- package/agents/junior-mentor.md +0 -141
- package/agents/planning/requirements-analyst.md +0 -84
- package/agents/planning/ux-advisor.md +0 -83
- package/agents/qa/acceptance-tester.md +0 -86
- package/agents/qa/edge-case-finder.md +0 -93
- package/agents/qa/qa-coordinator.md +0 -131
- package/agents/refactor-cleaner.md +0 -143
- package/agents/research/best-practices.md +0 -199
- package/agents/research/codebase-patterns.md +0 -157
- package/agents/research/framework-docs.md +0 -188
- package/agents/research/security-advisory.md +0 -213
- package/agents/review/architecture-reviewer.md +0 -107
- package/agents/review/complexity-reviewer.md +0 -116
- package/agents/review/data-integrity-reviewer.md +0 -88
- package/agents/review/git-history-reviewer.md +0 -103
- package/agents/review/performance-reviewer.md +0 -86
- package/agents/review/python-reviewer.md +0 -150
- package/agents/review/rails-reviewer.md +0 -139
- package/agents/review/react-reviewer.md +0 -144
- package/agents/review/security-reviewer.md +0 -80
- package/agents/review/simplicity-reviewer.md +0 -140
- package/agents/review/test-coverage-reviewer.md +0 -116
- package/agents/review/typescript-reviewer.md +0 -127
- package/agents/searcher.md +0 -54
- package/agents/simplifier.md +0 -124
- package/agents/teams/debug-team.md +0 -74
- package/agents/teams/dev-team.md +0 -92
- package/agents/teams/docs-team.md +0 -84
- package/agents/teams/figma-team.md +0 -89
- package/agents/teams/fullstack-team.md +0 -87
- package/agents/teams/lite-team.md +0 -73
- package/agents/teams/migration-team.md +0 -82
- package/agents/teams/refactor-team.md +0 -98
- package/agents/teams/research-team.md +0 -90
- package/agents/teams/review-debate-team.md +0 -129
- package/agents/teams/security-team.md +0 -85
- package/agents/ui/ui-a11y-auditor.md +0 -93
- package/agents/ui/ui-antipattern-detector.md +0 -102
- package/agents/ui/ui-dataviz-advisor.md +0 -69
- package/agents/ui/ui-design-system-gen.md +0 -57
- package/agents/ui/ui-industry-analyzer.md +0 -49
- package/agents/ui/ui-layout-architect.md +0 -65
- package/agents/ui/ui-stack-implementer.md +0 -68
- package/agents/ui/ux-compliance-reviewer.md +0 -81
- package/agents/ui-previewer.md +0 -262
- package/hooks/scripts/__tests__/keyword-detector.test.js +0 -242
- package/hooks/scripts/keyword-detector.js +0 -226
- package/skills/characterization-test/SKILL.md +0 -209
- package/skills/characterization-test/agents/behavior-capturer.md +0 -50
- package/skills/characterization-test/agents/coverage-checker.md +0 -54
- package/skills/characterization-test/agents/reporter.md +0 -50
- package/skills/characterization-test/agents/test-writer.md +0 -49
- package/skills/characterization-test/rubrics/coverage-criteria.md +0 -53
- package/skills/characterization-test/templates/test-template.ts +0 -101
- package/skills/claude-md-guide/SKILL.md +0 -353
- package/skills/claude-md-guide/rubrics/anti-patterns.md +0 -88
- package/skills/design-audit/SKILL.md +0 -154
- package/skills/design-critique/SKILL.md +0 -140
- package/skills/design-distill/SKILL.md +0 -131
- package/skills/design-normalize/SKILL.md +0 -135
- package/skills/design-polish/SKILL.md +0 -132
- package/skills/figma-convert/SKILL.md +0 -236
- package/skills/figma-extract/SKILL.md +0 -242
- package/skills/interview/SKILL.md +0 -358
- package/skills/interview/checklists/api.md +0 -101
- package/skills/interview/checklists/feature.md +0 -88
- package/skills/interview/checklists/library.md +0 -95
- package/skills/interview/checklists/mobile.md +0 -89
- package/skills/interview/checklists/webapp.md +0 -97
- package/skills/interview/checklists/website.md +0 -99
- package/skills/plan/SKILL.md +0 -254
- package/skills/rob-pike/SKILL.md +0 -66
- package/skills/spec/references/askuser-examples.md +0 -57
- package/skills/spec/references/example-session.md +0 -87
- package/skills/spec/references/templates.md +0 -194
- package/skills/spec-review/SKILL.md +0 -725
- package/skills/systematic-debugging/SKILL.md +0 -142
- package/skills/techdebt/SKILL.md +0 -126
- package/skills/techdebt/agents/analyzer.md +0 -50
- package/skills/techdebt/agents/fixer.md +0 -41
- package/skills/techdebt/agents/reviewer.md +0 -47
- package/skills/techdebt/agents/scanner.md +0 -44
- package/skills/techdebt/orchestrator.md +0 -72
- package/skills/techdebt/rubrics/severity.md +0 -51
- package/skills/techdebt/scripts/scan.js +0 -90
- package/skills/techdebt/templates/report.md +0 -86
- package/skills/typescript-advanced-types/SKILL.md +0 -68
- package/skills/typescript-advanced-types/rubrics/type-patterns.md +0 -109
- package/skills/yagni-ladder/SKILL.md +0 -90
- /package/skills/{claude-md-guide → agents-md}/templates/claude-md.md +0 -0
- /package/skills/{design-polish → design-refine}/rubrics/polish-checklist.md +0 -0
- /package/skills/{design-normalize → design-refine}/rubrics/token-naming.md +0 -0
- /package/skills/{design-distill → design-refine}/templates/design-system.md +0 -0
- /package/skills/{design-audit → design-review}/agents/scorer.md +0 -0
- /package/skills/{design-audit → design-review}/rubrics/ai-slop-patterns.md +0 -0
- /package/skills/{design-audit → design-review}/rubrics/scoring.md +0 -0
- /package/skills/{design-critique → design-review}/rubrics/ux-heuristics.md +0 -0
- /package/skills/{figma-convert → figma}/rubrics/conversion-rules.md +0 -0
- /package/skills/{figma-extract → figma}/rubrics/image-rules.md +0 -0
- /package/skills/{figma-convert → figma}/templates/component.md +0 -0
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
# Best Practices Research Agent
|
|
2
|
-
|
|
3
|
-
<!-- Industry Best Practices Research Agent -->
|
|
4
|
-
|
|
5
|
-
## Role
|
|
6
|
-
|
|
7
|
-
- Industry standards research
|
|
8
|
-
- Best practices collection
|
|
9
|
-
- Recommended pattern suggestions
|
|
10
|
-
- Anti-pattern warnings
|
|
11
|
-
|
|
12
|
-
## Model
|
|
13
|
-
|
|
14
|
-
**Haiku** — Fast research
|
|
15
|
-
|
|
16
|
-
## ⚠️ CRITICAL: NO FILE CREATION
|
|
17
|
-
|
|
18
|
-
**THIS AGENT MUST NEVER CREATE FILES.**
|
|
19
|
-
|
|
20
|
-
- ❌ DO NOT use Write tool
|
|
21
|
-
- ❌ DO NOT create any files in project root
|
|
22
|
-
- ❌ DO NOT create *_RESEARCH.md or *_SUMMARY.md files
|
|
23
|
-
- ✅ ONLY return research results as text output
|
|
24
|
-
- ✅ Results will be merged into SPEC by core.spec command
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
Automatically called in parallel when `/vibe.spec` is executed
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
Task(
|
|
32
|
-
model: "haiku",
|
|
33
|
-
subagent_type: "Explore",
|
|
34
|
-
prompt: "Research best practices for [feature]. Include patterns, anti-patterns."
|
|
35
|
-
)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Research Areas
|
|
39
|
-
|
|
40
|
-
### By Domain
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
Authentication:
|
|
44
|
-
├── OAuth 2.0 / OIDC
|
|
45
|
-
├── JWT best practices
|
|
46
|
-
├── Session management
|
|
47
|
-
└── MFA implementation
|
|
48
|
-
|
|
49
|
-
Payment:
|
|
50
|
-
├── PCI-DSS compliance
|
|
51
|
-
├── Idempotency keys
|
|
52
|
-
├── Retry strategies
|
|
53
|
-
└── Webhook verification
|
|
54
|
-
|
|
55
|
-
API Design:
|
|
56
|
-
├── REST conventions
|
|
57
|
-
├── GraphQL patterns
|
|
58
|
-
├── Versioning strategies
|
|
59
|
-
└── Rate limiting
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
### By Framework
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
React:
|
|
66
|
-
├── Component patterns (Compound, Render Props)
|
|
67
|
-
├── State management (Context, Zustand, Jotai)
|
|
68
|
-
├── Server Components
|
|
69
|
-
└── Performance patterns
|
|
70
|
-
|
|
71
|
-
Django/FastAPI:
|
|
72
|
-
├── Project structure
|
|
73
|
-
├── Async patterns
|
|
74
|
-
├── Testing strategies
|
|
75
|
-
└── Security defaults
|
|
76
|
-
|
|
77
|
-
Rails:
|
|
78
|
-
├── Rails Way conventions
|
|
79
|
-
├── Service objects
|
|
80
|
-
├── Background jobs
|
|
81
|
-
└── Caching strategies
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## Output Format
|
|
85
|
-
|
|
86
|
-
```markdown
|
|
87
|
-
## 📚 Best Practices Research
|
|
88
|
-
|
|
89
|
-
### Feature: [feature-name]
|
|
90
|
-
|
|
91
|
-
### Recommended Patterns
|
|
92
|
-
|
|
93
|
-
1. **Pattern: Repository Pattern**
|
|
94
|
-
- Use case: Data access abstraction
|
|
95
|
-
- Benefits: Testability, flexibility
|
|
96
|
-
- Example:
|
|
97
|
-
```python
|
|
98
|
-
class UserRepository:
|
|
99
|
-
def find_by_id(self, id: int) -> User:
|
|
100
|
-
...
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
2. **Pattern: Service Layer**
|
|
104
|
-
- Use case: Business logic encapsulation
|
|
105
|
-
- Benefits: Thin controllers, reusability
|
|
106
|
-
|
|
107
|
-
### Anti-Patterns to Avoid
|
|
108
|
-
|
|
109
|
-
1. **Anti-pattern: God Object**
|
|
110
|
-
- Problem: Single class doing everything
|
|
111
|
-
- Solution: Split by responsibility
|
|
112
|
-
|
|
113
|
-
2. **Anti-pattern: Premature Optimization**
|
|
114
|
-
- Problem: Optimizing before measuring
|
|
115
|
-
- Solution: Measure first, optimize bottlenecks
|
|
116
|
-
|
|
117
|
-
### Industry Standards
|
|
118
|
-
|
|
119
|
-
- OWASP Security Guidelines
|
|
120
|
-
- 12-Factor App Methodology
|
|
121
|
-
- REST API Design Guidelines
|
|
122
|
-
|
|
123
|
-
### Recommended Libraries
|
|
124
|
-
|
|
125
|
-
| Purpose | Recommendation | Reason |
|
|
126
|
-
|---------|---------------|--------|
|
|
127
|
-
| Validation | Pydantic/Zod | Type-safe, fast |
|
|
128
|
-
| Auth | NextAuth/Devise | Battle-tested |
|
|
129
|
-
| Testing | Pytest/Jest | Community standard |
|
|
130
|
-
|
|
131
|
-
### References
|
|
132
|
-
|
|
133
|
-
- [Article/Doc 1](url)
|
|
134
|
-
- [Article/Doc 2](url)
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## Multi-LLM Enhancement (Quality Assurance)
|
|
138
|
-
|
|
139
|
-
**core = Quality Assurance Framework**
|
|
140
|
-
|
|
141
|
-
Best practices research uses **3 perspectives in parallel** for comprehensive coverage:
|
|
142
|
-
|
|
143
|
-
```
|
|
144
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
145
|
-
│ PARALLEL BEST PRACTICES RESEARCH │
|
|
146
|
-
├─────────────────────────────────────────────────────────────┤
|
|
147
|
-
│ Claude (Haiku) │ Core patterns, anti-patterns │
|
|
148
|
-
│ GPT │ Architecture patterns, code conventions │
|
|
149
|
-
│ Gemini │ Latest trends, framework updates │
|
|
150
|
-
└─────────────────────────────────────────────────────────────┘
|
|
151
|
-
↓
|
|
152
|
-
Merge & Dedupe
|
|
153
|
-
↓
|
|
154
|
-
SPEC Context
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
**Execution flow:**
|
|
158
|
-
|
|
159
|
-
```bash
|
|
160
|
-
# 1. Claude (Primary) - Always runs
|
|
161
|
-
Task(haiku, "Research best practices for [feature]")
|
|
162
|
-
|
|
163
|
-
# 2. GPT (Parallel) - When enabled
|
|
164
|
-
node "[LLM_SCRIPT]" gpt-codex orchestrate-json \
|
|
165
|
-
"Best practices for [feature] with [stack]. Focus: architecture patterns, code conventions, testing strategies. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
166
|
-
|
|
167
|
-
# 3. Gemini (Parallel) - When enabled
|
|
168
|
-
node "[LLM_SCRIPT]" gemini orchestrate-json \
|
|
169
|
-
"Best practices for [feature] with [stack]. Focus: latest trends, framework updates, community recommendations. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
**Result merge strategy:**
|
|
173
|
-
|
|
174
|
-
| Source | Priority | Focus Area |
|
|
175
|
-
|--------|----------|------------|
|
|
176
|
-
| Claude | High | Core patterns, anti-patterns |
|
|
177
|
-
| GPT | Medium | Architecture, conventions |
|
|
178
|
-
| Gemini | Medium | Latest trends, updates |
|
|
179
|
-
|
|
180
|
-
**Merge rules:**
|
|
181
|
-
- Duplicate patterns → Keep one with most detail
|
|
182
|
-
- Conflicting advice → Claude takes precedence
|
|
183
|
-
- Unique findings → All included
|
|
184
|
-
|
|
185
|
-
## Integration with /vibe.spec
|
|
186
|
-
|
|
187
|
-
```
|
|
188
|
-
/vibe.spec "login feature"
|
|
189
|
-
|
|
190
|
-
→ best-practices execution (3 LLMs parallel):
|
|
191
|
-
- Claude: "Research authentication best practices: OAuth, JWT, session"
|
|
192
|
-
- GPT: "Architecture patterns for auth: repository, service layer"
|
|
193
|
-
- Gemini: "Latest auth trends: passkey, WebAuthn, passwordless"
|
|
194
|
-
|
|
195
|
-
→ Merged results reflected in SPEC:
|
|
196
|
-
- Recommended libraries (consensus)
|
|
197
|
-
- Security considerations (all sources)
|
|
198
|
-
- Implementation patterns (deduplicated)
|
|
199
|
-
```
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
# Codebase Patterns Research Agent
|
|
2
|
-
|
|
3
|
-
<!-- Existing Codebase Patterns Analysis Agent -->
|
|
4
|
-
|
|
5
|
-
## Role
|
|
6
|
-
|
|
7
|
-
- Existing implementation pattern analysis
|
|
8
|
-
- Coding convention extraction
|
|
9
|
-
- Similar feature reference
|
|
10
|
-
- Consistency assurance
|
|
11
|
-
|
|
12
|
-
## Model
|
|
13
|
-
|
|
14
|
-
**Haiku** — Fast exploration
|
|
15
|
-
|
|
16
|
-
## ⚠️ CRITICAL: NO FILE CREATION
|
|
17
|
-
|
|
18
|
-
**THIS AGENT MUST NEVER CREATE FILES.**
|
|
19
|
-
|
|
20
|
-
- ❌ DO NOT use Write tool
|
|
21
|
-
- ❌ DO NOT create any files in project root
|
|
22
|
-
- ❌ DO NOT create PATTERNS_*.md or ANALYSIS_*.md files
|
|
23
|
-
- ✅ ONLY return research results as text output
|
|
24
|
-
- ✅ Results will be merged into SPEC by core.spec command
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
Automatically called in parallel when `/vibe.spec` is executed
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
Task(
|
|
32
|
-
model: "haiku",
|
|
33
|
-
subagent_type: "Explore",
|
|
34
|
-
prompt: "Analyze existing patterns in codebase for [feature]. Find similar implementations."
|
|
35
|
-
)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Analysis Areas
|
|
39
|
-
|
|
40
|
-
### File Structure
|
|
41
|
-
```
|
|
42
|
-
Project structure analysis:
|
|
43
|
-
├── Directory organization
|
|
44
|
-
├── Naming conventions
|
|
45
|
-
├── Module separation approach
|
|
46
|
-
└── Test file locations
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Code Patterns
|
|
50
|
-
```
|
|
51
|
-
Pattern extraction:
|
|
52
|
-
├── Error handling approach
|
|
53
|
-
├── Logging patterns
|
|
54
|
-
├── Data validation approach
|
|
55
|
-
├── API response format
|
|
56
|
-
└── Dependency injection approach
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Conventions
|
|
60
|
-
```
|
|
61
|
-
Convention analysis:
|
|
62
|
-
├── Variable/function naming
|
|
63
|
-
├── File naming
|
|
64
|
-
├── Import order
|
|
65
|
-
├── Comment style
|
|
66
|
-
└── Type definition approach
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## Output Format
|
|
70
|
-
|
|
71
|
-
```markdown
|
|
72
|
-
## 🔍 Codebase Patterns Analysis
|
|
73
|
-
|
|
74
|
-
### Project Structure
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
src/
|
|
78
|
-
├── api/ # REST endpoints
|
|
79
|
-
├── services/ # Business logic
|
|
80
|
-
├── models/ # Data models
|
|
81
|
-
├── utils/ # Helpers
|
|
82
|
-
└── tests/ # Mirror structure
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### Existing Patterns
|
|
86
|
-
|
|
87
|
-
1. **Error Handling Pattern**
|
|
88
|
-
```python
|
|
89
|
-
# Found in: src/services/*.py
|
|
90
|
-
try:
|
|
91
|
-
result = operation()
|
|
92
|
-
except SpecificError as e:
|
|
93
|
-
logger.error(f"Operation failed: {e}")
|
|
94
|
-
raise ServiceError(str(e)) from e
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
2. **API Response Pattern**
|
|
98
|
-
```python
|
|
99
|
-
# Found in: src/api/*.py
|
|
100
|
-
return {
|
|
101
|
-
"success": True,
|
|
102
|
-
"data": result,
|
|
103
|
-
"meta": {"count": len(result)}
|
|
104
|
-
}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
3. **Service Layer Pattern**
|
|
108
|
-
```python
|
|
109
|
-
# Found in: src/services/user_service.py
|
|
110
|
-
class UserService:
|
|
111
|
-
def __init__(self, db: Database):
|
|
112
|
-
self.db = db
|
|
113
|
-
|
|
114
|
-
def get_user(self, user_id: int) -> User:
|
|
115
|
-
...
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### Naming Conventions
|
|
119
|
-
|
|
120
|
-
| Type | Convention | Example |
|
|
121
|
-
|------|------------|---------|
|
|
122
|
-
| Files | snake_case | user_service.py |
|
|
123
|
-
| Classes | PascalCase | UserService |
|
|
124
|
-
| Functions | snake_case | get_user_by_id |
|
|
125
|
-
| Constants | UPPER_CASE | MAX_RETRIES |
|
|
126
|
-
|
|
127
|
-
### Similar Implementations
|
|
128
|
-
|
|
129
|
-
For feature "payment feature":
|
|
130
|
-
|
|
131
|
-
| Similar Feature | Location | Relevance |
|
|
132
|
-
|-----------------|----------|-----------|
|
|
133
|
-
| Order processing | src/services/order.py | 90% |
|
|
134
|
-
| Subscription management | src/services/subscription.py | 75% |
|
|
135
|
-
|
|
136
|
-
### Recommendations
|
|
137
|
-
|
|
138
|
-
Based on existing patterns:
|
|
139
|
-
1. Create `src/services/payment_service.py`
|
|
140
|
-
2. Follow existing error handling pattern
|
|
141
|
-
3. Use existing validation decorators
|
|
142
|
-
4. Reuse `src/utils/api_response.py`
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## Integration with /vibe.spec
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
/vibe.spec "payment feature"
|
|
149
|
-
|
|
150
|
-
→ codebase-patterns execution:
|
|
151
|
-
"Find similar payment/transaction code. Extract patterns."
|
|
152
|
-
|
|
153
|
-
→ Results reflected in SPEC:
|
|
154
|
-
- Follow existing patterns
|
|
155
|
-
- Reference similar code
|
|
156
|
-
- Maintain consistency
|
|
157
|
-
```
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
# Framework Docs Research Agent
|
|
2
|
-
|
|
3
|
-
<!-- Framework Documentation Research Agent -->
|
|
4
|
-
|
|
5
|
-
## Role
|
|
6
|
-
|
|
7
|
-
- Official documentation lookup
|
|
8
|
-
- Latest API verification
|
|
9
|
-
- Migration guide collection
|
|
10
|
-
- Version compatibility check
|
|
11
|
-
|
|
12
|
-
## Model
|
|
13
|
-
|
|
14
|
-
**Haiku** — Fast research
|
|
15
|
-
|
|
16
|
-
## ⚠️ CRITICAL: NO FILE CREATION
|
|
17
|
-
|
|
18
|
-
**THIS AGENT MUST NEVER CREATE FILES.**
|
|
19
|
-
|
|
20
|
-
- ❌ DO NOT use Write tool
|
|
21
|
-
- ❌ DO NOT create any files in project root
|
|
22
|
-
- ❌ DO NOT create DOCS_*.md or API_*.md files
|
|
23
|
-
- ✅ ONLY return research results as text output
|
|
24
|
-
- ✅ Results will be merged into SPEC by core.spec command
|
|
25
|
-
|
|
26
|
-
## Usage
|
|
27
|
-
|
|
28
|
-
Automatically called in parallel when `/vibe.spec` is executed
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
Task(
|
|
32
|
-
model: "haiku",
|
|
33
|
-
subagent_type: "Explore",
|
|
34
|
-
prompt: "Research [framework] docs for [feature]. Get latest API, examples."
|
|
35
|
-
)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Integration with context7
|
|
39
|
-
|
|
40
|
-
Using context7 plugin:
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
resolve-library-id "react" → react
|
|
44
|
-
get-library-docs "react" "hooks" → Hook docs
|
|
45
|
-
|
|
46
|
-
resolve-library-id "django" → django
|
|
47
|
-
get-library-docs "django" "authentication" → Auth docs
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## External LLM Enhancement (Optional)
|
|
51
|
-
|
|
52
|
-
**When Gemini is enabled**, supplement with web search for latest documentation:
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
Primary: Task(Haiku) + context7
|
|
56
|
-
↓
|
|
57
|
-
[Gemini enabled?]
|
|
58
|
-
↓ YES
|
|
59
|
-
gemini.[framework] [version] latest API changes and best practices. Provide latest API info.
|
|
60
|
-
↓
|
|
61
|
-
Merge results → Reflect in SPEC Context
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**Use cases:**
|
|
65
|
-
- When latest version docs are missing from context7
|
|
66
|
-
- When breaking changes need verification
|
|
67
|
-
- When searching for real-world patterns beyond official docs
|
|
68
|
-
|
|
69
|
-
**When Gemini is not configured:** Primary works normally on its own
|
|
70
|
-
|
|
71
|
-
## Research Areas
|
|
72
|
-
|
|
73
|
-
### Frontend
|
|
74
|
-
```
|
|
75
|
-
React:
|
|
76
|
-
├── Hooks API
|
|
77
|
-
├── Server Components
|
|
78
|
-
├── Suspense
|
|
79
|
-
└── Concurrent Features
|
|
80
|
-
|
|
81
|
-
Next.js:
|
|
82
|
-
├── App Router
|
|
83
|
-
├── Server Actions
|
|
84
|
-
├── Middleware
|
|
85
|
-
└── Edge Runtime
|
|
86
|
-
|
|
87
|
-
Vue:
|
|
88
|
-
├── Composition API
|
|
89
|
-
├── Reactivity System
|
|
90
|
-
└── Pinia
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Backend
|
|
94
|
-
```
|
|
95
|
-
Django:
|
|
96
|
-
├── Models & ORM
|
|
97
|
-
├── Class-based Views
|
|
98
|
-
├── REST Framework
|
|
99
|
-
└── Async Support
|
|
100
|
-
|
|
101
|
-
FastAPI:
|
|
102
|
-
├── Path Operations
|
|
103
|
-
├── Dependency Injection
|
|
104
|
-
├── Pydantic Models
|
|
105
|
-
└── Background Tasks
|
|
106
|
-
|
|
107
|
-
Rails:
|
|
108
|
-
├── ActiveRecord
|
|
109
|
-
├── Action Controllers
|
|
110
|
-
├── Hotwire/Turbo
|
|
111
|
-
└── Active Job
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Database
|
|
115
|
-
```
|
|
116
|
-
PostgreSQL:
|
|
117
|
-
├── Indexes
|
|
118
|
-
├── Partitioning
|
|
119
|
-
├── JSON operations
|
|
120
|
-
└── Full-text search
|
|
121
|
-
|
|
122
|
-
Redis:
|
|
123
|
-
├── Data structures
|
|
124
|
-
├── Pub/Sub
|
|
125
|
-
├── Lua scripting
|
|
126
|
-
└── Cluster mode
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
## Output Format
|
|
130
|
-
|
|
131
|
-
```markdown
|
|
132
|
-
## 📖 Framework Documentation Research
|
|
133
|
-
|
|
134
|
-
### Framework: [framework-name]
|
|
135
|
-
### Version: [version]
|
|
136
|
-
|
|
137
|
-
### Relevant APIs
|
|
138
|
-
|
|
139
|
-
1. **API: useOptimistic (React 19)**
|
|
140
|
-
```tsx
|
|
141
|
-
const [optimisticState, addOptimistic] = useOptimistic(
|
|
142
|
-
state,
|
|
143
|
-
updateFn
|
|
144
|
-
);
|
|
145
|
-
```
|
|
146
|
-
- Use case: Optimistic UI updates
|
|
147
|
-
- Available in: React 19+
|
|
148
|
-
|
|
149
|
-
2. **API: Server Actions (Next.js 14)**
|
|
150
|
-
```tsx
|
|
151
|
-
async function submitForm(formData: FormData) {
|
|
152
|
-
'use server';
|
|
153
|
-
// Server-side logic
|
|
154
|
-
}
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
### Breaking Changes
|
|
158
|
-
|
|
159
|
-
| From | To | Change | Migration |
|
|
160
|
-
|------|-----|--------|-----------|
|
|
161
|
-
| v18 | v19 | useFormStatus location | Import from react-dom |
|
|
162
|
-
|
|
163
|
-
### Official Examples
|
|
164
|
-
|
|
165
|
-
- [Example 1](url): Authentication flow
|
|
166
|
-
- [Example 2](url): Data fetching
|
|
167
|
-
|
|
168
|
-
### Version Compatibility
|
|
169
|
-
|
|
170
|
-
| Package | Min Version | Recommended |
|
|
171
|
-
|---------|-------------|-------------|
|
|
172
|
-
| Node.js | 18.17 | 20.x |
|
|
173
|
-
| React | 18.2 | 19.x |
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
## Integration with /vibe.spec
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
/vibe.spec "social login"
|
|
180
|
-
|
|
181
|
-
→ framework-docs execution:
|
|
182
|
-
"Research NextAuth.js v5 for social login. Get Google, GitHub providers."
|
|
183
|
-
|
|
184
|
-
→ Results reflected in SPEC:
|
|
185
|
-
- Latest API usage
|
|
186
|
-
- Required configuration
|
|
187
|
-
- Code examples
|
|
188
|
-
```
|