guard-hooks

guard-hooks is a plugin for Claude Code from AndrewDongminYoo/cc-agents-kit. Its token cost is not measured, scanned A, original, Apache-2.0.

A group of eight safety checks that run around Claude Code actions. They block or warn about dangerous shell commands, exposed credentials, stale dependency lockfiles, and common shell mistakes.

In plain words
What is it for?
Blocking risky deletion and download commands, protecting secrets files and staged changes, checking formatting and shell scripts, warning about stale lockfiles, and hiding credential-like command output.
Why use it?
They reduce the chance that an automated coding session deletes important files, leaks secrets, or produces unsafe and inconsistent changes.

Plugin for Claude Code

Install

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.

Claude Code
/plugin marketplace add AndrewDongminYoo/cc-agents-kit
agentmods
npx agentmods add plugins/andrewdongminyoo/cc-agents-kit/guard-hooks
Clone the repo
git clone --depth 1 https://github.com/AndrewDongminYoo/cc-agents-kit

Made for: Claude Code.

Wrote 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.

agentmods badge for guard-hooks

README.md
[![agentmods](https://agentmods.dev/badge/plugins/andrewdongminyoo/cc-agents-kit/guard-hooks.svg)](https://agentmods.dev/plugins/andrewdongminyoo/cc-agents-kit/guard-hooks)
Your own site
<a href="https://agentmods.dev/plugins/andrewdongminyoo/cc-agents-kit/guard-hooks"><img src="https://agentmods.dev/badge/plugins/andrewdongminyoo/cc-agents-kit/guard-hooks.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

guard-hooks 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 3d 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.

plugins/guard-hooks/.claude-plugin/plugin.json · 19 lines

What it actually says

{
  "name": "guard-hooks",
  "version": "0.2.6",
  "description": "Eight defensive hooks: blocks recursive rm on $HOME, download-and-execute pipelines, secrets-file access, path-less formatter runs, credentials in the staged diff, and the two zsh quoting mistakes that fail silently; warns on stale lockfiles and shellcheck findings; masks credential-shaped values out of Bash output before the model sees them.",
  "author": {
    "name": "Dongmin Yu"
  },
  "homepage": "https://github.com/AndrewDongminYoo/cc-agents-kit",
  "repository": "https://github.com/AndrewDongminYoo/cc-agents-kit",
  "license": "Apache-2.0",
  "keywords": [
    "hooks",
    "safety",
    "guardrails",
    "shell",
    "zsh"
  ]
}
Contents

What it installs

The manifest is a name and a version. 2 hooks travel with it, and installing the plugin installs all of them. Each is measured on its own page, and each can be installed alone.

Changes

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.

  1. 3d ago First seen · 19 lines scan A 178fcb2976a6

Subscribe to this mod's changes

guard-hooks is a plugin published in the GitHub repository AndrewDongminYoo/cc-agents-kit (1 stars, last pushed 3d ago), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. 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-31.

Related

Other plugins, from other repositories

better-auth

Skill for integrating Better Auth - comprehensive TypeScript authentication framework for Cloudflare D1, Next.js, Nuxt, and 15+ frameworks. Use when adding auth, encountering D1 adapter errors, or implementing OAuth/2FA/RBAC features.

secondsky/claude-skills · not measured

api-authentication

Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or encountering token management, security headers, auth flow errors.

secondsky/claude-skills · not measured

api-changelog-versioning

Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use when managing API versions, communicating breaking changes, or creating upgrade guides.

secondsky/claude-skills · not measured

api-contract-testing

Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication, preventing breaking changes, or validating OpenAPI specifications.

secondsky/claude-skills · not measured

api-filtering-sorting

Builds flexible API filtering and sorting systems with query parameter parsing, validation, and security. Use when implementing search endpoints, building data grids, or creating dynamic query APIs.

secondsky/claude-skills · not measured

base-ui-react

MUI Base UI unstyled React components with Floating UI. Use for accessible components, Radix UI migration, render props API, or encountering positioning, popup, v1.0 beta issues.

secondsky/claude-skills · not measured