Agent skill

commit-and-push

Create a git commit and push

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/commit-and-push

SKILL.md

Context

  • Current git status: !git status
  • Current git diff (staged and unstaged changes): !git diff HEAD
  • Current branch: !git branch --show-current
  • Recent commits: !git log --oneline -10

Your task

  1. Analyze the diff in depth - understand what changed and why
  2. Create a single commit with a clear, descriptive message
  3. Push to origin
  4. If on a feature branch: create a PR using gh pr create
  5. If on main: just push (no PR needed)

Didn't find tool you were looking for?

Be as detailed as possible for better results