git-workflow
Skill12 starsChanged 3 months agoMITView on GitHub
Helps with git workflows including conventional commit messages, branching strategies, merge conflict resolution, and changelog generation. Triggers on: "git commit message", "branching strategy", "resolve conflict", "generate changelog".
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 repository38 other files it gives its agents.
- agentcore-harness-builderSkill
- ai-native-sdlcSkill
- algorithmic-artSkill
- api-designSkill
- aws-well-architected-reviewSkill
- brand-guidelinesSkill
- canvas-designSkill
- cicd-pipelineSkill
- claude-apiSkill
- code-review-assistantSkill
- code-standards-adopterSkill
- database-schema-designSkill
- doc-coauthoringSkill
- docker-compose-generatorSkill
- frontend-designSkill
- fsi-compliance-checkerSkill
- gitlab-ci-kiro-pipelineSkill
- hello-worldSkill
- internal-commsSkill
- java-unit-test-generatorSkill
- kiro-project-setupSkill
- legacy-code-testingSkill
- mcp-builderSkill
- python-project-setupSkill
- rest-api-test-generatorSkill
- security-story-writingSkill
- selenium-ui-test-generatorSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- sprint-planningSkill
- sprint-security-reviewSkill
- terraform-moduleSkill
- theme-factorySkill
- threat-modelingSkill
- user-story-writingSkill
- webapp-testingSkill
- web-artifacts-builderSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 101 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
0
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 26
Ask clarifying questions only if the intent is ambiguous.
- Distinctive: line 30
When writing commit messages, follow the Conventional Commits specification:
- Distinctive: line 92
Avoid unless you have a specific reason to use it
- Distinctive: line 98
When helping resolve conflicts:
- Distinctive: line 103
Delete/modify conflict (one branch deleted, other modified)
- Distinctive: line 151
Use Keep a Changelog format
- Distinctive: line 170
Default to Conventional Commits format unless the project uses a different convention
- Distinctive: line 171
Keep commit descriptions under 72 characters
- Distinctive: line 173
When resolving conflicts, always explain why the chosen resolution is correct
- Distinctive: line 175
Never suggest force-pushing to shared branches without explicit warning
“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
Instructions
Step 1: Identify the Task
Determine which workflow the user needs:
- Commit message - writing or improving a commit message
- Branching strategy - choosing or implementing a branching model
- Conflict resolution - resolving merge conflicts
- Changelog - generating release notes from commit history
Ask clarifying questions only if the intent is ambiguous.
Step 2: Conventional Commits
When writing commit messages, follow the Conventional Commits specification:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]Types (in order of frequency):
feat- new feature (correlates with MINOR in semver)fix- bug fix (correlates with PATCH in semver)docs- documentation onlystyle- formatting, no code changerefactor- neither fix nor featureperf- performance improvementtest- adding or fixing testschore- build process, tooling, dependenciesci- CI/CD configuration changes
Rules:
- Description is lowercase, no period at end, max 72 characters
- Body wraps at 72 characters, explains what and why (not how)
- Breaking changes: add
!after type orBREAKING CHANGE:in footer
Examples:
feat(auth): add OAuth2 login with Google provider
Implements the OAuth2 authorization code flow for Google.
Stores tokens in encrypted session storage.
Closes #142fix(api): prevent race condition in concurrent order creation
Added optimistic locking with version column check.
Returns 409 Conflict when version mismatch detected.Step 3: Branching Strategies
Recommend based on team size and release cadence:
Trunk-Based Development (recommended for most teams):
- Single
mainbranch, always deployable - Short-lived feature branches (max 2 days)
- Feature flags for incomplete work
- Best for: CI/CD, small teams, frequent releases
GitHub Flow:
mainbranch + feature branches- PR-based review before merge
- Deploy from
mainafter merge - Best for: open source, SaaS with continuous deployment
GitFlow (only for complex release schedules):
main,develop,feature/*,release/*,hotfix/*- Best for: packaged software, multiple supported versions
- Avoid unless you have a specific reason to use it
Provide the branching diagram and example commands for the chosen strategy.
Step 4: Conflict Resolution
When helping resolve conflicts:
- Identify the conflict type:
- Content conflict (same lines changed)
- Rename conflict (file renamed differently)
- Delete/modify conflict (one branch deleted, other modified)
- Show both sides clearly:
<<<<<<< HEAD (your changes) [your code] ======= [their code] >>>>>>> feature-branch (incoming changes) - Suggest resolution strategy:
- Take ours (keep current branch)
- Take theirs (accept incoming)
- Merge both (combine changes)
- Rewrite (neither version is correct)
- Provide the resolved code and the commands:
# After resolving git add <resolved-files> git commit # or git rebase --continue
Step 5: Changelog Generation
Generate changelogs from conventional commits:
## [1.2.0] - 2024-01-15
### Added
- OAuth2 login with Google provider (#142)
- Rate limiting on public API endpoints (#156)
### Fixed
- Race condition in concurrent order creation (#163)
- Memory leak in WebSocket connection handler (#158)
### Changed
- Upgraded Node.js requirement to v18+ (BREAKING)Process:
- Parse commits since last tag:
git log v1.1.0..HEAD --oneline - Group by type (feat=Added, fix=Fixed, refactor/perf=Changed)
- Include PR/issue numbers
- Highlight breaking changes prominently
- Use Keep a Changelog format
Example
User says: "Write a commit message for adding email validation to the signup form"
Response:
feat(signup): add email validation with DNS MX record check
Validates email format client-side and verifies MX records server-side.
Displays inline error message when validation fails.
Debounces server check by 500ms to reduce API calls.
Closes #89Guidelines
- Default to Conventional Commits format unless the project uses a different convention
- Keep commit descriptions under 72 characters
- Recommend trunk-based development unless the team has a specific need for GitFlow
- When resolving conflicts, always explain why the chosen resolution is correct
- For changelogs, include only user-facing changes unless generating internal release notes
- Never suggest force-pushing to shared branches without explicit warning
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.

