What problem does it solve? Agents working in git repositories often make inconsistent branching decisions, write poor commit messages, or attempt dangerous operations like pushes and history rewrites. This Skill provides canonical rules for where to commit, how to write commits, when to squash, and how far an agent may act autonomously. ## Core Features & Use Cases - Repo Mode Resolution: Determines whether work happens on the default branch, current branch, or a task branch based on user instructions, AGENTS.md, task metadata, or .config/repos.project.md. - Commit Discipline: Enforces conventional commit summaries with a structured What changed / Why / Checks body, sliced into coherent reviewable units. - Push and Safety Rules: Treats pushing as a human-only action blocked by the block-dangerous-git hook, and routes squashing through the agents-core:squash-workspace-commits skill. - Autonomy Ladder (L0-L3): Caps agent behavior from read-only inspection (L0) through local commits (L1), branch push and CI repair (L2), to draft PR validation (L3), with strict precedence resolution. - Use Case: An agent implementing a tracked task checks the repo registry, confirms L1 autonomy, commits each phase slice with a structured message, and stops before pushing. ## Quick Start Ask the agent to commit the current changes following the git-discipline rules and confirm the repo's work mode and autonomy level first.