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 skills add cam-douglas/agent-instructions --skill git-safetygit clone --depth 1 https://github.com/cam-douglas/agent-instructionsWrote 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/cam-douglas/agent-instructions/git-safety)<a href="https://agentmods.dev/skills/cam-douglas/agent-instructions/git-safety"><img src="https://agentmods.dev/badge/skills/cam-douglas/agent-instructions/git-safety/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/cam-douglas/agent-instructions/git-safety"><img src="https://agentmods.dev/badge/skills/cam-douglas/agent-instructions/git-safety.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00023 | $0.00638 |
| Opus 5.5 | $0.00009 | $0.00255 |
| Sonnet 5.5 | $0.00005 | $0.00128 |
| Haiku 4.5 | $0.00002 | $0.00064 |
Grade C, and why
git-safety scanned grade C with 1 finding 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 2mo ago.
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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
4. Do not stage, commit, or push `.env*`, keys, credential JSON, `.netrc`, `.npmrc`, `.pypirc`, or files whose contents match secret patterns. How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git safety
Purpose
Prevent private-email git attribution and keep secrets out of git in every project that uses this control plane.
When to use
- Any
git commit, merge, rebase, cherry-pick, pull that can create a commit, annotated tag, note, or push - Any staging command that might include secret-bearing files
- Before installing or validating repository hooks
Inputs
- Repository root
- Intended git command
Tools used
scripts/git-safety.mjsscripts/git-safety.test.mjspayloads/policy.mjspayloads/policy.test.mjspayloads/bootstrap.shpayloads/validate-agent-config.mjspayloads/cli.jsonpayloads/git-privacy-and-secrets.mdcpayloads/agent-governance.yml- Repository
.githooks/pre-commit,.githooks/commit-msg, and.githooks/pre-push
Procedure
- Never run
git configto setuser.nameoruser.email. - Never use the host private email. Always export the Cursor anonymous identity:
GIT_AUTHOR_NAME='Cursor Agent' \
GIT_AUTHOR_EMAIL='[email protected]' \
GIT_COMMITTER_NAME='Cursor Agent' \
GIT_COMMITTER_EMAIL='[email protected]' \
git commit -m "message"
- A GitHub noreply address (
*@users.noreply.github.com) is also allowed. Any other email is forbidden. - Do not stage, commit, or push
.env*, keys, credential JSON,.netrc,.npmrc,.pypirc, or files whose contents match secret patterns. - If bootstrap has not copied hooks yet, copy
.githooks/*into.git/hooks/without changing git config. - If a hook or policy denies the command, stop. Do not weaken the hook.
Expected outcome
Every agent-created git object uses [email protected] or a GitHub noreply address, and no secret value or secret-bearing file enters git.
Validation
node --test .cursor/skills/git-safety/scripts/git-safety.test.mjs
node --test .cursor/hooks/policy.test.mjs
Failure modes / cautions
- Host
user.emailis not an authorization signal. If it is a personal inbox, ignore it. - Do not print secret values when a scan fails. Report only the path and rule id.
- Do not use
--no-verifyor rewrite hooks to bypass this skill.
What ships with it
9 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.
- payloads/agent-governance.yml 647 B
- payloads/bootstrap.sh 7.5 KB runs code
- payloads/cli.json 3.4 KB
- payloads/git-privacy-and-secrets.mdc 723 B
- payloads/policy.mjs 8.7 KB runs code
- payloads/policy.test.mjs 7.3 KB runs code
- payloads/validate-agent-config.mjs 12 KB runs code
- scripts/git-safety.mjs 9.8 KB runs code
- scripts/git-safety.test.mjs 3.0 KB runs code
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.
- 2mo ago First seen · 79 lines · 23 tokens per session scan C aa6021d938d4
git-safety is a skill published in the GitHub repository cam-douglas/agent-instructions (2 stars, last pushed 2mo ago), licensed MIT. It adds 23 tokens to every session and 638 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.
git-safety compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-safetycam-douglas/agent-instructions | Skill | 2 | 2mo ago | MIT | C | 23 | Cursor |
| create-prprisma/orm | Skill | 48k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| git-commitThinkInAIXYZ/deepchat | Skill | 6.4k | yesterday | Apache-2.0 | A | 15 | Claude Code, Codex |
| engineer-bot-opsmakecindy/cindy | Skill | 11k | today | Apache-2.0 | A | 57 | Claude Code, Codex |
| mcore-split-prNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 25 | Claude Code |
| contributingHugoRCD/evlog | Skill | 2.0k | 4d ago | MIT | A | 68 | Claude Code, Codex |
| git-commit-writermergisi/awesome-openclaw-agents | Skill | 4.1k | 29d ago | MIT | A | 53 | Claude Code, Codex |