Commit and push
Commit whatever is currently staged (if anything) and push. Use when the user says "commit and push", "ship it", or similar. Pushes even when there's nothing new to commit, so it also ships already-made local commits. Does not stage anything. For commit-only, use commit.From its SKILL.md
npx -y skills add ProstDev/skills --skill commit-and-pushAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 235 tokens by cl100k_base, as published. Nobody here has run it
Commit and Push
Commit the currently staged changes (if any), then push. Do not git add, do not stage untracked
or unstaged files.
Steps
git diff --cached --stat— check what's staged.- Something staged: commit it, following the message rules in the commit
skill (
type: summary, staged only, no-a). - Nothing staged: skip committing — do NOT stage anything. Continue to push anyway (there may be earlier local commits to ship).
- Something staged: commit it, following the message rules in the commit
skill (
git push. If the branch has no upstream,git push -u origin HEAD.- Report what happened: the commit hash + message if one was made (or "nothing to commit"), and the push result — including "already up to date" if nothing was pushed.
Don't
- Don't stage anything (
git add,git commit -a,git commit <path>). - Don't amend, rebase, or force-push.
- Don't touch other branches or open a PR.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.