Executes custom commands on key Claude events like session changes, prompts, and notifications for workflow automation.
/plugin marketplace add 501336north/one-shot-ship-plugin/plugin install oss@one-shot-ship-pluginDefined in ./hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-stop.sh"
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-session-end.sh"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-session-end.sh"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-notification.sh"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-session-start.sh"
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-precommand.sh"
}
]
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-iron-law-check.sh"
}
]
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/oss-context-inject.sh"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"command": 8
},
"eventStats": {
"Stop": 1,
"PreCompact": 1,
"SessionEnd": 1,
"Notification": 1,
"SessionStart": 1,
"UserPromptSubmit": 3
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 8,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 8
}
}