agentleFS
jdharmonjdharmon/skills/git/SKILL.md

git

Skill0 starsChanged 37 days agoMITView on GitHub

Use this skill for project-specific git workflows: formatting commits, executing git flow operations (feature, release, hotfix), and determining version tags. Trigger on requests to commit changes, summarize branch changes, tag releases, or manage git-flow branches. Do NOT trigger for general git help or basic troubleshooting.

  • Commits and pushes

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use markdown-novel-viewer, cpp-style and 9 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.
  • OpenAnalystIncSkill

    markdown-novel-viewer

    Also in 3 projects that use this

  • clice-ioSkill

    cpp-style

    Read before writing, modifying or reviewing any C++ code — redundancy (the rule we care most about), modules and files, errors and defense, async, logging, naming, words, templates, API preferences.

    Also in 3 projects that use this

  • thechandanbhagatSkill

    sql

    Write SQL queries, optimize database performance, design schemas, and debug SQL issues. Use for database operations, query optimization, and schema design.

    Also in 4 projects that use this

  • AnthropicSkill

    comments

    Review open NPRM comment periods, log decisions, track deadlines. Use when an NPRM has a comment window open and you need to surface deadlines, decide whether to file, or record a filing / not-filing / waived decision (--decide CMT-ID).

    Also in 3 projects that use this

  • mrgoonieSkill

    databases

    Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.

    Also in 4 projects that use this

  • mrgoonieSkill

    web-testing

    Web testing with Playwright, Vitest, k6. E2E/unit/integration/load/security/visual/a11y testing. Use for test automation, flakiness, Core Web Vitals, mobile gestures, cross-browser.

    Also in 3 projects that use this

  • +3 more from mrgoonie

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always check status first: Run git status and git diff before committing.

    line 15
  2. Distinctive:

    Prefer explicit over implicit: Use full commands, not abbreviations.

    line 16
  3. Distinctive:

    When committing work, base your commit message only on the staged and unstaged changes.

    line 23
  4. Very specific:

    Do NOT use keywords like Fixes, Fix, or Fixed, as this bypasses the "Resolved" state and closes the ticket prematurely.

    line 43
  5. Very specific:

    No Prefixes: Do NOT use Conventional Commit prefixes (e.g., fix:, feat:).

    line 47
  6. Distinctive:

    No AI References: Do NOT reference AI tools (GPT, Co-Authored-By) in messages.

    line 48
  7. Very specific:

    No Junk Files: Do NOT stage generated files, build artifacts, or dependency directories (e.g., node_modules, bin/, obj/).

    line 49
  8. Distinctive:

    Use the git flow CLI extension for all git flow operations.

    line 79

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

Project-specific guidance for git operations, safe practices, and git flow branching strategy.


Core Principles

  • Always check status first: Run git status and git diff before committing.
  • Prefer explicit over implicit: Use full commands, not abbreviations.
  • Tags are the version source of truth: Version numbers are derived from semver git tags (vMAJOR.MINOR.PATCH). Never hard-code versions. Use git describe or git tag to read the current version.

1. Stage & Commit

When committing work, base your commit message only on the staged and unstaged changes.

Commit Message Conventions

  • Simple change (single area, obvious scope): Subject line only.
  • Complex change (multiple areas, non-obvious motivation): Subject line + blank line + a bulleted list summarizing each significant change.

Examples: Simple: Fixed grid styling. #123 Complex:

Update signature field behavior. #123

* Removed Sign button and moved onClick to grid
* Updated grid text styling

Azure DevOps (ADO) Integration

To associate a commit with an ADO work item without automatically closing it, include the work item number with a pound sign in the subject line (e.g., #123).

  • Do NOT use keywords like Fixes, Fix, or Fixed, as this bypasses the "Resolved" state and closes the ticket prematurely.
  • Multiple Items: Separate with commas (e.g., #123, #124).

Hard rules

  • No Prefixes: Do NOT use Conventional Commit prefixes (e.g., fix:, feat:).
  • No AI References: Do NOT reference AI tools (GPT, Co-Authored-By) in messages.
  • No Junk Files: Do NOT stage generated files, build artifacts, or dependency directories (e.g., node_modules, bin/, obj/).

2. Tags

Tags matching vMAJOR.MINOR.PATCH (e.g. v1.2.3) are the single source of truth for version numbers. Always read the current version from tags before creating a release or hotfix — never assume or hard-code it.

Reading the current version

# Most recent semver tag reachable from HEAD
git describe --tags --match "v*"

# Latest semver tag in the repo (top result is the latest)
git tag --list "v*" --sort=-version:refname

Creating and pushing tags

Version tags are created automatically when finishing a release or hotfix via git flow. Do NOT create version tags manually with git tag.

# Push tags to remote after finishing a release/hotfix
git push origin --tags

3. Git Flow Branching Strategy

Use the git flow CLI extension for all git flow operations. If a command fails because git flow is not initialized, run git flow init -d -t v first.

Branch Structure

BranchPurposeMerges into
masterProduction code—
developIntegration branchmaster (via release)
feature/*New featuresdevelop
release/*Release prep & bugfixesmaster + develop
hotfix/*Emergency prod fixesmaster + develop

Common Commands

# Features
git flow feature start <name>        # branch off develop
git flow feature finish <name>       # merge back to develop, delete branch

# Releases (version = semver without "v", e.g. 1.2.0)
git flow release start <version>     # branch off develop
git flow release finish <version>    # merge to master + develop, tag v<version>

# Hotfixes
git flow hotfix start <name>         # branch off master
git flow hotfix finish <name>        # merge to master + develop, tag

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.