@su-record/vibe 2.9.1 → 2.9.3
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 +31 -10
- package/README.ko.md +90 -25
- package/README.md +139 -25
- package/agents/teams/debug-team.md +70 -0
- package/agents/teams/dev-team.md +88 -0
- package/agents/teams/docs-team.md +80 -0
- package/agents/teams/figma/figma-analyst.md +52 -0
- package/agents/teams/figma/figma-architect.md +112 -0
- package/agents/teams/figma/figma-auditor.md +82 -0
- package/agents/teams/figma/figma-builder.md +100 -0
- package/agents/teams/figma-team.md +85 -0
- package/agents/teams/fullstack-team.md +83 -0
- package/agents/teams/lite-team.md +69 -0
- package/agents/teams/migration-team.md +78 -0
- package/agents/teams/refactor-team.md +94 -0
- package/agents/teams/research-team.md +86 -0
- package/agents/teams/review-debate-team.md +125 -0
- package/agents/teams/security-team.md +81 -0
- package/commands/vibe.analyze.md +324 -170
- package/commands/vibe.figma.md +549 -34
- package/commands/vibe.harness.md +177 -0
- package/commands/vibe.review.md +1 -63
- package/commands/vibe.run.md +52 -403
- package/commands/vibe.scaffold.md +195 -0
- package/commands/vibe.spec.md +373 -1003
- package/commands/vibe.trace.md +17 -0
- package/commands/vibe.verify.md +19 -10
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +29 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +4 -2
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/postinstall/constants.d.ts +1 -1
- package/dist/cli/postinstall/constants.d.ts.map +1 -1
- package/dist/cli/postinstall/constants.js +6 -1
- package/dist/cli/postinstall/constants.js.map +1 -1
- package/dist/cli/setup/ProjectSetup.d.ts +12 -1
- package/dist/cli/setup/ProjectSetup.d.ts.map +1 -1
- package/dist/cli/setup/ProjectSetup.js +259 -72
- package/dist/cli/setup/ProjectSetup.js.map +1 -1
- package/dist/cli/setup.d.ts +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +1 -1
- package/dist/cli/setup.js.map +1 -1
- package/hooks/scripts/figma-guard.js +220 -0
- package/hooks/scripts/figma-refine.js +315 -0
- package/hooks/scripts/figma-to-scss.js +394 -0
- package/hooks/scripts/figma-validate.js +353 -0
- package/package.json +1 -1
- package/skills/arch-guard/SKILL.md +1 -1
- package/skills/capability-loop/SKILL.md +106 -2
- package/skills/chub-usage/SKILL.md +43 -43
- package/skills/claude-md-guide/SKILL.md +175 -175
- package/skills/design-teach/SKILL.md +33 -33
- package/skills/devlog/SKILL.md +38 -38
- package/skills/event-comms/SKILL.md +23 -13
- package/skills/event-ops/SKILL.md +28 -19
- package/skills/event-planning/SKILL.md +13 -1
- package/skills/priority-todos/SKILL.md +1 -1
- package/skills/vibe.figma/SKILL.md +263 -115
- package/skills/vibe.figma/templates/component-spec.md +168 -0
- package/skills/vibe.figma.convert/SKILL.md +131 -84
- package/skills/vibe.figma.convert/rubrics/conversion-rules.md +12 -0
- package/skills/vibe.figma.extract/SKILL.md +148 -108
- package/skills/vibe.figma.extract/rubrics/image-rules.md +15 -3
- package/skills/vibe.interview/SKILL.md +358 -0
- package/skills/vibe.interview/checklists/api.md +101 -0
- package/skills/vibe.interview/checklists/feature.md +88 -0
- package/skills/vibe.interview/checklists/library.md +95 -0
- package/skills/vibe.interview/checklists/mobile.md +89 -0
- package/skills/vibe.interview/checklists/webapp.md +97 -0
- package/skills/vibe.interview/checklists/website.md +99 -0
- package/skills/vibe.plan/SKILL.md +216 -0
- package/skills/vibe.spec/SKILL.md +1155 -0
- package/{commands/vibe.spec.review.md → skills/vibe.spec.review/SKILL.md} +272 -155
- package/vibe/templates/claudemd-template.md +74 -0
- package/vibe/templates/constitution-template.md +15 -0
- package/vibe/templates/plan-template.md +194 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate or audit project folder structure optimized for AI-assisted development
|
|
3
|
+
argument-hint: --check (audit existing) or project-type
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /vibe.scaffold
|
|
7
|
+
|
|
8
|
+
Design and generate a project structure where AI works effectively on its own.
|
|
9
|
+
|
|
10
|
+
> "A well-designed project structure trains AI to follow it naturally."
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
/vibe.scaffold # Generate structure (auto-detect stack)
|
|
16
|
+
/vibe.scaffold --check # Audit existing structure + suggest improvements
|
|
17
|
+
/vibe.scaffold webapp # Generate webapp-type structure
|
|
18
|
+
/vibe.scaffold api # Generate api-type structure
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Process
|
|
24
|
+
|
|
25
|
+
### 1. Assess Current State
|
|
26
|
+
|
|
27
|
+
1. Read `CLAUDE.md`, `package.json`, `pyproject.toml`, `pubspec.yaml`
|
|
28
|
+
2. Scan existing folder structure via `Glob`
|
|
29
|
+
3. Read `.claude/vibe/config.json` for detected stacks
|
|
30
|
+
|
|
31
|
+
### 2. Determine Project Type
|
|
32
|
+
|
|
33
|
+
| Type | Structure |
|
|
34
|
+
|------|-----------|
|
|
35
|
+
| `webapp` | src/ + pages/ + components/ + hooks/ + styles/ |
|
|
36
|
+
| `api` | src/ + routes/ + services/ + models/ + middleware/ |
|
|
37
|
+
| `fullstack` | src/client/ + src/server/ or apps/ monorepo |
|
|
38
|
+
| `library` | src/ + examples/ + benchmarks/ |
|
|
39
|
+
| `mobile` | lib/ (Flutter) or src/ (React Native) |
|
|
40
|
+
|
|
41
|
+
### 3. Generate Base Structure
|
|
42
|
+
|
|
43
|
+
Common directories for all projects:
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
my-project/
|
|
47
|
+
├── src/ # Business logic
|
|
48
|
+
├── docs/ # Human-maintained business documents (AI reference)
|
|
49
|
+
│ ├── README.md # Explains purpose: business rules, domain defs, ADR
|
|
50
|
+
│ └── adr/ # Architecture Decision Records
|
|
51
|
+
├── tests/ # Test infrastructure
|
|
52
|
+
├── .dev/ # AI-generated work logs
|
|
53
|
+
│ ├── README.md # Explains purpose: learnings, debug logs, scratch
|
|
54
|
+
│ ├── learnings/ # Troubleshooting records
|
|
55
|
+
│ └── scratch/ # Experiments, scratchpad (gitignored)
|
|
56
|
+
├── .claude/ # AI configuration (managed by vibe init)
|
|
57
|
+
├── out/ # Build artifacts (gitignored)
|
|
58
|
+
└── CLAUDE.md # Project map
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Stack-Specific src/ Layout
|
|
62
|
+
|
|
63
|
+
**React/Next.js (webapp):**
|
|
64
|
+
```
|
|
65
|
+
src/
|
|
66
|
+
├── components/ # Reusable UI components
|
|
67
|
+
│ ├── ui/ # Primitives (Button, Input, Modal)
|
|
68
|
+
│ └── features/ # Feature-specific components
|
|
69
|
+
├── pages/ or app/ # Routes (varies by Next.js version)
|
|
70
|
+
├── hooks/ # Custom hooks
|
|
71
|
+
├── lib/ # Utilities, helpers
|
|
72
|
+
├── services/ # API calls, external services
|
|
73
|
+
├── stores/ # State management (zustand, jotai, etc.)
|
|
74
|
+
├── types/ # Type definitions
|
|
75
|
+
└── styles/ # Global styles
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Express/NestJS/FastAPI (api):**
|
|
79
|
+
```
|
|
80
|
+
src/
|
|
81
|
+
├── routes/ # API routes (or controllers/)
|
|
82
|
+
├── services/ # Business logic
|
|
83
|
+
├── models/ # Data models, schemas
|
|
84
|
+
├── middleware/ # Auth, logging, error handling
|
|
85
|
+
├── lib/ # Utilities
|
|
86
|
+
├── types/ # Type definitions
|
|
87
|
+
└── config/ # Configuration management
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Flutter (mobile):**
|
|
91
|
+
```
|
|
92
|
+
lib/
|
|
93
|
+
├── screens/ # Screen widgets
|
|
94
|
+
├── widgets/ # Reusable widgets
|
|
95
|
+
├── services/ # API, local storage
|
|
96
|
+
├── providers/ # State management
|
|
97
|
+
├── models/ # Data models
|
|
98
|
+
├── utils/ # Utilities
|
|
99
|
+
└── config/ # Configuration, constants
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### 5. Clean Architecture Layers (Optional)
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
src/
|
|
106
|
+
├── domain/ # Business rules (pure logic, no external deps)
|
|
107
|
+
├── application/ # Use cases (domain composition)
|
|
108
|
+
├── infrastructure/ # External integrations (DB, API, files)
|
|
109
|
+
└── presentation/ # UI or API endpoints
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Layer rules:
|
|
113
|
+
- Dependency direction: presentation → application → domain (reverse forbidden)
|
|
114
|
+
- domain must not import external packages
|
|
115
|
+
- infrastructure implements domain interfaces
|
|
116
|
+
|
|
117
|
+
### 6. Generate Supporting Files
|
|
118
|
+
|
|
119
|
+
| File | Content |
|
|
120
|
+
|------|---------|
|
|
121
|
+
| `docs/README.md` | Purpose of docs/ directory |
|
|
122
|
+
| `.dev/README.md` | Purpose of .dev/ directory |
|
|
123
|
+
| `.gitignore` additions | `out/`, `.dev/scratch/` entries |
|
|
124
|
+
|
|
125
|
+
### 7. Update CLAUDE.md
|
|
126
|
+
|
|
127
|
+
Add generated structure as pointers in CLAUDE.md:
|
|
128
|
+
|
|
129
|
+
```markdown
|
|
130
|
+
## Project Structure
|
|
131
|
+
- `src/` — Business logic
|
|
132
|
+
- `docs/` — Human-maintained business docs (AI reads before work)
|
|
133
|
+
- `tests/` — Test infrastructure
|
|
134
|
+
- `.dev/` — AI-generated work logs
|
|
135
|
+
- `.claude/` — AI configuration
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## --check Mode: Audit Existing Structure
|
|
141
|
+
|
|
142
|
+
### Checklist
|
|
143
|
+
|
|
144
|
+
| Item | Criteria | Points |
|
|
145
|
+
|------|----------|--------|
|
|
146
|
+
| `docs/` exists | Business documents separated | /15 |
|
|
147
|
+
| `.dev/` exists | AI work logs separated | /10 |
|
|
148
|
+
| src/ sub-structure | Role-based folder organization | /20 |
|
|
149
|
+
| tests/ separated | Not co-located with source | /15 |
|
|
150
|
+
| CLAUDE.md describes structure | Folder purposes documented | /10 |
|
|
151
|
+
| .gitignore complete | Includes out/, .dev/scratch/ | /5 |
|
|
152
|
+
| Layer separation | Domain/service/infra distinction | /15 |
|
|
153
|
+
| Dependency direction consistency | No reverse imports | /10 |
|
|
154
|
+
|
|
155
|
+
### Output
|
|
156
|
+
|
|
157
|
+
```markdown
|
|
158
|
+
## Scaffold Audit Result (N/100)
|
|
159
|
+
|
|
160
|
+
### Current Structure
|
|
161
|
+
[tree output]
|
|
162
|
+
|
|
163
|
+
### Findings
|
|
164
|
+
| Item | Status | Recommendation |
|
|
165
|
+
|------|--------|----------------|
|
|
166
|
+
| docs/ | Missing | `mkdir docs && echo "..." > docs/README.md` |
|
|
167
|
+
| ... | ... | ... |
|
|
168
|
+
|
|
169
|
+
### Auto-Fixable Items
|
|
170
|
+
1. [ ] Create docs/
|
|
171
|
+
2. [ ] Create .dev/
|
|
172
|
+
3. [ ] Update .gitignore
|
|
173
|
+
|
|
174
|
+
Proceed with auto-fix? (y/n)
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Self-Repair
|
|
178
|
+
|
|
179
|
+
If audit score < 60, automatically suggest:
|
|
180
|
+
1. Run `/vibe.scaffold` to generate missing directories
|
|
181
|
+
2. Run `vibe update` to regenerate CLAUDE.md with structure info
|
|
182
|
+
3. Run `/vibe.harness` for full maturity assessment
|
|
183
|
+
|
|
184
|
+
---
|
|
185
|
+
|
|
186
|
+
## Principles
|
|
187
|
+
|
|
188
|
+
1. **Never delete or move existing files** — only add new directories
|
|
189
|
+
2. **Empty directories get a README.md** — purpose description helps AI understand context
|
|
190
|
+
3. **No structure < bad structure < good structure** — any scaffolding improves AI output
|
|
191
|
+
4. **Separate by ownership** — human docs (docs/) vs AI logs (.dev/) in different directories
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
ARGUMENTS: $ARGUMENTS
|