Skip to content
Security
Hook

Hooks

What repo-forensics runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add alexgreensh/repo-forensics --agent claude-code

Ships with repo-forensics. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs run_pre_scan.sh".

PostToolUse

  • Runs run_auto_scan.sh".

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Runs run_session_scan.sh".
Read hooks/hooks.json

Where it lives

Showing the source of 6 of 8 scripts. Every one is linked above.

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withrepo-forensics

Offline security scanner for AI-agent repos, skills, plugins, and MCP servers.

Get the whole plugin, auto-invoked
Stats
146
Stars
0
Views
20
Forks
Active
Maintenance
Python
Language
1h ago
Last commit
5mo ago
Created

Repo: alexgreensh/repo-forensics