Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

git-pushing — Claude Code skill: what it does, how to install

Safely creates Conventional Commits and pushes branch changes using an isolated Git index. It prevents stray dirty files from leaking into remote branches during routine pushes.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add sickn33/agentic-awesome-skills --skill git-pushing -a claude-code
Open on GitHub

What git-pushing does

The skill invokes smart_commit.sh to stage changes inside an isolated temporary Git index. It inspects git status --short --branch, fetches upstream changes if concurrent pushes are possible, and demands an empty live index before staging anything. Dirty unrelated files stay untouched.

Every commit message must follow Conventional Commits formatting. The helper resolves remotes using branch.<name>.pushRemote, remote.pushDefault, or the configured upstream branch. It never bypasses protected branches like main or loops failed push attempts after server rejection. Repositories configured with Git's reftable backend will fail immediately because the lock protocol requires the standard files backend.

What it helps with

  • push clean changes to a remote branch
  • enforce Conventional Commits formatting on agent pushes
  • isolate staging in a temporary Git index
  • stop accidental direct pushes to protected branches

Example prompts for the agent

  • Push these changes to the remote branch
  • Save my current work to GitHub
  • Commit only src/auth.ts with fix: validate token and push

How to install git-pushing

1Skills CLI (Vercel)

npx skills add sickn33/agentic-awesome-skills --skill git-pushing -a claude-code

2Manually: put the files in place

~/.claude/skills/git-pushing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/git-pushing/

From the same set80

The whole set →
docker-expert sickn33 A skill that turns your AI agent into a Docker reviewer for Dockerfiles, multi-stage builds and container security. Useful when images and Compose files need a second look. Claude Code CX Codex Cursor +1 27,200installs typescript-expert sickn33 A skill for TypeScript and JavaScript work: it reads your project setup, fixes type errors and speeds up type checking. Useful once a TS codebase gets big. Claude Code CX Codex Cursor +1 12,600installs browser-automation sickn33 This skill builds browser checks around observed UI state and explicit outcomes. Use it for UI workflows, timing failures, or authorised page-data collection. Claude Code CX Codex Cursor +1 6,700installs nextjs-supabase-auth sickn33 This skill wires Supabase Auth into the Next.js App Router with clients, middleware, OAuth callbacks, and Server Actions. Use it when you need protected routes and session handling. Claude Code CX Codex Cursor +1 6,500installs 3d-web-experience sickn33 Helps build and debug web 3D scenes, product configurators, and portfolios. Covers stack choice, model loading, scroll interaction, and performance checks. Claude Code CX Codex Cursor +1 5,200installs prisma-expert sickn33 This skill helps inspect Prisma schemas, migrations, and queries. Use it to investigate an error or review database changes before deployment. Claude Code CX Codex Cursor +1 4,200installs playwright-skill sickn33 Write and run Playwright browser tests directly in Claude Code: responsive design checks, login flows, form submissions, screenshots. Executes locally via Node with a visible browser window. Claude Code CX Codex Cursor +1 3,900installs game-development sickn33 Guides game architecture decisions, platform choices, and core loop structure. Directs the assistant to specialized sub-skills for web, mobile, PC, or VR. Claude Code CX Codex Cursor +1 3,800installs

Similar

graph-evolution trailofbits Compares Trailmark code graphs across two code snapshots to spot structural security changes. It catches attack path expansion and privilege shifts that text diffs overlook. Claude Code CX Codex Cursor +1 3,900installs ce-promote EveryInc Drafts launch posts and changelog blurbs directly from git diffs or pull requests. Useful for engineers who want ready-to-use release copy without waiting on marketing. Claude Code CX Codex Cursor +1 1,000installs write-release-notes tldraw Creates and reviews tldraw SDK release-note articles from merged PRs, with migration guidance for breaking changes. Claude Code CX Codex Cursor +1 327installs github-release official github github-release takes a GitHub library through release preparation: it reviews changes, selects a SemVer bump, writes a changelog, and opens a PR. GitHub Copilot 741installs build-iterated-agentic-loop humanlayer Turns a repeatable agent task into a repo-local skill plus a GitHub Actions workflow that runs a coding agent on a schedule, by hand, or both. Claude Code CX Codex Cursor +1 1,400installs document jsmastery-pro Turns a finished change into prose people actually read: a PR body, a changelog entry, release notes, a postmortem. It works from the commits and the diff. Claude Code CX Codex Cursor +1 4,300installs triage Matt Pocock This skill moves issues and external PRs through triage states, verification, and agent briefs. It fits maintainers managing an issue queue. Claude Code 990,453installs code-review Matt Pocock Reviews changes from a chosen reference point against repository standards and the originating spec. Use it for a branch, PR, or work in progress. Claude Code 789,521installs

