update claude.md: add git checkout restriction, simplify nix section

This commit is contained in:
2026-03-26 18:17:23 +01:00
parent 552949811e
commit ac89d69365

View File

@@ -12,6 +12,7 @@ This project builds presentation decks for Marp, supporting multiple courses.
- Agent NEVER runs commands outside this folder - Agent NEVER runs commands outside this folder
- Agent NEVER runs build/deploy commands without explicit user request - 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 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 ## Critical File Protection
@@ -48,10 +49,7 @@ make deploy # Deploy all (ASK FIRST!)
## Nix Flake Commands ## Nix Flake Commands
```bash ```bash
nix develop # Dev shell with all tools nix develop # Dev shell with all tools (node 22, npm, make)
nix run .#qr -- "https://example.com" # Generate QR code
nix run .#qr-slides -- 223015b # QR for course
nix run .#optimize-img -- <path> # Optimize images
``` ```
## Code Style Guidelines ## Code Style Guidelines