Automated summary
This skill automates the full git cycle: it stages, commits, and pushes all changes in the current directory, generating a conventional-commit message when none is supplied.
Strengths
- Runs staging, commit, and push end to end with no manual steps
- Produces conventional-commit style messages with a detailed body when more than three files change
- Initializes a git repo with a basic .gitignore when the directory is not yet tracked
- Blocks force push and --no-verify, and warns about secret-like files or failing hooks
Limitations
- `git add -A` stages everything indiscriminately, which may include unwanted files beyond the detected secrets
- Secret detection relies on filename patterns and can miss misnamed credentials
- A remote must already be configured for the push step, otherwise it stops with manual instructions
Use it when you want to quickly save and publish all current changes on the active branch without writing the commit message yourself.
Avoid it on repositories where you must hand-pick which files to commit or follow a strict branch-and-review workflow.
Security analysis
CautionThe skill only invokes standard git commands for a clearly stated purpose, with sensible guardrails (no force push, no --no-verify, stop on hook failure) and no network exfiltration beyond a normal git remote push. However, it stages and pushes everything automatically without examining content, so secrets or unwanted files can be committed despite only advisory warnings, and it will initialize repos in arbitrary directories. This warrants caution rather than a safe rating.
- •Automatically runs `git add -A` and `git push` on the whole working directory with no diff review or confirmation, which can publish unintended or sensitive files (large binaries, local configs, tokens) to a remote
- •Step 1 will `git init` in any non-repo directory, creating repositories in unexpected locations
- •Secret-file guard is advisory only ('warn the user') and does not actually exclude `.env`/`*.key`/`*.pem` from `git add -A` or block the commit/push
- •Broad Bash usage (git init, add, commit, push) — legitimate for the task but powerful and irreversible once pushed
Examples
/git-agent/git-agent fix: corriger la validation du formulaire de login/git-agent chore: sauvegarde des modifications de fin de journéename: git-agent description: Auto-add, commit, and push all changes in the current working directory disable-model-invocation: true allowed-tools: Bash, Read, Glob, Grep argument-hint: [optional commit message]
Git Agent — Auto-Commit Skill
Automatically stage, commit, and push all changes in the current working directory.
Context (injected at runtime)
- Current branch: !
git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "NOT A GIT REPO" - Repo root: !
git rev-parse --show-toplevel 2>/dev/null || echo "N/A" - Changed files (unstaged): !
git diff --name-only 2>/dev/null - Untracked files: !
git ls-files --others --exclude-standard 2>/dev/null - Staged files: !
git diff --cached --name-only 2>/dev/null
Instructions
When invoked, follow these steps exactly:
Step 1 — Verify git repo
- If the current directory is NOT inside a git repo, initialize one:
- Run
git init && git checkout -b main - Create a basic
.gitignore(Python/Node defaults) - Make an initial commit with the
.gitignore
- Run
Step 2 — Assess changes
- Run
git statusto see the full picture - Run
git diff --statfor a summary of modifications - If there are NO changes at all (nothing untracked, modified, or staged), tell the user "No changes to commit" and stop
Step 3 — Stage changes
- Run
git add -Ato stage everything
Step 4 — Generate commit message
- If the user provided an argument (
$ARGUMENTS), use that as the commit message - Otherwise, generate a descriptive message based on what changed:
- Look at the list of changed files and their types
- Use conventional commit style:
feat:,fix:,chore:,refactor:,docs:,style:,test: - Keep the subject line under 72 characters
- Add a body listing the key changes if there are more than 3 files
- Examples:
feat: add user authentication modulechore: update dependencies and config filesrefactor: restructure project layout (12 files moved)
Step 5 — Commit
- Run
git commitwith the generated message - Use a HEREDOC format for multi-line messages:
git commit -m "$(cat <<'EOF' subject line body here EOF )"
Step 6 — Push
- Check if a remote is configured:
git remote -v - If a remote exists, push to it:
git push -u origin <current-branch> - If no remote exists, tell the user no remote is configured and show them how to add one:
git remote add origin <url>- Then they can re-run
/git-agentto push
Step 7 — Report
- Show the user:
- The commit hash (short) and message
- Number of files changed
- The branch name
- Whether the push succeeded or failed (and why)
Rules
- NEVER force push
- NEVER use
--no-verify - Do NOT commit files that look like secrets (
.env,credentials.*,*.pem,*.key). Warn the user if these exist - If a pre-commit hook fails, show the error and stop — do not retry or bypass
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/git-agent-auto-commit-ms2s7c7p' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/git-agent-auto-commit-ms2s7c7p/download' --output '.skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md.part' && mv '.skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md.part' '.skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash, Read, Glob, Grep
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md' && test -s '.skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/git-agent' && cp -R '.skill-downloads/git-agent-auto-commit-ms2s7c7p' '.claude/skills/git-agent'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/git-agent-auto-commit-ms2s7c7p'openskills read 'git-agent-auto-commit-ms2s7c7p'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/git-agent-auto-commit-ms2s7c7p/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.