claude-md-examples
Health Warn
- No license — Repository has no license file
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Warn
- Code scan incomplete — No supported source files were scanned during light audit
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Real-world CLAUDE.md examples for Next.js, FastAPI, Django, Go and React Native. Generate your own free at clskillshub.com/claude-md-generator
CLAUDE.md Examples
Real-world CLAUDE.md files for popular tech stacks. Drop any of these into your project root and Claude Code instantly understands your codebase.
Generate a custom CLAUDE.md for YOUR project (free): clskillshub.com/claude-md-generator
What is CLAUDE.md?
A CLAUDE.md file tells Claude Code how to work with your specific project — your commands, conventions, architecture, and rules. Without it, Claude guesses. With it, Claude follows your exact standards.
Examples
Next.js + TypeScript + Tailwind
# Project: My SaaS App
## Commands
- `npm run dev` — start development server
- `npm run build` — production build
- `npm test` — run tests with Vitest
- `npm run lint` — ESLint + Prettier check
## Architecture
- `/src/app` — Next.js App Router pages
- `/src/components` — React components (PascalCase)
- `/src/lib` — Utilities and helpers
- `/src/hooks` — Custom React hooks (use* prefix)
- `/prisma` — Database schema and migrations
## Code Style
- TypeScript strict mode, no `any` types
- Functional components only, no class components
- Use Zustand for state management, not Redux
- Tailwind CSS for styling, no CSS modules
- Named exports, not default exports (except pages)
## Conventions
- Components: PascalCase (e.g., `UserProfile.tsx`)
- Hooks: camelCase with `use` prefix (e.g., `useAuth.ts`)
- Utils: camelCase (e.g., `formatDate.ts`)
- API routes: kebab-case (e.g., `/api/user-profile`)
## Testing
- Vitest for unit tests, Playwright for E2E
- Test files: `*.test.ts` co-located with source
- Mock external APIs, never hit real endpoints in tests
## Do NOT
- Don't add comments to obvious code
- Don't use `var`, always `const` or `let`
- Don't create God components over 200 lines
- Don't use inline styles
Python + FastAPI + PostgreSQL
# Project: API Backend
## Commands
- `uvicorn app.main:app --reload` — start dev server
- `pytest` — run all tests
- `alembic upgrade head` — run migrations
- `ruff check .` — lint
- `mypy .` — type check
## Architecture
- `/app/api` — FastAPI route handlers
- `/app/models` — SQLAlchemy ORM models
- `/app/schemas` — Pydantic request/response schemas
- `/app/services` — Business logic layer
- `/app/core` — Config, security, database setup
- `/tests` — Pytest test files
## Code Style
- Python 3.12+, type hints on everything
- Async/await for all database operations
- Pydantic v2 for all data validation
- SQLAlchemy 2.0 style (select() not query())
## Conventions
- Snake_case for functions and variables
- PascalCase for classes and Pydantic models
- Dependency injection via FastAPI Depends()
- All endpoints return Pydantic schemas, never raw dicts
## Error Handling
- Use HTTPException with specific status codes
- Custom exception handlers in app/core/exceptions.py
- Never catch bare Exception, always specific types
## Do NOT
- Don't use raw SQL, always use SQLAlchemy ORM
- Don't put business logic in route handlers
- Don't commit .env files
- Don't use print(), use structured logging
React Native + Expo
# Project: Mobile App
## Commands
- `npx expo start` — start development
- `npx expo start --ios` — iOS simulator
- `npx expo start --android` — Android emulator
- `npm test` — run Jest tests
- `npx expo build` — create production build
## Architecture
- `/app` — Expo Router screens
- `/components` — Reusable UI components
- `/hooks` — Custom hooks
- `/services` — API calls and external services
- `/stores` — Zustand state stores
- `/constants` — Colors, dimensions, config
## Code Style
- TypeScript strict, no any
- Functional components with hooks
- StyleSheet.create() for all styles
- React Navigation for routing (via Expo Router)
## Do NOT
- Don't use inline styles
- Don't fetch data in components, use hooks
- Don't hardcode colors, use constants/Colors.ts
- Don't use ScrollView for long lists, use FlatList
Django + REST Framework
# Project: Django API
## Commands
- `python manage.py runserver` — start dev server
- `python manage.py test` — run tests
- `python manage.py makemigrations` — create migrations
- `python manage.py migrate` — apply migrations
- `ruff check .` — lint
## Architecture
- Each app has: models.py, views.py, serializers.py, urls.py, tests.py
- `/core` — settings, base models, permissions
- `/users` — auth, profiles, permissions
- `/api/v1` — versioned API endpoints
## Code Style
- Class-based views with DRF ViewSets
- ModelSerializer for all serializers
- Django filters for list endpoints
- Pagination on all list views
## Do NOT
- Don't use function-based views
- Don't put logic in views, use service layer
- Don't use raw SQL
- Don't skip writing serializer validation
Go + Gin
# Project: Go API
## Commands
- `go run cmd/server/main.go` — start server
- `go test ./...` — run all tests
- `go vet ./...` — static analysis
- `golangci-lint run` — lint
## Architecture
- `/cmd` — Entry points
- `/internal/handlers` — HTTP handlers
- `/internal/services` — Business logic
- `/internal/models` — Data structures
- `/internal/repository` — Database layer
- `/pkg` — Shared packages
## Code Style
- Standard Go project layout
- Interface-driven design for testability
- Context propagation through all layers
- Structured logging with slog
## Error Handling
- Wrap errors with fmt.Errorf("context: %w", err)
- Custom error types in internal/errors
- Never ignore errors with _
## Do NOT
- Don't use global variables
- Don't use init() functions
- Don't panic in library code
- Don't use interface{}, use any or specific types
Generate Your Own
Don't see your stack? Generate a custom CLAUDE.md for free:
clskillshub.com/claude-md-generator — Fill out a form about your project, AI generates a personalized CLAUDE.md in seconds.
More Resources
- 2,400 Claude Code Skills: clskillshub.com
- 100 Claude Secret Codes: clskillshub.com/prompts
Made by Samarth Bhamare | Claude Skills Hub
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found