git-workflow
Skill1 starsChanged 32 days agoMITView on GitHub
Prepare clean branches, atomic commits and reviewable pull or merge requests without rewriting shared history or leaking secrets. Use when committing, branching, rebasing, resolving conflicts or preparing a change for review.
- Reads credentials
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 · 0
None found.
Edited · 0
None found.
Wrote their own version · 187
- 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
177 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 repository105 other files it gives its agents.
- AGENTS.mdAGENTS.md
- instructions/AGENTS.mdAGENTS.md
- accessibility-reviewSkill
- agent-evaluationSkill
- agent-guardrailsSkill
- agenthub-routerSkill
- ai-red-teamingSkill
- ansible-reviewSkill
- api-designSkill
- api-integrationSkill
- architecture-decisionSkill
- backup-restoreSkill
- caching-strategySkill
- chaos-engineeringSkill
- ci-cd-pipeline-designSkill
- cloud-cost-optimizationSkill
- cloud-iam-least-privilegeSkill
- code-reviewSkill
- container-image-optimizationSkill
- cyber-resilience-actSkill
- database-migrationsSkill
- data-pipeline-reviewSkill
- data-privacySkill
- data-quality-checksSkill
- debugging-root-causeSkill
- dependency-auditSkill
- dependency-upgradeSkill
- disaster-recovery-drillSkill
- docker-hardeningSkill
- documentationSkill
- dora-readinessSkill
- dpiaSkill
- email-deliverabilitySkill
- embedding-model-selectionSkill
- error-handling-reviewSkill
- eu-ai-act-readinessSkill
- eu-data-sovereigntySkill
- european-accessibility-actSkill
- event-driven-architectureSkill
- feature-flagsSkill
- frontend-reviewSkill
- gdpr-dsar-handlingSkill
- github-actionsSkill
- gitlab-ciSkill
- go-developmentSkill
- graphql-api-reviewSkill
- helm-chart-reviewSkill
- i18n-localizationSkill
- incident-responseSkill
- java-spring-reviewSkill
- kubernetes-reviewSkill
- linux-server-hardeningSkill
- llm-cost-analysisSkill
- llm-gateway-routingSkill
- llm-observabilitySkill
- llm-output-evaluationSkill
- llm-structured-extractionSkill
- load-testingSkill
- local-llm-servingSkill
- log-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 166 edited versions we read keep these.
3
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
- could be automatic: a setting could enforce it
- Distinctive: line 14
Commit message convention (for example Conventional Commits) and protected branch rules.
- Very specific: line 26
No force push to shared or protected branches.
- Distinctive: line 27
If a secret was committed: treat it as leaked.
- Very specific: line 28
Do not bypass hooks (--no-verify) or protections without explicit authorization.
- Distinctive: line 54
No history rewrite on shared branches.
“Common” is measured: kept by at least 6 in 10 of the 166 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 Hygiene
Goal
A history that reviewers can follow and that can be bisected and reverted safely.
Inputs
- Repository branching model (trunk-based, GitFlow, release branches) from
CONTRIBUTING.md. - Commit message convention (for example Conventional Commits) and protected branch rules.
Procedure
- Start from an updated base.
git fetchand branch from the current target (main). Name branches by intent (fix/invoice-rounding,123-export-csv). - Stage deliberately. Review
git diffandgit status; stage by file or hunk (git add -p). Never commit generated artefacts, local configuration,.envfiles or credentials. - Atomic commits. One logical change per commit, and the tests pass at every commit when practical. Subject in the imperative, ≤ 72 characters; the body explains why and references the issue.
- Keep up to date. Rebase your own unpublished branch on the target or merge the target in, per project convention. After a branch is shared, prefer merge or new commits over rewriting.
- Resolve conflicts carefully. Understand both sides; rerun tests after resolution; never pick "ours" or "theirs" for whole files without reading them.
- Open the review. Description: what, why, how to verify, risks, screenshots or logs. Keep it small (guideline: under ~400 changed lines) or split it.
- Respond to review with follow-up commits so reviewers see what changed; squash only if the project wants it, at merge time.
Hard rules
- No force push to shared or protected branches. On your own unmerged branch, use
--force-with-leaseonly when the project allows it. - If a secret was committed: treat it as leaked. Rotate it first; rewriting history does not undo exposure.
- Do not bypass hooks (
--no-verify) or protections without explicit authorization.
Decision points
- History needs fixing after push → add a corrective commit, or open a new branch and pull request, instead of rewriting.
- Large binary or generated files → Git LFS or build artefacts, not the repository.
Example fixture
fix: round invoice totals half-up per line item
Totals were rounded once at the end, which differed from the printed lines
by up to 1 cent. Refs #123Common rationalizations
| Rationalization | Reality |
| Force-pushing is fine, nobody uses this branch. | Reviewers, CI and other agents may have fetched it. Use new commits or a new branch unless the branch is provably yours alone. |
| I'll clean up the history later. | Later rarely comes, and history rewrites after review lose discussion context. Commit cleanly now. |
| Skipping the hook just this once. | Hooks encode checks the project decided on. Bypassing them needs explicit authorization. |
| The secret was only in one commit, I'll remove it. | Assume it is leaked the moment it was pushed. Rotate first; rewriting history does not revoke it. |
Acceptance checks
git diff --stagedreviewed; no secrets, debug output or unrelated files.- Each commit message explains the reason for the change.
- Branch is current with the target and CI is green, or failures are explained.
- No history rewrite on shared branches.
Output
Branch, commits and a review request with a verification section.
Safety
Destructive commands (reset --hard, clean -fdx, push --force, branch deletion) require checking what will be lost and explicit approval when others may be affected.
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.

