git-workflow
Skill119 starsChanged 5 months agoMITView on GitHub
Work safely with Git — keep changes scoped and reviewable, never overwrite the user's work, and produce clear history. Use before editing, branching, staging, or committing.
- Reads credentials
188 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- juninmd/skillstheir own version, first seen Nov 8, 2026
- jDxve/avengers-kittheir own version, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- haythamasalama/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use squad-commands, ci-cd-pipelines 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.
Microsoft AzureSkillsquad-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 5 projects that use this
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
GitHubSkille2e-template-testing
End-to-end validation of coordinator and agent template changes
Also in 3 projects that use this
GitHubSkillnotification-routing
Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding
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
- +5 more from Azure
- +1 more from github
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- langfuse/langfuse★ 37ksame name
- modelcontextprotocol/typescript-sdk★ 14ksame name
- JetBrains/ideavim★ 10ksame name
- jokob-sk/NetAlertX★ 7.4ksame name
- netalertx/NetAlertX★ 7.4ksame name
- Galaxy-Dawn/claude-scholar★ 5.9ksame name
- github/gh-aw★ 5.6ksame name
- modelcontextprotocol/csharp-sdk★ 4.6ksame name
- antonbabenko/pre-commit-terraform★ 3.8ksame name
- github/squad★ 3.4ksame name
178 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 repository16 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- architecture-reviewSkill
- code-reviewSkill
- documentationSkill
- mcp-toolsSkill
- project-architectureSkill
- prompt-renderingSkill
- refactoringSkill
- runtime-engineSkill
- senior-python-engineeringSkill
- sidecar-auth-contextSkill
- skill-authoringSkill
- testingSkill
- vercel-react-best-practicesSkill
- yaml-schemaSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
5
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
- Very specific: line 10
Do not edit this file directly.
- Distinctive: line 23
Before editing files (inspect current state first).
- Distinctive: line 35
Inspect before editing: Run git status and git diff to understand uncommitted work.
- Distinctive: line 39
Commit only when asked: Do not auto-commit; never force-push shared branches or skip hooks.
- Distinctive: line 41
Clear messages: Use a conventional, scoped commit style.
- Very specific: line 42
No secrets: Never stage .env, credentials, or large binaries.
- Distinctive: line 56
Use a conventional prefix:
“Common” is measured: kept by at least 6 in 10 of the 165 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
<!--
This file is generated by tools/skills.
Do not edit this file directly.
Edit .ai/skills/git-workflow.md and run `make generate-ai`.
-->Skill: Git Workflow
Purpose
Work safely with Git: keep changes scoped and reviewable, never overwrite the user's work, and produce clear history.
When to Use This Skill
- Before editing files (inspect current state first).
- Branching, staging, or committing.
- Preparing a change set or pull request for review.
Files to Read First
AGENTS.md(git safety + scope rules).docs/DEVELOPMENT_WORKFLOW.md.- The current diff/status of the repository.
Core Principles
- Inspect before editing. Run
git statusandgit diffto understand uncommitted work; never clobber the user's changes. - Keep changes scoped to one task; avoid massive unrelated diffs.
- Don't reformat or move files outside scope.
- Commit only when asked. Do not auto-commit; never force-push shared branches or skip hooks.
- Clear messages. Use a conventional, scoped commit style.
- No secrets. Never stage
.env, credentials, or large binaries.
Process
- Inspect:
git statusandgit diff(andgit log --oneline -5for message style). Note any pre-existing uncommitted work to preserve. - Scope the change to the current task; keep unrelated edits out.
- Stage deliberately (
git add <paths>) — review what's staged; ensure no secrets or ignored files sneak in. - Commit when asked, using the format below and a HEREDOC for the message.
- Summarize the modified files in your final response.
Commit message format
Use a conventional prefix:
feat:a new feature/capabilityfix:a bug fixrefactor:behavior-preserving restructuringdocs:documentation onlytest:tests onlychore:tooling/config/housekeeping
Example: docs: consolidate agent instructions under .ai/
Checklist Before Finishing
- Inspected
git status/git diffbefore editing; no user work clobbered. - Change is scoped to one task; no unrelated churn.
- No secrets,
.env, or large binaries staged. - Commit message (if committing) uses the conventional format.
- Only committed because the user asked.
- Modified files summarized in the final response.
Common Mistakes to Avoid
- Editing without first checking for uncommitted user work.
- Sweeping reformat/rename diffs mixed with logic changes.
- Committing secrets or ignored files.
- Auto-committing when not asked, or force-pushing shared branches.
- Vague commit messages with no scope/prefix.
Expected Final Report
State: the result of the pre-edit inspection; the list of modified/created files and how they map to the task; whether a commit was made (and its message); and confirmation that no secrets or out-of-scope changes were included.
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.

