agentleFS
ucdavisucdavis/ai-skills-registry/skills/git-workflow-general/SKILL.md

git-workflow-general

Skill9 starsChanged 8 months agoMITView on GitHub

Git workflow: branch naming, conventional commits, PR conventions, and merge strategies

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Delete branches after merge.

    line 54
  2. Very specific:

    Never force-push to main or develop.

    line 55
  3. Very specific:

    Never commit .env files, secrets, or credentials.

    line 58
  4. Very specific:

    Add .env.example with placeholder values.

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Branch Naming

<type>/<short-description>
TypeUse for
featNew functionality
fixBug fixes
choreTooling, deps, config
refactorCode improvements, no behavior change
docsDocumentation only
testAdding or fixing tests
hotfixUrgent production fix

Examples: feat/user-auth, fix/login-redirect, chore/upgrade-node

Commit Messages (Conventional Commits)

<type>(<scope>): <subject>

[body — explain why, not what]

[footer — Closes #123, breaking changes]
  • Subject: imperative mood, no period, max 72 characters.
  • Body: explain why the change was made. Reference issues.
feat(auth): add JWT refresh token support

Adds sliding window refresh to prevent session expiry during active use.
Tokens expire after 7 days of inactivity. Refresh endpoint is POST /auth/refresh.

Closes #142

Pull Requests

  • Title: follows conventional commit format.
  • Description: what changed, why, and how to test it.
  • Size: one logical change per PR. Large PRs get worse reviews.
  • Reviewers: request at least one before merging.
  • Link: reference the related issue.

Merge Strategy

  • Squash and merge for feature branches → clean linear history on main.
  • Merge commit for release branches → preserves release history.
  • Delete branches after merge.
  • Never force-push to main or develop.

Rules

  • Never commit .env files, secrets, or credentials.
  • Add .env.example with placeholder values.
  • CI must be green before merging.

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.