Home / Claude Code mods / Security / approval-guard

approval-guard

approval-guard is a Claude Code mod by UtakataKyosui that askUserQuestion で得た承認と gh の不可逆コマンド(レビュー投稿・close・merge)の宛先を照合し、force push の確認と PR 本文の Closes キーワードの確認も行う function hook.

Updated 2026-10-12

What is approval-guard?

approval-guard is a Claude Code mod by UtakataKyosui that askUserQuestion で得た承認と gh の不可逆コマンド(レビュー投稿・close・merge)の宛先を照合し、force push の確認と PR 本文の Closes キーワードの確認も行う function hook. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
AuthorUtakataKyosui
RepositoryUtakataKyosui/utakata-cc-mod
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (100/100)
Rank#4,962 of 5,272 Claude Code mods; #513 in Security
LicenseMIT
Last commit2026-10-12
Hooks2 events
Sees/"^AskUserQuestion$"/ calls, Bash calls, classic hooks
Draws onnothing

Is approval-guard safe to install?

approval-guard scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.fs.readreads files

How do I install approval-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/UtakataKyosui/utakata-cc-mod
    claude plugin validate ./utakata-cc-mod/plugins/approval-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add UtakataKyosui/utakata-cc-mod && claude plugin install approval-guard@utakata-cc-mod

Or ask Claude to set it up

Paste this into Claude Code and it installs approval-guard for you:

Install the "approval-guard" Claude Code mod from https://github.com/UtakataKyosui/utakata-cc-mod/tree/main/plugins/approval-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from UtakataKyosui/utakata-cc-mod

This repository has at least 9 Claude Code mods on MCPMods.

  • act-now-guard: 計画フェーズの要らない依頼で EnterPlanMode や Plan エージェントに入ろうとしたら止め、すぐ実装に着手させる function hook (Review before installing)
  • advanced-rust-cli: Rustで実装された基礎的なコマンドの改善版のみを常に使用するように挙動を変更するMod (Low risk)
  • agent-router: サブエージェントと Workflow の agent() の依頼を LocalJev でロールに分類し、agent-routing の roles.json に従って model と effort を切り替える function hook (Review before installing)
  • auto-compact: ターン終了時のコンテキスト使用率・ターン数、またはプロンプトキャッシュの失効を見て自動で Compaction し、要約をテキストに保存する。終了前の Issue 化・ドキュメント化を Agent に義務づけ、会話には何をやったか・何ができ (Low risk)
  • bash-hints: Bash の呼び出しに専用ツールへの誘導・rust-parallel・mise exec・pueue デーモンのヒントを足し、長い sleep を止める function hook (Low risk)
  • change-review: 実装後の差分を、実装者とは別の読み取り専用レビュアー SubAgent に点検させるMod。指摘の形式検証、再レビュー回数の上限、未実施・未解決の明示を行う。任意で、ローカルLLMによる差分の一次点検 (参考データ) も提供する (Review before installing)
  • code-finder: fd と ripgrep でファイル名・コード内容を検索するツール (find_files / search_code) をモデルに提供するMod (Review before installing)
  • ctxpack-fetch: WebFetch を禁じ、代わりに ctxpack で Web ページをノイズ除去した Markdown として取得するツール (fetch_page) をモデルに提供するMod。ローカルLLMによる出典付きの関連段落抽出も選べる (Review before installing)