git-workflow
Skill4 starsChanged 39 days agoMITView on GitHub
Git flow for changes: isolated branch/worktree, incremental commits, pull request and post-merge cleanup.
- Commits and pushes
187 other projects use a version of this.
Adopted by
Most recently taken up by
- KevinLoichot/everything-claude-codetheir own version, first seen Nov 29, 2026
- sodejm/copilot-operation-plugin-for-securitytheir own version, first seen Nov 29, 2026
- Megatron-HQ/Megatrontheir own version, first seen Nov 29, 2026
- dayfinggg/openai-codex-agent-skillstheir own version, first seen Nov 29, 2026
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- Tibsfox/gsd-skill-creatortheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ci-cd-pipelines, architectural-proposals 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.
harrissohail6Skillci-cd-pipelines
CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.
Also in 6 projects that use this
Microsoft AzureSkillarchitectural-proposals
How to write comprehensive architectural proposals that drive alignment before code is written
Also in 4 projects that use this
Microsoft AzureSkillci-validation-gates
Defensive CI/CD patterns: semver validation, token checks, retry logic, draft detection — earned from v0.8.22
Also in 4 projects that use this
Galaxy-DawnSkillresults-report
This skill should be used when the user asks to "write an experiment report", "summarize experimental results", "do experiment retrospection", "write a results report", "写实验总结报告", "写实验复盘", or mentions turning completed experiment artifacts into a structured, decision-oriented research report. It assumes strict analysis should come from `results-analysis` first.
Also in 3 projects that use this
frostneySkilldelivery-wait
Provides deterministic, resumable GitHub transition waits used internally by delivery workflows. Use when another workflow must await CI, merge, tag, or release state without model heartbeats.
Also in 3 projects that use this
frostneySkillnative-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
- +6 more from Azure
Other versions187 projects use a version of this.
Word for word · 1
- cedaniel200/atlas-template★ 3100% same
Edited · 0
None found.
Wrote their own version · 186
- langfuse/langfuse★ 38ksame name
- modelcontextprotocol/typescript-sdk★ 14ksame name
- JetBrains/ideavim★ 10ksame name
- jokob-sk/NetAlertX★ 7.5ksame name
- netalertx/NetAlertX★ 7.5ksame name
- Galaxy-Dawn/claude-scholar★ 6.1ksame name
- github/gh-aw★ 5.7ksame name
- modelcontextprotocol/csharp-sdk★ 4.7ksame name
- antonbabenko/pre-commit-terraform★ 3.8ksame name
- github/squad★ 3.5ksame name
176 more not listed
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 repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architectural-decision-recordsSkill
- conventional-commitsSkill
- gherkin-specsSkill
- grillingSkill
- implementation-standardsSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-workflowSkill
- session-endSkill
- session-startupSkill
- test-driven-developmentSkill
- update-harnessSkill
- using-git-worktreesSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Every rule that mentions the default branch refers to $BASE.
- Distinctive: line 39
All work for the change (artifacts, code, reports) happens inside that worktree.
- Distinctive: line 48
Verify design → code consistency.
- Distinctive: line 49
Update documentation if business rules changed.
- Distinctive: line 82
When the default branch must stay stable, use an integration branch:
- Very specific: line 103
Do not rewrite history of shared branches.
“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.
Files
Git workflow
Default branch
The examples use main. If the project uses another name (master, develop, trunk…), that name is
the default branch. Detect it once instead of assuming:
BASE=$(git symbolic-ref --short refs/remotes/origin/HEAD | sed 's#^origin/##')
echo "$BASE" # -> mainEvery rule that mentions the default branch refers to $BASE.
Start
git checkout "$BASE"
git pull origin "$BASE"Branches and worktrees are created from an up-to-date default branch.
Change cycle
1. Isolate
git worktree add .worktrees/<change> -b feature/<change>
cd .worktrees/<change>All work for the change (artifacts, code, reports) happens inside that worktree.
2. Commit
One logical change = one commit (see conventional-commits). An agent commits after each approved
step; it never accumulates work.
3. Close
- Verify design → code consistency.
- Update documentation if business rules changed.
- Open the pull request:
gh pr create --base "$BASE" --head feature/<change> --title "<type>: <change>"
gh(GitHub CLI) es opcional: si no está instalado, abre el PR desde la web con los mismos datos (base, head, título y cuerpo). No bloquea el flujo.
- The user reviews and approves
archive; commit it in the same PR, then the user merges.
4. Post-merge
git branch -d feature/<change>
git worktree remove .worktrees/<change>Simple branch exception
A feature branch in the main checkout replaces the worktree only when all of these hold:
- the human asks for it explicitly;
- the working tree is clean;
- the change branch is the same in the project and its submodules (no mixed branch state);
- the exception is recorded in the change;
- the branch is never the base branch.
Otherwise use a worktree. The pre-commit guard still blocks any commit on the base branch.
Integration branches
When the default branch must stay stable, use an integration branch:
<default branch>
└── feat/<stage>
├── feat/<stage>-part-1
└── feat/<stage>-part-2Partial PRs target the integration branch; the merge to the default branch happens once at the end.
Bootstrap exception
The initial setup (.atlas/BOOTSTRAP.md) is the only task that does not use a change worktree. It runs on
its own chore/bootstrap branch, with one commit per phase and no push unless the user asks. The user
reviews and merges that branch.
Rules
- The default branch is always clean and up to date.
- Never commit secrets.
- Do not rewrite history of shared branches.
--force-with-leaseonly on your own, unmerged branches. - Role byline on agent commits:
By <role>. - A worktree per change; no two changes in the same worktree.
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
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.

