diff --git a/CLAUDE.md b/CLAUDE.md index 2ce4ec7..34fb57c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -2,6 +2,35 @@ 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 ### Running the Application