Install
1
Install the plugin$
npx claudepluginhub takemi-ohama/ai-plugins --plugin affaan-mWant just this hook?
Add to a custom plugin, then install with one command.
Risk Indicators
Modifies filesMatches all tools
Source
Defined in hooks/hooks.json
Configuration
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/context-monitor.js\"",
"description": "コンテキスト使用率を監視し、60%を超えたら警告を表示"
}
]
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/detect-package-manager.js\"",
"description": "プロジェクトのパッケージマネージャーを自動検出(npm/pnpm/yarn/bun)"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/auto-format.js\"",
"description": "コード編集後に自動フォーマット(Prettier/ESLint)を実行"
}
],
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/detect-console-log.js\"",
"description": "console.log や debugger の使用を検出して警告"
}
],
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/typescript-check.js\"",
"description": "TypeScript型チェックを自動実行"
}
],
"matcher": "Edit|Write"
},
{
"hooks": [
{
"type": "command",
"command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/secret-scan.js\"",
"description": "ファイル変更後にシークレット混入をチェック"
}
],
"matcher": "Edit|Write"
}
]
}Summary
{
"riskFlags": {
"touchesBash": false,
"matchAllTools": true,
"touchesFileWrites": true
},
"typeStats": {
"command": 6
},
"eventStats": {
"PreToolUse": 2,
"PostToolUse": 4
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 6,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 6
}
}Stats
Stars0
Forks0
Last CommitJan 31, 2026
Actions