Generate or update a minimal CLAUDE.md with project guidelines and structure
Creates or updates a CLAUDE.md file with project structure, organization rules, and zero-tolerance quality checks. Use this when starting work on a new project or to standardize existing projects.
/plugin marketplace add KenKaiii/minimal-claude/plugin install minimal-claude@minimal-claude-marketplaceGenerate or update a minimal CLAUDE.md with project structure, guidelines, and quality checks.
If CLAUDE.md exists:
If CLAUDE.md does NOT exist:
Spawn parallel Explore agents to understand the codebase:
Wait for all agents to complete, then synthesize the information.
Check for config files:
package.json → JavaScript/TypeScript (extract lint, typecheck, server scripts)pyproject.toml or requirements.txt → Pythongo.mod → GoCargo.toml → RustExtract:
Create a concise tree structure showing key directories and files with brief descriptions.
Example format:
src/
├── api/ # API endpoints and routes
├── components/ # Reusable UI components
├── utils/ # Helper functions and utilities
├── types/ # TypeScript type definitions
└── main.ts # Application entry point
Create CLAUDE.md with this structure:
# [Project Name]
[Brief 1-2 sentence description of what this project does]
## Project Structure
[INSERT TREE HERE]
## Organization Rules
**Keep code organized and modularized:**
- API routes → `/api` folder, one file per route/resource
- Components → `/components`, one component per file
- Utilities → `/utils`, grouped by functionality
- Types/Interfaces → `/types` or co-located with usage
- Tests → Next to the code they test or in `/tests`
**Modularity principles:**
- Single responsibility per file
- Clear, descriptive file names
- Group related functionality together
- Avoid monolithic files
## Code Quality - Zero Tolerance
After editing ANY file, run:
```bash
[EXACT COMMANDS FROM PROJECT]
Fix ALL errors/warnings before continuing.
[IF SERVER EXISTS:] If changes require server restart (not hot-reloadable):
[SERVER COMMAND]
**Keep total file under 100 lines.**
## Step 6: Preserve Custom Sections
If updating an existing CLAUDE.md:
- Keep any custom sections the user added
- Update the generated sections (Project Structure, Quality Checks)
- Merge carefully without losing user content
## Step 7: Confirm Completion
Tell the user:
- ✅ CLAUDE.md [created/updated]
- 📋 Project: [brief description]
- 🗂️ Structure mapped with [X] directories
- 📐 Organization rules enforced
- 🎯 Zero-tolerance quality checks active