From ecc
사용자가 hookify rule 생성, hook rule 작성, hookify 설정, hookify rule 추가를 요청하거나, hookify rule 문법과 패턴에 대한 가이드가 필요할 때 사용하는 스킬입니다.
npx claudepluginhub sam42-lab/everything-claude-code-krThis skill uses the workspace's default tool permissions.
Hookify 규칙은 감시할 패턴과, 패턴이 일치할 때 Claude에게 보여줄 메시지를 정의하는 YAML frontmatter 포함 Markdown 파일입니다. 규칙은 `.claude/hookify.{rule-name}.local.md` 파일로 저장됩니다.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Hookify 규칙은 감시할 패턴과, 패턴이 일치할 때 Claude에게 보여줄 메시지를 정의하는 YAML frontmatter 포함 Markdown 파일입니다. 규칙은 .claude/hookify.{rule-name}.local.md 파일로 저장됩니다.
---
name: rule-identifier
enabled: true
event: bash|file|stop|prompt|all
pattern: regex-pattern-here
---
규칙이 트리거될 때 Claude에게 보여줄 메시지
| Field | Required | Values | Description |
|---|---|---|---|
| name | Yes | kebab-case string | 고유 식별자 |
| enabled | Yes | true/false | 삭제 없이 on/off |
| event | Yes | bash/file/stop/prompt/all | 어떤 hook 이벤트가 트리거하는지 |
| action | No | warn/block | warn은 메시지 표시, block은 작업 차단 |
| pattern | Yes* | regex string | 일치 패턴 |
---
name: warn-env-api-keys
enabled: true
event: file
conditions:
- field: file_path
operator: regex_match
pattern: \.env$
- field: new_text
operator: contains
pattern: API_KEY
---
.env 파일에 API 키를 추가하고 있습니다. 이 파일이 .gitignore에 있는지 확인하세요.
이벤트별 조건 필드
commandfile_path, new_text, old_text, contentuser_prompt연산자
regex_matchcontainsequalsnot_containsstarts_withends_with모든 조건이 일치해야 규칙이 트리거됩니다.
Bash 명령 패턴을 매칭합니다.
rm\s+-rf, dd\s+if=, mkfssudo\s+, su\s+chmod\s+777Edit/Write/MultiEdit 작업을 매칭합니다.
console\.log\(, debuggereval\(, innerHTML\s*=\.env$, credentials, \.pem$완료 점검과 리마인더입니다. .* 패턴이면 항상 매치됩니다.
사용자 프롬프트 내용을 기준으로 워크플로 강제를 적용합니다.
. → \., ( → \(\s 공백, \d 숫자, \w 단어 문자+ 1회 이상, * 0회 이상, ? 선택| ORlog는 login, dialog도 잡음 → console\.log\(rm -rf /tmp → rm\s+-rf\\s처럼 이중 이스케이프 필요python3 -c "import re; print(re.search(r'your_pattern', 'test text'))"
.claude/.claude/hookify.{descriptive-name}.local.md.claude/*.local.md를 .gitignore에 추가/hookify [description] - 새 규칙 생성/hookify-list - 규칙 테이블 보기/hookify-configure - 규칙 on/off 설정/hookify-help - 전체 문서최소 규칙:
---
name: my-rule
enabled: true
event: bash
pattern: dangerous_command
---
Warning message here