CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
96/100
Scores the file, not the repository.Length
1,371 words
19 headings · 7 code blocksRepository
0
— · pushed 11 days agoLast changed
2 days ago
First indexed 2 days ago.1# CLAUDE.md23## Purpose45This file defines how Claude Code should work on the Conditions Translator project.67Keep this file concise. Detailed product and architecture rules live in the project documentation.89---1011# 1. Non-Negotiable Rules1213Claude must:1415- Read the project documentation before implementation.16- Ask for clarification whenever the task, requirements, or next step is unclear.17- Preserve the approved architecture unless an explicit architecture-change process is followed.18- Never change the PRD.19- Never bypass the `READY` document requirement.20- Never bypass ownership or authorization checks.21- Never expose server secrets.22- Never push or merge Git branches.23- Make all local commits.24- Use PowerShell commands only.25- Update `.gitignore` when new local, generated, temporary, or secret files are introduced.26- Keep commits small, logical, and descriptive.27- Check current official documentation before installing or configuring dependencies whose setup may have changed.2829---3031# 2. Required Reading Order3233Before coding:34351. `README.md`362. `docs/01_MVP_PRD.md`373. `docs/02_Architecture_Overview.md`384. Relevant subsystem specification395. `docs/08_Conditions_Translator_Implementation_Roadmap.md`406. Relevant risk and launch-readiness sections4142Do not start implementation until the applicable specification has been reviewed.4344---4546# 3. Git Workflow4748## Branches4950Create a dedicated branch for each:5152- phase53- feature54- test effort55- bug fix56- refactor57- rework58- documentation change59- chore6061Use these prefixes:6263```text64feat/65fix/66refactor/67test/68docs/69chore/70rework/71build/72ci/73```7475Examples:7677```text78feat/document-intake79test/prisma-ownership80fix/chat-session-expiry81refactor/ocr-service82docs/update-schema-spec83chore/configure-eslint84rework/account-transfer85```8687Claude may create branches and make local commits.8889Claude must not:9091- push branches92- merge branches93- open or merge pull requests without explicit instruction9495The user will push and merge through GitHub.9697## Staging Discipline9899- Stage files individually by name (`git add <file> <file> ...`). Never use `git add -A` or `git add .`.100- Only stage files that are actually in scope for the current task.101- After each commit, report which touched files were included and which untracked/modified files were deliberately left out, so leftover changes in the working tree are never mistaken for a staging failure.102103---104105# 4. Commit Rules106107Use small, coherent commits.108109Do not commit an entire phase or large feature as one oversized commit.110111Use conventional prefixes:112113```text114feat:115fix:116refactor:117test:118docs:119chore:120build:121ci:122perf:123style:124revert:125```126127Examples:128129```text130feat: add temporary document creation flow131test: cover exclusive document ownership constraints132fix: prevent expired sessions from loading documents133refactor: separate OCR validation from provider client134docs: update account ownership specification135chore: ignore generated local files136```137138Commit messages must be:139140- descriptive141- concise142- understandable to another developer or employer143- focused on one coherent change144145A phase may contain many commits.146147---148149# 5. PowerShell-Only Commands150151All commands must be written for PowerShell.152153Do not provide Bash syntax unless explicitly requested.154155Use PowerShell for:156157- package installation158- file creation159- directory creation160- environment setup161- testing162- database commands163- Git commands164- local development165- build commands166- cleanup167168Examples:169170```powershell171npm install172npm run dev173npm run build174npm run test175npx prisma generate176npx prisma migrate dev177Copy-Item .env.example .env.local178New-Item -ItemType Directory -Path .claude\session-memory -Force179```180181---182183# 6. Dependency and Documentation Checks184185Before installing or configuring important dependencies:1861871. Read the relevant project specification.1882. Check current official documentation.1893. Confirm the integration pattern is current.1904. Explain any setup choice that differs from older examples.1915. Avoid relying on outdated syntax.192193This is especially important for:194195- Prisma196- Next.js197- authentication libraries198- OpenAI SDK199- Vercel Blob200- Neon201- testing frameworks202- build tooling203204Do not install a dependency based only on memory when current setup details may have changed.205206---207208# 7. Architecture Boundaries209210Claude must preserve these invariants:211212- A Document is the central domain object.213- Pages belong to exactly one Document.214- A Document has exactly one owner:215 - user216 - or temporary session217- Only `READY` Documents are available to AI.218- Accepted page text is the factual source of truth.219- AI chat is temporary.220- Full chat history is not permanent.221- AI answers are grounded in selected READY Documents.222- General AI knowledge must not fill supervision gaps.223- Architecture changes require a separate Decision Log entry and explicit approval.224225---226227# 8. Package Scripts228229Keep `package.json` scripts clear and easy to inspect.230231Add scripts incrementally as functionality is implemented.232233Suggested structure:234235```json236{237 "scripts": {238 "dev": "next dev",239 "build": "next build",240 "lint": "eslint .",241 "typecheck": "tsc --noEmit",242 "test": "vitest run",243 "test:watch": "vitest",244 "test:schema": "vitest run tests/schema",245 "test:auth": "vitest run tests/auth",246 "db:generate": "prisma generate",247 "db:migrate": "prisma migrate dev",248 "db:validate": "prisma validate"249 }250}251```252253Do not add scripts that duplicate existing behavior without a clear reason.254255---256257# 9. Testing Expectations258259Required for:260261- schema and ORM changes262- authentication263- authorization and ownership264- document lifecycle265- deletion and cleanup266- security-sensitive code267- environment configuration268- temporary sessions269270Strongly advised for:271272- OCR273- AI prompts274- safety behavior275- section generation276- uploads277- dashboard278- multi-document chat279280Optional for:281282- documentation-only changes283- styling-only changes284- copy changes285- non-functional refactors286287Always report:288289- tests run290- tests passed291- tests failed292- tests not run293- known gaps294295---296297# 10. UI Rules298299Current UI guidance is intentionally limited.300301- Mobile-first.302- Must also work in desktop browsers.303- Prioritize functional flows before polish.304- Prefer one primary decision per screen where practical.305- Use clear loading, empty, success, and error states.306- Do not invent final styling or interaction patterns before wireframes exist.307- Add basic wireframes when a flow needs validation.308- Preserve readability, accessibility, and simple navigation.309- Avoid overbuilding the visual system before core logic is stable.310311---312313# 11. Clarification Rule314315If Claude is unsure:316317- stop318- explain what is unclear319- ask a focused clarification question320- do not guess at architecture321- do not invent requirements322- do not proceed silently323324This applies to:325326- unclear requirements327- conflicting documents328- uncertain implementation direction329- missing dependencies330- ambiguous acceptance criteria331- unclear test expectations332333---334335# 12. Local Session Memory336337## Session continuity and working memory338339Before starting or continuing any non-trivial task, Claude should review available local session-memory files (if present) and update them when useful.340341Use session memory to:342- capture the task being worked on343- record important context, assumptions, and constraints344- note open questions, risks, or follow-up items345- preserve handoff context if the session may be interrupted or hit context limits346347Guidelines:348- Keep memory notes short, factual, and useful for future continuation349- Update memory before or during meaningful work when the task involves debugging,350 behavior changes, architecture decisions, environment/configuration changes,351 multi-file edits, or unresolved questions352- Prefer updating local gitignored memory files rather than creating extra repo docs353 unless the information belongs in project documentation354- Do not commit local session-memory files unless explicitly told to do so355356Use local memory files for long sessions and context handoff.357358Repository location:359360```text361.claude/362 session-memory/363 CURRENT_SESSION.md364 DECISIONS.md365 OPEN_QUESTIONS.md366 WORK_LOG.md367```368369Required behavior:370371- Read these files before resuming work in a new session.372- Update `CURRENT_SESSION.md` during long sessions.373- Record durable decisions in `DECISIONS.md`.374- Record unresolved issues in `OPEN_QUESTIONS.md`.375- Add concise chronological notes to `WORK_LOG.md`.376- Never store secrets, tokens, passwords, private document text, or sensitive user data.377- Keep entries concise.378- Update `.gitignore` based on whether each file should remain local or be committed.379380Recommended policy:381382Local only:383- `CURRENT_SESSION.md`384- `WORK_LOG.md`385386May be committed when project-relevant:387- `DECISIONS.md`388- `OPEN_QUESTIONS.md`389390---391392# 13. AI Change Summary393394For meaningful changes, report:3953961. What changed?3972. Why was it changed?3983. Which specification guided the work?3994. What assumptions were made?4005. What tests were run?4016. What remains untested?4027. What should happen next?403404---405406# 14. Stop Conditions407408Stop and ask before:409410- changing architecture411- changing the PRD412- changing ownership behavior413- changing document lifecycle states414- changing AI grounding rules415- replacing a major framework or provider416- introducing permanent chat storage417- weakening authorization418- changing data-retention behavior419- installing a major dependency without checking current official documentation420
Also in summer-marie/conditions-translator
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| summer-marie/conditions-translator.clinerules/01-project-rules.md · 0 | Cline rules | do-notagent-behaviour | 46/100 | 2 days ago | |
| summer-marie/conditions-translatorAGENTS.md · 0 | AGENTS.md | setupbuildtestlint-format+7 | 96/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today | |
| lollipopkit/flutter_server_boxCLAUDE.md · 8.3k | CLAUDE.md | buildteststylearch+2 | 98/100 | 3 days ago |