Questions about git-pushing

How to install git-pushing in Claude Code?

Run npx skills add sickn33/agentic-awesome-skills --skill git-pushing -a claude-code. The tool installs the skill configuration directly into your agent setup.

What does the git-pushing skill do?

It executes smart_commit.sh to prepare an isolated commit with a Conventional Commit message and push atomically to the upstream repository.

Does git-pushing support the Git reftable backend?

No. The helper explicitly rejects reftable repositories before creating a commit because its locking mechanism relies on Git's files ref backend.

Source text

SKILL.md · MIT
---
name: git-pushing
description: "Safely stage, commit, and push intended git changes with conventional commit messages. Use for ordinary non-release pushes when explicitly asked to push, save work remotely, or share a completed change."
risk: critical
source: community
date_added: "2026-02-27"
---

# Git Push Workflow

Stage only intended changes, create a conventional commit, and push to the remote branch.

## When to Use
Automatically activate when the user:

- Explicitly asks to push changes ("push this", "commit and push")
- Mentions saving work to remote ("save to github", "push to remote")
- Completes a feature and wants to share it
- Says phrases like "let's push this up" or "commit these changes"

## Safety Gates

Before staging, inspect `git status --short --branch`, confirm the intended files, and fetch the upstream branch when a concurrent push is plausible. Do not absorb unrelated dirty files.

Read repository policy before choosing the destination branch. If `main` or `master` is protected, or the repository defines a maintainer command such as `merge:batch`, create or use a topic branch and finish through the required pull-request checks. A user request to “push to main” describes the desired final state; it does not authorize bypassing server-side protection. Never keep retrying a direct push after a protected-branch rejection.

The helper requires an empty live index and a conventional commit message before it stages anything. It locks the live index, builds and validates the commit in an isolated temporary index, rejects `--` without paths, and atomically updates the branch only if its parent is unchanged.

The helper honors `branch.<name>.pushRemote`, `remote.pushDefault`, and the branch's configured upstream, in that order. For a new branch without those settings, it requires `origin` and establishes `origin/<branch>`. It rejects detached HEAD and invalid remote configurations before staging.

Do not use this skill for a maintainer merge batch, canonical synchronization, versioned repository release, tag publication, or a repository with an explicit `merge:batch`, `release:prepare`, or `release:publish` workflow. Use that repository's maintainer/release flow instead; it owns pull-request evidence, protected-branch checks, generated files, tags, and publication verification.

## Workflow

Use the helper only after the safety gates pass. Resolve the installed directory that contains this `SKILL.md` and substitute its absolute path for `<skill-directory>` below; do not assume the current working directory is the catalog repository. With no paths the helper stages all current changes, so use that form only when every dirty file belongs to the requested commit:

```bash
bash "<skill-directory>/scripts/smart_commit.sh"
```

With custom message:

```bash
bash "<skill-directory>/scripts/smart_commit.sh" "feat: add feature"
```

To stage only named files, pass them after `--`:

```bash
bash "<skill-directory>/scripts/smart_commit.sh" "fix: scope change" -- path/to/file
```

The helper handles isolated staging, commit creation, and push; it does not replace validation, release tooling, or a rebase required by an advanced upstream branch.

## Limitations
- The helper currently requires Git's `files` ref backend; it rejects `reftable` repositories before creating a commit because their refs cannot use the filesystem lock protocol.
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

© sickn33 · MIT · sickn33/agentic-awesome-skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor