From 91e4f4486acb307156d55a8cede0d3e2f835fc6b Mon Sep 17 00:00:00 2001 From: Michael Czechowski Date: Sun, 14 Dec 2025 08:45:40 +0100 Subject: [PATCH] add critical file protection rules for index.md --- CLAUDE.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 56c648c..baa7216 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,6 +6,13 @@ This project builds a presentation deck for Marp based on Markdown files. - Agent NEVER runs commands on its own except changing files INSIDE THIS FOLDER, never any other then this - Agent NEVER runs build commands or any automated processes without explicit user request, as the user is working in dev mode +## Critical File Protection: index.md +- `index.md` is the MAIN CONTENT FILE for the entire lecture series - treat with extreme care +- ALLOWED: Adding new slides, adjusting existing content, fixing typos, enhancing sections +- FORBIDDEN (without explicit permission): Deleting slides, removing sections, bulk replacements that remove content +- Before ANY deletion in index.md: ALWAYS ask user for confirmation and warn about what will be removed +- When in doubt, ADD rather than REPLACE - let the user decide what to remove + ## Build Commands - `npm run build` - Build slides from Markdown using Marp - `npm run dev` - Start development server at http://localhost:8080