What is guards?
guards is a Claude Code mod by void2610 that dotfiles のガード群 (git 操作のスキル強制・ブランチロック・コメント規約・文脈注入)。機能ごとに hooks/ 配下の 1 ファイル. It is listed under Security and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | void2610 |
| Repository | void2610/dotfiles |
| Popularity | 1 GitHub stars |
| Category | Security |
| Security | Review before installing (60/100) |
| Rank | #2,380 of 5,272 Claude Code mods; #283 in Security |
| Last commit | 2026-10-17 |
| Hooks | 2 events |
| Sees | Bash calls, Edit calls, Write calls, every prompt |
| Draws on | nothing |
Is guards safe to install?
guards scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.env.get | reads env vars |
$.fs.read | reads files |
$.process.run | runs processes |
How do I install guards?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/void2610/dotfiles claude plugin validate ./dotfiles/.claude/mods/guards
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/void2610/dotfiles && claude --plugin-dir ./dotfiles/.claude/mods/guards
Or ask Claude to set it up
Paste this into Claude Code and it installs guards for you:
Install the "guards" Claude Code mod from https://github.com/void2610/dotfiles/tree/main/.claude/mods/guards. Run claude plugin validate on it first and show me what it can access before you enable it.
More from void2610/dotfiles
This repository has at least 9 Claude Code mods on MCPMods.
- artifact-archive: 一時ディレクトリ (tmp/scratchpad) からの Artifact publish を拒否し ~/Documents/claude-artifacts への保存へ誘導する (Low risk)
- git-context: 会話の最初のメッセージに現在ブランチ・git status・main からの差分コミットを注入する (Low risk)
- ntfy-notify: メインループのターン完了を notify.sh 経由で ntfy.sh へプッシュ通知する (Review before installing)
- nvim-title-state: nvim の内蔵ターミナルで動く Claude の状態を親 nvim のタブタイトルへ通知する (Review before installing)
- pr-watch: 現在ブランチの OPEN PR を常駐監視し、CI fail / Copilot レビュー到着でセッションを起こす (pr-create の background スクリプト置き換え) (Review before installing)
- scratchpad-open: 現セッションの scratchpad を Finder で開くボタンと /scratchpad コマンド (Review before installing)
- ship-hud: ship フローの状態機械をペインで可視化する。/ship-hud でトグル、進行中フローがあれば自動で開く。モデル向けに status ツールも提供 (Review before installing)
- turn-timer: 各ターンの所要時間とトークン消費をトーストで表示する (Low risk)