257 lines
8.0 KiB
JSON
257 lines
8.0 KiB
JSON
{
|
|
"_description": "BurningTimes 조직 공용 Claude Code permission + hook 설정 (SOT). PD님 일괄 승인 원칙 + 자동 동기화 hook. 단일 세션 + Agent 병렬 호출 구조. 모든 PC 동일 적용. 루트 단일 관리. 2026-08-19 PD 지시: 도구 자동 승인(dontAsk) + GodDem 디렉토리 등록.",
|
|
"permissions": {
|
|
"defaultMode": "dontAsk",
|
|
"additionalDirectories": [
|
|
"E:\\NerdNavis\\GodDem",
|
|
"C:\\Users\\sw\\Downloads\\Layer Lab",
|
|
"E:\\EerieVillage"
|
|
],
|
|
"allow": [
|
|
"Read",
|
|
"Glob",
|
|
"Grep",
|
|
"TodoWrite",
|
|
"ToolSearch",
|
|
"Agent",
|
|
"Task",
|
|
"SendMessage",
|
|
"TaskOutput",
|
|
"TaskStop",
|
|
"Workflow",
|
|
"EnterPlanMode",
|
|
"ExitPlanMode",
|
|
"AskUserQuestion",
|
|
"SendUserFile",
|
|
"Artifact",
|
|
"Edit",
|
|
"Write",
|
|
"Edit(.claude/**)",
|
|
"Write(.claude/**)",
|
|
"Edit(//c/Users/sw/.claude/**)",
|
|
"Write(//c/Users/sw/.claude/**)",
|
|
"MultiEdit",
|
|
"NotebookEdit",
|
|
"Skill",
|
|
"Bash",
|
|
"Bash(git *)",
|
|
"Bash(ls *)",
|
|
"Bash(cat *)",
|
|
"Bash(echo *)",
|
|
"Bash(mkdir *)",
|
|
"Bash(pwd)",
|
|
"Bash(which *)",
|
|
"Bash(bash *)",
|
|
"Bash(powershell *)",
|
|
"Bash(node *)",
|
|
"Bash(npm *)",
|
|
"Bash(npx *)",
|
|
"Bash(python *)",
|
|
"Bash(python3 *)",
|
|
"Bash(pip *)",
|
|
"Bash(uv *)",
|
|
"Bash(uvx *)",
|
|
"Bash(dotnet *)",
|
|
"WebFetch",
|
|
"WebSearch",
|
|
"ReadMcpResourceTool",
|
|
"ReadMcpResourceDirTool",
|
|
"ListMcpResourcesTool",
|
|
"mcp__unity-mcp__*",
|
|
"mcp__mcpforunityserver__*",
|
|
"mcp__filesystem__*",
|
|
"mcp__memory__*",
|
|
"mcp__sqlite__*",
|
|
"mcp__scheduled-tasks__*",
|
|
"mcp__Claude_Preview__*"
|
|
],
|
|
"deny": [
|
|
"Bash(rm:*)",
|
|
"Bash(rmdir:*)",
|
|
"Bash(sudo:*)",
|
|
"Bash(dd:*)",
|
|
"Bash(mkfs:*)",
|
|
"Bash(format:*)",
|
|
"Bash(chmod 777:*)",
|
|
"Bash(chown:*)",
|
|
"Bash(shutdown:*)",
|
|
"Bash(reboot:*)",
|
|
"Write(/etc/**)",
|
|
"Write(/System/**)",
|
|
"Write(C:/Windows/**)",
|
|
"Write(C:\\Windows\\**)",
|
|
"Edit(/etc/**)",
|
|
"Edit(/System/**)",
|
|
"Edit(C:/Windows/**)",
|
|
"Edit(C:\\Windows\\**)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PreToolUse": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/auto_approve.sh"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/auditor_gate.sh"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Edit|Write|MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/pm_implicit_check.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionStart": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && git fetch origin 2>/dev/null; CHANGES=$(git log --oneline HEAD..origin/main 2>/dev/null | head -10); if [ -n \"$CHANGES\" ]; then echo '📌 [SessionStart] origin/main 변경 검출 — 자동 병합 중:'; echo \"$CHANGES\"; git merge origin/main --no-edit 2>/dev/null && echo '✅ 자동 병합 완료' || echo '⚠️ 자동 병합 실패 (충돌 발생 — 수동 해결 필요)'; else echo '✅ [SessionStart] main 동기화 상태'; fi"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/unity_project_sync.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/inbox_scan.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/change_digest.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/live_session_load.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/pm_context_restore.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/recent_feedback_brief.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/audit_pattern_analyzer.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/verify_log_paths.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && git config core.hooksPath scripts/git-hooks 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"UserPromptSubmit": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/sync_signal.sh check 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/git_fetch_throttle.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/hold_watch.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/live_inject.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/session_health.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write|MultiEdit",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/postuse_log_reminder.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/c9_2_block.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/fact_first_check.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/identity_guard.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/hardboiled_empathy_check.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/proactive_inference_check.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/skill_trigger_audit.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/c35_obligation_check.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/filler_word_check.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": "Task",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/auditor_call_log.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"SessionEnd": [
|
|
{
|
|
"matcher": "",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/session_end_audit.sh 2>/dev/null || true"
|
|
},
|
|
{
|
|
"type": "command",
|
|
"command": "cd \"$CLAUDE_PROJECT_DIR\" && bash scripts/verify_references.sh 2>/dev/null || true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|