Claude Code hook
Safer Dependencies
safer-dependencies is a security layer for Claude Code that audits packages before they’re added to your project. It detects and fixes risky dependencies, including CVEs, typosquats, abandoned packages, version-age issues, and adds package-cooldown violations across npm, PyPI, RubyGems, Maven, Go, and Rust.
Install
git clone https://github.com/robert-auger/safer-dependencies.gitFrom the README
Safer Dependencies for Claude Code When AI coding assistants like Claude add packages to your project, they often pick whatever version sounds right — without checking whether it has known security vulnerabilities, whether the package is still actively maintained, or whether the name is a typo away from a malicious lookalike. safer-dependencies is a security layer for Claude Code: it sits between Claude and your manifest files and runs its security checks automatically: vulnerable installs are denied before they run, and a risky version written to a manifest is corrected on disk right after the write. It detects and fixes risky dependencies — CVEs, typosquats, abandoned packages, and version-age issues, plus a cooldown period on brand-new releases — across npm, PyPI, RubyGems, Maven, Go, Rust, and PHP (Composer). See CAPABILITIES.md for exactly what is and isn't covered. New here? GETTING-STARTED.md takes you from zero to a working install in about five minutes. Security & privacy: see SECURITY.md (vulnerability disclosure), PRIVACY.md (data egress, no telemetry), and CAPABILITIES.md (what the tool defends against and what it doesn't). License (source-available — NOT OSI "open source"): Free to use and modify for your own purposes, including for-profit/company internal use and building products you sell. A separate paid license is required only to monetize the software *itself* — selling it, shipping it inside a product or service that is sold, or offering its functionality to third parties for a fee (including hosted/SaaS/API). Redistribution and derivatives must keep the license and credit this project. See LICENSE (Section 4 for the commercial restriction); commercial-license requests via github.com/robert-auger. Contents - Getting started — zero to…
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- robert-auger/safer-dependencies
- Type
- Hooks
- Website
- www.sectemplates.com
- Language
- Python
- Last updated
- 31 August 2026
- Topics
- claude-code-hooksclaude-code-skillcooldownscve-scanningdependenciesnpm-packagespypi-packageruby-gemsecurity-toolssupply-chainsupply-chain-managementsupply-chain-risk
FAQ
What is Safer Dependencies?
safer-dependencies is a security layer for Claude Code that audits packages before they’re added to your project. It detects and fixes risky dependencies, including CVEs, typosquats, abandoned packages, version-age issues, and adds package-cooldown violations across npm, PyPI, RubyGems, Maven, Go, and Rust. It is a hook for Claude Code, from robert-auger/safer-dependencies on GitHub.
How do I install Safer Dependencies?
Clone robert-auger/safer-dependencies from GitHub and follow the setup steps in its README.
Is Safer Dependencies popular?
robert-auger/safer-dependencies has 43 GitHub stars and 0 forks. It was last updated on 31 August 2026.
More hooks
Fastapi Claude Template
33ewtryocb/fastapi-claude-template
Agent-first FastAPI template built to pair with Claude Code - opinionated architecture kept on the rails by custom skills, hooks and review agents.
Claude Rpc
32rar-file/claude-rpc
Discord Rich Presence (RPC) for Claude Code — live model, project, tokens, and lifetime stats in your Discord profile. Driven by Claude Code hooks.
AI Saas Starter
29nikandr-surkov/ai-saas-starter
AI SaaS boilerplate for Next.js 16 — Better Auth, Stripe subscriptions, credits system, AI image generation. AI-native: AGENTS.md, Claude Code skills & hooks.
Britfix
19Talieisin/britfix
Convert American spellings to British English - fix LLM output and documents
ENI Hooks For Claude Code
31Goochbeater/ENI-Hooks-for-Claude-Code
Kings game
nomos
19safe-agentic-world/nomos
Deny-wins policy hook checking every shell, file and fetch call from Claude Code or Codex.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.