Automated Commit and Push

VerifiedSafe

Automates the commit and push workflow: runs tests only when source code changed, analyzes the diff to generate a concise commit message, then commits and pushes. Ideal for developers who want a streamlined process to quickly save and share code changes with minimal manual steps.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude CodeCursorWindsurf
#git#commit#testing#automation

Recommended for

Automated summary

Automates running tests, crafting a commit message, and pushing code changes.

Strengths

  • Runs tests before committing to catch regressions.
  • Generates concise, consistent commit messages following project style.
  • Skips tests when only non-source files (docs, markdown, config) are changed.
  • Saves time by streamlining the commit and push workflow.

Limitations

  • Only supports pytest for .py files under src/ directory.
  • No user confirmation before commit or ability to edit the generated message.
  • May fail if remote branch has diverged (requires manual pull).
When to use it

Use this skill when you have made changes and want to commit and push them quickly without manual steps.

When not to use it

Avoid using it when you need to review changes in detail, write a custom commit message, or handle merge conflicts.

Security analysis

Safe
Quality score90/100

The skill only uses git and pytest commands (as allowed), with no destructive or exfiltrating actions. It automates a standard commit-and-push workflow after conditional testing. git add -A could stage unintended files, but that's a normal git usage risk and not a security vulnerability.

No concerns found

How this analysis is made

Examples

Commit and push all changes
Commit and push all changes.
Commit after fixing a bug
I fixed a bug in the discount calculation, commit and push.

name: commit description: Runs tests (if source changed), commits all changes, and pushes. Use when ready to commit and push code. allowed-tools: Bash(git:), Bash(pytest:)

Commit and Push

When invoked, execute these steps automatically:

1. Check what changed

git status
git diff --stat

2. Run tests (only if source files changed)

  • If .py files in src/ changed: run pytest
  • If only docs/markdown/config changed: skip tests
  • If tests fail: STOP and report the failure

3. Analyze the diff

git diff

4. Craft commit message

Project style:

  • Very short (3-8 words)
  • Lowercase
  • Action verbs: add, fix, rename, extract, remove, update
  • No period at end
  • Examples: extract calculate_discount method, add test for premium discount, fmt

5. Commit and push

git add -A
git commit -m "generated message"
git push

Output

Report:

  • ✅ Tests passed (or skipped)
  • ✅ Committed: "message"
  • ✅ Pushed

If tests fail:

  • ❌ Tests failed: [test name and error]
  • Do not commit or push

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 files

This 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.md

From the root of a test project, save the file as .skill-downloads/automated-commit-and-push-mm5t8asz/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/automated-commit-and-push-mm5t8asz' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/automated-commit-and-push-mm5t8asz/download' --output '.skill-downloads/automated-commit-and-push-mm5t8asz/SKILL.md.part' && mv '.skill-downloads/automated-commit-and-push-mm5t8asz/SKILL.md.part' '.skill-downloads/automated-commit-and-push-mm5t8asz/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(git:*), Bash(pytest:*)

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/automated-commit-and-push-mm5t8asz/SKILL.md' && test -s '.skill-downloads/automated-commit-and-push-mm5t8asz/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit' && cp -R '.skill-downloads/automated-commit-and-push-mm5t8asz' '.claude/skills/commit'

Cursor
test -f '.skill-downloads/automated-commit-and-push-mm5t8asz/SKILL.md' && test -s '.skill-downloads/automated-commit-and-push-mm5t8asz/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/commit' && cp -R '.skill-downloads/automated-commit-and-push-mm5t8asz' '.cursor/skills/commit'

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 installation
openskills install './.skill-downloads/automated-commit-and-push-mm5t8asz'

openskills read 'automated-commit-and-push-mm5t8asz'

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 sync

Manual 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/automated-commit-and-push-mm5t8asz/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.

Related skills