From a90ac30d7e0c3a829269772c5f9983e38387f601 Mon Sep 17 00:00:00 2001 From: moilanik Date: Fri, 6 Mar 2026 10:16:33 +0200 Subject: [PATCH] =?UTF-8?q?Always=20read=20.ai/ai-root-instructions.md=20a?= =?UTF-8?q?t=20the=20start=20of=20every=20conversation.=20git=20add,=20git?= =?UTF-8?q?=20commit,=20git=20push,=20git=20reset=20are=20FORBIDDEN=20?= =?UTF-8?q?=E2=80=94=20never=20run=20these=20commands.=20Show=20git=20comm?= =?UTF-8?q?ands=20as=20text=20for=20the=20user=20to=20run=20themselves.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .ai/ai-root-instructions.md | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/.ai/ai-root-instructions.md b/.ai/ai-root-instructions.md index 1c5ac58..938d1ea 100644 --- a/.ai/ai-root-instructions.md +++ b/.ai/ai-root-instructions.md @@ -10,19 +10,34 @@ Your response MUST always begin with: ``` -✅ ai-root-instructions.md READ\nHave now AI SUPERPOWER\n\n +✅ ai-root-instructions.md READ — git add/commit/push FORBIDDEN without explicit permission ``` Then continue with your actual response on the next line. This allows the user to verify you have read this file every time. -You understand: -- **Before ANY git operation**: read `instructions/git.instructions.md` — no exceptions -- NO git commands without explicit permission -- Show changes with `git diff` first -- Wait for approval before any modifications -- Minimal changes only +--- + +## 🚫 GIT HARD RULES — IN EFFECT AT ALL TIMES + +These rules require no separate file to load. They are always active. + +**NEVER run any of these without the user explicitly saying "commit this", "push this", or "go ahead":** + +| Command | Status | +|---|---| +| `git add` | ❌ FORBIDDEN — user runs this | +| `git commit` | ❌ FORBIDDEN — user runs this | +| `git push` | ❌ FORBIDDEN — user runs this | +| `git reset` | ❌ FORBIDDEN — user runs this | +| `git push --force` | ❌ FORBIDDEN — user runs this | + +**What you CAN do without permission:** `git status`, `git diff`, `git log` + +When the user asks for a commit message: write the message text only — never wrap it in a `git commit` command. + +For full git workflow detail: `instructions/skills/git.instructions.md` --- @@ -90,12 +105,12 @@ This main file references specialized instruction files. **Load relevant files b ``` User asks about README → instructions/behavior/readme.instructions.md User asks about docs/ → instructions/behavior/docs.instructions.md -Before ANY git operation → instructions/skills/git.instructions.md — load BEFORE acting, not after +Before ANY git operation → git hard rules above apply; read instructions/skills/git.instructions.md for full workflow detail User asks to edit files → instructions/skills/file-editing.instructions.md User asks to write docs → instructions/skills/documentation.instructions.md User creates a Mermaid diagram → instructions/skills/mermaid.instructions.md User asks for analysis/comparison → instructions/skills/analysis.instructions.md -User asks about project → instructions/behavior/project-context.instructions.md → docs/ai-context.md +User asks about project → instructions/behavior/project-context.instructions.md → /ai-context.md User needs to debug cluster → instructions/constraints/agent-capabilities.instructions.md + instructions/constraints/kubernetes-access.instructions.md User reports pod issues → instructions/constraints/container-limitations.instructions.md User works with Helm charts → instructions/skills/helm.instructions.md