Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:02:32 +08:00
commit 47e0ce25e3
4 changed files with 116 additions and 0 deletions

57
hooks/hooks.json Normal file
View File

@@ -0,0 +1,57 @@
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/orbit-context.sh",
"description": "Inject Orbit context for /orbit command"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/orbit-init.sh"
}
]
}
],
"PreToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/orbit-protect.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit|Skill",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/orbit-log.sh"
}
]
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/orbit-log.sh"
}
]
}
]
}
}