agentleFS
shiranjitshiranjit/agentic-primer/skills/gitflow/SKILL.md

gitflow

Skill1 starsChanged 4 months agoMITView on GitHub

Source-control workflow for this project. Use this skill whenever creating branches, committing, opening or merging pull requests, promoting code between environments, tagging releases, or cleaning up branches. Also consult it before any git operation that modifies remote state, and whenever a plan includes "push", "merge", "release", or "deploy" steps.

6 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions6 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 6

    1. Mindrally/skills★ 275same name
    2. metalagman/agent-skills★ 24same name
    3. mgiovani/cc-arsenal★ 8same name
    4. MiguelSavignano/claude-code-system★ 6same name
    5. FradSer/skills★ 4same name
    6. mithraeums/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    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:

    Never delete dev, release, or production: Delete feature branches after merge to keep the tree clean.

    line 24
  2. Very specific:

    Every PR is gated: Before merge, invoke the pr-gate skill: an advisor agent reviews the PR through the project's defined review lens and …

    line 26
  3. Distinctive:

    Commit messages: imperative mood, first line ≤ 72 chars, body explains *why* when non-obvious.

    line 32
  4. Distinctive:

    Keep feature branches current with dev by merging dev in.

    line 33

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

Gitflow Skill

Branch model

feature/* ──PR──▶ dev ──PR──▶ release ──PR──▶ production
BranchPurposeDirect commitsDeletable
feature/*All development workYES (only here)YES — delete after merge
devIntegrationNONEVER
releaseQA / release candidateNONEVER
productionLive codeNONEVER

Hard rules

  1. Feature branches are the only branches that accept direct commits. Everything else changes only by PR + merge commit.
  2. Every promotion is a PR: feature → dev, dev → release, release → production. No exceptions, no fast-forward pushes, no direct merges.
  3. Never delete dev, release, or production. Delete feature branches after merge to keep the tree clean.
  4. No force-push. No history rewrite on shared branches. No branch deletion beyond merged feature branches. If an operation would delete or rewrite anything outside a feature branch: STOP and ask the Leader.
  5. Every PR is gated. Before merge, invoke the pr-gate skill: an advisor agent reviews the PR through the project's defined review lens and returns GO / NO-GO. NO-GO blocks the merge.
  6. Promotion to production additionally requires that the release candidate has passed human QA on a real device. The Leader's approval is the final gate.

Naming and hygiene

  • Branch names: feature/<short-kebab-description> (e.g., feature/estimate-approval-flow).
  • One feature per branch. Small branches merge sooner and break less.
  • Commit messages: imperative mood, first line ≤ 72 chars, body explains why when non-obvious.
  • Keep feature branches current with dev by merging dev in; do not rebase shared work.

Credentials

  • Repository operations use scoped, least-privilege access tokens retrieved from the password manager. Never request, echo, store, or commit credentials. Never widen a token's scope to make an operation easier — ask the Leader instead.

Automated promotion protocol

When a gate passes, the agent may promote automatically via the hosting provider's API (create PR → advisor review via pr-gate → merge on GO), provided: (a) the operation is on the standard promotion path above, (b) no rule in this skill is violated, and (c) production promotions still receive explicit Leader approval before merge.

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.