From c989d4c0fcf9362cbcdec8d22405abe3a5a1c782 Mon Sep 17 00:00:00 2001 From: lmiranda Date: Wed, 28 Jan 2026 21:13:33 -0500 Subject: [PATCH] docs: add mandatory rules #6 (no CLI) and #7 (no direct push) Rule #6: NEVER use CLI tools for external services (gh, tea, curl to APIs) Rule #7: NEVER push directly to protected branches (development, main) Co-Authored-By: Claude Opus 4.5 --- CLAUDE.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index be8cb70..5031c7a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -42,6 +42,16 @@ This file provides guidance to Claude Code when working with code in this reposi See `docs/DEBUGGING-CHECKLIST.md` for details on cache timing. +### 6. NEVER USE CLI TOOLS FOR EXTERNAL SERVICES +- **FORBIDDEN:** `gh`, `tea`, `curl` to APIs, any CLI that talks to Gitea/GitHub/external services +- **REQUIRED:** Use MCP tools exclusively (`mcp__plugin_projman_gitea__*`, `mcp__plugin_pr-review_gitea__*`) +- **NO EXCEPTIONS.** Don't try CLI first. Don't fall back to CLI. MCP ONLY. + +### 7. NEVER PUSH DIRECTLY TO PROTECTED BRANCHES +- **FORBIDDEN:** `git push origin development`, `git push origin main`, `git push origin master` +- **REQUIRED:** Create feature branch → push feature branch → create PR via MCP +- If you accidentally commit to a protected branch locally: `git checkout -b fix/branch-name` then `git checkout development && git reset --hard origin/development` + **FAILURE TO FOLLOW THESE RULES = WASTED USER TIME = UNACCEPTABLE** ---