Agent skill

Git Workflow

by ericrisco in ericrisco/rsc-harness

A skill your agent uses when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a…

MITAuto-check passedDevelopment

Install Git Workflow

skills CLI
$ npx skills add ericrisco/rsc-harness --skill git-workflow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ericrisco/rsc-harness git-workflow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/git-workflow .claude/skills/git-workflow && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-workflow
GitHub stars
156
Token cost
~3.5k tokens
SKILL.md length
1,290 words
Files
5 (incl. references)
Skills in repo
229
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a…

  • Scoping a branch
  • SKILL.md covers Branch naming, Commit grammar — gitmoji +…, History hygiene — rebase,… and Releases, plus 3 more sections
  • Calls git and gh
  • Fixing a commit message

What it does

Git Workflow is an agent skill from ericrisco/rsc-harness. Use when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a versioned release — the portable git-convention layer for any repo. Covers gitmoji + Conventional Commits, SemVer tags, branch hygiene, force-push safety and gh pr/release mechanics. NOT the land-it decision and pre-ship checklist (that is ship), NOT an isolated checkout before coding (that is worktrees), NOT CI/CD release automation (that…

Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `evals/README.md`, `evals/cases.yaml` and `references/gitmoji.md`).

It sits in Development, covering Git workflow, Commit messages and Git worktrees. It works with Git. The repository describes itself as: Your agent invents things because it has no memory, and can't touch your database because it has no arms. rsc is the meta-harness that gives it both, plus the trade to know the… The licence is MIT.

When your agent uses it

  • Scoping a branch
  • Fixing a commit message
  • Picking the gitmoji for a commit
  • Untangling history (rebase versus merge versus squash)

Example prompts

  • “/git-workflow”

What it can do on your machine

Read from SKILL.md and the folder at commit 92fde8f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Workflow loads about 3.5k tokens when it runs, and up to ~6.5k if it reads all its reference files. Until then it costs about 138 tokens; SKILL.md has 1,290 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~138
When it runs · the whole SKILL.md, loaded when a task matches
~3.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ericrisco/rsc-harness at commit 92fde8f, republished under its MIT licence (© ericrisco). 1,290 words, ~3,461 tokens.

Download SKILL.mdSave it as .claude/skills/git-workflow/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
git-workflow
description
Use when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a versioned release — the portable git-convention layer for any repo. Covers gitmoji + Conventional Commits, SemVer tags, branch hygiene, force-push safety and gh pr/release mechanics. NOT the land-it decision and pre-ship checklist (that is `ship`), NOT an isolated checkout before coding (that is `worktrees`), NOT CI/CD release automation (that is `deployment`).
tags
git, version-control, conventional-commits, gitmoji, semver, pull-request
recommends
ship, worktrees, deployment, github-actions
origin
risco

git-workflow — the grammar and hygiene of version control

Git history is a message to the next human who reads git log, runs git blame on a broken line, or bisects a regression at 2am. That human is usually future-you. Every rule in this skill exists to make the next reader's job faster, not to make this moment cheaper. A repo with legible branch names, conventional commits, and a clean linear narrative is a repo you can reason about; a repo with wip, fix stuff, and force-pushed shared history is one you fight.

This is the portable convention layer. It is independent of any SDD phase or CI platform — it is the grammar that ../ship/SKILL.md, ../worktrees/SKILL.md, and ../deployment/SKILL.md all lean on. It does not decide whether to land the work (that is ship) and it does not automate releases in a pipeline (that is deployment). It tells you how to name, commit, untangle, and tag — correctly.

Branch naming

Name a branch from its intent, prefixed by its kind, as a kebab-case slug. Keep it short-lived: hours to days, not weeks. Long branches drift from main and turn into merge pain.

PrefixUse forWhy
feat/a new capabilitymatches the feat commit type; signals a MINOR
fix/a bug fixmatches fix; signals a PATCH
hotfix/an urgent fix landing straight to productionflags "skip the slow path" to reviewers
chore/tooling, deps, config — no product behaviorkeeps non-feature noise out of the feature log
docs/documentation onlyreviewers can fast-track, no test gate needed
refactor/restructure without behavior changesets the expectation: tests stay green, no new behavior

Slug rules: derive it from the issue title or the one-sentence intent, lowercase, dash-separated, no spaces or / inside the slug. Optionally suffix the issue number.

text
Bad   my-stuff            (kind unknown, intent unknown)
Bad   eric-branch-2       (names the author and a counter, not the work)
Good  feat/oauth-pkce-flow
Good  fix/expired-refresh-token-401
Good  chore/bump-node-22

