docs: expand quality regime to define "done" for all work
Update regime documentation to clarify that quality checks must pass not just before commits, but before declaring ANY work complete. **"Done" means:** - npm run pre-commit passes (0 errors, 0 warnings) - All TypeScript errors fixed - All code formatted - All linting passed **Quality checks required before:** - Committing code - Saying work is "done" or "complete" - Marking tasks as finished - Telling the user something is "working" or "fixed" This ensures quality standards are maintained throughout development, not just at commit time. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
# Claude Code Instructions for apps/web
|
||||
|
||||
## MANDATORY: Pre-Commit Quality Checks
|
||||
## MANDATORY: Quality Checks for ALL Work
|
||||
|
||||
**BEFORE EVERY COMMIT**, you MUST run and pass these checks:
|
||||
**BEFORE declaring ANY work complete, fixed, or working**, you MUST run and pass these checks:
|
||||
|
||||
### When This Applies
|
||||
- Before every commit
|
||||
- Before saying "it's done" or "it's fixed"
|
||||
- Before marking a task as complete
|
||||
- Before telling the user something is working
|
||||
- After any code changes, no matter how small
|
||||
|
||||
```bash
|
||||
npm run pre-commit
|
||||
@@ -18,14 +25,20 @@ This command runs:
|
||||
|
||||
## Workflow
|
||||
|
||||
When asked to make changes and commit:
|
||||
When asked to make ANY changes:
|
||||
|
||||
1. Make your code changes
|
||||
2. Run `npm run pre-commit`
|
||||
3. If it fails, fix the issues and run again
|
||||
4. Only create commits after all checks pass
|
||||
4. Only after all checks pass can you:
|
||||
- Say the work is "done" or "complete"
|
||||
- Mark tasks as finished
|
||||
- Create commits
|
||||
- Tell the user it's working
|
||||
5. Push immediately after committing
|
||||
|
||||
**Nothing is complete until `npm run pre-commit` passes.**
|
||||
|
||||
## Details
|
||||
|
||||
See `.claude/CODE_QUALITY_REGIME.md` for complete documentation.
|
||||
|
||||
@@ -1,8 +1,24 @@
|
||||
# Code Quality Regime
|
||||
|
||||
**MANDATORY**: Before ANY commit, Claude MUST run these checks and fix all issues.
|
||||
**MANDATORY**: Before declaring ANY work complete, fixed, or working, Claude MUST run these checks and fix all issues.
|
||||
|
||||
## Pre-Commit Checklist (Always Required)
|
||||
## Definition of "Done"
|
||||
|
||||
Work is NOT complete until:
|
||||
- ✅ All TypeScript errors are fixed (0 errors)
|
||||
- ✅ All code is formatted with Biome
|
||||
- ✅ All linting passes (0 errors, 0 warnings)
|
||||
- ✅ `npm run pre-commit` exits successfully
|
||||
|
||||
**Until these checks pass, the work is considered incomplete.**
|
||||
|
||||
## Quality Check Checklist (Always Required)
|
||||
|
||||
Run these before:
|
||||
- Committing code
|
||||
- Saying work is "done" or "complete"
|
||||
- Marking tasks as finished
|
||||
- Telling the user something is "working" or "fixed"
|
||||
|
||||
Run these commands in order. All must pass with 0 errors and 0 warnings:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user