start-vibing-stacks 2.4.0 → 2.4.1

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 (2) hide show
  1. package/README.md +142 -58
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,100 +1,184 @@
1
- # 🎸 Start Vibing Stacks
1
+ # Start Vibing Stacks
2
2
 
3
- **Multi-stack AI-powered development workflow for Claude Code.**
3
+ **Multi-stack AI-powered development workflow for Claude Code & Cursor.**
4
4
 
5
- One command to set up agents, skills, hooks, and quality gates — tailored to your stack.
6
-
7
- ## 🚀 Quick Start
5
+ One command to set up agents, skills, hooks, security rules, and quality gates — tailored to your stack.
8
6
 
9
7
  ```bash
10
8
  npx start-vibing-stacks
11
9
  ```
12
10
 
13
- Or install globally:
11
+ ## What It Does
12
+
13
+ Start Vibing Stacks transforms Claude Code into a stack-aware AI partner. Instead of a generic assistant, you get an AI that understands your framework, enforces your coding standards, and blocks insecure patterns — all before a single line of code is written.
14
+
15
+ ```
16
+ You run the CLI
17
+
18
+ Detects your stack (PHP/Node.js) from project files
19
+
20
+ Scans existing standards (.cursorrules, composer.json, tsconfig, eslint, .env)
21
+
22
+ Asks: adapt to YOUR standards or use defaults?
23
+
24
+ Copies 6 agents + 25-40 skills + hooks + security rules
25
+
26
+ Generates CLAUDE.md with architecture, rules, FORBIDDEN patterns
27
+
28
+ Launches Claude Code — fully configured
29
+ ```
30
+
31
+ ## Supported Stacks
32
+
33
+ ### PHP 8.3+
34
+
35
+ | Option | Choices |
36
+ |--------|---------|
37
+ | **Frameworks** | Laravel 12 + Octane (RoadRunner) + Inertia.js, Laravel 12 (standard) |
38
+ | **Databases** | MySQL / MariaDB, PostgreSQL, SQLite |
39
+ | **Frontend** | React 19 + Inertia.js + TailwindCSS 4, Blade + TailwindCSS, Livewire + Alpine.js, API only |
40
+ | **Skills** | 13 PHP-specific (Octane, PHPStan, PHPUnit, Eloquent, API Security, Inertia i18n, ...) |
41
+
42
+ ### Node.js / TypeScript
43
+
44
+ | Option | Choices |
45
+ |--------|---------|
46
+ | **Frameworks** | Next.js (App Router), Nuxt, Astro, Express, Fastify, Vanilla Node.js |
47
+ | **Databases** | MongoDB, PostgreSQL, MySQL, SQLite/Turso, Redis (Upstash), None |
48
+ | **Frontend** | React 19 + TailwindCSS 4, Vue.js / Nuxt, Svelte / SvelteKit, API only |
49
+ | **Skills** | 5 Node-specific (TypeScript strict, Next.js App Router, tRPC, Bun, Mongoose) + 9 frontend skills |
50
+
51
+ ### Python (Coming Soon)
52
+
53
+ Django, FastAPI, Flask support is planned.
54
+
55
+ ## What Gets Installed
14
56
 
15
- ```bash
16
- npm install -g start-vibing-stacks
17
- svs # shortcut
18
57
  ```
