From ac89d693654b12c04a50029694a73a8000f8bddd Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Thu, 26 Mar 2026 18:17:23 +0100 Subject: [PATCH] update claude.md: add git checkout restriction, simplify nix section --- CLAUDE.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 4a110b5..c28122b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -12,6 +12,7 @@ This project builds presentation decks for Marp, supporting multiple courses. - Agent NEVER runs commands outside this folder - Agent NEVER runs build/deploy commands without explicit user request - Agent NEVER runs deploy commands (make deploy, scp, etc.) without explicit user permission +- Agent NEVER runs `git checkout --` or `git restore` on files with uncommitted work. To undo specific changes, use targeted Edit operations instead. ## Critical File Protection @@ -48,10 +49,7 @@ make deploy # Deploy all (ASK FIRST!) ## Nix Flake Commands ```bash -nix develop # Dev shell with all tools -nix run .#qr -- "https://example.com" # Generate QR code -nix run .#qr-slides -- 223015b # QR for course -nix run .#optimize-img -- # Optimize images +nix develop # Dev shell with all tools (node 22, npm, make) ``` ## Code Style Guidelines