agentleFS
pbans-agentpbans-agent/skillpack/skills/git-workflow/SKILL.md

git-workflow

Skill0 starsChanged 7 months agoMITView on GitHub

Manages Git branching, committing, and collaboration workflows for multi-agent and solo projects. Use when the user asks to create branches, write commit messages, review staged changes, resolve merge conflicts, squash commits, rebase, cherry-pick, or follow conventional commit conventions.

118 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, typescript-patterns 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.
  • MicrosoftSkill

    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 3 projects that use this

  • cohen-lielSkill

    typescript-patterns

    TypeScript best practices and patterns. Use when writing TypeScript code, defining types, working with generics, or converting JavaScript to TypeScript.

    Also in 4 projects that use this

  • martinholovskySkill

    llm-integration

    Expert skill for integrating local Large Language Models using llama.cpp and Ollama. Covers secure model loading, inference optimization, prompt handling, and protection against LLM-specific vulnerabilities including prompt injection, model theft, and denial of service attacks.

    Also in 4 projects that use this

  • MicrosoftSkill

    cost-optimization

    Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: \"optimize Azure costs\", \"reduce cloud spending\", \"rightsize resources\", \"find idle resources\", \"orphaned disk\", \"deleted VM still charged\", \"public IP still charging\", \"reservation utilization\", \"Savings Plan coverage\", \"commitment recommendation\", \"why is pay-as-you-go still charged\". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.

    Also in 5 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 3 projects that use this

  • Vimalk0703Skill

    dependency-management

    Vet packages before adoption, audit for vulnerabilities, pin versions, and prevent dependency bloat.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 101 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use imperative mood: "add feature" not "added feature"

    line 65
  2. Distinctive:

    Do not end subject with period

    line 66
  3. Distinctive:

    Write commit message that explains the intent

    line 76
  4. Distinctive:

    Never blindly choose "ours" or "theirs"

    line 83
  5. Distinctive:

    Test after resolving: run validation, tests, linting

    line 84

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

Purpose

Provide structured Git workflows for agents working on codebases. Ensure clean history, consistent commit messages, and safe collaboration.

When to Use

  • Creating feature branches or bugfix branches
  • Writing descriptive commit messages from diffs
  • Reviewing staged or unstaged changes before committing
  • Resolving merge or rebase conflicts
  • Squashing or reorganizing commits
  • Rebasing onto main or another branch
  • Cherry-picking specific commits
  • Setting up branch naming conventions

Workflow

Creating a Branch

git checkout main
git pull --ff-only
git checkout -b <type>/<short-description>

Branch types:

  • feat/ — new feature
  • fix/ — bug fix
  • docs/ — documentation changes
  • refactor/ — code refactoring
  • test/ — adding or updating tests
  • chore/ — maintenance tasks
  • agent/ — agent-initiated changes

Writing Commit Messages

Use conventional commits:

<type>(<scope>): <imperative description>

[optional body with context]
[optional footer with breaking changes or refs]

Types: feat, fix, docs, style, refactor, test, chore, perf

Rules:

  • Subject line ≤ 72 characters
  • Use imperative mood: "add feature" not "added feature"
  • Do not end subject with period
  • Body explains WHY, not WHAT (diff shows WHAT)
  • Reference issues/PRs in footer when applicable

Before Committing

  1. git status — see what changed
  2. git diff — review unstaged changes
  3. git diff --staged — review staged changes
  4. Stage purposefully: git add -p for selective staging
  5. Write commit message that explains the intent

Merge Conflict Resolution

  1. Inspect the conflict markers in each file
  2. Understand what both sides were trying to do
  3. Preserve the intent of both changes where possible
  4. Never blindly choose "ours" or "theirs"
  5. Test after resolving: run validation, tests, linting
  6. Stage resolved files: git add <resolved-files>
  7. Continue: git rebase --continue or git commit

Squashing Commits

git rebase -i HEAD~<n>
# Mark commits to squash, keep the first as "pick"
# Write a clean combined commit message

Use squashing when:

  • Multiple small commits should be one logical change
  • Fixing typos or lint issues immediately after the original commit
  • A feature branch has excessive "WIP" commits

Rebasing

git checkout <branch>
git fetch origin
git rebase origin/main

Rebase instead of merge to keep clean history on feature branches.

File References

  • Commit Message Templates — templates for common commit types

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.