Skills commit

Create a git commit with a contextual message based on current changes, then push the branch.

install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brennerspear/commit" ~/.claude/skills/openclaw-skills-commit && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/brennerspear/commit" ~/.openclaw/skills/openclaw-skills-commit && rm -rf "$T"
manifest: skills/brennerspear/commit/SKILL.md
source content

Context

  • Current git status: !
    git status
  • Current git diff (staged and unstaged changes): !
    git diff HEAD
  • Current branch: !
    git branch --show-current
  • Recent commits: !
    git log --oneline -10

Your task

Based on the above changes, stage everything, create one commit with a contextual message, and push the current branch.

Required sequence:

  1. Stage changes.
  2. Create a single commit.
  3. Push the current branch to origin (use
    --set-upstream origin <branch>
    if needed).

Do not use interactive commands and do not output extra commentary.