Commit grammar — gitmoji + Conventional Commits

Write every commit to Conventional Commits 1.0.0, opened by a gitmoji. The structure:

text
<gitmoji> type(scope)!: subject

body — what changed and why, wrapped, optional

BREAKING CHANGE: description of the incompatible change
Fixes #123
  • The gitmoji is mandatory and comes first — the intention of the change, readable in one glyph when you scan git log --oneline. type is what tooling reads; the emoji is what humans read.
  • type is mandatory. scope in parentheses is optional. ! before the colon marks a breaking change.
  • Subject: imperative mood ("add", not "added"/"adds"), ≤72 chars, no trailing period.
  • Body explains why, not what the diff already shows. Separate from subject by a blank line.
  • Footers go last. Fixes #123 / Closes #123 in the body auto-closes that issue when the PR merges.

Type → SemVer effect:

TypeSemVer bumpNotes
featMINORa new capability
fixPATCHa bug fix
docs, chore, refactor, test, build, ci, perf, style, revertnoneallowed, but no implicit version bump
any type with ! or a BREAKING CHANGE: footerMAJORoverrides the above regardless of type

BREAKING CHANGE must be uppercase in the footer; the type/scope units are case-insensitive but write them lowercase by convention.

Type → gitmoji, the everyday set (the full 75-emoji table, and why the emoji never replaces the type, are in references/gitmoji.md):

TypegitmojiTypegitmojiTypegitmoji
feat✨refactor♻️build📦️
fix🐛test✅style🎨
docs📝perf⚡️revert⏪️
chore🔧ci👷breaking💥

Pick by intention, not by which file changed, and prefer the specific one: 🚑️ for a production hotfix, 🩹 for a trivial non-critical fix, 🔥 for a deletion, 🚚 for a rename, ⬆️ for a dep bump, 🔖 for a release commit.

text
Bad   fix stuff
Bad   updates
Bad   Fixed the login bug.            (past tense, capitalized, trailing period)
Bad   fix(auth): reject expired refresh tokens        (no gitmoji)
Bad   ✨ added a search endpoint                       (gitmoji but no type → no derivable bump)
Good  🐛 fix(auth): reject expired refresh tokens
Good  ✨ feat(api): add /v2/search endpoint with cursor paging
Good  ♻️ refactor(parser): extract token scanner, no behavior change

A breaking change, both forms equivalent:

text
💥 feat(api)!: drop the legacy /v1 search endpoint

BREAKING CHANGE: /v1/search is removed; callers must migrate to /v2/search.

If the repo runs a strict conventional parser (commitlint, semantic-release) it anchors the type at position 0 and rejects the emoji prefix. Either widen its headerPattern — the config is in references/gitmoji.md — or move the emoji behind the header (feat(api): ✨ add cursor paging), which every parser accepts. Both forms satisfy this convention; dropping the gitmoji does not.

Authorship is always Eric. Never add a Co-Authored-By: Claude trailer, never a "Generated with" footer, never any line crediting an AI tool — in a commit or a PR body. The work is Eric's; the agent is a tool, like the compiler.

History hygiene — rebase, merge, or squash?

Decide by who else has the commits. The lease rule below is non-negotiable.

SituationDo thisWhy
Private branch, only you have it, want linear historygit rebase main, then git push --force-with-leaserebase rewrites hashes; safe because nobody built on them
Branch others have pulled / built ongit merge main — never rebase itrebase changes every hash; collaborators' work diverges
Noisy PR (many wip commits)squash-merge into one gitmoji + conventional commitmain gets one meaningful entry, not 9 scratch commits
Already pushed, shared, and you rewrote itSTOP — coordinate, or git revert insteadforce-pushing shared history breaks everyone downstream

After a rebase, push with --force-with-lease, never bare --force:

bash
git push --force-with-lease   # refuses if the remote moved since you fetched — catches a teammate's push
git push --force              # blindly overwrites — can erase a teammate's commits

The interactive cleanup loop (rebase -i, fixup/squash/reword/drop, --autosquash, the conflict→continue cycle, and recovery via git reflog) is a long branchy procedure — see references/interactive-rebase.md rather than reaching for it on every commit.

Show full SKILL.md (497 more words)Show less

Releases

Derive the version bump from the commit log, never by guessing. Scan the commits since the last tag:

  • any BREAKING CHANGE: / ! → MAJOR (v1.4.2 → v2.0.0)
  • otherwise any feat: → MINOR (v1.4.2 → v1.5.0)
  • otherwise only fix:/others → PATCH (v1.4.2 → v1.4.3)

