agentleFS
ayushgoelayushgoel/skills/git-workflow/SKILL.md

git-workflow

Skill1 starsChanged 7 days agoMITView on GitHub

Prepare commits, branches, and stacked pull requests. Use when planning or carrying out Git change delivery, rather than for code edits or read-only Git inspection.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use squad-commands, ci-cd-pipelines 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.
  • Microsoft AzureSkill

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

  • harrissohail6Skill

    ci-cd-pipelines

    CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    architectural-proposals

    How to write comprehensive architectural proposals that drive alignment before code is written

    Also in 4 projects that use this

  • GitHubSkill

    e2e-template-testing

    End-to-end validation of coordinator and agent template changes

    Also in 3 projects that use this

  • GitHubSkill

    notification-routing

    Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • +5 more from Azure
  • +1 more from github

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 7

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

    Use local Git for branch and commit operations.

    line 20
  2. Distinctive:

    Prefer one logical, independently reviewable outcome per commit and pull request.

    line 26
  3. Distinctive:

    Add follow-up commits and use additive merges to update branches.

    line 43
  4. Distinctive:

    Follow repository commit conventions.

    line 52
  5. Distinctive:

    Add a body when needed, separated by a blank line and wrapped near 72 characters.

    line 54
  6. Distinctive:

    Before publishing, inspect the outgoing diff for credentials, personal or company information, private URLs, and machine-specific paths.

    line 56
  7. Distinctive:

    Use the affected project's verification requirements and relevant skill.

    line 61
  8. Distinctive:

    After an authorized mutation, verify the resulting commit, branch, or remote PR state.

    line 64

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

Deliver the smallest coherent, reviewable changes while preserving existing work and commit history. Explicit user instructions take precedence over this skill's guidelines.

Authority And Tools

  • A plan or review request is read-only. Commit, push, create or retarget pull requests, or merge only when requested. Authorization already given carries forward without repeated confirmation.
  • Use local Git for branch and commit operations. Use write-code for implementation and, when available, prflow for Bitbucket operations. This skill owns delivery structure, not provider-specific commands.

Change Boundaries

  • Prefer one logical, independently reviewable outcome per commit and pull request. Keep the files and resources needed for that outcome together.
  • Separate independent outcomes. Use a stack when later changes depend on earlier ones, and independent branches when they do not.
  • Choose boundaries by behavior and dependencies. A file, chart, or resource count alone does not determine how many pull requests are needed.

Branches And Stacks

  • Inspect the working tree, branch, upstream, and relevant remote or PR metadata to establish the intended base and destination. Do not assume the default branch is main, or guess a target that remains ambiguous.
  • For each branch in a stack, state its base, PR destination, dependencies, and merge order. A dependent PR targets its predecessor until that predecessor merges; include any needed retargeting in the delivery plan.
  • Inspect each branch's diff against its intended base so parent changes are not attributed to the child PR.
  • Add follow-up commits and use additive merges to update branches. Do not amend, rebase, squash, otherwise rewrite commits, or force-push.
  • On a push rejection, inspect remote state and preserve both histories. Ask when reconciliation needs an unresolved decision or additional authority.

Commits

  • Preserve unrelated work. Stage only the requested paths or hunks and inspect the staged diff before committing.
  • Follow repository commit conventions. Otherwise, use an imperative, capitalized subject of at most 50 characters with no trailing period.
  • Add a body when needed, separated by a blank line and wrapped near 72 characters. Explain the meaningful change and its reason.
  • Before publishing, inspect the outgoing diff for credentials, personal or company information, private URLs, and machine-specific paths.

Verification And Handoff

  • Use the affected project's verification requirements and relevant skill. Reuse checks already completed for the current change; rerun or broaden them when subsequent changes or unresolved risk justify it.
  • After an authorized mutation, verify the resulting commit, branch, or remote PR state. Do not infer publication or merge success from a local command's intent.
  • Report created commits and PRs, remaining work, and verification gaps. For stacks, include branch destinations, dependencies, and merge order.

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.