git-workflow-and-versioning SKILL.md skillA
git-workflow-and-versioning from addyosmani/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add addyosmani/agent-skills/git-workflow-and-versioning@git:20261031.884f646Pins git:20261031.884f646 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- addyosmani/agent-skills
- Path
skills/git-workflow-and-versioning/SKILL.md- Versions recorded
- 8
- Latest version
- git:20261031.884f646, committed Oct 31, 2026
- First version recorded
- Mar 31, 2026
- Size
- 14,403 bytes
- Repository stars
- 112,362
- License
- MIT
Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog. Use when asked to write a commit message or a changelog entry for a…
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 Workflow and Versioning
## Overview
Git is your safety net. Treat commits as save points, branches as sandboxes, and history as documentation. With AI agents generating code at high speed, disciplined version control is the mechanism that keeps changes manageable, reviewable, and reversible.
## When to Use
Always. Every code change flows through git.
## Core Principles
### Trunk-Based Development (Recommended)
Keep `main` always deployable. Work in short-lived feature branches that merge back within 1-3 days. Long-lived development branches are hidden costs — they diverge, create merge conflicts, and delay integration. DORA research consistently shows trunk-based development correlates with high-performing engineering teams.
```
main ──●──●──●──●──●──●──●──●──●── (always deployable)
╲ ╱ ╲ ╱
●──●─╱ ●──╱ ← short-lived feature branches (1-3 days)
```
This is the recommended default. Teams using gitflow or long-lived branches can adapt the principles (atomic commits, small changes, descriptive messages) to their branching model — the commit discipline matters more than the specific branching strategy.
…Read the whole file at its exact version.
How to install
mdr add addyosmani/agent-skills/git-workflow-and-versioning@sha256:d77c955f57cfafdeThe line at the top of this page pins the label git:20261031.884f646, 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.
[](https://markdownregistry.com/a/art_azesypig7wt46eia)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between Mar 31, 2026 and Oct 31, 2026, about one every 31 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261031.884f646 latest | 2026-10-31 | 884f646 | 14,403 B | A | view · diff |
| git:20261029.30187c1 | 2026-10-29 | 30187c1 | 14,211 B | A | view · diff |
| git:20261029.9c3d367 | 2026-10-29 | 9c3d367 | 14,333 B | A | view · diff |
| git:20260907.cda4542 | 2026-09-07 | cda4542 | 14,141 B | A | view · diff |
| git:20260823.b61213f | 2026-08-23 | b61213f | 14,063 B | A | view · diff |
| git:20260627.1ffce56 | 2026-06-27 | 1ffce56 | 14,000 B | A | view · diff |
| git:20260331.fea75b1 | 2026-03-31 | fea75b1 | 10,530 B | A | view · diff |
| git:20260331.702a894 | 2026-03-31 | 702a894 | 10,495 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (14403 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
addyosmani/agent-skills · 112,362 stars · license MIT · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_azesypig7wt46eia GET https://markdownregistry.com/api/v1/resolve?ref=addyosmani/agent-skills/git-workflow-and-versioning GET https://markdownregistry.com/api/v1/blob/d77c955f57cfafde73efb7641ed9a478ffaa0f61c0f31bd9fe87317702f1b60d
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.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from addyosmani/agent-skills
Every file in addyosmani/agent-skills