git-workflow
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Applies this user's git conventions for branches, commits, merges, pull requests, force-pushes, and release tags whenever Claude runs any git command. For pre-push conflict detection before a push or PR, use safe-push-workflow.
- Deletes or force-pushes
- Commits and pushes
118 other projects use a version of this.
Adopted by
Most recently taken up by
- Lukk17/agent-standardstheir own version, first seen Oct 5, 2026
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
- 1pedroosilva/databricks-genie-skillstheir own version, first seen Oct 2, 2026
- vospr/context-engineering-templatetheir own version, first seen Oct 1, 2026
- fusebase-dev/fusebase-flowtheir own version, first seen Oct 1, 2026
Used with
Projects with it also use squad-commands, typescript-patterns 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.
MicrosoftSkillsquad-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 3 projects that use this
cohen-lielSkilltypescript-patterns
TypeScript best practices and patterns. Use when writing TypeScript code, defining types, working with generics, or converting JavaScript to TypeScript.
Also in 4 projects that use this
martinholovskySkillllm-integration
Expert skill for integrating local Large Language Models using llama.cpp and Ollama. Covers secure model loading, inference optimization, prompt handling, and protection against LLM-specific vulnerabilities including prompt injection, model theft, and denial of service attacks.
Also in 4 projects that use this
MicrosoftSkillcost-optimization
Optimize existing Azure resources and analyze Reservations or Savings Plans. WHEN: \"optimize Azure costs\", \"reduce cloud spending\", \"rightsize resources\", \"find idle resources\", \"orphaned disk\", \"deleted VM still charged\", \"public IP still charging\", \"reservation utilization\", \"Savings Plan coverage\", \"commitment recommendation\", \"why is pay-as-you-go still charged\". DO NOT USE FOR: cost spikes, forecasts, pricing estimates, budgets, or governance.
Also in 5 projects that use this
YepAPISkillbackground-jobs
Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.
Also in 3 projects that use this
Vimalk0703Skilldependency-management
Vet packages before adoption, audit for vulnerabilities, pin versions, and prevent dependency bloat.
Also in 3 projects that use this
- +1 more from microsoft
Other versions118 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 118
- JetBrains/ideavim★ 10ksame name
- Galaxy-Dawn/claude-scholar★ 5.7ksame name
- github/gh-aw★ 5.3ksame name
- microsoft/Generative-AI-for-beginners-dotnet★ 3.1ksame name
- microsoft/waza★ 1.4ksame name
- laolaoshiren/claude-code-skills-zh★ 876same name
- Mindrally/skills★ 266same name
- Azure/fleet★ 226same name
- povvo/claudikins-kernel★ 128same name
- extra-org/extra★ 113same name
108 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 repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-mergeSkill
- auto-shipSkill
- backlog-burn-downSkill
- cloud-infra-plannerSkill
- daily-statusSkill
- decision-briefSkill
- deploy-shieldSkill
- eddSkill
- expo-build-and-sdk-upgrade-checkerSkill
- handle-reviewSkill
- hr-resume-screenerSkill
- img-prompt-genSkill
- instagram-carouselSkill
- integratekitSkill
- investor-deck-builderSkill
- investor-form-fillerSkill
- playwright-test-generationSkill
- qa-handoffSkill
- razorpay-integrationSkill
- resume-hiring-managerSkill
- resume-recruiterSkill
- review-queueSkill
- safe-push-workflowSkill
- ship-issueSkill
- skill-fixerSkill
- skill-reviewerSkill
- tech-mentorSkill
- your-skill-nameSkill
- test-case-generatorSkill
- test-case-reviewerSkill
- test-scenario-planningSkill
- triage-issuesSkill
- ui-consistencySkill
- wp-maintenance-conductorSkill
- x-twitter-scraperSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 101 edited versions we read keep these.
7
Distinctive
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
- Distinctive: line 29
Do NOT activate when: the task has no git/version-control component (pure reading, non-repo edits).
- Distinctive: line 56
Keep the description part short and kebab-case.
- Distinctive: line 66
Never merge locally. The flow is:
- Very specific: line 70
Do not run git checkout main && git merge feature or git merge origin/main locally.
- Distinctive: line 72
Prefer merge over rebase — preserves history and avoids rewriting shared commits.
- Distinctive: line 76
Every PR must have:
- Distinctive: line 85
Default: never. No git push --force.
- Distinctive: line 87
If truly unavoidable (removing secrets, purging binaries, pre-PR history cleanup on a solo branch):
- Very specific: line 88
Use --force-with-lease - never bare --force
- Very specific: line 105
Follow semantic versioning: v1.0.0, v1.0.1, v2.0.0.
“Common” is measured: kept by at least 6 in 10 of the 101 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
Git conventions to load before running any git command - branches, commits, merges, PRs, force-push, and tags.
When to use
- Activate when: the user asks Claude to run any git command (commit, branch, merge, push, rebase, tag).
- Activate when: the user asks Claude to open, update, or handle a pull request.
- Activate proactively when: a task involves version control in any way, before acting.
- Do NOT activate when: the task has no git/version-control component (pure reading, non-repo edits).
Steps
Step 1: Name the branch
Always fetch before branching — your local copy of the remote may be stale. Branching from old code causes merge conflicts later.
git fetch originThen create your branch off the freshly fetched remote:
git checkout -b <branch-name> origin/<base-branch>Pattern: type/short-description (20 chars max including prefix).
| Type | Prefix |
| Feature | feat/ |
| Bug fix | bugfix/ |
| Refactor | refactor/ |
| Docs | docs/ |
Keep the description part short and kebab-case. If it won't fit in 20 chars, abbreviate the description - not the prefix.
Step 2: Write the commit
- Present tense ("Add auth", not "Added auth")
- Concise - no padding, no vague verbs like "update" or "fix stuff"
- Reference issues/tickets when relevant:
Add login validation #42
Step 3: Merge correctly
Never merge locally. The flow is:
- Push source branch to remote
- Merge happens on remote via PR only — never run
git mergelocally
Do not run git checkout main && git merge feature or git merge origin/main locally. Both are local merges and both are wrong. The PR is the merge.
Prefer merge over rebase — preserves history and avoids rewriting shared commits.
Step 4: Open the pull request
Every PR must have:
- Clear title (imperative, describes the change)
- Description explaining what and why
- Linked issues/tickets
- Labels
- Reviewers assigned
Step 5: Force-push only as a last resort
Default: never. No git push --force.
If truly unavoidable (removing secrets, purging binaries, pre-PR history cleanup on a solo branch):
- Use
--force-with-lease- never bare--force - Notify the team before pushing - regardless of whether you think it's a solo branch. Someone else may have fetched it; CI may have pushed to it.
git push --force-with-lease origin <branch>
# Then: message teammates with branch name and what changedStep 6: Tag releases
Annotated tags only for releases:
git tag -a v1.0.0 -m "Release v1.0.0"
git push origin v1.0.0Follow semantic versioning: v1.0.0, v1.0.1, v2.0.0.
Output
- Format: git actions executed according to these conventions, plus any branch names, commit messages, and PR text Claude produces.
- Location: the active git repository and its remote.
- Example: a feature branch
feat/login-retry, a commitAdd login retry on 401 #42, and a PR with title, what/why description, linked issue, labels, and reviewers.
Notes
- Merge is preferred over rebase to avoid rewriting shared history.
--forceis never bare;--force-with-leaseplus a team heads-up is the only sanctioned override.- These are conventions, not tooling - no external dependencies required.
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.

