Project: Vexlyx Audience: Developers building Vexlyx (solo or team) Purpose: How to use AI (Claude) for vibe coding this project Prerequisite: Read
CLAUDE.mdfirst for project conventions
Vibe coding is building software by describing what you want in natural language, and letting AI (Claude, Cursor, GitHub Copilot) write the actual code. You don't write every line — you describe the architecture, review the output, test it, and iterate.
For Vexlyx, this means:
- You describe a feature (e.g., "Build the authentication system")
- Claude reads
CLAUDE.mdandFEATURES.mdfor context - Claude generates the code following project conventions
- You test it, give feedback, and Claude fixes issues
- Claude writes the developer docs when you're satisfied
You are the architect. Claude is the builder.
Every feature follows this exact cycle:
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ PLAN │────▶│ CODE │────▶│ TEST │────▶│ DOCUMENT │
│ (Claude) │ │ (Claude) │ │ (You) │ │ (Claude) │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
▲ │
└────────────────────────────────────────────────────────────┘
(Next Feature)
You need:
- Node.js 22+ and pnpm (package manager) — pnpm 11 requires Node 22 for the
node:sqlitebuilt-in - Docker and Docker Compose
- Git with your GitHub account configured
- Claude (claude.ai or Claude Desktop App)
- A code editor (VS Code recommended)
| File | Purpose | Who Maintains |
|---|---|---|
FEATURES.md |
The roadmap. Every feature, its status, test plan, and docs location. | You update after each feature |
CLAUDE.md |
The constitution. Code conventions, design system, architecture rules. | You update when conventions change |
DEV.md |
This file. How to work with AI to build the project. | You update as workflow improves |
Rule: Claude reads CLAUDE.md and FEATURES.md at the start of every session. You read DEV.md whenever you need a refresher on the workflow.
# On GitHub (web interface):
# 1. Click "New Repository"
# 2. Name: vexlyx
# 3. Visibility: Public
# 4. Do NOT initialize with README (you'll push your own)
# Then locally:
git init
git add .
git commit -m "chore: initialize vexlyx repository"
git branch -M main
git remote add origin https://github.com/atlantiqs-org/vexlyx.git
git push -u origin mainUse your personal GitHub account. Do not create a separate "Vexlyx" account — it looks inauthentic. Your personal email is fine for git commits.
Open FEATURES.md and find the next 🔴 NOT STARTED feature in order. Do NOT skip ahead.
Current order (Phase 0):
- F0.1 — Monorepo Setup
- F0.2 — Next.js Dashboard Scaffold
- F0.3 — Fastify API Scaffold
- F0.4 — Prisma Schema & Database
- F0.5 — Redis & Docker Compose Dev Environment
- F0.6 — Authentication System
- F0.7 — Shared Package (Types & Schemas)
Always start with this exact prompt:
I'm building Vexlyx, an open-source hybrid hosting control panel.
Before we start, please:
1. Read CLAUDE.md for project conventions, tech stack, and design system
2. Read the feature section for [F0.X — Feature Name] in FEATURES.md
3. Ask me any clarifying questions before writing code
Do NOT install new dependencies without asking me first.
Do NOT skip the planning phase.
Why this works:
- Claude reads the project constitution first
- Claude knows exactly what feature to build
- Claude asks questions instead of guessing
- Claude won't add random dependencies
Claude will ask questions or outline the approach. Review this carefully.
Example questions Claude might ask:
- "Should the sidebar be collapsible or fixed-width?"
- "Do you want OAuth (GitHub/Google) login in addition to email/password?"
- "Should project names be globally unique or unique per user?"
Your job: Answer clearly. If unsure, say "Keep it simple for now, we can add that later."
Claude writes code. Watch for these things:
| Check | What to Look For |
|---|---|
| Conventions | Does it follow the patterns in CLAUDE.md Section 4? |
| Design | Does it use the color tokens and components from Section 15? |
| Security | Are passwords hashed? Is input validated with Zod? |
| Dependencies | Did Claude ask before installing anything new? |
If something looks wrong, stop Claude immediately. Say:
- "This doesn't match the pattern in
src/modules/auth/routes.ts. Please follow that structure." - "Use
cn()for className, not template literals." - "Don't use
anytype — useunknownwith Zod validation."
After Claude finishes coding, it will give you a test plan. You must run these tests yourself.
Example test plan from Claude:
# Test F0.1 — Monorepo Setup
1. Run: pnpm install
Expected: All dependencies install without errors
2. Run: pnpm dev
Expected: Turborepo starts all apps, dashboard on :3000, API on :5000
3. Run: pnpm build
Expected: All packages build successfully, no TypeScript errors
4. Run: pnpm lint
Expected: No ESLint or Prettier errorsYour job:
- Run each command
- Verify the expected result
- If something fails, copy the error and tell Claude: "Test 3 failed with this error: [paste error]"
- Claude fixes it. You test again.
Do NOT say "tests passed" if you haven't actually run them.
Once all tests pass, tell Claude:
All tests passed for F0.X — [Feature Name].
Now do these two things:
1. Update FEATURES.md — change status from 🔴 NOT STARTED to 🟢 COMPLETED
2. Write developer documentation at docs/dev/[feature-name].md
The docs must include:
- What this feature does (2-3 sentences)
- Architecture / how it works
n- How to test it
- How to extend or modify it
- Any important decisions made
Claude will:
- Update
FEATURES.mdwith the new status - Create
docs/dev/[feature-name].mdwith comprehensive documentation
Your job: Review the docs. Make sure they're clear enough that another developer (or AI) could understand the feature without reading the code.
git add .
git commit -m "feat: [F0.X] add [feature name]"
git push origin mainUse conventional commits:
feat:— New featurefix:— Bug fixdocs:— Documentation onlyrefactor:— Code change that neither fixes a bug nor adds a featurechore:— Maintenance tasks
I'm building Vexlyx, an open-source hybrid hosting control panel.
Before we start, please:
1. Read CLAUDE.md for project conventions, tech stack, and design system
2. Read the feature section for [F0.X — Feature Name] in FEATURES.md
3. Ask me any clarifying questions before writing code
Do NOT install new dependencies without asking me first.
Do NOT skip the planning phase.
Feature [F0.X — Feature Name] has a bug.
The issue: [Describe the bug clearly]
Steps to reproduce:
1. [Step 1]
2. [Step 2]
3. [Step 3]
Expected: [What should happen]
Actual: [What actually happens]
Error message: [Paste full error]
Please fix this. Read CLAUDE.md first for conventions.
I need to refactor [file path or feature].
The goal: [What you want to change and why]
Constraints:
- Must follow patterns in CLAUDE.md
- Must not break existing tests
- Must maintain the same functionality
Please plan the refactoring first, then implement.
All tests passed for F0.X — [Feature Name].
Now do these two things:
1. Update FEATURES.md — change status from 🟡 IN PROGRESS to 🟢 COMPLETED
2. Write developer documentation at docs/dev/[feature-name].md
The docs must include:
- What this feature does (2-3 sentences)
- Architecture / how it works
- How to test it
- How to extend or modify it
- Any important decisions made
Never ask Claude to build multiple unrelated features in one chat. Claude's context window is large but not infinite. Mixing auth + deployment + email in one session leads to:
- Confused code
- Missed requirements
- Inconsistent patterns
Correct:
- Session 1: "Build F0.1 — Monorepo Setup"
- Session 2: "Build F0.2 — Next.js Dashboard Scaffold"
- Session 3: "Build F0.3 — Fastify API Scaffold"
Incorrect:
- Session 1: "Build the monorepo, dashboard, and API all at once"
After completing a feature, type /clear to reset Claude's context. Then start fresh with the next feature's prompt. This prevents:
- Code from Feature A leaking into Feature B
- Claude getting confused about which feature you're building
- Context window filling up with old code
When Claude is building something similar to an existing feature, say:
Follow the same pattern as src/modules/auth/routes.ts for the route structure.
Follow the same pattern as components/auth/LoginForm.tsx for the form handling.
This ensures consistency across the codebase.
If a feature requires more than 5 files, break it into chunks:
Part 1: Build the API routes and service layer only. No frontend yet.
Part 2: Build the frontend components that consume the API.
Part 3: Wire them together and add error handling.
This makes testing easier and reduces errors.
Never blindly accept Claude's code. Review every file for:
- Correctness (does it do what you asked?)
- Conventions (does it follow CLAUDE.md?)
- Security (are passwords hashed? Is input validated?)
- Dependencies (did it install anything without asking?)
Claude sometimes says "this should work" without actually testing. Insist on concrete test plans:
Don't just say "it should work." Give me the exact commands to run and the expected output for each step.
After a successful feature completion:
- Copy the code to your editor
- Run the tests
- Commit to git
- Only THEN start the next feature
Never start a new feature before committing the previous one. If Claude's context resets, you could lose working code.
Problem: After 10+ messages, Claude starts using Express instead of Fastify, or useState instead of Zustand.
Solution: Remind Claude: "Remember we're using Fastify, not Express. Read CLAUDE.md Section 3."
Problem: Claude installs lodash, moment, or other libraries without asking.
Solution: Your starter prompt includes "Do NOT install new dependencies without asking me first." If Claude violates this, say: "Remove that dependency and implement it with native code instead."
Problem: Claude generates 500 lines of code in one response, making review impossible.
Solution: Say "Stop. Show me the API routes first. Once I approve, show me the service layer."
Problem: Claude suggests React.FC, class components, or var declarations.
Solution: Say "We use modern patterns only. Read CLAUDE.md Section 4 for our conventions."
Problem: Claude writes the happy path but forgets error states, loading states, and edge cases.
Solution: Always ask: "What about error handling? What if the API returns 500? What if the user has no projects yet (empty state)?"
Problem: Claude hardcodes API URLs, ports, or secrets.
Solution: Say "Use environment variables for all configurable values. Add them to .env.example."
Problem: Claude uses random colors, heavy shadows, or inconsistent spacing.
Solution: Say "Follow the design system in CLAUDE.md Section 15. Use only the color tokens listed there."
Before marking any feature complete, verify ALL of these:
- Happy path works — Normal operation succeeds
- Error path handled — Invalid input shows clear errors
- Auth enforced — Unauthorized access returns 401/403
- TypeScript compiles —
pnpm typecheckpasses - Linting passes —
pnpm lintpasses - Build succeeds —
pnpm buildpasses - No console errors — Browser console is clean
- Responsive — Works on desktop and tablet
- Accessible — Keyboard navigation works, ARIA labels present
- Dark mode — Both light and dark themes look correct
Use conventional commits with feature references:
# Feature complete
git commit -m "feat(F0.1): initialize turborepo monorepo with three workspaces"
# Bug fix
git commit -m "fix(F0.3): resolve health check endpoint timeout issue"
# Documentation
git commit -m "docs(F0.2): add dashboard setup developer guide"
# Refactor
git commit -m "refactor(F0.4): extract database config into separate module"For solo development, main is fine. If you want cleaner history:
# Create feature branch
git checkout -b feat/F0.1-monorepo-setup
# Work on feature...
# Merge back
git checkout main
git merge feat/F0.1-monorepo-setup
git push origin main# After every feature completion
git add .
git commit -m "feat(F0.X): [description]"
git push origin main
# If you have uncommitted changes and want to start fresh
git stash
git pull origin main
git stash popEvery feature gets two types of documentation:
Written by Claude after you confirm tests pass. Includes:
- What the feature does
- Architecture and key decisions
- How to test it
- How to extend it
- File structure
Purpose: So other developers (or AI) can understand and modify the feature.
Written by you (or Claude at your request) later. Includes:
- How to use the feature
- Screenshots
- Common issues and solutions
Purpose: So users of Vexlyx know how to use the panel.
Generated from Fastify route schemas using @fastify/swagger. Accessible at /api/docs when running locally.
Update CLAUDE.md when:
- You add a new convention (e.g., "we now use
z.coercefor form inputs") - You change the tech stack (e.g., switching from Zustand to Jotai)
- You discover a new anti-pattern to avoid
- You add new shadcn components to the approved list
- You change the design system
Do NOT update CLAUDE.md for:
- Feature-specific details (those go in
docs/dev/) - One-time decisions (those go in the Decision Log inside
CLAUDE.md) - Bug fixes (those go in commit messages)
Update FEATURES.md when:
- A feature status changes (
🔴 → 🟡 → 🟢) - You discover a new feature that needs to be built
- You want to reprioritize features
- You want to add a new phase
Do NOT update FEATURES.md for:
- Bug fixes on existing features
- Documentation changes
- Refactoring
You might use Claude, Cursor, and GitHub Copilot together. Here's how:
| AI Tool | Best For | How to Use |
|---|---|---|
| Claude | Full features, architecture decisions, docs | Use the workflow in this file |
| Cursor | Inline code completion, quick fixes | Open the project in Cursor, let it autocomplete |
| GitHub Copilot | Boilerplate, repetitive patterns | Use in VS Code for quick suggestions |
Important: If you use Cursor or Copilot to modify code, make sure the output still follows CLAUDE.md conventions. If Cursor generates Express code instead of Fastify, correct it immediately.
- Work directly on
mainbranch - Commit after every feature
- FEATURES.md is your personal todo list
- No code reviews needed, but still test thoroughly
- Use Pull Requests for every feature
- Require at least one human review before merging
- FEATURES.md becomes the shared roadmap
- Assign features to team members
- Use GitHub Issues linked to FEATURES.md features
Transitioning from solo to team:
- Create a
CONTRIBUTING.mdfile - Set up branch protection on
main - Require PR reviews
- Add issue templates
- Update
DEV.mdwith team-specific workflows
- Use
/clearbetween features — Prevents context bloat - Don't paste entire files — Paste only the relevant function or component
- Use file references — "See
src/modules/auth/routes.tsline 45" instead of pasting the code - Batch small fixes — "Fix these 3 linting errors" is faster than 3 separate sessions
- Keep Docker running — Don't stop/start between features
- Use
pnpm dev— Turborepo watches all packages, auto-reloads on change - Keep Prisma Studio open — Inspect database state without writing queries
- Use browser dev tools — Network tab for API debugging, Console for frontend errors
Cause: Claude's context window filled up and it forgot.
Fix: Say: "Please re-read CLAUDE.md Section 4 (Code Conventions) and Section 15 (Design System)."
Cause: Claude made an assumption that doesn't match your environment.
Fix: Paste the exact error message. Say: "This error occurs when I run [command]. Fix it."
Cause: You're asking for too much code at once.
Fix: Break into smaller chunks. "Just build the API routes first. Don't build the frontend yet."
Cause: You didn't save/commit working code before starting a new feature.
Fix: Always commit after every feature. Use git as your safety net.
Cause: Claude followed logic correctly but ignored the design system.
Fix: Say: "The functionality works but the design doesn't match CLAUDE.md Section 15. Fix the styling to use the correct color tokens and spacing."
Here's what a real session looks like from start to finish:
I'm building Vexlyx, an open-source hybrid hosting control panel.
Before we start, please:
1. Read CLAUDE.md for project conventions, tech stack, and design system
2. Read the feature section for F0.1 — Monorepo Setup in FEATURES.md
3. Ask me any clarifying questions before writing code
Do NOT install new dependencies without asking me first.
Do NOT skip the planning phase.
I've read both files. I have a few questions before we proceed:
1. Do you want pnpm workspaces or npm workspaces? CLAUDE.md mentions pnpm.
2. Should the root package.json include dev scripts that run all apps, or separate commands?
3. Do you want TypeScript project references between packages?
My proposed approach:
- Initialize Turborepo with pnpm
- Create three workspaces: apps/dashboard, apps/api, packages/shared
- Set up shared tsconfig, eslint, and prettier configs at root
- Configure turbo.json with build, dev, lint, and test pipelines
Shall I proceed with this plan?
1. pnpm workspaces — yes
2. Root dev script should run all apps with turborepo
3. Yes, TypeScript project references
Proceed with the plan.
[Claude generates all the files for the monorepo setup]
I see the files. Let me test them.
All tests passed. pnpm install, pnpm dev, pnpm build, and pnpm lint all work correctly.
Now do these two things:
1. Update FEATURES.md — change F0.1 status from 🔴 NOT STARTED to 🟢 COMPLETED
2. Write developer documentation at docs/dev/monorepo-setup.md
[Claude updates FEATURES.md and writes docs/dev/monorepo-setup.md]
Docs look good. I'll commit this now.
/clear
Keep this handy while coding:
| Action | Command / Prompt |
|---|---|
| Start feature | "Read CLAUDE.md and FEATURES.md F0.X, ask questions, then code" |
| Fix bug | "Feature F0.X has a bug: [describe]. Error: [paste]" |
| Refactor | "Refactor [file] to [goal]. Plan first, then implement." |
| Mark complete | "Tests passed. Update FEATURES.md and write docs/dev/[name].md" |
| Reset context | /clear |
| Check conventions | "Re-read CLAUDE.md Section 4 and 15" |
| Test everything | pnpm typecheck && pnpm lint && pnpm build && pnpm test |
| Commit | git add . && git commit -m "feat(F0.X): [description]" |
- Be patient. Vibe coding is fast, but rushing leads to technical debt. Test everything.
- Be specific. "Make it look better" is vague. "Increase the card padding from p-4 to p-6" is actionable.
- Be consistent. Always follow the same workflow. Don't skip the planning phase, don't skip tests, don't skip docs.
- Be the architect. Claude writes code, but YOU decide the direction. If something feels wrong, stop and rethink.
- Ship early. Phase 0 (7 features) is your MVP. Get it working, get it on GitHub, then iterate.
This guide evolves as we learn what works. Update it when you discover better patterns. Last updated: 2026-08-28