/plugin marketplace add wuyuxiangX/yux-claude-hub/plugin install yux-linear-workflow@yux-claude-hubDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/sync_progress.py",
"timeout": 10
},
{
"type": "prompt",
"prompt": "If the sync_progress script returned an issue_id, consider posting a progress summary to Linear using mcp__linear__create_comment before context compaction.",
"timeout": 10
}
],
"matcher": ""
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/check_branch.py",
"timeout": 5
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_commit.py",
"timeout": 5
}
],
"matcher": "Bash"
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/post_command.py",
"timeout": 5
}
],
"matcher": "Bash"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/verify_linear_task.py",
"timeout": 5
},
{
"type": "prompt",
"prompt": "Check if Linear workflow is relevant:\n1. If user mentions task/issue/feature work, remind about /yux-linear-start\n2. If on a Linear branch (LIN-xxx), acknowledge the context\n3. If discussing PR/merge, remind about /yux-linear-pr or /yux-linear-merge\nOnly add reminders if truly relevant.",
"timeout": 5
}
],
"matcher": ""
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 2,
"command": 5
},
"eventStats": {
"PreCompact": 2,
"PreToolUse": 2,
"PostToolUse": 1,
"UserPromptSubmit": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 5,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}