Commit and push

From FradSer/dotclaude · View interactive version

Commit and push is an AI agent skill from the GitHub repository FradSer/dotclaude. Creates clean conventional git commits using standard git and pushes changes to the remote repository. Use when the user asks to "commit and push", "push changes", or complete a commit followed by git push.

How to use this skill

Skill file

Commit and Push Skill (Standard Git)

Create clean, atomic Conventional Commits using standard git commands and push them to origin.

Workflow

  1. Inspect status and diff:

```bash

git status --porcelain

git diff --staged

git diff

```

  1. Stage files:

```bash

git add <file1> <file2> ...

```

  1. Commit:

Formulate a Conventional Commit message and commit:

```bash

git commit -m "<type>(<scope>): <summary>"

```

  1. Push:

Detect current branch and push:

```bash

BRANCH=$(git branch --show-current)

git push origin "$BRANCH"

```

If pushing a new branch for the first time, append -u:

```bash

git push -u origin "$BRANCH"

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.