git-merge
Skill11 starsChanged 49 days agoApache-2.0View on GitHub
MUST USE for merging branches. Feature branch into mainline, dev into mainline, release merges. Triggers: 'merge', 'merge branch', 'merge into mainline', 'release merge', 'merge dev'.
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Zenobia000/agent-skills-startertheir own version, first seen Nov 1, 2026
- MithunWijayasiri/dotclaudetheir own version, first seen Oct 26, 2026
- futex-ai/skillstheir own version, first seen Oct 25, 2026
- microsoft/hve-coretheir own version, first seen Oct 13, 2026
- cognis-digital/skillsmiththeir own version, first seen Oct 11, 2026
- rohanhong/tmpl.general-repotheir own version, first seen Oct 11, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- microsoft/hve-core★ 1.6ksame name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- MithunWijayasiri/dotclaude★ 4same name
- Zenobia000/agent-skills-starter★ 4same name
- rohanhong/tmpl.general-repo★ 3same name
- ogromwang/skills★ 2same name
- futex-ai/skills★ 1same name
- cognis-digital/skillsmith★ 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 repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- about-konductorSkill
- adr-generatorSkill
- adversarial-code-review-pass-integritySkill
- adversarial-code-review-pass-schemaSkill
- adversarial-code-review-pass-securitySkill
- adversarial-code-reviewSkill
- adversarial-design-reviewSkill
- agents-md-authoringSkill
- app-discoverySkill
- architecture-advisorSkill
- architecture-diagram-generationSkill
- argumentation-referenceSkill
- asana-sprint-planningSkill
- asdlc-aspect-reviewSkill
- asdlc-code-simplifierSkill
- aws-service-validatorSkill
- backend-developmentSkill
- backend-reviewSkill
- claude-teams-behaviorSkill
- cmux-dispatchSkill
- code-reviewSkill
- constraintsSkill
- cost-estimationSkill
- cypress-test-implementationSkill
- decision-researchSkill
- decision-writingSkill
- delegation-protocolSkill
- deliberation-panelSkill
- design-doc-guidelinesSkill
- design-evaluationSkill
- design-impact-reviewSkill
- design-quality-checkSkill
- doc-accuracy-analyzerSkill
- document-formatsSkill
- dom-inspectionSkill
- dynamodb-designSkill
- dynamodb-validationSkill
- e2e-test-strategySkill
- external-researchSkill
- find-aws-skillsSkill
- frontend-developmentSkill
- frontend-reviewSkill
- git-workflowSkill
- historical-issues-registrySkill
- humanize-writingSkill
- iam-policy-designSkill
- infra-validationSkill
- kiro-design-generationSkill
- kiro-requirements-generationSkill
- kiro-task-generationSkill
- legacy-to-agentic-estimateSkill
- mux-dispatchSkill
- non-functional-requirementsSkill
- persistent-memorySkill
- plan-reviewSkill
- playwright-test-implementationSkill
- policy-validationSkill
- pre-planning-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
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
- Distinctive: line 16
Use this skill when:
- Distinctive: line 29
Ensure the feature branch is up to date with mainline before merging back.
- Very specific: line 101
Not using --no-commit flag — prevents pre-commit inspection of merge result
- Distinctive: line 102
Not verifying build passes before committing the merge
- Distinctive: line 109
Verify tests pass on the feature branch after Phase 1 before proceeding to Phase 2
“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.
Files
Git Merge
Overview
Merge a feature branch into mainline safely using --no-ff --no-commit for inspectable merge commits. This skill defines the standard 4-phase merge workflow that preserves branch history and allows pre-commit inspection.
Usage
Use this skill when:
- Merging a feature branch into mainline
- Merging dev into mainline
- Performing release merges
- Any branch merge that should preserve history
Trigger words: merge, merge branch, merge into mainline, release merge, merge dev
Workflow
Phase 1: Merge mainline into feature branch first
Ensure the feature branch is up to date with mainline before merging back.
git switch mainline
git pull
git switch <feature_branch>
git merge --no-commit --no-ff mainline
# Fix any merge conflicts
git commit -m "Merging mainline into <feature_branch>"
git pushPhase 2: Merge feature branch into mainline
git switch mainline
git pull
git merge --no-ff --no-commit <feature_branch>
# Fix any merge conflicts, verify build
git commit -m "Merging <feature_branch> into mainline"
git pushPhase 3: Tag release (if applicable)
git tag v<version>
git push origin v<version>Phase 4: Clean up (optional)
git branch -d <feature_branch> # delete local
git push -d origin <feature_branch> # delete remoteMerge Flags
| Flag | Purpose |
--no-ff | Always create a merge commit (no fast-forward) — preserves branch history |
--no-commit | Stage the merge but don't commit — lets you inspect and build before committing |
Anti-Patterns
- NEVER fast-forward merge into mainline — always use
--no-ff - NEVER merge into mainline without pulling latest first
- NEVER skip merging mainline into feature branch first
- NEVER force push to mainline
Quick Reference
| Task | Command |
| Update mainline | git switch mainline && git pull |
| Merge with inspection | git merge --no-ff --no-commit <branch> |
| Tag release | git tag v<version> && git push origin v<version> |
| Delete local branch | git branch -d <branch> |
| Delete remote branch | git push -d origin <branch> |
Quality Gate
CRITICAL (block merge):
- Merging into mainline without
--no-ffflag — branch history will be lost - Merging into mainline without pulling latest first — risks overwriting others' changes
- Skipping Phase 1 (merging mainline into feature branch first) — conflicts should be resolved on the feature branch, not mainline
- Force pushing to mainline
IMPORTANT (fix before proceeding):
- Not using
--no-commitflag — prevents pre-commit inspection of merge result - Not verifying build passes before committing the merge
- Merge commit message doesn't describe what was merged
SUGGESTION:
- Tag releases after merging to mainline for traceability
- Clean up feature branches after successful merge to reduce clutter
- Verify tests pass on the feature branch after Phase 1 before proceeding to Phase 2
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

