Skip to main content
skill CX Codex

git-shortcuts — Claude Code skill: git steps from one shorthand

This skill reads a short ---prefixed token such as --cp or --cppr and runs the matching git and GitHub steps. Handy when typing commit, push and PR separately gets old.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add timschoch/skilly --skill git-shortcuts -a claude-code
Open on GitHub

What git-shortcuts does

Each letter maps to one action, and they run left to right. c commits through the /commit skill, p runs git push origin <current-branch>, pr opens a pull request with gh pr create, and m shepherds that PR to a merge using the babysit-pr protocol. A failed step stops the chain; nothing after it runs.

The skill never fires on its own. It only reacts to an explicit -- token in your message: --c, --p, --cp, --pr, --prm, --cppr, --cpprm, --ff, --release, --pub, --close. A bare c or pr inside a normal sentence leaves it alone.

The base branch is read from the repo rather than hardcoded, and an epic/* base is used only after it is confirmed on origin; otherwise the default branch wins. Repos that still carry a staging branch follow the older branching model, and the skill points you at LEGACY-STAGING.md instead. The m step needs babysit-pr present — add it first with npx -y github:timschoch/skilly add babysit-pr.

What it helps with

  • commit, push and open a PR from a single short token
  • stage only the files touched in the current session
  • carry a pull request through CI to a merge
  • pick the right base branch for a ticket cut from an epic
  • spot a repo still running the legacy branching model

Example prompts for the agent

  • --cp — commit this session's changes and push the branch
  • --cppr — commit, push, then open the pull request
  • --prm — open the PR and take it through to a merge

How to install git-shortcuts

1Skills CLI (Vercel)

npx skills add timschoch/skilly --skill git-shortcuts -a claude-code

2Manually: put the files in place

~/.claude/skills/git-shortcuts/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/git-shortcuts/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about git-shortcuts

How do I install git-shortcuts in Claude Code?

Run npx skills add timschoch/skilly --skill git-shortcuts -a claude-code. The skill lands at ~/.claude/skills/git-shortcuts/SKILL.md.

What does git-shortcuts do?

It turns a -- shorthand into a sequence of git and GitHub actions: commit, push, PR creation, merge. Letters execute in the order you type them.

Does it work outside Claude?

Yes — there are install paths for Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode, each with its own command and SKILL.md location.

Similar skills

All skills for Git and GitHub →

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor