Recently Written · git

ai-config

One canonical AI agent config (rules, skills, MCP servers) rendered into Claude Code, Codex, Copilot CLI and Antigravity by acsync

git clone https://github.com/equwal/ai-config

Log | Files | Refs


rules/undo-commands.md (669 bytes)

1 ## MANDATORY: Undo commands are copy-only
2 
3 The user runs commands with one click. An undo command in a runnable block gets run by accident. Never make an undo command runnable.
4 
5 - An undo, rollback, revert, or restore command goes in a fenced code block tagged `text`. Never tag it `bash`, `sh`, `powershell`, `pwsh`, or `ps1`. The desktop app adds a Run button to `bash` blocks only.
6 - Label the block: "Undo (copy only, run only if needed)".
7 - Never put an undo step in a script, a `.ps1` or `.sh` file, or a block that also does the main work.
8 - The same applies to each destructive command the user did not ask to run: delete, `git reset --hard`, force push, drop.