Tag with the vMAJOR.MINOR.PATCH form, annotated, then create the release with auto-generated notes:

bash
git tag -a v2.0.0 -m "v2.0.0"
git push origin v2.0.0
gh release create v2.0.0 --generate-notes              # notes via the GitHub Release Notes API
gh release create v2.0.0 --generate-notes --draft      # stage notes, publish later
gh release create v2.0.0-rc.1 --generate-notes --prerelease

GitHub auto-assigns the "latest" label by semver order unless you set it. With release immutability enabled, a published release's tag cannot be edited or deleted — get the version right before you publish.

text
Bad   added a feature + a breaking config change, tagged v1.5.0   (breaking change → must be MAJOR)
Good  same changes → v2.0.0, bump derived from the BREAKING CHANGE footer in the log

Automating any of this on tag push (a release.yml workflow, OIDC to a registry) is deployment — see ../deployment/SKILL.md. This skill covers the manual/local release act.

PR mechanics — then hand off to ship

Open the PR with autofilled title/body from the commits, against the right base:

bash
gh pr create --fill --base main          # title/body from commits; --base falls back to repo default

Put Fixes #123 in the body to link and auto-close the issue on merge. A PR body should let the reviewer understand the change without reading every line of the diff.

The decision to land — direct-merge vs PR vs park, the pre-ship safety checklist, the actual merge — belongs to ../ship/SKILL.md. This skill only makes the branch, commits, and PR body clean enough to hand over. Setting up the isolated checkout before you start coding is ../worktrees/SKILL.md.

Anti-patterns

Anti-patternWhy it hurtsInstead
git push --force on a shared branchsilently erases teammates' commits--force-with-lease, or don't rewrite shared history
git commit -m "wip" / "fix" / "updates"the log carries zero signal for the next reader<gitmoji> type(scope): imperative subject
Commit message with no gitmojigit log --oneline reads as a wall of undifferentiated textpick the intention's emoji (references/gitmoji.md)
Mixing unrelated changes in one commitcan't revert or review one concern in isolationone logical change per commit
Long-lived branch (weeks)diverges from main, merge becomes a battleshort-lived; rebase or merge main in often
Hand-computing the semver bumpbreaking change shipped as a MINOR → broken downstreamderive the bump from the commit log
Rebasing a public/shared branchrewrites hashes others built onmerge shared branches; rebase only private ones
Committing generated/secret filesleaks credentials, bloats history irreversibly.gitignore; rotate any secret that slipped in
BREAKING CHANGE lowercasetooling won't detect it → wrong (too-low) bumpuppercase BREAKING CHANGE: in the footer
PR with no descriptionreviewer reverse-engineers intent from the diff--fill plus a why, link the issue
Tagging a release with no notesusers can't tell what changedgh release create --generate-notes
Co-Authored-By: Claude / "Generated with" footerforges authorship onto a toolauthor is always Eric; no AI attribution