58
+ your-project/
59
+ ├── CLAUDE.md # AI memory — architecture, rules, FORBIDDEN patterns
60
+ └── .claude/
61
+ ├── agents/ # 6 universal agents
62
+ │ ├── research-web.md # Researches best practices before new features
63
+ │ ├── documenter.md # Maps files to domains, tracks changes
64
+ │ ├── domain-updater.md # Records problems, solutions, learnings
65
+ │ ├── commit-manager.md # Conventional commits, merge workflow
66
+ │ ├── tester.md # Creates tests (Vitest/PHPUnit/Playwright)
67
+ │ └── claude-md-compactor.md # Compacts CLAUDE.md when > 40k chars
68
+ ├── skills/ # 25-40 skills (stack + shared + frontend)
69
+ │ ├── quality-gate/ # Typecheck, lint, test validation
70
+ │ ├── security-scan/ # OWASP checks per language
71
+ │ ├── git-workflow/ # Branch management, conventional commits
72
+ │ ├── codebase-knowledge/ # Domain documentation system
73
+ │ └── ... # Stack-specific skills
74
+ ├── hooks/
75
+ │ ├── stop-validator.ts # Blocks incomplete tasks (branch, git, docs)
76
+ │ └── user-prompt-submit.ts # Injects workflow + standards context
77
+ ├── commands/ # /feature, /fix, /research, /validate
78
+ ├── config/
79
+ │ ├── active-project.json # Stack, framework, database, skills
80
+ │ ├── security-rules.json # OWASP checks + env exposure rules
81
+ │ ├── standards-review.json # Imported project standards
82
+ │ └── ... # Quality gates, testing, domain mapping
83
+ └── settings.json # Claude Code permissions & model config
84
+ ```
85
+
86
+ ## Security Features
87
+
88
+ ### Environment Variable Protection (Node.js)
89
+
90
+ The tool enforces strict separation of server and client environment variables:
19
91
 
20
- ## Features
92
+ - **Scanner**: Detects `NEXT_PUBLIC_` with sensitive words (SECRET, TOKEN, API_KEY) in `.env*` files
93
+ - **CLAUDE.md**: FORBIDDEN rules prevent AI from exposing secrets in browser bundles
94
+ - **Skills**: Teach API proxy patterns — external API calls must go through Route Handlers
95
+ - **security-rules.json**: Automated detection patterns for security audits
21
96
 
22
- - **🔍 Auto-detection** — Scans your project files to suggest the right stack
23
- - **🐘 PHP 8.3+** — PHPStan, PHPUnit, Composer, Laravel/Octane
24
- - **📦 Node.js/TS** — Vitest, TypeScript, Bun, Next.js, Express
25
- - **🎯 Multi-framework** — Choose your framework, database, frontend, deploy target
26
- - **🤖 6 Universal Agents** — research, documenter, domain-updater, commit-manager, tester, compactor
27
- - **🛡️ Quality Gates** — Stack-specific validation before every commit
28
- - **🔒 Security Skills** — OWASP checks adapted per language
29
- - **📝 .cursorrules support** — Imports existing Cursor IDE rules
30
- - **⚡ Auto-install** — Validates and installs missing deps (Homebrew on macOS)
97
+ ### PHP Security
31
98
 
32
- ## 📋 Supported Stacks
99
+ - OWASP Top 10 adapted for Laravel + Octane
100
+ - Octane-safe patterns (no static state, no globals)
101
+ - `env()` restriction (config files only)
102
+ - Frontend secret isolation (Inertia props)
103
+ - Rate limiting, CORS, CSP, encryption at rest
33
104
 
34
- | Stack | Status | Frameworks |
35
- |-------|--------|------------|
36
- | 🐘 PHP 8.3+ | ✅ Ready | Laravel, Laravel+Octane |
37
- | 📦 Node.js/TS | ✅ Ready | Next.js, Nuxt, Astro, Express, Fastify |
38
- | 🐍 Python | 🔜 Soon | Django, FastAPI, Flask |
39
- | 🦀 Rust | 🔜 Soon | Actix, Axum |
40
- | 🐹 Go | 🔜 Soon | Gin, Echo |
105
+ ## Standards Review
41
106
 
42
- ## 🏗️ What It Creates
107
+ Before modifying anything, the CLI scans your project for existing patterns:
43
108
 
44
109
  ```
45
- .claude/
46
- ├── agents/ # 6 universal agents (stack-aware)
47
- ├── skills/ # Stack-specific + shared skills
48
- ├── hooks/ # stop-validator + prompt-inject
49
- ├── config/ # Project config, quality gates, security rules
50
- ├── commands/ # /feature, /fix, /validate
51
- └── settings.json # Claude Code permissions
110
+ Scans: .cursorrules, composer.json, package.json, tsconfig.json,
111
+ eslint config, phpstan.neon, .env files, framework configs,
112
+ lockfiles, deploy configs, quality tool configs
113
+
114
+ Detects: 50+ npm packages, 17+ Composer packages, TypeScript strict mode,
115
+ path aliases, ESLint config, PHPStan level, package manager,
116
+ deploy targets, exposed secrets in NEXT_PUBLIC_*
117
+
118
+ Result: "Adapt to your standards" or "Use plugin defaults"
119
+ → Saved in standards-review.json
120
+ → Injected into every Claude prompt via hook
52
121
  ```
53
122
 
54
- ## 🔧 Options
123
+ ## CLI Options
55
124
 
56
125
  ```bash
