Home / Claude Code mods / Security / danger-check

danger-check

danger-check is a Claude Code mod by achapla that asks you before a command that can destroy work, such as rm -rf, git reset --hard or git push --force.

Updated 2026-10-06

What is danger-check?

danger-check is a Claude Code mod by achapla that asks you before a command that can destroy work, such as rm -rf, git reset --hard or git push --force. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
Authorachapla
Repositoryachapla/cc-mods
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (88/100)
Rank#2,480 of 5,272 Claude Code mods; #293 in Security
LicenseMIT
Last commit2026-10-06
Hooks1 events
SeesBash calls, PowerShell calls
Draws onnothing

Is danger-check safe to install?

danger-check scores 88/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 7 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 processes outside the sandboxReview
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
$.process.runruns processes
$.ui.askdraws interface

How do I install danger-check?

  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/achapla/cc-mods
    claude plugin validate ./cc-mods/danger-check
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add achapla/cc-mods && claude plugin install danger-check@cc-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs danger-check for you:

Install the "danger-check" Claude Code mod from https://github.com/achapla/cc-mods/tree/main/danger-check. Run claude plugin validate on it first and show me what it can access before you enable it.

More from achapla/cc-mods

This repository has 8 Claude Code mods on MCPMods.

  • done-sound: Plays a sound, picked by chance from the ones you chose, when a long turn ends and when Claude waits for your answer. (Review before installing)
  • mod-lab: Shows what mods can do: a live list of events, a dump of what a mod can read, and demos you run with one press. (Review before installing)
  • no-new-branch: Asks you before any command that would create a new git branch or worktree. (Low risk)
  • no-process-kill: Asks you before any command that would stop a running process. (Low risk)
  • pnpm-only: Blocks npm and npx commands and tells Claude the pnpm command to use instead. (Low risk)
  • prompt-snippets: Replaces short names such as ;plan in your prompt with longer texts that you saved. (Low risk)
  • usage-line: Shows live session cost, context use, and the 5-hour and weekly limits with their pace in one line above the prompt. (Low risk)