Gh push

From yofine/Mexus · View interactive version

Gh push is an AI agent skill from the GitHub repository yofine/Mexus. Commit pending changes (optional) and push the current branch to the remote. Use when the user says "push", "push the code", "commit and push", or "send it up". Includes safety checks for main-branch pushes and force-push.

How to use this skill

Skill file

/gh-push — Commit & Push

Push the current branch to the remote, optionally committing staged/unstaged changes first. Arguments passed: $ARGUMENTS.


Parse arguments

Steps

  1. Inspect state (run in parallel):
  1. Decide what to commit:
  1. Commit (if applicable) using HEREDOC:

```

git commit -m "$(cat <<'EOF'

<subject>

<body if needed>

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

EOF

)"

```

Match the repo's commit-message style (check recent git log).

  1. Push:
  1. After push:

Safety

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.