Claude Code Integration
This directory contains Claude Code skills and hooks for the Vibe-Coding workflow.
Quick Setup
Option A: Clone the Repository
# Clone the repo
git clone https://github.com/KhazP/vibe-coding-prompt-template.git
cd vibe-coding-prompt-template
# Start Claude Code
claudeOption B: Install Individual Skills with npx
Install only the skills you need directly into any project:
# Install master orchestrator skill
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-workflow
# Install all skills at once
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-research
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-prd
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-techdesign
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-agents
npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-buildBrowse all skills: skills.sh/khazp/vibe-coding-prompt-template
That's it! The skills are automatically available.
Available Skills
| Command | Description | Time | npx Install |
|---|---|---|---|
/vibe-workflow | Complete guided workflow from idea to MVP | Full | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-workflow |
/vibe-research | Deep research and market validation | 20 min | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-research |
/vibe-prd | Create Product Requirements Document | 15 min | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-prd |
/vibe-techdesign | Plan technical architecture | 15 min | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-techdesign |
/vibe-agents | Generate AGENTS.md and AI configs | 10 min | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-agents |
/vibe-build | Build your MVP following the plan | 1-3 hrs | npx skills add https://github.com/khazp/vibe-coding-prompt-template --skill vibe-build |
Skill Details
/vibe-workflow
Master orchestrator - Guides you through all 5 steps automatically.
> /vibe-workflowOr just say: "Help me build an MVP"
The skill will:
- Check your current progress
- Identify which step you're on
- Guide you through remaining steps
- Track completion across sessions
/vibe-research
Market research and idea validation
Triggers on:
- "research my idea"
- "validate my app"
- "help me start a new project"
Questions are tailored to your experience level:
- Vibe-coder: Simple, friendly questions
- Developer: Technical, detailed questions
- In-between: Balanced approach
Output: docs/research-[AppName].md
/vibe-prd
Product Requirements Document generator
Triggers on:
- "create PRD"
- "define my product"
- "write requirements"
Creates a comprehensive PRD with:
- Product overview and goals
- User personas and journeys
- Feature prioritization (MoSCoW)
- Success metrics
- Design direction
Output: docs/PRD-[AppName]-MVP.md
/vibe-techdesign
Technical architecture planning
Triggers on:
- "plan technical design"
- "choose tech stack"
- "how should I build this"
Helps you decide:
- Platform (web, mobile, desktop)
- Tech stack with alternatives
- Architecture pattern
- Deployment strategy
- Cost estimates
Output: docs/TechDesign-[AppName]-MVP.md
/vibe-agents
AI configuration generator
Triggers on:
- "create AGENTS.md"
- "configure AI assistant"
- "generate agent files"
Creates:
AGENTS.md- Master build planagent_docs/- Detailed specifications- Tool-specific configs (CLAUDE.md, GEMINI.md,
.cursor/rules/or legacy.cursorrules, etc.)
/vibe-build
MVP builder
Triggers on:
- "build my MVP"
- "start coding"
- "implement the project"
Follows Plan → Execute → Verify workflow:
- Reads AGENTS.md for current phase
- Proposes implementation plan
- Builds one feature at a time
- Tests after each feature
- Updates progress in AGENTS.md
Pre-configured Hooks
This project includes hooks that run automatically. They are defined in .claude/settings.json, which Claude Code loads on startup.
PreToolUse Hooks
File Protection - Blocks accidental modifications to:
.envfiles (secrets) — templates like.env.examplestay editablepackage-lock.json(use npm instead)- Anything inside the
.git/directory
Destructive Command Guard - Blocks catastrophic commands (rm -rf at your root/home/project, git clean -f, recursive Windows/PowerShell deletes, SQL DROP/TRUNCATE). It is a safety net, not a sandbox.
PostToolUse Hooks
Auto-formatting - After file edits:
- Runs Prettier on
.ts,.tsx,.js,.jsxfiles (only whennode_modules/.bin/prettierexists)
Stop Hooks
Git Status - When Claude finishes:
- Runs
git status --porcelainand prints modified files - Reminds you to review changes before committing
- Shows "No uncommitted changes" if the working tree is clean
Notification Hooks
Desktop Notification - When Claude needs your attention:
- Pops a native notification (Windows, macOS, or Linux) so you know to come back
Hook Configuration
Hooks are defined in .claude/settings.json. To customize, edit that file:
{
"hooks": {
"PreToolUse": [...],
"PostToolUse": [...],
"Stop": [...]
}
}Disable Hooks
To disable all hooks temporarily, add this to .claude/settings.json:
{
"disableAllHooks": true
}To disable a specific hook, remove its entry from the hooks object.
Directory Structure
.claude/
├── README.md # This file
├── settings.json # Hook configuration (commit this)
├── settings.local.json # Your local overrides (gitignored, do not commit)
└── skills/
├── vibe-research/
│ └── SKILL.md
├── vibe-prd/
│ └── SKILL.md
├── vibe-techdesign/
│ └── SKILL.md
├── vibe-agents/
│ └── SKILL.md
├── vibe-build/
│ └── SKILL.md
└── vibe-workflow/
└── SKILL.mdCustomizing Skills
Skills are Markdown files with YAML frontmatter. To modify a skill:
- Open the skill's
SKILL.mdfile - Edit the frontmatter (name, description, tools)
- Edit the instructions below the frontmatter
- Changes take effect immediately
Skill Frontmatter Options
---
name: skill-name
description: When to use this skill
allowed-tools: Read, Write, Bash # Restrict available tools
---Troubleshooting
Session continuity first
If your build starts drifting, avoid opening a fresh empty chat. Re-anchor with:
AGENTS.mdcurrent phase- Last completed task
- One short summary of pending tasks
Skills not appearing
- Check you're in the project directory
- Run
claude --debugto see loading errors - Verify SKILL.md files have valid YAML frontmatter
Hooks not running
- Check
.claude/settings.jsonexists and contains ahooksobject - Verify JSON syntax is valid
- Run
claude --debugto see hook loading errors
Skill not triggering
The skill's description determines when it triggers. Include keywords users would naturally say:
- Good: "Use when user says 'create PRD' or 'define product requirements'"
- Bad: "PRD generation utility"
Plugin/rules troubleshooting
If using plugin-enabled IDE workflows:
- Confirm plugin/rules package is loaded
- Confirm required tools are enabled
- Retry with explicit instruction: "Read AGENTS.md first, then proceed"
Model naming guidance
Prefer model family names in docs and examples (Claude Sonnet, Claude Opus, Gemini Pro, Gemini Flash) to reduce churn from provider version rotations.