Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

commit-push

FreeNo executable scriptsNot checked

Commit staged/unstaged changes and push to the remote branch in one step

anyprotoby anyproto★ 9,169 GitHub stars

About this skill

Commit & Push Skill

Commit all current changes and push to the remote in a single workflow.

Process

  1. Check state — Run git status (no -uall), git diff (staged + unstaged), and git log --oneline -5 in parallel
  2. Abort if clean — If there are no changes, inform the user and stop
  3. Stage files — Add changed files by name (never use git add -A or git add .). Skip files that look like secrets (.env, credentials, tokens)
  4. Draft commit message — Follow the repo's JS-XXXX: short description convention. Summarize the "why", not the "what"
  5. Commit — Use a HEREDOC for the message. Always append the co-author trailer:
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
  6. Push — Push to the current remote-tracking branch (typically origin/develop). Use git push (never force-push)
  7. Confirm — Show the resulting commit hash and remote status

Rules

  • Never amend existing commits
  • Never force-push
  • Never skip hooks (--no-verify)
  • Never commit files that contain secrets
  • Always create a NEW commit, even after a hook failure
  • Push target is always the current branch's upstream (usually develop)

Install commit-push in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the commit-push skill do?

Commit staged/unstaged changes and push to the remote branch in one step

How do I install the commit-push skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the commit-push skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare commit-push with