
disler/claude-code-damage-control
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
disler/claude-code-damage-controlは、[[T0]からインポートされたエージェントスキル候補です。
概要
disler/claude-code-damage-controlは、[[T0]からインポートされたエージェントスキル候補です。
概要(AI 翻訳)
Claude Codeの防御による深層保護。危険なコマンドをブロックし、PreToolUseフックを通じて機密ファイルを保護します。
仕組み
経路保護レベル
すべての経路構成はpatterns.yamlに含まれています。各レベルは異なる保護を提供します:
| パスタイプ | 読み込み | 書き込み | 編集 | 削除 | 強制 |
|---|---|---|---|---|---|
zeroAccessPaths |
✗ | ✗ | ✗ | ✗ | バッシュ、編集、書く |
readOnlyPaths |
✓ | ✗ | ✗ | ✗ | バッシュ、編集、書く |
noDeletePaths |
✓ | ✓ | ✓ | ✗ | バッシュ専用 |
zeroアクセスパス
一切アクセス禁止 - 決して触れてはいけない秘密や認証情報のため。
readOnlyPaths
読み取り許可、修正ブロック - システムファイルと設定に関して。
noDeletePaths
**削除を除くすべての操作 - 重要なファイルが誤って削除されるのを防ぐためです。
ダメージコントロールスキル
このプロジェクトには、インタラクティブなインストール、修正、指導ワークフローを提供するClaude Code Skillが含まれています。スキルはAskUserQuestionプロンプトを使って各ステップを案内します。
スキルトリガー
|こう言って… |そしてそのスキルは… |
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Claude Code Damage Control
Defense-in-depth protection for Claude Code. Blocks dangerous commands and protects sensitive files via PreToolUse hooks.
How It Works
┌─────────────────────────────────────────────────────────────────────┐
│ Claude Code Tool Call │
└─────────────────────────────────────────────────────────────────────┘
│
┌─────────────────────┼─────────────────────┐
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ Bash │ │ Edit │ │ Write │
│ Tool │ │ Tool │ │ Tool │
└─────┬─────┘ └─────┬─────┘ └─────┬─────┘
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ bash-tool- │ │ edit-tool- │ │ write-tool- │
│ damage-control │ │ damage-control │ │ damage-control │
│ │ │ │ │ │
│ • bashTool- │ │ • zeroAccess- │ │ • zeroAccess- │
│ Patterns │ │ Paths │ │ Paths │
│ • zeroAccess- │ │ • readOnlyPaths │ │ • readOnlyPaths │
│ Paths │ │ │ │ │
│ • readOnlyPaths │ │ │ │ │
│ • noDeletePaths │ │ │ │ │
└────────┬────────┘ └────────┬────────┘ └────────┬────────┘
│ │ │
▼ ▼ ▼
exit 0 = allow exit 0 = allow exit 0 = allow
exit 2 = BLOCK exit 2 = BLOCK exit 2 = BLOCK
JSON = ASK
Path Protection Levels
All path configurations are in patterns.yaml. Each level provides different protection:
| Path Type | Read | Write | Edit | Delete | Enforced By |
|---|---|---|---|---|---|
zeroAccessPaths |
✗ | ✗ | ✗ | ✗ | Bash, Edit, Write |
readOnlyPaths |
✓ | ✗ | ✗ | ✗ | Bash, Edit, Write |
noDeletePaths |
✓ | ✓ | ✓ | ✗ | Bash only |
zeroAccessPaths
No access at all - for secrets and credentials that should never be touched.
zeroAccessPaths:
- ~/.ssh/
- ~/.aws/
- ~/.gnupg/
readOnlyPaths
Read allowed, modifications blocked - for system files and configs.
readOnlyPaths:
- /etc/
- ~/.bashrc
- ~/.zshrc
noDeletePaths
All operations except delete - protect important files from accidental removal.
noDeletePaths:
- .claude/hooks/
- .claude/commands/
Damage Control Skill
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add disler/claude-code-damage-control