git workflows for agents: ship (stage → commit → push), hunks (selective staging). never force push, never git add -A, conventional commits. triggers on: commit, push, stage, ship, git add, hunks, selective staging.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# git
## constraints
- stage files explicitly, NEVER `git add -A` (unstaged changes may not be yours)
- NEVER force push (`--force`, `-f`, `--force-with-lease`)
- if unsure which changes are yours, ask user
- commit format: `type(scope): description` (lowercase, imperative)
- types: `feat` `fix` `docs` `style` `refactor` `perf` `test` `chore`
- prefer `gh` cli for github operations (PRs, issues, repo info) — auth is pre-configured via sops
## ship
stage YOUR changes, commit, push.
```bash
git status
git add <your-files>
git diff --staged
git commit -m "type(scope): description"
git push
```
if push fails (divergence): `git fetch origin && git rebase origin/main && git push`
## hunks
selective staging without interactive mode.
```bash
git hunks list # shows hunks with IDs
git hunks add <id> # stages specific hunk
git hunks add 1 3 5 # stage multiple hunks
```
use when you need to split changes across commits.
The line at the top of this page pins the label git:20260825.12ce506, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_dpuax7p3nwvyl3ct
GET https://markdownregistry.com/api/v1/resolve?ref=bdsqqq/dots/git
GET https://markdownregistry.com/api/v1/blob/14fcaaa2dacd244ef30cab365fb8d91062af0d3dc3d344e1ea8067cace99243e
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
bdsqqq/dots · modules/agents/skills/building-review-playgrounds/SKILL.md · Exposes hard-to-reach UI states through issue-scoped production-component fixtures. Use when existing routes or stories…
bdsqqq/dots · modules/agents/skills/buying-stuff/SKILL.md · helps choose what to buy and where to buy it, based on the user's priorities, budget, and location. use for shopping…
bdsqqq/dots · modules/agents/skills/company-money/SKILL.md · Ingests bounded Wise Gmail notifications and Nubank statements into the private local company ledger, then produces…
bdsqqq/dots · modules/agents/skills/composing-data-driven-ui/SKILL.md · Makes data-backed UI work outside its original page. Use when callers need to supply data or fetch by ID, or reuse a…
bdsqqq/dots · modules/agents/skills/data-visualization/SKILL.md · Use when creating, reviewing, or styling charts, graphs, dashboards, sparklines, or any data visualization.
bdsqqq/dots · modules/agents/skills/designing-progressive-apis/SKILL.md · Designs type-safe APIs with useful defaults and room for caller control. Use for overloads, render slots, compound…
bdsqqq/dots · modules/agents/skills/desloping-code-changes/SKILL.md · Tests whether code-change complexity is justified by behavior and local contracts. Use for a focused craft review of…
bug-ops/zeph · .zeph/skills/git/SKILL.md · Run git version control commands for repository management. Use when the user asks to check status, view history or…
sherifabdlnaby/skills · skills/git/SKILL.md · Load when planning or about to git commit, branch, push, rebase, resolve a merge conflict, open PR, stack PRs (even…
lamngockhuong/aiteamkit · plugins/atk/skills/git/SKILL.md · Carry a finished piece of work into version control: read what changed, stage it after scanning for anything that must…
dalestudy/skills · skills/git/SKILL.md · Git 버전 관리 모범 관례 및 워크플로우 가이드. 다음 상황에서 사용: (1) Git 커밋 메시지 작성 시 (Conventional Commits 규칙 적용), (2) 브랜치 생성 및 관리 시 (GitHub…