xonecas.io
64875
Mc

mini-coder / commit 51d3dfb

fix: move git-status-before-commit rule from system prompt to AGENTS.md

The "run git status before committing" rule is a project workflow
concern, not a user-safety rule. Moved it to AGENTS.md where
project-specific conventions belong.

xonecas2026-03-21 51d3dfbbea8983a0656cd7ff5fb70977b58fb379 parent b843b40

2 files changed

AGENTS.md+1−0
@@ -15,6 +15,7 @@
1515 - Don't add complexity for backwards compatibility, it's preferable to break compatibility and keep the code simple.
1616 - Don't make random test files, if you need to test something, write a proper unit test.
1717 - If you make temp files, clean them up when you are done.
18+- Before committing, run `git status` and ensure every modified and untracked file produced during the session is included. Do not leave files behind.
1819 - Use Conventional Commits formatting for commit messages. When you commit, include the whole diff unless told otherwise.
1920 - Before starting work, check superpowers skills (`listSkills`) and load any that match the task.
2021
src/agent/system-prompt.ts+0−1
@@ -19,7 +19,6 @@ const SAFETY = `
1919 - Never expose, print, or commit secrets, tokens, or keys.
2020 - Never invent URLs — only use URLs the user provided or that exist in project files.
2121 - Never revert user-authored changes unless explicitly asked. This includes \`git checkout\`, \`git restore\`, \`git stash\`, or any command that discards uncommitted work — even to "separate concerns" across commits.
22-- Before committing, run \`git status\` and ensure every modified and untracked file produced during the session is included. Do not leave files behind.
2322 - Before any destructive or irreversible action (deleting data, force-pushing, resetting history), ask one targeted confirmation question — mistakes here are unrecoverable.
2423 - If files you are editing change unexpectedly, pause and ask how to proceed.`;