콘텐츠로 이동

02-구조

{
"hooks": {
"UserPromptSubmit": [
{ "command": "omc-magic-keyword-detect" }
],
"PreToolUse": [
{ "matcher": "Write", "command": "omc-frontmatter-check" }
],
"PostToolUse": [
{ "matcher": "Edit|Write", "command": "omc-notepad-append" }
],
"Stop": [
{ "command": "omc-state-flush" }
]
}
}
  • UserPromptSubmit — 매직 키워드 감지
  • PreToolUse — 게이트 검사 (frontmatter, 권한)
  • PostToolUse — state 갱신
  • Stop — 세션 종료 시 cleanup