agentleFS
jamestorrevillasjamestorrevillas/dev-skills/.github/skills/git-workflow/SKILL.md

git-workflow

Skill4 starsChanged 9 months agoMITView on GitHub

Use this skill for anything related to Git and version control workflows. Trigger when the developer asks for help with commit messages, PR descriptions, pull request reviews, branching strategies, changelog generation, release notes, code review etiquette, or Git conventions. Keywords: commit, PR, pull request, branch, merge, release, changelog, code review, diff, git.

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ci-cd-pipelines, architectural-proposals and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • harrissohail6Skill

    ci-cd-pipelines

    CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    architectural-proposals

    How to write comprehensive architectural proposals that drive alignment before code is written

    Also in 4 projects that use this

  • Microsoft AzureSkill

    ci-validation-gates

    Defensive CI/CD patterns: semver validation, token checks, retry logic, draft detection — earned from v0.8.22

    Also in 4 projects that use this

  • Galaxy-DawnSkill

    results-report

    This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.

    Also in 3 projects that use this

  • frostneySkill

    delivery-wait

    Provides deterministic, resumable GitHub transition waits used internally by delivery workflows. Use when another workflow must await CI, merge, tag, or release state without model heartbeats.

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • +6 more from Azure

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 166 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Follow the Conventional Commits specification.

    line 10
  2. Very specific:

    If AI-assisted, note it: Co-authored-by: GitHub Copilot

    line 52
  3. Distinctive:

    Every PR should answer three questions:

    line 58
  4. Distinctive:

    Ask questions before assuming intent: "What was the reason for this approach?"

    line 132
  5. Distinctive:

    Keep PRs small and focused — one concern per PR

    line 136
  6. Distinctive:

    Don't merge until all BLOCKERs are addressed

    line 139
  7. Distinctive:

    When generating a changelog from commits, group by type:

    line 145
  8. Distinctive:

    When code was AI-assisted, be transparent in the commit:

    line 164

“Common” is measured: kept by at least 6 in 10 of the 166 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Git Workflow

Commit Message Convention

Follow the Conventional Commits specification. This enables automated versioning, changelogs, and semantic releases.

Format

type(scope): short description

[optional body — explain the WHY, not the WHAT]

[optional footer — breaking changes, issue refs]

Types

TypeWhen to Use
featNew feature
fixBug fix
refactorCode change that neither fixes a bug nor adds a feature
perfPerformance improvement
testAdding or updating tests
docsDocumentation only
choreBuild process, dependency updates, tooling
ciCI/CD configuration changes
styleFormatting, whitespace (no logic change)
revertReverting a previous commit

Examples

feat(auth): add OAuth2 login with Google

fix(api): handle null response from payment gateway

refactor(db): extract query builder into separate module

docs(readme): update local setup instructions

chore(deps): upgrade dependencies to latest versions

Rules

  • Subject line: max 72 characters, imperative mood ("add" not "added")
  • Body: explain WHY the change was made, not what (the diff shows what)
  • Reference issue/ticket IDs in footer: Closes #123 or Refs US-2111704
  • If AI-assisted, note it: Co-authored-by: GitHub Copilot

PR Description Template

Every PR should answer three questions:

## What
Brief summary of what changed.

## Why
The business or technical reason for this change.

## How
Key implementation decisions or approach taken.

## Testing
How was this verified? (unit tests, manual testing, E2E)

## Checklist
- [ ] Tests added/updated
- [ ] No new security vulnerabilities introduced
- [ ] Documentation updated if needed
- [ ] No breaking changes (or documented if there are)

Branching Strategy

GitHub Flow (Recommended for most teams)

main
└── feature/US-1234-short-description
└── fix/bug-short-description
└── chore/update-dependencies
  • Branch from main, merge back to main via PR
  • Deploy from main continuously

Git Flow (For versioned releases)

main          ← production
develop       ← integration
└── feature/* ← new features
└── release/* ← release prep
└── hotfix/*  ← urgent production fixes

Branch Naming Convention

type/ticket-id-short-description

Examples:
feat/US-2111704-query-clarity-agent
fix/US-2098686-btt-ui-button-alignment
chore/update-langchain-dependencies

Code Review Etiquette

Feedback Categories

Tag all review comments to set expectations:

TagMeaning
BLOCKERMust be fixed before merge. Breaks functionality or violates standards.
WARNINGShould be fixed. Technical debt or potential issue.
SUGGESTIONOptional improvement. Worth considering but not required.
QUESTIONAsking for clarification, not requesting a change.
NITPICKMinor style or preference. Author can decide.

Reviewer Mindset

  • Review the code, not the person
  • Explain the reason behind every BLOCKER or WARNING
  • Acknowledge good work — not just problems
  • Ask questions before assuming intent: "What was the reason for this approach?"
  • Focus on architecture and logic issues first, style issues last (that's what linters are for)

Author Mindset

  • Keep PRs small and focused — one concern per PR
  • Respond to every comment, even if just acknowledging
  • Mark resolved conversations as resolved
  • Don't merge until all BLOCKERs are addressed

Changelog Generation

When generating a changelog from commits, group by type:

## [1.2.0] - 2026-03-20

### Features
- feat(auth): add OAuth2 login with Google (#45)

### Bug Fixes
- fix(api): handle null response from payment gateway (#46)

### Performance
- perf(db): optimize query for large datasets (#47)

AI Attribution in Commits

When code was AI-assisted, be transparent in the commit:

feat(api): generate REST endpoint scaffolding

Scaffolded with GitHub Copilot, reviewed and modified by developer.
Co-authored-by: GitHub Copilot <copilot@github.com>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.