57
126
  npx start-vibing-stacks [options]
58
127
 
59
128
  --force Overwrite existing configuration
60
- --no-claude Skip Claude Code installation
129
+ --no-claude Skip Claude Code launch
61
130
  --no-install Skip dependency installation
62
131
  --help, -h Show help
63
132
  --version, -v Show version
64
133
  ```
65
134
 
66
- ## 🐘 PHP Requirements
135
+ Or install globally:
67
136
 
68
- When selecting the PHP stack, the tool validates and auto-installs:
137
+ ```bash
138
+ npm install -g start-vibing-stacks
139
+ svs # shortcut alias
140
+ ```
69
141
 
70
- - **PHP >= 8.3** (via `brew install php@8.3` on macOS)
71
- - **Composer >= 2.0** (auto-installed using PHP if missing)
72
- - **Node.js >= 18** (for frontend tooling)
142
+ ## How the Workflow Works
73
143
 
74
- ### Laravel + Octane (RoadRunner)
144
+ Once configured, Claude Code follows this workflow on every task:
75
145
 
76
- Select "Laravel + Octane (RoadRunner)" in the framework menu for:
77
- - RoadRunner server configuration
78
- - Octane-specific skills and patterns
79
- - High-performance deployment guides
146
+ ```
147
+ 0. TODO LIST → Creates detailed task breakdown
148
+ 1. BRANCH → Creates feature/ | fix/ | refactor/ | test/
149
+ 2. RESEARCH → Runs research-web agent for new features
150
+ 3. IMPLEMENT → Follows stack rules + strict types + security
151
+ 4. TEST → Runs tester agent (PHPUnit / Vitest / Playwright)
152
+ 5. DOCUMENT → Runs documenter agent for modified files
153
+ 6. UPDATE → Updates CLAUDE.md with changes
154
+ 7. QUALITY → Runs quality gates (typecheck, lint, test, build)
155
+ 8. COMMIT → Conventional commits, merge to main
156
+ ```
80
157
 
81
- ## 📝 Cursor IDE Support
158
+ The **stop-validator hook** blocks task completion if:
159
+ - Not on `main` branch (work must be merged)
160
+ - Uncommitted changes exist
161
+ - CLAUDE.md wasn't updated
162
+ - Source files lack documentation
82
163
 
83
- If `.cursorrules` is detected in your project, the rules are automatically imported into the Claude agent configuration. Both AI tools work with the same context.
164
+ ## Cursor IDE Support
84
165
 
85
- ## 🔄 How It Works
166
+ If `.cursorrules` is detected, the rules are automatically imported into the Claude configuration. Both AI tools work with the same context.
86
167
 
87
- 1. **Detect** — Scans project for `composer.json`, `package.json`, etc.
88
- 2. **Select** — You choose stack, framework, database, frontend, deploy
89
- 3. **Validate** — Checks system requirements, installs missing tools
90
- 4. **Configure** — Copies agents, skills, hooks tailored to your choices
91
- 5. **Launch** — Starts Claude Code with everything pre-configured
168
+ ## Requirements
92
169
 
93
- ## 📄 License
170
+ | Stack | Requirements |
171
+ |-------|-------------|
172
+ | **PHP** | PHP >= 8.3, Composer >= 2.0, Node.js >= 18 |
173
+ | **Node.js** | Node.js >= 18 (Bun optional) |
94
174
 
95
- MIT
175
+ Missing dependencies are auto-installed via Homebrew on macOS.
96
176
 
97
- ## 🏠 Credits
177
+ ## Credits
98
178
 
99
179
  Inspired by [start-vibing](https://www.npmjs.com/package/start-vibing).
100
180
  Built by [FantasyLake](https://github.com/f1sc4ll-ai).
181
+
182
+ ## License
183
+
184
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "start-vibing-stacks",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "AI-powered multi-stack dev workflow for Claude Code. Supports PHP, Node.js, Python and more.",
5
5
  "type": "module",
6
6
  "bin": {