git-workflow
Skill2 starsChanged 3 months agoApache-2.0View on GitHub
Git branching strategy, commit standards, and PR workflow for the wafflestack project. Use when performing any git operations (commits, branches, pushes, PRs).
- 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 repository32 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accurateSkill
- adversarial-reviewSkill
- auditSkill
- autopilotSkill
- clean-upSkill
- delegateSkill
- diagramSkill
- docs-agentSkill
- docs-humanSkill
- docsSkill
- github-project-boardSkill
- github-project-managementSkill
- hygieneSkill
- issueSkill
- label-hookSkill
- md-maximalistSkill
- proseSkill
- pr-responseSkill
- qaSkill
- releaseSkill
- standupSkill
- waffle-doctorSkill
- waffle-ejectSkill
- waffle-initSkill
- waffle-installSkill
- waffle-renderSkill
- waffle-reportSkill
- waffle-setupSkill
- waffle-toggleSkill
- waffle-upgradeSkill
- waffle-validateSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 101 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
If that is a bare git, no bot identity is in effect and agent commits use the machine's own git config.
- Very specific: line 98
Never deviate from the resolved git.cmd per-invocation — in either direction.
- Distinctive: line 112
All work happens on feature branches.
- Very specific: line 149
Never skip hooks (--no-verify) or bypass signing unless explicitly asked.
- Distinctive: line 152
Prefer new commits over amending — amending overwrites history.
- Very specific: line 189
After pushing, create the PR immediately using gh:
- Distinctive: line 208
Always target main as the base branch.
- Distinctive: line 228
Reconcile the board: If the project has a Projects v2 board, make sure each linked issue's Status reflects reality — a merged-and-closed …
- Very specific: line 236
Clean up the debris: Run the clean-up skill in its non-interactive post-merge mode to delete the merged local branch and its worktree and …
- Distinctive: line 274
Do not push a tag before the PR merges, and never as a substitute for the PR.
- Distinctive: line 278
When multiple agents work in parallel on files that might conflict:
- Distinctive: line 302
Before pushing any branch, run all of these in order.
“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 Standards
Identity
This project commits agent work under the managed bot identity — the commit examples
below inject it via -c flags (git.cmd), so the machine's ambient user.name /
user.email is never what lands on an agent commit. Identity-free commands (push,
checkout, diff, log) stay a bare git. Human commits made outside these examples
keep the developer's own config and sign normally. Signing: git.cmd pins
commit.gpgsign=false (and tag.gpgSign=false), so agent commits here are deliberately unsigned and carry no
GitHub verification badge — intentional, not accidental. That posture is the recipe's,
not the machine's: never add or remove signing flags per-invocation. Every agent-made
commit must still end with:
Co-authored-by: Dustin Keeton <dustin.keeton49@gmail.com>Bot identity (config)
Reference data resolved from config — the Identity section above governs whether a bot identity is actually in effect.
- Name (
git.botName):Wafflebot - Email (
git.botEmail):bot@wafflenet.io - Signing key (
git.signingKey): "" — empty means no dedicated bot signing key. It selects a key; it enables nothing. Signing is enabled only by agit.cmdthat pinscommit.gpgsign=trueand references this key. - Per-agent identities (
git.agentIdentities) — overrides only. When a bot identity is in effect, an agent spawned by thedelegateskill commits under a derived identity by default (itsidentity.displayName, and the bot email plus-addressed asbot+<agent-slug>@…); an entry here replaces that per field. The derivation rule lives in thedelegateskill's "Per-agent commit identity" section — that is its canonical definition.{}(below) means no overrides:
{}These ship placeholder defaults. A project that opts into a bot identity overrides the name in the
committed .waffle/waffle.yaml and the email / signing key in the gitignored
.waffle/waffle.local.yaml — nested {{...}} substitution lets committed values such as git.cmd
reference the overlay's keys. Never put private key material in git.signingKey: it is a key ID or
a public-key path, and it renders into committed files.
Setting those values alone changes nothing. The opt-in is pointing git.cmd at them, so the
identity is injected via -c flags into the command examples that actually write it — commit,
and an annotated tag if you add one. checkout, push, diff and log record no committer, so
they stay a bare git. In this project git.cmd resolves to:
git -c commit.gpgsign=false -c tag.gpgSign=false -c user.name="Wafflebot" -c user.email=bot@wafflenet.ioIf that is a bare git, no bot identity is in effect and agent commits use the machine's own git
config. To opt in, set git.cmd to
git -c commit.gpgsign=false -c tag.gpgSign=false -c user.name="…" -c user.email=… referencing the two identity keys
with nested {{...}} substitution — quoting user.name (it may contain spaces) and setting
both keys explicitly in project config rather than relying on their stack defaults. See the
stack's setup note for the exact recipes and the layering rules.
Attribution trailer (config)
Reference data resolved from config — every agent-made commit ends with the attribution trailer
(git.coAuthorTrailer), which by default credits this repo's owner so agent work that reaches
the default branch counts toward their GitHub contribution graph:
- Owner name (
git.ownerName):Dustin Keeton - Owner email (
git.ownerEmail):dustin.keeton49@gmail.com
The owner email must be a verified email on that GitHub account for the credit to register
(the ID+user@users.noreply.github.com form works and stays private); credit accrues only on
default-branch commits. A project that would rather have the trailer name the bot points
git.coAuthorTrailer at Wafflebot <bot@wafflenet.io> instead. See the stack's setup note.
Signing model
Signing has three tiers. When git.cmd above is not a bare git, the resolved command is
this project's signing posture — explicit, committed, reviewable. A bare git pins no posture: the
machine's own config governs, exactly as it does for humans.
- Human — machine git config. The toolkit configures no signing for humans; your own key and account produce GitHub's "Verified" badge exactly as they always did.
- Bot and agents — whatever
git.cmdpins. The canonical recipe pinscommit.gpgsign=false: bot commits are deliberately unsigned and carry no badge (which is cleaner than the yellow "Unverified" a key GitHub cannot check would earn). A project that wants a signing bot pinscommit.gpgsign=truewithuser.signingkey(andgpg.format=sshfor an SSH key) — and must use a non-prompting signer, or every non-interactive agent commit hangs. - Per-agent keys —
git.agentIdentities[<agent>].signingKeyappends-c user.signingkey=after the base flags, so it selects the key when the base recipe signs and is inert when it does not. A per-agent leaf never flips a project-wide "do not sign".
Never deviate from the resolved git.cmd per-invocation — in either direction. Do not add
-c commit.gpgsign=false because a signing prompt hung (that is a machine/config problem: stop and
surface it), and do not sign when the recipe says not to. Changing the posture means changing
git.cmd in config, with the human's say-so.
The asymmetry matters: where git.cmd is a bare git it pins nothing, so ambient signing is simply
the human's own config doing its job — nothing to deviate from. Where the project has opted in,
ambient signing is the bug this model exists to eliminate.
Branch Strategy
Main is protected
- NEVER push directly to
main. - All work happens on feature branches.
- Changes reach
mainonly through pull requests.
Branch naming
feat/<short-description>— new featuresfix/<short-description>— bug fixesrefactor/<short-description>— restructuring without behavior changechore/<short-description>— tooling, config, docs, CI
Creating a branch
git checkout main
git pull
git checkout -b feat/my-featureCommits
Message format
<type>: <concise summary>
<optional body — why, not what>
Co-authored-by: Dustin Keeton <dustin.keeton49@gmail.com>Types: feat, fix, refactor, chore, test, docs
Rules
- End every commit message with the attribution trailer shown above — agent-made commits must be traceable.
- Pass commit messages via HEREDOC for proper formatting.
- Stage specific files by name; avoid
git add -A/git add .(risks committing secrets, generated files, or large artifacts). - Never skip hooks (
--no-verify) or bypass signing unless explicitly asked. The resolvedgit.cmdis the project's explicit signing posture — never deviate from it per-invocation, in either direction, without the human's per-run say-so. - Prefer new commits over amending — amending overwrites history.
- Comments are not spec. In deterministic files (JS, YAML, shell), keep comments short,
rare, and non-normative — the rule lives in the code and its tests; the why lives in
DECISIONS.md. When you touch a file, shrink its comment mass rather than growing it, and never grow a comment to answer a review finding. Skill and agent markdown is the exception: that prose is the program. When you do write a comment:- Say what the reader cannot see locally — a live constraint or a pointer, never a paraphrase of the code or the history of the change.
- Two lines at most; anything longer belongs in
DECISIONS.mdor the machine docs, with a one-line pointer left behind. - Typed JSDoc (
@param/@returns/@typedef) is the exception: tags plus at most one summary line, no prose paragraphs between tags.
Example
git -c commit.gpgsign=false -c tag.gpgSign=false -c user.name="Wafflebot" -c user.email=bot@wafflenet.io commit -m "$(cat <<'EOF'
feat: add data-export command
Three-phase flow: collect eligible records, confirm with the user,
then write the export with cancellation support.
Co-authored-by: Dustin Keeton <dustin.keeton49@gmail.com>
EOF
)"Push & Pull Requests
Pushing
git push -u origin feat/my-featureCreating PRs (no human in the loop)
After pushing, create the PR immediately using gh:
gh pr create --title "feat: short title" --body "$(cat <<'EOF'
## Summary
- Bullet points describing changes
## Test plan
- [ ] Lint passes (`npm run validate`)
- [ ] Types pass (`npm run typecheck`)
- [ ] Tests pass (`npm test`)
- [ ] Build passes (`npm run build`)
Co-authored-by: Dustin Keeton <dustin.keeton49@gmail.com>
EOF
)"- PR title should be under 70 characters.
- Always target
mainas the base branch. - Push and PR without waiting for human approval — the user reviews in GitHub.
- Closing keywords apply per issue reference:
Closes #1, #2only closes #1. WriteCloses #1, closes #2(one keyword per issue) — and after merge, verify the issues actually closed (see After a PR merges).
After a PR merges
Merging isn't the end of the task. Three things go stale the moment a PR lands, and the merging agent owns all three — a CI job can't reach your machine, so local cleanup and board reconciliation are a local-agent step by design (the optional post-merge CI hook stays scoped to remote-only branch hygiene; see the stack setup note):
Verify the close. Closing keywords fire only on merge, and only per issue reference (see the rule above), so confirm each linked issue actually closed — don't assume it did:
gh issue view <n> --json state -q .state # expect CLOSEDRe-close by hand any a missing or mis-written keyword left open:
gh issue close <n>.- Reconcile the board. If the project has a Projects v2 board, make sure each linked
issue's Status reflects reality — a merged-and-closed issue should read Done, not
linger in In Progress or In Review. Fix drift in place with the
github-project-managementskill, or hand the sweep to theproject-manageragent. This stays a local-agent step, not CI: it needs no API budget, and the agent that just merged already has the context to fix drift — so board verification is deliberately not wired into the post-merge CI hook (which does remote branch hygiene only). Clean up the debris. Run the
clean-upskill in its non-interactive post-merge mode to delete the merged local branch and its worktree and prune stale remote-tracking refs:clean-up git --yes--yes— thecleanUp.confirmGatekey's off token — exists for exactly this: an agent calling it right after it merges a PR (it skips the confirmation prompt; see theclean-upskill). The remote head branch is removed by GitHub's auto-delete setting or the optionalwaffle-post-merge-hookworkflow, but the local branch and worktree are always the merging agent's job — nothing remote can delete them.
Releases
A release is a lightweight tag vX.Y.Z on the bump commit — nothing more. The flow is
PR-first, so it never violates Main is protected:
- Bump via a PR. On a
chore/bump-X.Y.Zbranch:npm version X.Y.Z --no-git-tag-version(updatespackage.json+ lockfile, no tag), sync any other documented version locations, stampCHANGELOG.md([Unreleased]→[X.Y.Z] - <date>, leave a fresh empty[Unreleased]), re-render if generated output tracks the version, run the pre-flight, then open the PR — its body carries the consumer-impact notes. - Tag on merge. The tag is pushed after the bump PR merges, as a lightweight tag on
the merge commit — so
vX.Y.Zalways points at the commit that actually carries that version onmain. Never tag the feature branch pre-merge, and nevergit push origin maindirectly for a release.
Two ways the tag gets pushed:
- Automated (preferred): label the bump PR with the release label; the
waffle-release-hookworkflow pushesvX.Y.Zon merge. Thereleaseskill does the whole bump-PR half (level selection, bump, CHANGELOG stamp, pre-flight, PR, label) — use it rather than doing these steps by hand. - Manual fallback (hook not installed): after the merge, run
git tag vX.Y.Z <merge-commit-sha>, thengit push origin vX.Y.Z— two separate commands.
Do not push a tag before the PR merges, and never as a substitute for the PR.
Parallel Work (Worktrees + Named Agents)
When multiple agents work in parallel on files that might conflict:
Use git worktrees to isolate work:
git worktree add .claude/worktrees/feat-x feat/feature-xKeeping worktrees under
.claude/worktrees/keeps them out of the repo's sibling directories and out of version control.- Lock files — if two agents suspect they'll edit the same file, one should finish first. Use
TaskList(it takes no arguments) to see what every other agent has in flight — subject, status, and owner. - Conflict alerting — if you detect a potential conflict with another agent's work, notify them immediately:
SendMessage(to: "<agent-name>", message: "Conflict: I'm editing <file>", summary: "conflict warning"). Clean up worktrees after merging:
git worktree remove .claude/worktrees/feat-x
Coordination and isolation are orthogonal — named agents provide coordination (task tracking via TaskCreate/TaskUpdate, messaging via SendMessage(to: "<name>")), worktrees provide isolation (separate working directories). Use both together for parallel agent work. There is no team to set up: the session has a single implicit team, and the Agent tool's team_name parameter is deprecated and ignored — a bare name: is all an agent needs to be addressable.
Pre-flight Checklist
Before pushing any branch, run all of these in order. Do not push if any fail:
npm run validate— lint/format checks passnpm run typecheck— types passnpm test— all tests passnpm run build— build succeedsgit diff main...HEAD— review all changes since branching
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.

