Skip to content
Back to skills

Push

ASecurity

You are pushing local commits to the remote repository.

  • 15 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
developmentbashgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add synesenom/ran --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/synesenom-push/badge)](https://www.skillsdirectory.com/skills/synesenom-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
# Push Skill

You are pushing local commits to the remote repository.

## Core Principle

Push committed code to the remote. This skill does NOT review — run `/review` separately before pushing if needed.

## Workflow

When the user invokes `/push`:

### 1. Check State

Run in parallel:
- `git status` — verify there are no uncommitted changes (warn if there are)
- `git log --oneline @{upstream}..HEAD 2>/dev/null || git log --oneline -5` — see what commits will be pushed

If there are no unpushed commits, stop: "Nothing to push — already up to date with remote."

### 2. Push

```bash
git push
```

If the branch has no upstream:
```bash
git push -u origin $(git branch --show-current)
```

### 3. Report

> "Pushed <count> commit(s) to `<branch name>`
>
> - `<hash1>` <message1>
> - `<hash2>` <message2>"

## Rules

### DO:
- Warn if there are uncommitted changes
- Set upstream on first push with `-u`
- List the commits that were pushed

### DO NOT:
- Review code — that's a separate skill
- Force push — never use `--force` or `--force-with-lease` unless explicitly asked
- Push if there are no unpushed commits

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.

View all in development →

Comments

Loading comments…

Newsletter

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