Nagendhra-web

Deadbolt — Development skill for Claude Code

Development community

Deadbolt for Claude Code: deterministic guardrails that stop your coding agent deleting the wrong thing.

How to install Deadbolt

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Nagendhra-web/deadbolt and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Deadbolt does

Deadbolt for Claude Code: deterministic guardrails that stop your coding agent deleting the wrong thing. 117 rules, zero dependencies, Windows, macOS, Linux.

Alternatives in Development

  • Claude Code Zh Cn — Claude Code CLI 简体中文本地化 / 汉化插件;支持 macOS、Linux、WSL、Windows 与新版 native,一行安装,更新后自动修复 721 ★
  • SSH Skill — 面向 Codex 和 Claude Code 的跨平台 SSH 工作流 Skill,支持 Windows、macOS、Linux 488 ★
  • Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★

README

Deadbolt for Claude Code

Stop your coding agent deleting the wrong thing. Before it runs.

[![Tests](https://img.shields.io/badge/tests-130%20passing-brightgreen)](tests) [![Node](https://img.shields.io/badge/node-18%2B-brightgreen)](https://nodejs.org) [![License: MIT](https://img.shields.io/badge/license-MIT-blue)](LICENSE) [![No dependencies](https://img.shields.io/badge/dependencies-0-blue)](src/deadbolt.js) [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey)](README.md)

**Deadbolt is a deterministic guardrails hook pack for Claude Code. It blocks destructive commands before they run, in plain language, with a safe alternative every time.**

Your agent is fast, and it runs the commands it writes. When it gets a path, a variable, or a database wrong, the result is not a typo. It is lost work.

Agent: rm -rf /
Deadbolt: Blocked. This would delete the root of the filesystem.
          Safe alternative: Delete one named folder inside the project,
          for example rm -rf ./tmp, and check the path first with ls.

Agent: rm -rf node_modules
Deadbolt: Allowed.

Why this exists

Coding agents delete things. In September to November 2026, reported agent deletions included an `rm -rf` that deleted about 600GB, an `rm -rf` that included `.git` and lost about 12 months of history, a `prisma migrate reset` run against production, and a `git reset --hard` that lost uncommitted work. Deadbolt blocks all of those patterns.

No model call. No prompt. No server. No API key. No network. Just 117 tested rules, running locally before every tool call.

What it blocks

117 rules in 12 groups:

  • Recursive delete of protected paths: /, ~, home, ., .git, src, project root, *, ..
  • Empty variable delete: rm -rf $VAR, rm -rf ${VAR}, rm -rf "$VAR"
  • Command substitution delete: rm -rf $(...), rm -rf `...`
  • Git destructive: git push --force to main, master, or prod, git reset --hard, `gi