managing-git-workflow
Managing Git Workflow
Overview
Turn an explicit Git or pull-request request into one bounded operation. Resolve scripts/skill-set-git relative to the directory containing this SKILL.md, then invoke that absolute path directly for all Git and GitHub activity. Do not depend on a host-specific plugin-root environment variable or a shell variable persisting across tool calls. References use <git-runner> as a non-executable placeholder; replace it with the resolved absolute path in every invocation. The runner returns JSON, preserves shell metacharacters through file arguments, and applies index and remote compare-and-swap checks before mutation.
Authorization Boundary
Inspection is read-only. Run inspect whenever repository state may have changed.
Treat each mutation as a separate capability:
commit: authorized only by a request to create a commit; never pushes.push: authorized only by a request to push; publishes existing commits only.pr-create: authorized only by a request to create a PR; may push existing commits when the PR branch is not current remotely.
Do not infer one capability from another. A commit request does not authorize push, and a push request does not authorize creating a commit. Never execute direct Git or GitHub commands from this skill.