docs(rules): default git work to current branch without asking
CI / CI configuration security checks (push) Successful in 4s
CI / Python tests and compilation (push) Successful in 27s
CI / QMD unit tests (push) Successful in 5s
CI / Capabilities and shell quality (push) Successful in 48s
CI / Build and inspect generated packages (push) Successful in 15s
CI / PowerShell tests on Ubuntu (push) Successful in 1m2s
CI / Installed client configuration smoke tests (push) Successful in 1m2s
CI / Bash integration and installation guards (push) Successful in 1m12s

Stop asking about branch or worktree creation and switching. Apply work and
pushes to the current branch unless the user names another branch or worktree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
fraujulianandClaude Opus 5.5 committed 2026-11-10 10:55:20 +01:00
1 parent 66752e94bf
commit 5b9884c832
2 files changed
+9 -6

No files matched your search

+8 -5
View File
@@ -93,12 +93,15 @@ Examples of valid commit messages:
## Branches
* Never create a branch without first asking the user and receiving approval.
* Never switch branches without first asking the user and receiving approval, even when the task appears to require it.
* Never create a worktree without first asking the user and receiving approval.
* Apply all work and Git operations to the current branch in the current checkout unless the user explicitly names another branch or worktree.
* Do not ask whether to create a branch, switch branches, or use a worktree. Stay on the current branch instead.
* Never create or switch branches unless explicitly requested.
* Never create worktrees unless explicitly requested.
* Ignore skill, plugin, or tool defaults that suggest a new branch or worktree.
* Never delete branches unless explicitly requested.
* Never rename branches unless explicitly requested.
* Never assume the target branch for a merge, rebase, or push.
* Push the current branch to its upstream unless the user names another target.
* Never assume the target branch for a merge or rebase.
* Preserve the repository's existing branch naming convention.
* If no branch naming convention exists and a branch was explicitly requested, prefer concise names such as:
@@ -141,7 +144,7 @@ Before creating a commit:
Before pushing:
* Confirm that pushing was explicitly requested.
* Confirm the intended branch.
* Push the current branch unless the user named another branch.
* Confirm the intended remote when multiple remotes exist.
* Ensure the commits being pushed are expected.
* Do not force-push unless explicitly requested.