Add critical git workflow rules to CLAUDE.md

Added prominent warning section at top of file with:
- Mandatory branching workflow rules
- Step-by-step git commands
- Pre-commit checklist
- Strong language to prevent main branch commits

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code 2025-07-07 22:51:01 -04:00
parent 4610796392
commit 543ad96109

View file

@ -2,6 +2,35 @@
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## ⚠️ CRITICAL RULES - READ FIRST
### Git Workflow - ABSOLUTELY MANDATORY
- **NEVER COMMIT DIRECTLY TO MAIN/MASTER BRANCH**
- **ALWAYS CREATE FEATURE BRANCHES FOR ANY CHANGES**
- **USE TEA CLI FOR GIT.DECO.SH REPOSITORY**
### Required Git Workflow
```bash
# STEP 1: ALWAYS create a feature branch first
git checkout -b feature/brief-description
# STEP 2: Make your changes and commit
git add .
git commit -m "Your commit message"
# STEP 3: Push branch and create PR using tea cli
git push -u origin feature/brief-description
tea pr create
```
### Pre-Commit Checklist
- [ ] Confirm you are NOT on main/master branch: `git branch --show-current`
- [ ] Run tests: `npm test`
- [ ] Run linting: `npm run lint`
- [ ] Build succeeds: `npm run build`
**VIOLATION OF THESE RULES IS UNACCEPTABLE**
## Development Commands ## Development Commands
### Running the Application ### Running the Application