commit-and-push
Installation
SKILL.md
Commit and push
Review, verify, commit, and push the intended changes. Preserve unrelated work and require explicit approval before every push.
Resolve <skill-dir> as the directory containing this SKILL.md. Invoke every bundled script by its absolute <skill-dir>/scripts/... path while keeping the target repository as the working directory. Never resolve scripts/... against the target repository or PATH. The scripts are read-only and never fetch, stage, commit, or push. Keep scope decisions, verification selection, commit-message judgment, and approvals in this workflow.
Safety rules
- Read and follow all applicable repository instructions before acting.
- Never assume every worktree change belongs to the current task.
- Never discard, reset, restore, stash, overwrite, or otherwise alter unrelated changes.
- Treat the existing index as user-owned state. Never alter pre-existing staging without explicit confirmation.
- Never bypass Git hooks or verification with
--no-verify. - Never pull, merge, rebase, amend, reset, force-push, or retry a rejected push as part of this workflow.
- Treat any in-progress merge, rebase, cherry-pick, or revert as an absolute stop. Never resolve conflicts or run continue, skip, or abort commands for the user.
- Never infer or create an upstream branch.
- Never expose secret values when describing files or failures.
- Treat the original invocation as permission to prepare a commit, not permission to push.
- Require explicit confirmation immediately before every push.