Skip to content
Back to skills

Push

ASecurity

Add all changes, commit, and push to GitHub

  • 57 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 17, 2026
securitybashgit

Works with

  • cli

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill push --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Push?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Push
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-push/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-push)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: push
description: Add all changes, commit, and push to GitHub
user-invocable: true
disable-model-invocation: true
argument-hint: [commit message]
allowed-tools: Bash(git:*), Bash(gh:*)
---

# Add, Commit, and Push

Stage all changes, create a commit, and push to GitHub.

## Steps

1. Run `git status` to review what will be committed. Never use the `-uall` flag.
2. Run `git diff` to see staged and unstaged changes.
3. Run `git log --oneline -5` to see recent commit message style.
4. **Show the user the list of files that will be added/committed and ask for confirmation before proceeding.** If the user declines, stop.
5. If `$ARGUMENTS` is provided, use it as the commit message. Otherwise, analyze the changes and generate a concise commit message that describes **why** the changes were made.
6. Stage all changes:
   ```bash
   git add -A
   ```
7. Create the commit. Always end the message with the co-author line:
   ```
   Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
   ```
8. Push to the current branch:
   ```bash
   git push origin $(git rev-parse --abbrev-ref HEAD)
   ```
9. If the push fails because the remote branch doesn't exist yet, push with `-u`:
   ```bash
   git push -u origin $(git rev-parse --abbrev-ref HEAD)
   ```
10. Report the result — show the commit hash and confirm the push succeeded.

## Rules

- Do NOT use `--force` or `--no-verify` flags.
- Do NOT commit files that look like secrets (`.env`, credentials, tokens). Warn the user if any are staged.
- If there are no changes to commit, tell the user and stop.
- Always use a HEREDOC to pass the commit message to avoid quoting issues.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.