Skills for Real Engineers. Straight from my .agents directory.
hook-inventory
Agent skill fromhoangsonww/Claude-Code-Agent-Monitor
Inventory hooks across the user, project, and project-local settings plus the ~/.claude/hooks scripts directory — read through the Agent Monitor Config Explorer API — and flag hooks that POST to the network or run arbitrary commands. Reads /api/cc-config/hooks and /api/cc-config/hook-scripts. Use when auditing hook safety.
How to install hook-inventory
npx skills add hoangsonww/Claude-Code-Agent-Monitor# or add only this skill to Claude Code: copy the folder
plugins/ccam-config/skills/hook-inventory/
# into
~/.claude/skills/hook-inventory/ (all projects)
.claude/skills/hook-inventory/ (one project)
1# Hook Inventory23Catalogue every Claude Code hook the user has configured and assess its safety —4read through the Agent Monitor dashboard at `http://localhost:4820`.56## Input78The user provides: **$ARGUMENTS**910This may be:11- empty — inventory all hooks across every scope (default).12- an event name (`PreToolUse`, `PostToolUse`, `Stop`, `SubagentStop`,13 `SessionStart`, `SessionEnd`, `UserPromptSubmit`, `Notification`,14 `PreCompact`) — restrict to that event.15- "scripts" — focus on the `~/.claude/hooks` handler scripts dir.1617## Data Sources1819| Endpoint | Returns |20|----------|---------|21| `GET /api/cc-config/hooks` | `{ items:[{ scope:"user"\|"project"\|"project-local", file, exists, hooks:{ <Event>:[{ matcher, type, command, timeout }] } }] }` |22| `GET /api/cc-config/hook-scripts` | `{ dir, items:[{ name, file, size, mtime }] }` — the handler scripts under `~/.claude/hooks/` |2324## Report Sections2526### 1. Configured hooks by scope27From `/hooks`, flatten each source into `(scope, file, Event, matcher, type,28command, timeout)`. Group by `scope` (user, project, project-local). Show the29event, matcher, hook `type`, and the raw `command`. Note which `file` each came30from so the user can edit the right one.3132### 2. Hook scripts on disk33From `/hook-scripts`, list each file in `~/.claude/hooks/` with `name`, `size`34(KB), and `mtime`. Cross-reference: flag scripts referenced by a hook `command`35but missing from disk, and scripts on disk that no configured hook calls36(orphaned).37…
Excerpt shown under the repository's MIT license.
More skills in Claude-Code-Agent-Monitor
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
