Automatically runs cleanup commands and modifies files after tool usage or session termination.
npx claudepluginhub thebushidocollective/hanDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "han hook run typescript typecheck --async"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "han hook run typescript typecheck-async --async"
}
],
"matcher": "Edit|Write|NotebookEdit"
}
],
"SubagentStop": [
{
"hooks": [
{
"type": "command",
"async": true,
"command": "han hook run typescript typecheck --async"
}
]
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 3
},
"eventStats": {
"Stop": 1,
"PostToolUse": 1,
"SubagentStop": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 3
}
}