git-workflow
Skill1 starsChanged 13 days agoMITView on GitHub
Use when starting work that needs an isolated branch or worktree, when committing, and when implementation is verified and the branch must be merged, pushed as a PR, kept or discarded
- Installs packages
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 repository36 other files it gives its agents.
- skills/writing-skills/references/agents.mdAGENTS.md
- templates/CLAUDE.mdCLAUDE.md
- backend-servicesSkill
- brainstormingSkill
- changing-legacy-codeSkill
- choosing-a-stackSkill
- ci-quality-gatesSkill
- database-changesSkill
- desktop-developmentSkill
- dispatching-parallel-agentsSkill
- docsSkill
- executing-plansSkill
- finishSkill
- implementSkill
- kit-initSkill
- mobile-developmentSkill
- new-taskSkill
- observabilitySkill
- onboarding-existing-codebaseSkill
- payments-and-moneySkill
- pos-systemsSkill
- publishing-documentsSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- security-reviewSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- ui-motionSkill
- updating-dependenciesSkill
- using-skillsSkill
- verification-before-completionSkill
- verifySkill
- web-frontendSkill
- writing-documentationSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 166 edited versions we read keep these.
6
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
- Very specific: line 25
Commit small, coherent steps, each green.
- Distinctive: line 28
Follow the project's rules on trailers (some forbid AI co-author lines) and on issue IDs in messages.
- Very specific: line 29
Follow the repo's commit linter (commitlint, a commit-msg hook): fix the message, don't bypass it.
- Distinctive: line 34
Run verification-before-completion on the final state.
- Very specific: line 36
After a Yes on HEAD, do option 2 without asking, unless the user asked for another.
- Distinctive: line 42
Remove only worktrees you created, and only after merge or discard.
- Distinctive: line 48
When the user wants CI followed:
- Distinctive: line 50
Every required check counts, not only the ones you ran locally.
- Distinctive: line 53
Never merge yourself, and never re-run a red check hoping it passes.
“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
Before starting: isolate
- Detect the current state. Fetch first (
git fetch) so the base is current.- Isolation:
git rev-parse --git-dirdiffers from--git-common-dirmeans you are already in a worktree. - Branch:
git branch --show-current. - Uncommitted changes:
git status --porcelain.
- Isolation:
- On
main/master, on a branch already merged into the base, or with someone else's uncommitted changes: create a branch from the fresh base, or ask first. Never stash or reset work you didn't create. - Parallel work needs a worktree. Use the project's convention, else
.worktrees/<branch>, and confirm the path is ignored first (git check-ignore -q .worktrees; if it isn't, add it to.gitignorein its own commit).git worktree add .worktrees/<branch> -b <branch> - Set up and record a baseline: install with the lockfile (
npm ci,pnpm i --frozen-lockfile…), then run the verification commands. Report existing failures before you change anything.
Branch names follow the repo convention. Default: <type>/<short-kebab-description>, for example feat/refund-api.
Commits
- Commit small, coherent steps, each green. Follow the repo's convention, or Conventional Commits by default (
feat(scope): add refund endpoint). The subject says what changed; the body says why, when it isn't obvious. - Stage specific paths (
git add path/…), never secrets, build output or unrelated changes. Reviewgit diff --stagedbefore committing. - Respect hooks. Never use
--no-verify,-n, orcommit --amendon pushed commits. Never rewrite shared history: nopush --force. On your own branch after the user agrees, use--force-with-lease. - Follow the project's rules on trailers (some forbid AI co-author lines) and on issue IDs in messages.
- Follow the repo's commit linter (commitlint, a
commit-msghook): fix the message, don't bypass it. When one change becomes several commits, order them so each one is green: build and config, then code, then tests, then docs. - Resolve conflicts by rebasing onto the base branch, not by merging it into a PR branch, unless the repo prefers merging. A rebase, like any change, makes the last review stale: rebase before the final review, or review again after it. Rebasing your own pushed branch uses
--force-with-lease=<branch>:<sha before the rebase>, after the user agrees.
Finishing a branch
- Run verification-before-completion on the final state. Don't offer options while tests are red. The task file is already deleted (executing-plans, Finish); the guard refuses a PR or a merge into the base while it exists.
- Determine the base branch (
git merge-base HEAD main, or ask). - After a
Yeson HEAD, do option 2 without asking, unless the user asked for another. The other options wait for the user's choice:- Merge locally into the base branch with
--ff-onlyafter the rebase, so the reviewed commit lands as it is (if the base moved, rebase and review again), re-run the tests on the merged result, delete the branch. - Push and open a PR (the default). One concern per PR; if the diff is far over about 1000 meaningful lines, suggest splitting it.
The PR body: one or two sentences on what changed and why; at most seven bullets for the decisions a reviewer needs;
Out of scope:bullets for what was deliberately left out; how it was verified (the commands run, and how each new test was seen failing first, as test-standard defines it); risks and rollback; screenshots for UI; a link to the task file at the last commit that had it (blob/<sha>/docs/tasks/…), and the issue it closes (Closes …) last. - Keep the branch as is for later.
- Discard. Require the user to type
discard. Show what will be lost (commits, files) first.
- Merge locally into the base branch with
- Remove only worktrees you created, and only after merge or discard. Never delete a worktree or branch with unpushed work that you didn't create.
Push the work branch and open the PR yourself once the review covers HEAD; merging, keeping, discarding, pushing to the base and rewriting pushed history stay the user's choice.
After a push
When the user wants CI followed:
- GitHub: run
node "<kit root>/scripts/pr-watch.ts"in the background, then end the turn; its event wakes you (references/pr-watch.md). Elsewhere:glab ci status --live, in the background. Never a polling loop. - Every required check counts, not only the ones you ran locally; an empty or partial list on the current head is no result yet.
- A failing check gets a root cause first (systematic-debugging), then a fix, commit and push. At most two attempts per check; then stop and ask. Each fix pushed to an open PR moves its head past the reviewed commit: run requesting-code-review on the new head before you call the PR ready.
- Review feedback goes through receiving-code-review; don't keep pushing around it.
- Never merge yourself, and never re-run a red check hoping it passes.
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.

