Automated Commit and Push

VerifiedCaution

Commit all current changes and push to the remote. Use when the user asks to commit, push, save progress, or ship changes. Automatically runs pre-push checks with auto-fix before committing.

Sby Skills Guide Bot
DevelopmentBeginner
6/2/2026
Claude Code
#git#commit#push#version-control#workflow

Recommended for

Automated summary

Commits all current changes and pushes to the remote repository after automatic pre-push checks.

Strengths

  • Automates pre-commit checks with auto-fix
  • Follows project commit message conventions
  • Combines staging, commit, and push in one step
  • Reports commit hash and branch to the user

Limitations

  • Requires a configured remote repository
  • May fail if pre-push checks do not pass
  • Does not handle merge conflicts or multiple branches
When to use it

Use this skill when the user asks to save progress, commit changes, or push to remote.

When not to use it

Do not use it if the user only wants to run checks without committing, or if untested changes need manual review.

Security analysis

Caution
Quality score90/100

The skill executes a local pre-push script and multiple git commands, including git push. While legitimate for its purpose, running project-specific scripts and pushing changes is powerful and could be misused. No obfuscated or destructive payloads are present.

No concerns found

How this analysis is made

Examples

Commit and push all changes
Commit and push my current changes to the remote.
Save progress with a commit
Save my progress and push it.
Ship the latest changes
Ship the current changes to the repository.

name: cp description: Commit all current changes and push to the remote. Use when the user asks to commit, push, save progress, or ship changes. user_invocable: true

commit-and-push

Commit all current changes and push to the remote. All pre-push checks must pass before committing.

Instructions

  1. Run pre-push checks with auto-fix (quiet mode suppresses output on success):

    tools/pre-push --fix -q
    

    If this fails, fix the issues and re-run until it passes. Do NOT skip this step — it is the project's only gate against broken code.

  2. Check for changes:

    git status
    git diff --stat
    git log --oneline -5
    
  3. Stage all changes (including any fixes from step 1):

    git add -A
    
  4. Write a commit message following the project convention:

    • Prefix with synq: (lowercase)
    • Concise summary line describing the "why"
    • Add detail in the body for non-trivial changes
  5. Commit using a HEREDOC:

    git commit -m "$(cat <<'EOF'
    synq: <summary>
    
    <optional body>
    EOF
    )"
    
  6. Push to remote:

    git push
    
  7. Report the commit hash and branch to the user.

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-mma3jslf/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-mma3jslf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/automated-commit-and-push-mma3jslf/download' --output '.skill-downloads/automated-commit-and-push-mma3jslf/SKILL.md.part' && mv '.skill-downloads/automated-commit-and-push-mma3jslf/SKILL.md.part' '.skill-downloads/automated-commit-and-push-mma3jslf/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.

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

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-mma3jslf'

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

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-mma3jslf/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