Skip to content
Agentmart
Submit a tool

git-branching-workflow

Apply a safe branching model with branch naming, commit discipline, and merge/rebase flow.

Skill by benthepsychologist

IndexedApache-2.0★ 3
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/benthepsychologist-git-branching-workflow

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Apply a safe branching model with branch naming, commit discipline, and merge/rebase flow. Use when starting implementation, preparing commits, syncing with main, and opening pull requests.

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/git-branching-workflow

Tools it pre-approves 2

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • git
  • bash

What's inside

Skill name
git-branching-workflow
Description
Apply a safe branching model with branch naming, commit discipline, and merge/rebase flow. Use when starting implementation, preparing commits, syncing with main, and opening pull requests.
License
Apache-2.0
Allowed tools
git, bash
Metadata
author: benthepsychologist · version: 1.0
Instructions
69 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Git Branching Workflow

Use this skill for repository hygiene from first change to PR creation.

## 1) Start from clean main

```bash
git fetch origin
git checkout main
git pull --ff-only origin main
git checkout -b feat/<ticket>-<short-topic>
```

Branch naming guidelines:

- `feat/<ticket>-<topic>` for features
- `fix/<ticket>-<topic>` for fixes
- `chore/<topic>` for maintenance

## 2) Commit discipline

```bash
git --no-pager status --short
# Run repo checks required by policy
git add -p
git commit -m "feat(scope): concise user-visible change"
```

Rules:

- Keep commits atomic and reviewable.
- Avoid unrelated formatting-only churn unless requested.
- Include test or validation updates when behavior changes.

## 3) Keep branch updated

```bash
git fetch origin
git rebase origin/main
# resolve conflicts, then
git rebase --continue
```

If your team requires merge commits, replace rebase with:

```bash
git merge --no-ff origin/main
```

## 4) Prepare pull request

```bash
git push -u origin <branch-name>
```

In PR description include:

- What changed
- Why it changed
- Validation performed
- Rollback/risk notes

## Safety constraints

- Never commit secrets.
- Do not force-push shared branches without explicit approval.
- Prefer `--ff-only` pulls to avoid accidental merge noise.

From benthepsychologist/specwright, Apache-2.0.

Signals

Stars
3
Forks
0
Open issues
1
Last commit (this folder)
Mar 20, 2026 (7 months ago)
Last release
Nov 10, 2025 (11 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from benthepsychologist

Cite this page

git-branching-workflow skill. Agent Mart. https://agentmart.dev/skills/benthepsychologist-git-branching-workflow (last updated 2026-10-24)