npx claudepluginhub guzus/claude-link --plugin claude-linkDefined in hooks/hooks.json
{
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "if [ -n \"$CLAUDE_LINK_USERNAME\" ]; then curl -s -X POST https://api.claudelink.xyz/api/notify -H 'Content-Type: application/json' -d \"{\\\"telegram_username\\\": \\\"$CLAUDE_LINK_USERNAME\\\", \\\"message\\\": \\\"Claude has finished the task.\\\"}\"; elif [ -n \"$CLAUDE_LINK_TELEGRAM_ID\" ]; then curl -s -X POST https://api.claudelink.xyz/api/notify -H 'Content-Type: application/json' -d \"{\\\"telegram_id\\\": \\\"$CLAUDE_LINK_TELEGRAM_ID\\\", \\\"message\\\": \\\"Claude has finished the task.\\\"}\"; fi"
}
],
"matcher": ""
}
]
}"Runs check-uncommitted.sh script on Stop event to check for uncommitted changes in git repo before session ends. Executes shell command with 10s timeout."