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 myths-labs/muse --skill git-security-guardgit clone --depth 1 https://github.com/myths-labs/museWrote 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/myths-labs/muse/git-security-guard)<a href="https://agentmods.dev/skills/myths-labs/muse/git-security-guard"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/git-security-guard/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/myths-labs/muse/git-security-guard"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/git-security-guard.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.00082 | $0.01388 |
| Opus 5.5 | $0.00033 | $0.00555 |
| Sonnet 5.5 | $0.00016 | $0.00278 |
| Haiku 4.5 | $0.00008 | $0.00139 |
Grade A, and why
git-security-guard 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 3mo 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.
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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Security Guard — 敏感信息泄露防护
触发时机
- 每次 git commit 前(自动)
- 每次 git push 前(自动)
- 新项目/新 repo 初始化时
- 用户要求安全检查时
Pre-Commit 检查清单
Step 1: 检查暂存文件名
git diff --cached --name-only | grep -iE '\.env|\.pem|\.p12|\.jks|\.key$|\.muse/|\.agent/|\.gemini/|memory/|convo/'
任何匹配 → 立即阻止 commit,报告给用户。
Step 2: 检查暂存内容中的 Key 模式
git diff --cached | grep -iE 'sk-[a-zA-Z0-9]{20}|AIzaSy[a-zA-Z0-9_-]{33}|gsk_[a-zA-Z0-9]{20}|sk_live_|sk_test_[a-zA-Z0-9]{20}|pk_live_|pk_test_[a-zA-Z0-9]{20}|eyJhbGci[a-zA-Z0-9_-]{50}|-----BEGIN.*(PRIVATE|RSA)|AKIA[0-9A-Z]{16}|ghp_[a-zA-Z0-9]{36}|whsec_|xoxb-|xoxp-|service_role'
任何匹配 → 立即阻止 commit,报告给用户。
Step 3: 排除误报
以下不算泄露:
.env.example中的占位符(your-api-key、sk_test_your-...)process.env.XXX引用(代码读环境变量,不是硬编码)node_modules/中的加密库代码- 公开合约地址(USDC/USDT 等已知合约)
- 文档中的"不要这样做"示例
禁止提交的文件模式
| 文件模式 | 原因 |
|---|---|
.env.local / .env.prod* / .env.vercel* |
含真实 API Key |
.muse/ 目录 |
含内部战略/开发状态 |
.agent/ 目录 |
含内部 Skill/Prompt |
.gemini/ 目录 |
含 AI 对话记录 |
memory/ / convo/ |
对话/记忆文件 |
*.pem / *.p12 / *.jks / *.key |
私钥/证书 |
禁止出现在代码中的 Key 模式
| 模式 | 服务 |
|---|---|
sk-[a-zA-Z0-9]{20,} |
OpenAI |
AIzaSy[a-zA-Z0-9_-]{33} |
Google/Gemini |
gsk_[a-zA-Z0-9]{20,} |
Groq |
sk_live_ / sk_test_[实际值] |
Stripe Secret |
pk_live_ / pk_test_[实际值] |
Stripe Publishable |
eyJhbGci[长JWT] |
JWT Token (Supabase/Vercel) |
AKIA[0-9A-Z]{16} |
AWS |
ghp_[a-zA-Z0-9]{36} |
GitHub PAT |
-----BEGIN (RSA )?PRIVATE KEY |
私钥 |
0x[a-fA-F0-9]{64} |
钱包私钥(注意:40位是地址,64位才是私钥) |
whsec_ |
Stripe Webhook Secret |
xoxb- / xoxp- |
Slack Token |
新项目 .gitignore 模板
新 repo 第一个 commit 前必须包含:
# Env files (NEVER commit real keys)
.env
.env.local
.env.*.local
.env.prod*
.env.vercel*
# Internal files
.muse/
.agent/
.gemini/
memory/
convo/
# Private keys
*.pem
*.p12
*.jks
*.key
# IDE
.idea/
.vscode/
# OS
.DS_Store
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.
- 3mo ago First seen · 129 lines · 82 tokens per session scan A 2e4e0398a1ea
git-security-guard is a skill published in the GitHub repository myths-labs/muse (39 stars, last pushed 24d ago), licensed MIT. It adds 82 tokens to every session and 1,388 once invoked, about $0.0003 per session on Opus 5.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-08-30.
git-security-guard compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-security-guardmyths-labs/muse | Skill | 39 | 24d ago | MIT | A | 82 | Claude Code, Codex |
| workflow-patternswshobson/agents | Skill | 43k | 5d ago | MIT | A | 35 | Claude Code |
| devops/changelog-generationechoVic/boss-skill | Skill | 630 | today | MIT | A | 36 | Claude Code |
| managing-gitCloudAI-X/claude-workflow-v2 | Skill | 1.4k | 1mo ago | MIT | A | 46 | Claude Code |
| land-and-deployFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 43 | Claude Code |
| dex-rollbackdavekilleen/Dex | Skill | 522 | 6d ago | MIT | A | 49 | Claude Code, Codex |
| release-notes-generatorFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.5k | today | CC-BY-SA-4.0 | A | 59 | Claude Code |