- Never make code, documentation, dependency, lockfile, or generated-file changes directly on
main. - Before changing files, check the current branch. If it is
main, create or switch to a focused feature branch first. - Keep
mainas the integration branch that only receives reviewed changes through pull requests. - Do not commit, amend, rebase, or push unless the user explicitly asks for that git action.