Nirusan

git-add-commit-push

6
1
# Install this skill:
npx skills add Nirusan/claude-config --skill "git-add-commit-push"

Install specific skill from multi-skill repository

# Description

Stage all changes, create a commit with auto-generated or custom message, and push to current branch. Use when the user says "commit", "push", "save changes", or wants to finalize their work.

# SKILL.md


name: git-add-commit-push
description: Stage all changes, create a commit with auto-generated or custom message, and push to current branch. Use when the user says "commit", "push", "save changes", or wants to finalize their work.
triggers:
- "/commit"
- "/push"
- "commit"
- "push"
- "commiter"
- "pousser"
- "save changes"
- "sauvegarder les changements"
allowed-tools: Bash(git:*)
user-invocable: true


Git Add, Commit & Push

Context

  • Current branch: !git branch --show-current
  • Status: !git status --short
  • Changes summary: !git diff HEAD --stat
  • Changes detail: !git diff HEAD

Instructions

  1. Run git add .
  2. Create a commit:
  3. If user provided a message, use it directly
  4. Otherwise, generate a concise message based on the changes above
  5. Push to origin: git push -u origin <branch>

Auto-generated Message Format

  • First line: short summary (50 chars max)
  • Blank line
  • Body: details if needed
  • End with: Co-Authored-By: Claude <[email protected]>

Run commands sequentially and confirm the result.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.