Claude Code · HooksPreToolUse
plan-mode-game
Abre un juego en el navegador mientras Claude planifica.
por davila7/claude-code-templates
PreToolUsePostToolUse
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --hook automation/plan-mode-gameContenido
Dónde va: .claude/settings.json
{
"tags": [
"plan-mode",
"gaming",
"automation",
"fun",
"productivity",
"global",
"macos"
],
"supportingFiles": [
{
"source": "plan-mode-game/start.sh",
"destination": "~/.claude/scripts/plan-mode-game/start.sh",
"executable": true
},
{
"source": "plan-mode-game/activity.sh",
"destination": "~/.claude/scripts/plan-mode-game/activity.sh",
"executable": true
},
{
"source": "plan-mode-game/plan-detect.sh",
"destination": "~/.claude/scripts/plan-mode-game/plan-detect.sh",
"executable": true
},
{
"source": "plan-mode-game/announce.sh",
"destination": "~/.claude/scripts/plan-mode-game/announce.sh",
"executable": true
},
{
"source": "plan-mode-game/needs-input.sh",
"destination": "~/.claude/scripts/plan-mode-game/needs-input.sh",
"executable": true
},
{
"source": "plan-mode-game/server.js",
"destination": "~/.claude/scripts/plan-mode-game/server.js",
"executable": false
},
{
"source": "plan-mode-game/index.html",
"destination": "~/.claude/scripts/plan-mode-game/index.html",
"executable": false
}
],
"hooks": {
"PreToolUse": [
{
"matcher": "EnterPlanMode",
"hooks": [
{
"type": "command",
"command": "bash $HOME/.claude/scripts/plan-mode-game/start.sh"
}
]
},
{
"matcher": "Read|Glob|Grep|WebFetch|WebSearch|Task|Bash|Edit",
"hooks": [
{
"type": "command",
"command": "bash $HOME/.claude/scripts/plan-mode-game/activity.sh"
}
]
},
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "bash $HOME/.claude/scripts/plan-mode-game/plan-detect.sh"
}
]
},
{
"matcher": "AskUserQuestion",
"hooks": [
{
"type": "command",
"command": "bash $HOME/.claude/scripts/plan-mode-game/needs-input.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "ExitPlanMode",
"hooks": [
{
"type": "command",
"command": "bash $HOME/.claude/scripts/plan-mode-game/announce.sh"
}
]
}
]
}
}
Más en Hooks
Formatear al editar
Ejecuta Prettier sobre cada archivo que Claude edita o crea.
Bloquear archivos .env
Impide que Claude lea o edite archivos de secretos.
Aviso al terminar
Notificación de escritorio en macOS cuando Claude termina.
Chequeo de tipos al editar
Corre tsc después de editar archivos TypeScript y muestra los errores.
Contexto al iniciar
Carga la rama y los últimos commits al abrir una sesión.
Registro de comandos
Guarda cada comando de shell en un log para auditoría.