damage-control
π―Skillfrom cfircoo/claude-code-toolkit
Protects sensitive credentials, blocks destructive commands, and prevents accidental data loss by implementing security hooks and safeguards during Claude Code interactions.
Installation
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill damage-controlSkill Details
Overview
# Claude Code Toolkit
A curated collection of skills, agents, commands, and hooks to supercharge your Claude Code experience. Copy what you need to ~/.claude/ and start using immediately.
Prerequisites
Before installation, ensure you have:
- jq - Required for statusline JSON parsing and settings management
- git - Recommended for git workflow features
- uv - Required for Python scripts (auto-installs dependencies via PEP 723)
- Platform-specific:
- macOS: coreutils (for gtac command used by statusline)
- Linux: coreutils (usually pre-installed, provides tac command)
The automated installer will detect and offer to install missing dependencies.
Automatic Installation (Recommended)
The easiest way to install the toolkit is using the interactive installer:
```bash
# Clone the toolkit
git clone https://github.com/YOUR_USERNAME/claude-code-toolkit.git
cd claude-code-toolkit
# Run the installer (auto-detects macOS or Linux)
./install.sh
```
Interactive Installation Modes
The installer offers flexible installation options:
1. Install All (Recommended)
- One-click installation of all components
- Fastest and simplest option
- Installs: skills, agents, commands, hooks, statusline, and settings
2. Select by Folder
- Choose which component types to install
- For each folder (skills/agents/commands/hooks), you can:
- All - Copy all items in that folder
- One-by-one - Review and select each item individually
- Skip - Skip that entire folder
- Perfect for customizing your installation
3. Skip Installation
- Exit without copying anything
- Useful if you just want to browse the code
What the Installer Does
- β Checks for required dependencies (jq, git, coreutils, pip)
- β Offers to install missing packages via package manager
- β Creates necessary directories (
~/.claude/*) - β Replaces existing skill folders (ensures clean updates, no file conflicts)
- β Copies selected components with detailed logging
- β Installs Python scripts (dependencies auto-managed by uv)
- β Sets up statusline with proper permissions
- β Installs damage-control security hooks (protects .env, credentials, blocks destructive commands)
- β Installs concise-mode hook (brief responses, toggleable with
/concise) - β Intelligently merges settings.json (preserves your existing settings)
- β Configures Perplexity API key (searches environment and shell configs, or prompts for key)
- β Automatically backs up
hooks.jsonandsettings.jsonto.bakfiles
Platform-Specific Installers
You can also run the platform-specific installer directly:
```bash
# For macOS
./install-mac.sh
# For Linux
./install-linux.sh
```
Non-Interactive Installation
Both installers support command-line options for non-interactive use:
```bash
# Install everything non-interactively
./install-linux.sh -y
# Install all, skip update check
./install-linux.sh -y --no-update
# Install all, skip UV installation (for damage-control)
./install-linux.sh --all --no-uv
# Show help
./install-linux.sh --help
```
Available options:
| Option | Description |
|--------|-------------|
| -y, --yes, --all | Auto-yes to all prompts (install everything) |
| --no-update | Skip Claude Code update check |
| --no-uv | Skip UV installation for damage-control hooks |
| --select | Interactive selection mode |
| --skip | Skip component installation |
| -h, --help | Show help message |
Manual Installation
If you prefer manual installation or want selective components:
```bash
# Create directories
mkdir -p ~/.claude/{skills,agents,commands,hooks,scripts}
# Copy everything
cp -r skills/* ~/.claude/skills/
cp -r agents/* ~/.claude/agents/
cp -r commands/* ~/.claude/commands/
cp -r scripts/* ~/.claude/scripts/
cp hooks.json ~/.claude/hooks.json
cp statusline.sh ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh
chmod +x ~/.claude/scripts/*.py
# Note: Python dependen
More from this repository5
Provides automated guidance, templates, and configuration checks to help developers implement pytest best practices and improve Python testing standards.
Orchestrates complex multi-step workflows and task sequences, dynamically managing resource allocation and execution dependencies across different computational environments.
ralph-convert-prd skill from cfircoo/claude-code-toolkit
Simplifies PostgreSQL database interactions using SQLAlchemy, providing robust ORM mapping, query generation, and connection management
Generates a comprehensive Product Requirements Document (PRD) by extracting key details from project context and creating a structured, professional specification.