# git-shortcuts

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 656 installs
- Author: timschoch
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/timschoch/skilly/tree/HEAD/bundles/workflow/skills/git-shortcuts/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/git-shortcuts

## What it 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`.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add timschoch/skilly --skill git-shortcuts -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/git-shortcuts/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-shortcuts/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add timschoch/skilly --skill git-shortcuts -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-shortcuts/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add timschoch/skilly --skill git-shortcuts -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-shortcuts/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install timschoch/skilly git-shortcuts
```

2. **Manually: put the files in place**
- File: `.github/skills/git-shortcuts/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add timschoch/skilly --skill git-shortcuts -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/timschoch/skilly --path bundles/workflow/skills/git-shortcuts
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-shortcuts/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add timschoch/skilly --skill git-shortcuts -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/timschoch/skilly/tree/HEAD/bundles/workflow/skills/git-shortcuts/SKILL.md

## When to use it
- 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
- \`--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

## Similar
- [git-worktree-runner](https://affpapa.org/en/nevibecode/skills/git-worktree-runner.md) — skill · ★ 1557
- [secrets-in-git-history](https://affpapa.org/en/nevibecode/skills/secrets-in-git-history.md) — skill · 1900 installs
- [git-workflow](https://affpapa.org/en/nevibecode/skills/ruvnet-git-workflow.md) — skill · 743 installs
- [git-workflow-strategy](https://affpapa.org/en/nevibecode/skills/git-workflow-strategy.md) — skill · 482 installs
- [conventional-git](https://affpapa.org/en/nevibecode/skills/conventional-git.md) — skill · 4600 installs
- [git-get-notification](https://affpapa.org/en/nevibecode/skills/git-get-notification.md) — skill · 3400 installs

From the same set: [timschoch/skilly](https://affpapa.org/en/nevibecode/by/timschoch/skilly.md) — 16 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
