README-SKILLS
Command**Objectif**: Savoir où tu en es après une interruption
Auto-generate CLAUDE.md by analyzing codebase structure and tech stack
name: generate-claude-md description: Auto-generate CLAUDE.md by analyzing codebase structure and tech stack category: Project Setup
Auto-generate a comprehensive CLAUDE.md file that helps Claude Code understand your project.
Create a well-structured CLAUDE.md file by automatically detecting:
**Detect Tech Stack**:
# Check for framework indicators - package.json → Node.js project - "next": "14.x" → Next.js 14 - "react": "18.x" → React 18 - "@types/node" → TypeScript - requirements.txt → Python project - "fastapi" → FastAPI - "django" → Django - Gemfile → Ruby project - "rails" → Ruby on Rails - go.mod → Go project
**Detect Patterns**:
# From package.json "scripts" npm run dev → Development server npm run build → Production build npm run test → Run tests npm run lint → Linting # From Makefile make dev make test # From Justfile just dev just build
**Template Sections**:
1. **Project Overview**
2. **Tech Stack**
3. **Architecture & Patterns**
4. **Directory Structure**
5. **Development Commands**
6. **Code Style & Conventions**
7. **Testing Approach**
8. **Do NOT Edit**
9. **Review Process**
**Behavior**:
**Size Validation**:
✅ CLAUDE.md generated successfully! 📄 File: /path/to/CLAUDE.md (3.2 KB) 💡 Tips: 1. Review the generated content for accuracy 2. Add custom sections with <!-- CUSTOM --> marker 3. Run `/generate-claude-md` again after major architecture changes 4. Import project-specific files with @path/to/file syntax 🔄 To regenerate: /generate-claude-md 📝 To edit manually: Open CLAUDE.md in your editor 🧪 Test it: Ask Claude: "What's the tech stack?" (should reference CLAUDE.md)
{
"generate_claude_md": {
"enabled": true,
"sections": [
"tech_stack",
"architecture",
"directory_structure",
"dev_commands",
"code_style",
"testing",
"do_not_edit",
"review_process"
],
"max_size_kb": 5,
"preserve_custom_sections": true,
"auto_detect_framework": true
}
}**For a Next.js 14 + TypeScript project**:
# Project Context
**Generated**: 2025-10-26 by claude-prd-workflow v2.6.0
**Last Updated**: Auto-updated on codebase changes
## Tech Stack
- **Framework**: Next.js 14.0.4 (App Router)
- **Language**: TypeScript 5.3.2
- **Styling**: Tailwind CSS 3.4 + shadcn/ui
- **State**: Zustand 4.4
- **Database**: PostgreSQL (Prisma ORM 5.7)
- **Testing**: Vitest + React Testing Library
- **Deployment**: Vercel
## Architecture
- **Pattern**: Server Components + Client Islands
- **Data Fetching**: React Server Components (RSC)
- **API**: tRPC for type-safe endpoints
- **Auth**: NextAuth.js v5 (Auth.js)
- **File Structure**: Feature-based modules
## Directory Structure
\```
src/
├── app/ # Next.js App Router pages & layouts
│ ├── (auth)/ # Auth group (login, signup)
│ ├── (dashboard)/ # Dashboard group
│ └── api/ # API routes (tRPC)
│
├── components/ # React components
│ ├── ui/ # shadcn/ui primitives
│ └── features/ # Feature-specific components
│
├── lib/ # Utilities & config
│ ├── db/ # Prisma client & queries
│ ├── trpc/ # tRPC setup
│ └── utils.ts # Shared utilities
│
├── stores/ # Zustand state stores
└── types/ # TypeScript type definitions
\```
## Development Commands
\```bash
npm run dev # Start dev server (http://localhost:3000)
npm run build # Production build
npm run start # Start production server
npm run lint # ESLint + Prettier
npm run typecheck # TypeScript type checking
npm run test # Run Vitest tests
npm run test:ui # Vitest UI mode
npm run db:migrate # Run Prisma migrations
npm run db:studio # Open Prisma Studio
\```
## Code Style
**Components**:
- ✅ Functional components with hooks (no class components)
- ✅ Server Components by default
- ✅ Add "use client" only when needed (state, effects, browser APIs)
**Naming**:
- Components: `PascalCase` (UserProfile.tsx)
- Functions: `camelCase` (getUserById)
- Constants: `UPPER_SNAKE_CASE` (API_BASE_URL)
- Files: `kebab-case` for non-components (user-utils.ts)
**Imports**:
\```typescript
// Use @ alias for src/ imports
import { Button } from '@/components/ui/button'
import { getUserById } from '@/lib/db/queries'
// Group imports:
// 1. External (react, next)
// 2. InThe complete Claude Code plugin for Product-Driven Development Transform PRDs from ideas to shipped features with AI-powered review, guided implementation, and automated quality gates. Never ship unclear requirements again.
**Objectif**: Savoir où tu en es après une interruption
4-phase Context Engineering workflow with guided implementation
Complete and close a PRD after PR is merged to production
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.