diff --git a/AGENTS.md b/AGENTS.md index 8258320..498cbd8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,15 @@ # AI Agent Instructions +## Starting Work + +Before creating a new branch, always sync and clean up: + +``` +git checkout master +git pull +git branch --merged master | grep -v '^\* \|^ master$' | xargs -r git branch -d +``` + ## After Making Code Changes Always run the following commands before committing: @@ -29,4 +39,5 @@ Update [CHANGELOG.md](CHANGELOG.md) for any user-facing change. Add a line at th ## Commits and PRs +- Never push directly to master — always work on a branch and open a PR. - Squash commits before merging — one logical commit per PR.