git-working-agreement
Skill1 starsChanged 3 months agoMITView on GitHub
When making changes to a repository, use this skill.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- blast-radiusSkill
- broSkill
- codebase-designSkill
- code-reviewSkill
- confluence-workflowSkill
- creating-a-pr-mrSkill
- defuddleSkill
- diagram-designSkill
- docxSkill
- domain-modelingSkill
- engineering-principlesSkill
- forgejo-cliSkill
- frontend-designSkill
- gh-cliSkill
- git-conventional-commitsSkill
- glab-cliSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- howSkill
- improve-codebase-architectureSkill
- jira-workflowSkill
- json-canvasSkill
- k8s-opsSkill
- obsidian-basesSkill
- obsidian-cliSkill
- obsidian-markdownSkill
- openspec-workflowSkill
- pdfSkill
- pptxSkill
- prototypeSkill
- researchSkill
- setup-matt-pocock-skillsSkill
- skill-minerSkill
- technical-writingSkill
- theme-factorySkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- unslopSkill
- wayfinderSkill
- whySkill
- writing-for-agentsSkill
- xlsxSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 13
Always confirm immediately before destructive, irreversible, privilege-changing, or materially broader work.
- Distinctive: line 17
Prefer fast-forward/rebase merges.
- Very specific: line 18
Update a feature branch by rebasing it onto its base branch rather than merging the base branch into it.
- Very specific: line 19
Use git cli commands to interact with repositories.
- Distinctive: line 20
Follow the hosting workflow's authorization rules for comments, reviews, and other pull-request or issue writes.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Working Agreement
- Make changes on worktrees, or alternatively a feature branch. Never on main unless specified or asked to.
- Branch and worktree names should be descriptive and use proper prefixes.
- An explicit user request that names the repository or branch and a bounded Git write action authorizes that action. Otherwise, show the exact command or change and ask for confirmation.
- Always confirm immediately before destructive, irreversible, privilege-changing, or materially broader work. This includes deleting branches or tags, discarding changes, rewriting published history, force pushing, changing access, and writes outside the requested scope.
- Prefer fast-forward/rebase merges; create a merge commit only when fast-forward/rebase is impossible or explicitly requested.
- Update a feature branch by rebasing it onto its base branch rather than merging the base branch into it; when it is behind
origin/main, fetch and rebase ontoorigin/mainrather than using a merge-based pull. - Use git cli commands to interact with repositories;
ghfor GitHub,glabfor GitLab. - Follow the hosting workflow's authorization rules for comments, reviews, and other pull-request or issue writes. When no hosting workflow is loaded, show the exact mutation and confirm before running it.
- For commit messages, use the
git-conventional-commitsskill.
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.

