agentleFS
VizzWardVizzWard/claude-skills/git-workflow/SKILL.md

git-workflow

Skill0 starsChanged 8 months agoMITView on GitHub

Complete Git and GitHub workflow guide for projects using modern web stacks. ALWAYS use this skill when the user mentions: commit, branch, PR, pull request, issue, merge, push, rebase, stash, cherry-pick, release, tag, versioning, CHANGELOG, GitHub Actions, CI, checks, labels, GitHub Projects, create task, create branch, open PR, merge changes, deploy, hotfix, or any git/GitHub action. Also trigger when the user asks how to do something in git, what type of branch to create, how to name a commit, whether to create an issue first, or how to organize work in the repository. This skill contains the exact conventions, labels, checklists and flows the project uses — do not assume generic defaults.

  • Commits and pushes

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, ci-cd-pipelines 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.
  • Microsoft AzureSkill

    squad-commands

    Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.

    Also in 5 projects that use this

  • 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

  • GitHubSkill

    e2e-template-testing

    End-to-end validation of coordinator and agent template changes

    Also in 3 projects that use this

  • GitHubSkill

    notification-routing

    Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding

    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

  • +5 more from Azure
  • +1 more from github

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/GIT_WORKFLOW.md for the full workflow.

    line 20
  2. Distinctive:

    Never work directly on main

    line 26
  3. Distinctive:

    Every significant task starts with an issue

    line 27
  4. Very specific:

    Every PR must include Closes #N to automatically close the linked issue

    line 31
  5. Distinctive:

    GitHub Projects note: If the repo has a Default Project set under Settings, new issues are added to the project automatically.

    line 114
  6. Very specific:

    Keep an [Unreleased] section during active development

    line 133
  7. Very specific:

    Commit alongside the VERSION bump: git commit -m "chore: release vX.Y.Z"

    line 136

“Common” is measured: kept by at least 6 in 10 of the 165 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

Designed for: React · Django REST Framework · PostgreSQL · Redis · Docker Adaptable to any project — adjust stack reference and labels to fit your setup.

Read references/GIT_WORKFLOW.md for the full workflow. Below are the essential rules that apply to every git action.


Rules That Are Never Broken

  1. Never work directly on main
  2. Every significant task starts with an issue
  3. One branch = one purpose. One commit = one complete idea. One PR = one reviewable delivery
  4. Do not merge if CI checks fail — no exceptions
  5. main is always stable and deployable
  6. Every PR must include Closes #N to automatically close the linked issue

Quick Reference

Branches — format type/short-description

feature · fix · improve · refactor · test · docs · chore

Commits — Conventional Commits

<type>(<scope>): short description in imperative mood
feat · fix · refactor · test · docs · chore

Labels — always assign one from each relevant group

Type: type: feature · type: fix · type: improve · type: chore · type: docs · type: test

Priority: priority: high · priority: medium · priority: low

Area: area: backend · area: frontend · area: infra · area: repo

GitHub default: bug · enhancement · documentation · duplicate · help wanted · invalid · question · wontfix

Note: The Area and Type labels above are custom. Adapt them to your project's structure. You can create them via: gh label create "type: feature" --color "#0075ca"


Standard Flow (full cycle)

# 1. Create issue first
gh issue create --title "type(scope): description" \
  --label "type:feature,priority:medium,area:backend"

# 2. Branch from updated main
git checkout main && git pull
git checkout -b feature/name

# 3. Atomic commits
git add file.py
git commit -m "feat(scope): description in imperative mood"

# 4. Push and PR with issue close reference
git push -u origin feature/name
gh pr create --title "feat(scope): description" \
  --body "...\n\nCloses #N"

# 5. Verify CI before merging
gh pr checks --watch

# 6. Merge only if CI is green
gh pr merge --merge

# 7. Clean up
git checkout main && git pull
git branch -d feature/name

Issues — create with gh

gh issue create \
  --title "type(scope): description" \
  --body "$(cat <<'EOF'
## Description
What needs to be done and why.

## Acceptance criteria
- [ ] Criterion 1
- [ ] Criterion 2

## Technical notes (optional)
Relevant context, prior decisions, references.
EOF
)" \
  --label "type:feature,priority:medium,area:frontend"

GitHub Projects note: If the repo has a Default Project set under Settings, new issues are added to the project automatically. Status and Iteration fields must be assigned manually inside the project.


CI / GitHub Actions — checking PR status

gh pr checks             # view check status
gh pr checks --watch     # wait for results in real time
gh run list              # list recent runs
gh run view <id> --log   # view logs from a failed run

If a check fails: fix → commit → push → wait for new run → verify green → merge.


CHANGELOG — update on every release

  • Keep an [Unreleased] section during active development
  • On release: rename to [X.Y.Z] - DATE, add a new empty [Unreleased] section above
  • Categories: Added · Changed · Fixed · Removed · Security
  • Commit alongside the VERSION bump: git commit -m "chore: release vX.Y.Z"

Quick Checklist

Issue: formatted title · acceptance criteria · labels (type + priority + area)

Branch: starts from updated main · type/description name · purpose in one sentence

Commit: atomic · conventional format · no unrelated changes mixed in

PR: clear title · body with Summary/Changes/How to test · Closes #N

Merge: CI green · branch up to date with main

Release: features merged · CHANGELOG updated · VERSION bumped · tag created


Full Detail

For detailed flows (stash, rebase, cherry-pick, conflict resolution, versioning, branch protection rules), see: → references/GIT_WORKFLOW.md

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.