Checklist — before a PR or a release

  • Working tree clean (git status), no stray or generated files staged.
  • Branch rebased on / merged with current main; no avoidable conflicts.
  • Every commit carries its gitmoji and a conventional header; wip/scratch commits squashed away.
  • No secrets, no AI-attribution trailers.
  • PR body explains the why and links the issue (Fixes #).
  • (Release) version bump derived from the commit log, tag is vX.Y.Z, annotated.
  • (Release) gh release create vX.Y.Z --generate-notes; version confirmed before publishing (immutable once published).

© ericrisco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/git-workflow of ericrisco/rsc-harness.

  • SKILL.md
  • evals/README.md
  • evals/cases.yaml
  • references/gitmoji.md
  • references/interactive-rebase.md

Open the folder on GitHubat commit 92fde8f

Compare with similar skills

Git Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Workflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Workflow this skillericrisco/rsc-harness156—~3.5kAutomated safety check: PassMIT
Git Committisfeng/Easydict15k—~535Automated safety check: PassGPL-3.0
Worktree Rebase Mergetisfeng/Easydict15k—~408Automated safety check: PassGPL-3.0
Conventional Gitsamber/cc-skills228—~1.8kAutomated safety check: PassMIT
Oma Scmfirst-fluke/oh-my-agent1.3k—~3.3kAutomated safety check: NotesMIT
Git WorkflowEliasOulkadi/shokunin114—~2.4kAutomated safety check: NotesMIT

Similar skills

  • Git Commit

    tisfeng/Easydict

    起草、创建或汇报 Angular-style 本地 Git 提交。用于明确的提交交付;分支集成使用 worktree-rebase-merge,不 push。

    15k GitHub stars~535 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Worktree Rebase Merge

    tisfeng/Easydict

    将当前 worktree 的任务提交 rebase 到本地目标分支,并从目标 worktree 合并。用于明确要求本地集成;仅创建提交使用 git-commit。

    15k GitHub stars~408 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Conventional Git

    samber/cc-skills

    Conventional Commits v1.0.0 branch naming, worktree naming, and commit message standards for GitHub and GitLab projects.

    228 GitHub stars~1.8k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Oma Scm

    first-fluke/oh-my-agent

    SCM (software configuration management) and Git — branching, merges, conflicts, worktrees, baselines, audit readiness, plus Conventional Commits and safe staging.

    1.3k GitHub stars~3.3k tokensUpdated yesterday
    DevelopmentAuto-check: notes
  • Git Workflow

    EliasOulkadi/shokunin

    Automate the complete Git development workflow — create feature branches with conventional naming, atomic commits with conventional commit messages, interactive rebase, squash merges, PR body…

    114 GitHub stars~2.4k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed

More from ericrisco/rsc-harness

All 229 skills in this repo
  • Ab Testing

    ericrisco/rsc-harness

    A skill your agent uses when designing or analyzing a controlled experiment — falsifiable hypothesis, sample size from an MDE, reading significance/CI/power, CUPED, or rescuing tests that won't go…

    156 GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Accessibility

    ericrisco/rsc-harness

    A skill your agent uses when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast…

    156 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Ads

    ericrisco/rsc-harness

    A skill your agent uses when running or fixing paid acquisition on Google or Meta — campaign structure (Performance Max, Demand Gen, Search, Advantage+), platform-fit creative, budget/scaling rules…

    156 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Agent Eval

    ericrisco/rsc-harness

    A skill your agent uses when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual…

    156 GitHub stars~3.2k tokensUpdated yesterday
    Auto-check passed
  • AI Media

    ericrisco/rsc-harness

    A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…

    156 GitHub stars~3.3k tokensUpdated yesterday
    Auto-check passed
  • Analytics

    ericrisco/rsc-harness

    A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.

    156 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Git Workflow

What does Git Workflow do?

A skill your agent uses when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a…. Git Workflow is an agent skill from ericrisco/rsc-harness. Use when naming or scoping a branch, writing or fixing a commit message, picking the gitmoji for a commit, untangling history (rebase versus merge versus squash), or cutting a versioned release — the portable git-convention layer for any repo.

When should I use Git Workflow?

Git Workflow fits situations like: scoping a branch; fixing a commit message; picking the gitmoji for a commit; untangling history (rebase versus merge versus squash).

How do I install Git Workflow in Claude Code?

Run `npx skills add ericrisco/rsc-harness --skill git-workflow -a claude-code`. Or copy the skill folder (skills/git-workflow in ericrisco/rsc-harness) into .claude/skills/git-workflow in your project. Claude Code loads it when a task matches its description.

How do I install Git Workflow in Codex?

Run `npx skills add ericrisco/rsc-harness --skill git-workflow -a codex`. Or copy the skill folder (skills/git-workflow in ericrisco/rsc-harness) into .agents/skills/git-workflow in your project. Codex loads it when a task matches its description.

Can I use Git Workflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ericrisco/rsc-harness --skill git-workflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-workflow, .gemini/skills/git-workflow, .github/skills/git-workflow and .opencode/skills/git-workflow in your project.

What does Git Workflow need to run?

Going by SKILL.md and its folder, Git Workflow needs the command-line tools its instructions call (git and gh).

Does Git Workflow access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Workflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Workflow use?

Git Workflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Workflow use?

About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3k tokens, read only when the agent opens those files.

What are the alternatives to Git Workflow?

Skills that share tags, products or a category with Git Workflow: Git Commit (tisfeng/Easydict, 15k stars), Worktree Rebase Merge (tisfeng/Easydict, 15k stars), Conventional Git (samber/cc-skills, 228 stars) and Oma Scm (first-fluke/oh-my-agent, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Workflow?

ericrisco (a GitHub user) maintains it in ericrisco/rsc-harness, which has 156 GitHub stars. The repository holds 229 skills in this directory. The repository was last updated on October 6, 2026.

Source: ericrisco/rsc-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.