git-workflow

Perform requested Git actions while preserving user work. Triggers on "commit", "提交".

SKILL.md

GitHub

Git Workflow and Versioning

When to use

  • Perform requested Git actions while preserving user work.

Not for: implement for code; shipping for production rollout.

Steps

  1. Inspect status, staged changes, branches and operation state; determine the authorized action.

  2. Prepare coherent changes and relevant checks; stage explicit paths and commit only when requested.

  3. Resolve conflicts by tracing both intents and verifying each coherent unit; do not reset or abort destructively without authority.

  4. Report local state; every push requires explicit confirmation after the verified result is prepared.

Verify

  • Content matches authorization and checks; user history is preserved and local work does not imply push.

References