agentleFS
my-chiefmindmy-chiefmind/ai-maestro/skills/git-branch/SKILL.md

git-branch

Skill6 starsChanged 48 days agoMITView on GitHub

Branch conventions for ticket work. Use when starting a ticket to create a correctly named branch off an up-to-date main, and to decide when to branch versus commit directly. Keeps main clean and branches traceable to tickets.

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    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
  1. Distinctive:

    Every ticket gets its own branch, named so anyone can trace it back to the ticket.

    line 8
  2. Distinctive:

    Always include the ticket id — it's the link between the branch, the board, and the PR.

    line 22
  3. Distinctive:

    Never work on main directly: If you find yourself on main with changes, branch first (see below), then continue.

    line 27
  4. Distinctive:

    If a protected main disallows direct pushes, that's expected: push the branch and open a PR.

    line 39
  5. Very specific:

    Commit messages: imperative subject, reference the ticket id (T-014: add token-bucket limiter).

    line 44
  6. Distinctive:

    Keep each commit coherent.

    line 46

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

Every ticket gets its own branch, named so anyone can trace it back to the ticket.

Naming

<type>/<ticket-id>-<short-slug>

feat/T-014-rate-limit-api
fix/T-021-null-session-crash
chore/T-008-bump-deps
docs/T-030-getting-started
  • type ∈ feat / fix / chore / docs / refactor / infra.
  • Always include the ticket id — it's the link between the branch, the board, and the PR.
  • Lowercase, hyphenated slug; keep it short.

Starting a branch

  1. Never work on main directly. If you find yourself on main with changes, branch first (see below), then continue.
  2. Branch from an up-to-date default branch. Resolve it — don't hardcode origin/main; plenty of repos default to master (or something else) and a hardcoded ref fails on them:
    git fetch origin
    git remote set-head origin -a   # in case the clone skipped setting origin/HEAD
    default_branch=$(git symbolic-ref --short refs/remotes/origin/HEAD | sed 's@^origin/@@')
    git switch -c feat/T-014-rate-limit-api "origin/$default_branch"
    (Under the orchestrator this happens inside a fresh worktree — see the worktree-cleanup skill.)
  3. If a protected main disallows direct pushes, that's expected: push the branch and open a PR.

Committing

  • Commit messages: imperative subject, reference the ticket id (T-014: add token-bucket limiter). Keep the body to why, not what the diff already shows.
  • Keep each commit coherent. Don't fold unrelated changes into a ticket's branch — that's a separate ticket.
  • Only commit or push when the work is asked to land — not reflexively after every edit.

Before pushing

  • Rebase onto the latest default branch if it moved (git fetch && git rebase origin/$default_branch, resolved the same way as above — don't hardcode origin/main), resolve conflicts locally, and re-run the release gate before you push the resolution.

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.