Back to guide/AI Tool Configs

CLAUDE.md — Minimal Starter (Any Stack)

Minimal CLAUDE.md template that works with any language or framework — fill in your stack and 5 key rules.

claude-mdstarterany-stackai-config
Edit View
Prompt
# CLAUDE.md

## Project Overview
{{project_name}}{{one-line description}}

## Tech Stack
- Language: {{language}}
- Framework: {{framework}}
- Database: {{database}}
- Testing: {{test_framework}}

## Commands
```bash
{{dev_command}}      # Start dev server
{{test_command}}     # Run tests
{{lint_command}}     # Lint
{{build_command}}    # Production build
```

## Key Rules
- {{rule_1}} (e.g., "Always use TypeScript strict mode")
- {{rule_2}} (e.g., "Prefer composition over inheritance")
- {{rule_3}} (e.g., "No console.log in committed code")
- {{rule_4}} (e.g., "All API responses use camelCase")
- {{rule_5}} (e.g., "Tests required for all business logic")

## Import Order
1. Standard library
2. External dependencies
3. Internal modules
4. Relative imports
5. Type-only imports

Variables to customize

{{project_name}}{{one-line description}}{{language}}{{framework}}{{database}}{{test_framework}}{{dev_command}}{{test_command}}{{lint_command}}{{build_command}}{{rule_1}}{{rule_2}}{{rule_3}}{{rule_4}}{{rule_5}}

Why this prompt works

A minimal CLAUDE.md is better than none. Even just listing your commands and 5 key rules eliminates the most common AI code mistakes for any project.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.