DC

disler/claude-code-damage-control

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

480 stars 품질 45 트렌드 20

disler/claude-code-damage-control은 [[T0]에서 가져온 에이전트 스킬 후보입니다.

개요

disler/claude-code-damage-control은 [[T0]에서 가져온 에이전트 스킬 후보입니다.

개요(AI 번역)

Claude Code에 대한 심층 방어. 위험한 명령을 차단하고 PreToolUse 훅을 통해 민감한 파일을 보호합니다.


작동 원리


경로 보호 수준

모든 경로 구성은 patterns.yaml에 있습니다. 각 수준은 서로 다른 보호를 제공합니다:

경로 유형 읽기 쓰기 편집 삭제 강제됨
zeroAccessPaths ✗ ✗ ✗ ✗ 비판, 편집, 작성
readOnlyPaths ✓ ✗ ✗ ✗ 때리기, 편집, 작성
noDeletePaths ✓ ✓ ✓ ✗ 배시 전용

제로액세스 패스

전혀 접근 금지 - 절대 건드려서는 안 되는 비밀과 자격 증명에 대해.

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

GitHub에서 전체 README 보기

추천 도구

다른 키워드를 입력하거나 필터를 제거해 보세요.

설치

npx skillfish add disler/claude-code-damage-control
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →