Automates file modifications, bash commands, and session cleanup based on specific tool usage and prompts.
/plugin marketplace add markus41/claude/plugin install home-assistant-architect@claude-orchestrationDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Validate YAML syntax before writing automation files matching *.yaml or automations/*.yaml patterns."
}
],
"matcher": "Write"
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Remind to backup after significant Home Assistant changes, especially changes to homeassistant or configuration.yaml."
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "If the Bash command involved Ollama (contained 'ollama'), verify Ollama model availability and status."
}
],
"matcher": "Bash"
},
{
"hooks": [
{
"type": "prompt",
"prompt": "Scan for security issues in Home Assistant configuration changes, especially for configuration.yaml, secrets.yaml, and other *.yaml files."
}
],
"matcher": "Write"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Monitor for Home Assistant-related state change requests. If the user message contains keywords like 'turn on', 'turn off', 'set', 'adjust', 'home assistant', 'light', 'switch', or 'thermostat', detect and handle the HA state change request."
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 5
},
"eventStats": {
"PreToolUse": 1,
"SessionEnd": 1,
"PostToolUse": 2,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}