Git Push Workflow
Stage all changes, create a conventional commit with a Claude footer, and push to
the current branch's remote.
When to use
Activate when the user:
- Explicitly asks to push ("push this", "commit and push", "push to github").
- Mentions saving work to remote ("save to github", "push to remote").
- Finishes a feature and wants to share it ("let's push this up", "commit these changes").
What it does
- Reads the current branch.
- Bails out if there are no changes.
- Stages everything (
git add .).
- Builds a Conventional Commits message:
- type inferred from changed files —
test, docs, chore (deps),
fix/refactor (from diff content), else feat.
- scope inferred from the path / keywords (
plugin, skill, agent, or
top-level dir).
- A custom message can be passed instead and is used verbatim.
- Commits with a
🤖 Generated with Claude Code + Co-Authored-By footer.
- Pushes: plain
git push if the branch already exists on origin, else
git push -u origin <branch> and prints a GitHub "create PR" link.
How to run
The skill ships a helper script. Fetch it from the source repo
(engineering-workflow-plugin/skills/git-pushing/scripts/smart_commit.sh) or
reproduce its behavior with the steps above.
# auto-generated commit message
bash scripts/smart_commit.sh
# explicit message
bash scripts/smart_commit.sh "feat: add feature"
Gotchas
git add . stages all changes including unrelated/untracked files — make
sure the working tree only holds what should ship, or stage manually first.
- The script's auto-detected type/scope is heuristic; for anything nuanced, pass
an explicit conventional-commit message.
- The footer uses the generic
Co-Authored-By: Claude <noreply@anthropic.com>.
Per this user's global rules, commit messages should instead end with
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> and PR
bodies with the Claude Code generated-with line — adjust the message accordingly.
set -e: any failed git step aborts the whole run.
- Only commit/push when the user explicitly asks; if on the default branch,
branch first.
1---2name: git-pushing3description: "Use when the user wants to commit and push git changes — triggers on 'push this', 'commit and push', 'push to github', 'push to remote', 'save to github', 'let's push this up', or 'commit these changes' — stages all, makes a conventional commit, and pushes."4version: 1.0.05license: Apache-2.06tags: [git, commit, push, conventional-commits, github, version-control, workflow, remote]7source: https://github.com/mhattingpete/claude-skills-marketplace/tree/main/engineering-workflow-plugin/skills/git-pushing8derived_from: awesomeclaude9prerequisites:10 commands: [git]11metadata:12 source: https://skillmd.com/skills/aashutosh396/git-pushing13---1415# Git Push Workflow1617Stage all changes, create a conventional commit with a Claude footer, and push to18the current branch's remote.1920## When to use2122Activate when the user:23- Explicitly asks to push ("push this", "commit and push", "push to github").24- Mentions saving work to remote ("save to github", "push to remote").25- Finishes a feature and wants to share it ("let's push this up", "commit these changes").2627## What it does28291. Reads the current branch.302. Bails out if there are no changes.313. Stages everything (`git add .`).324. Builds a Conventional Commits message:33 - **type** inferred from changed files — `test`, `docs`, `chore` (deps),34 `fix`/`refactor` (from diff content), else `feat`.35 - **scope** inferred from the path / keywords (`plugin`, `skill`, `agent`, or36 top-level dir).37 - A custom message can be passed instead and is used verbatim.385. Commits with a `🤖 Generated with Claude Code` + `Co-Authored-By` footer.396. Pushes: plain `git push` if the branch already exists on origin, else40 `git push -u origin <branch>` and prints a GitHub "create PR" link.4142## How to run4344The skill ships a helper script. Fetch it from the source repo45(`engineering-workflow-plugin/skills/git-pushing/scripts/smart_commit.sh`) or46reproduce its behavior with the steps above.4748```bash49# auto-generated commit message50bash scripts/smart_commit.sh5152# explicit message53bash scripts/smart_commit.sh "feat: add feature"54```5556## Gotchas5758- `git add .` stages **all** changes including unrelated/untracked files — make59 sure the working tree only holds what should ship, or stage manually first.60- The script's auto-detected type/scope is heuristic; for anything nuanced, pass61 an explicit conventional-commit message.62- The footer uses the generic `Co-Authored-By: Claude <noreply@anthropic.com>`.63 Per this user's global rules, commit messages should instead end with64 `Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>` and PR65 bodies with the Claude Code generated-with line — adjust the message accordingly.66- `set -e`: any failed git step aborts the whole run.67- Only commit/push when the user explicitly asks; if on the default branch,68 branch first.