Set up how agents work with Git and the Git host (GitHub, GitLab and others) in a project — host CLI, branches, merge strategy, CI, issues and PRs/MRs, worktrees and a guard against destructive git commands.
Ships in agreement. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Request: $ARGUMENTS
Think of this SKILL as a minimum route that must be taken, not a target.
Record the project's Git and Git-host facts and rules where the project already keeps instructions, so every agent and command, /git included, reads them from there. Explore, propose, confirm, then write.
gh, glab, a specific bot shell or wrapper) and the account that posts; a fallback when the CLI is missing.gh pr create --fill) is wrong.PR, merge or push).Don't forget to check with the user about disabling Harness attributions (co-authored-by and in-message). Recommended option: All attribution is disabled; the instruction line "Do not add co-authored-by and any other harness attribution."
It is one scenario: take the parts from the request; otherwise, after Explore, propose the parts the project lacks and let the user confirm the scope.
<AGENT>.md files, .claude/rules/, other instructions, hooks, plugins etc.), scope (user, org, groups, project, sub-dirs, and local (gitignored) variants), contributing guidelines (e.g. contributing/<AGENT>.md), PR/MR and issue templates (it is generally recommended not to set a rigid template), commitlint and CI config. Note what each says about Git and the host, and which ones agents load.git remote -v, git symbolic-ref refs/remotes/origin/HEAD, the host CLI and its auth status (e.g. gh auth status), the merge settings, labels, issue types and fields the host reports.skills/tracker/, or a <project_overrides> section in skills/git/SKILL.md, in the project or user agent root — load changelog/migration-agreement-3.md.Summarize the findings per part in scope and offer options with a recommendation where the project leaves a choice. Record only what an agent cannot infer safely from the repository; ask the user whenever the environment gives no reliable answer. Change nothing until the user approves the drafts.
Put each fact or rule in every place it belongs, with one home per fact and pointers from the others:
CLAUDE.md / AGENTS.md or a competing rule system.Unless the project already covers them, propose these agent rules, adapted to it:
- Anything posted to the Git host is visible to others and deleting it later does not undo that: unless a rule allows posting directly, post only on a clear command from the user and show the text first unless the user already approved it.
- Name the repository explicitly in every write command; do not rely on the current directory.
- Pass any multi-line body through a file.
- Before opening an issue or a PR/MR, search for an existing one.
- On every issue and PR/MR you open, set the labels, type and fields the host supports for it.
For PRs/MRs, understand whether the agent waits for checks and auto-review, when the agent marks a draft ready (worth it only when review is automated and the agent may act on it), and where the project sits on the autonomy gradient for review threads: reply freely, ask before declining or arguing a finding, or always show the text first. Default rules:
- Open a PR/MR as a draft; mark it ready only after the project's checks and automated review pass and every review thread is worked through.
- When you reply to a review thread after a fix, include the commit hash.
- The title/description must contain the verb in the appropriate form (for example, for a bug issue it could be "Fix", and for its PR "Fixed").
With no methodology set, propose an agile one.
For .worktreeinclude, first offer to create it at the repository root (.gitignore syntax, also read by Claude Code); list the files in the instructions only if the user declines.
Fit the project's language, documentation style and instruction format; reconcile overlapping instructions instead of adding another source of truth. Verify changed files.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/agreement:settup-git [parts to set up]from agreement
npx claudepluginhub fozy-labs/astp --plugin agreement6 skills in this plugin
/communicationA set of recommendations for communicating with the user. Use in any communication with the user, in the chat or through tools./gitGit work on the user's command — commit, push, switch to an up-to-date branch, do a task in an isolated worktree, or any other git task in free text./releaseRun the project's own release process — prepare and publish versions, changelogs, tags, host releases and package artifacts./retroRetrospective on finished work — proposes changes to the agent's environment so future runs go better./settup-glossarySet up a project's shared glossary and persistent agent instructions for using and maintaining it without displacing existing terminology conventions.