Commit and push

From FradSer/dotclaude · View interactive version

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

How to use this skill

Skill file

CRITICAL:

Execution

  1. Derive a concise one-sentence intent from the conversation or $ARGUMENTS.
  2. Pass --co-author "<co-author>" if explicitly specified in $ARGUMENTS or user instructions.
  3. Run primary commit command:

```bash

git-agent commit --intent "<intent>"

```

  1. If specific files are already staged, pass --no-stage:

```bash

git-agent commit --no-stage --intent "<intent>"

```

  1. On auth error (401), retry with --free:

```bash

git-agent commit --free --intent "<intent>"

```

  1. Fallback (if git-agent binary is not found): report the error and ask the user to install git-agent or run git commands manually.
  2. Push to remote repository:

```bash

git push

```

(If upstream is not set, use git push -u origin <branch>).

CLI Reference: ../../references/cli.md

Attribution & retry-ladder reference: ../../references/coauthor-attribution.md (covers --no-attribution and the --free retry)

Deterministic messages: When an exact commit message is required (e.g. version bump chore: bump version to 0.11.0), pass the full conventional message as the --intent value. The intent is used as the commit subject verbatim.

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.