Generate a project-level CLAUDE.md from stack detection and user-selected rule categories. Use when starting a new project, onboarding a repo, or when the user says "seed claude.md", "create project rules", "set up CLAUDE.md", "configure this project for me", or wants to establish coding conventions.
87
83%
Does it follow best practices?
Impact
92%
1.26xAverage score across 3 eval scenarios
Passed
No known issues
Concrete rules enforce. Abstract principles don't. Every rule in a CLAUDE.md must be a situation→action pair that Claude either follows or visibly violates — no interpretation required.
This was empirically validated: situation-keyed rules score 10.2% higher on compliance than named principles.
Read the project to understand what rules apply. No text output — go straight to Step 2.
Present categories based on detected stack.
Use AskUserQuestion (multiSelect). Label = category name. Description = what it means for the generated rules, tuned to detected stack (e.g., mention npm if Node project, pip if Python).
Categories:
For each selected category, ask ONE focused question to tune the rules to this project. Use AskUserQuestion with project-specific options derived from Step 1 analysis.
Examples:
Assemble the file using these construction rules:
Section: Response format (if selected)
## Response format
Every response MUST start with approach and risks BEFORE any code, analysis, or recommendations:
**Approach:** [one sentence — what you will do and why]
**Risks:** [2-3 things that could go wrong or must not happen]
Then and only then, provide the content (code, analysis, recommendation).
Exception: trivially simple tasks (single typo, yes/no) — compress to one line, skip risks.Section: Decision rules (assembled from selections) Each rule follows the pattern:
When [situation]:
- [concrete action with anti-example if applicable]Section: Output rules (if output sizing selected) Include task-type → length mapping with project-specific examples.
Section: Style (always included, from detected stack) One line: language, paradigm preference, key conventions.
Construction constraints:
Show the generated CLAUDE.md in a code block. Use AskUserQuestion to confirm:
If "Looks good" → write the file. Done. Otherwise → apply feedback, re-present.
e876ef5
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.