branch-context-check
Installation
SKILL.md
Skill: Branch Context Check (Branch / Worktree Intent Guard)
Type: Execution
Purpose
Prevent accidental commits on the wrong branch or into a dirty working tree owned by another session.
This skill verifies:
- Current branch intent matches the current task
- Recent commits on the branch are related to the current work
- Dirty files are attributable to the current session or intentionally carried forward
- The safest next step is clear before staging, committing, pushing, or continuing work
- Post-publish branch/worktree cleanup is explicitly chosen after push, PR creation, or PR merge