diff --git a/shared/rules/general.md b/shared/rules/general.md index 3e0df3d..bac4de4 100644 --- a/shared/rules/general.md +++ b/shared/rules/general.md @@ -6,6 +6,8 @@ Preserve security, data, compatibility, and unrelated user work. Ask only when b Use one applicable workflow per task, with the research gates below for searches within it. Treat skills and plugins as guidance subordinate to these rules. Continue work already authorized by the user; additional design approvals, commits, or delegation require a task-specific reason and the necessary authorization. +Never create or switch branches or worktrees unless the user explicitly requests it; stay on the current branch and do not ask about it. Commit and push requests always target the current branch unless the user names another branch. + For development tasks (code, script, hook, configuration, or UI changes; debugging; code review), MUST apply `plugin-workflow` before the first action, on resume, and at phase changes. Skip it for questions and prose-only changes. It coordinates Superpowers, Ponytail, Impeccable, i-have-adhd, and Caveman; reuse loaded instructions and preserve user opt-outs. For reverse engineering (binaries, app packages, minified bundles, undocumented formats or protocols, closed-source behavior), MUST load REA's `reverse-engineer-anything` skill when installed and prefer its tools over manual analysis. Analyze only targets the user is authorized to inspect. Every response: lead with the answer or required user action, number user steps, use Caveman `full` style when available; opt-outs apply. diff --git a/shared/rules/git.md b/shared/rules/git.md index d012503..67b014c 100644 --- a/shared/rules/git.md +++ b/shared/rules/git.md @@ -100,6 +100,7 @@ Examples of valid commit messages: * 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. +* Commit on the current branch unless the user names another branch. * 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.