Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/cboone/agent-harness-plugins/use-gitnpx skills add cboone/agent-harness-plugins --skill use-gitgit clone --depth 1 https://github.com/cboone/agent-harness-pluginsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/cboone/agent-harness-plugins/use-git)<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/use-git"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/use-git.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00107 | $0.00946 |
| Opus 5 | $0.00053 | $0.00473 |
| Sonnet 5 | $0.00021 | $0.00189 |
| Haiku 4.5 | $0.00011 | $0.00095 |
Grade A, and why
use-git scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use Git
Conventions for running git and GitHub CLI (gh) commands in Claude Code. These rules keep Bash commands short, avoid unnecessary permission prompts, and prevent destructive operations.
Core Principles
- Tmpfiles for long content: Write long strings (PR bodies, issue bodies, review replies) to a tmpfile via the Write tool, then pass
--body-file. Keeps Bash commands short and avoids permission prompts. - HEREDOCs for short content: Commit messages use
$(cat << 'EOF' ... EOF). Single-quoted'EOF'prevents variable expansion. - GPG sign every commit: Always
git commit -S. The sandbox cannot access GPG keys, so resort immediately to the unsandboxed command. - Never amend: Always create new commits. Pre-commit hook failures mean the commit did not happen, so
--amendwould modify the wrong commit. - Never use force or override flags: Never use
git push --force,git push -f,--no-verify, or similar override flags without explicit user instruction. If the user explicitly requests a force push, usegit push --force-with-lease(add--force-if-includeswhen the installed Git version supports it, v2.30+). Investigate root causes rather than forcing through. - Parallel tool calls over chained commands: Use separate Bash tool calls for independent commands instead of chaining with
;or&&, which trigger permission prompts. - Exclude secret files from staging: Never stage
.env,credentials.json,*.pem,*.key, or similar secret files. - Use clean diff output: Always pass
--no-ext-diff --no-color(and--no-pagerbefore the subcommand) on diff-producing commands (git diff,git log -p,git show). User configs may route diffs through external tools like difftastic, producing output that is harder to parse. These flags ensure standard unified diff format.
Quick Decision Table
| Scenario | Pattern | Reason |
|---|---|---|
| Commit messages | HEREDOC | Short, predictable length |
PR bodies (gh pr create) |
Tmpfile + --body-file |
Can be long; HEREDOC triggers prompts |
Issue bodies (gh issue create) |
Tmpfile + --body-file |
Can be long |
| Review replies | Tmpfile + --body-file |
Variable length |
| Worktree prompts | Write tool to /tmp/ |
Avoids shell escaping |
| Tag messages | Inline -m |
Typically one line |
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 61 lines · 107 tokens per session scan A c10b59ecfc44
use-git is a skill published in the GitHub repository cboone/agent-harness-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 107 tokens to every session and 946 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
github-automation
GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.
cherry-pick
Cherry-pick a commit from main to a Sui release branch, create the release PR, and report the PR URL.
task-snapshot
Create a commit or tag snapshot only when explicitly requested for a milestone, reproducibility checkpoint, handoff, or pinned artifact.
mflux-pr
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
changelog
Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.
git-ship
Use this skill whenever the user wants to commit, push, or ship changes in a git repository. Triggers include: "commit changes", "push my changes", "ship it", "commit and push", "create a branch and commit", "make a PR", "open a pull request", "create draft PR", or any variation of committing/pushing work. Always use…