From 543ad961097a0aa7afb167f29601d2009d3af14d Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 7 Jul 2025 22:51:01 -0400 Subject: [PATCH] Add critical git workflow rules to CLAUDE.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- CLAUDE.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) 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