
Git workflow
Git conventions for agent-run job branches: worktrees, commits, rebasing and PR bodies
Git workflow is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 8
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Git workflow
This skill sets the git rules an agent follows while working on a job in its own worktree and branch. It covers committing in small Conventional Commits style with a defined subject format, staging deliberately, and keeping out secrets, build output and unrelated edits. It also explains how to bring a branch up to date with its base, choosing rebase for local branches and merge for branches that already have an open PR, and it bans force-pushing shared branches and skipping hooks.
The skill adds a template for writing a pull request body with sections for summary, acceptance criteria, changes, risk, testing and reviewer notes. Its rules also define the division of labour: the agent commits, while the surrounding factory handles pushing, opening, merging and closing PRs.
The guidance is plain markdown with no scripts. It relies on standard git commands and assumes the repository is already set up with a branch and a base to rebase or merge against.
When your agent uses it
Git conventions for factory jobs - one branch per job in its own worktree, small conventional commits, message format, what never to commit, keeping the branch current with base (rebase vs merge), never force-pushing shared branches, and the PR description shape. Use when committing, updating a job branch, or writing a PR description.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (5 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the forgeline plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgelineOr copy only this skill to ~/.claude/skills/git-workflow:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/git-workflow &&
cp -R "$tmp/skills/git-workflow" ~/.claude/skills/git-workflow &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/git-workflow inside it instead.
Copy the skill folder to ~/.agents/skills/git-workflow to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/git-workflow &&
cp -R "$tmp/skills/git-workflow" ~/.agents/skills/git-workflow &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/git-workflow inside it instead.
Copy the skill folder to ~/.cursor/skills/git-workflow to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/git-workflow &&
cp -R "$tmp/skills/git-workflow" ~/.cursor/skills/git-workflow &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/git-workflow inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/git-workflowOr copy the folder to ~/.gemini/skills/git-workflow yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/git-workflow:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/git-workflow &&
cp -R "$tmp/skills/git-workflow" ~/.copilot/skills/git-workflow &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/git-workflow inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.gitThen copy forgeline/skills/git-workflow into your agent's skills folder as git-workflow. Agents that support SKILL.md read one folder per skill.
What it does
- Branch per job
- Keeps each job on its own worktree and branch and forbids touching other branches or files.
- Conventional commit format
- Defines commit types, subject length limits and examples of good and bad messages.
- Secrets and artifacts exclusion
- Lists files that must never be committed, such as env files, keys, dependencies and build output.
- Rebase or merge guidance
- Explains when to rebase a local branch and when to merge into a branch already under review.
- History safety rules
- Prohibits force pushes to shared branches, amending pushed commits and changing git config or hooks.
- PR body template
- Provides a structured markdown template for summary, acceptance criteria, risk and testing notes.
Good for
- Commit my changes to the current job branch using the project's message format
- Bring my feature branch up to date with main after it fell behind
- Draft a pull request description for the finished job
- Check the working tree for files that should not be committed before I commit
- Recover from a conflict when rebasing my branch onto origin/main
Git workflow FAQ
When does Git workflow trigger?
It is meant for committing, updating a job branch, or writing a PR description, as stated in its description.
Does Git workflow run any scripts?
No. The skill contains only instructions and a template, with no scripts or additional files.
Can the agent push or merge with Git workflow?
No. The skill says the agent commits only, while the factory pushes, opens, merges and closes PRs.
Which clients does Git workflow support?
The skill does not name specific clients, so it follows the shared agent skills format.
How do I install Git workflow in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/git-workflow to use it in all your projects, or to .claude/skills/git-workflow in one project. Or install the forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.
Does Git workflow run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Git workflow?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Git workflow?
The closest alternatives to Git workflow are GitHub workflow, Git and release ops edho ferdian, Git commit, Git and Git commit.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Nabwinsaud/forgeline

Gives agents conventions for designing HTTP/JSON endpoints, errors and pagination
- Open source
- 8 GitHub stars
- Developer tools

Records a human approve, reject or retry decision on a paused Forgeline job
- Open source
- 8 GitHub stars
- Developer tools

Gives a read-only reviewer agent a prioritized procedure for checking factory PRs
- Open source
- 8 GitHub stars
- Developer tools

Guides agents through safe Postgres schema changes, backfills and sqlc regeneration
- Open source
- 8 GitHub stars
- Databases

Turns one sentence into a Forgeline job that runs through to a reviewed PR
- Open source
- 8 GitHub stars
- Developer tools

Checks whether your machine and repo are ready to run the Forgeline factory
- Open source
- 8 GitHub stars
- Developer tools





