Git 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.
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
Repository state when the command started:
git status --short --branchgit worktree listIf a line above shows a command instead of its output, run that command yourself.
Route by the first rule that matches, state the pick and the plan in one line, then act:
isolate for isolation): run it.status, log, diff, …): free text, below.git fetch origin — a local branch by its exact name first, else an origin branch with or without the origin/ prefix: switch to it, an origin one by the name without the prefix.This skill covers the git steps; any non-git task in the request runs in the normal flow after the git step instead of stopping at Report.
| Command | Does |
|---|---|
commit [--fast] [--one] [--new] | Commit all uncommitted changes |
push [--fast] [--one] [--new] | Commit if the tree is dirty, then push |
<branch> | Switch to the branch and fast-forward it to origin |
isolation <task> [--from <branch> | --current] [--native] [ide] | Do the task in a separate worktree (alias: isolate) — load references/isolation.md |
isolation cleanup [task] | Remove finished isolation worktrees — same reference |
CLAUDE.md, AGENTS.md, rules), CONTRIBUTING.md, commitlint config, then git log for the commit format; the default branch from them, else git symbolic-ref refs/remotes/origin/HEAD. They also win over the defaults here and in references/isolation.md: branch naming, worktree paths, isolation base and finish, extra approvals.Never without the user's explicit approval in this conversation:
--force-with-lease, only when the user wrote "force";reset --hard, clean, checkout -- <path>, restore of the working tree, stash drop / clear — anything that discards uncommitted work;--no-verify;Always:
git add -A, git add . or commit -a.rebase -i, no add -p, no commit without a message; use git --no-pager or GIT_PAGER=cat for output and GIT_EDITOR=true where git may ask for a message.-F <file>, the file outside the working tree (e.g. git rev-parse --git-path ASTP_MSG).git status and the diff. Files that look like secrets (.env, keys, credentials) are never staged: stop and ask.--one: a single commit.--new the new branch name — and wait for approval when it has more than one commit or touches files you did not edit in this session. --fast skips the wait.--new: git switch -c <branch> from the current branch, named by the project's branch naming from a short slug of the changes (taken: ask for another name); the uncommitted changes move along, and the branch gets no upstream until push.git add -- <paths>, then git commit -F <file> -- <paths> with the message in the project's format — the paths keep changes staged earlier for other commits out.git push. Another upstream — an isolation task's target: git push origin <branch>, without -u, so the target stays recorded. No upstream: git push -u origin <branch>.git fetch origin, unless routing just ran it.git switch <branch> — it creates a tracking branch from origin/<branch> when only that exists.git stash push -u -m "<current> before switching to <branch>"; after the stash, switch.git merge --ff-only origin/<branch>; no origin/<branch>: report. Diverged: stop and report the ahead / behind counts.End with what changed — branch, commits (short hash and subject), pushes — and what was left: stash entries, skipped files, worktrees kept.
What SKILL.md sets; muted values are Claude Code's defaults
/agreement:git commit | push | <branch> | isolation <task> [--from <branch> | --current] [--native] [ide] | <free text> [--fast] [--one]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./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-gitSet 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.Other plugins' skills for the same job