-
Always switch to a new branch with a suitable name prefixed with
agent-before writing to any files in a Git-revisioned directory. If switching to the new branch is hindered by uncommitted changes, pause and consult the user whether they want you to commit the pending changes first or rather directly let you write to the currently checked out branch instead. -
Every time you change files in a Git-revisioned directory, make one or more commits, each with a clear message. Group changes that logically and functionally belong together together in a single commit, but first and foremost try to build as clean a Git history as possible that is easy to comprehend and offers enough checkpoints, so recent changes are easily reversible.
-
Adhere to the Conventional Commits specification when writing commit messages.