Executes bash commands and modifies files based on prompt patterns and tool usage events.
/plugin marketplace add bahamoth/claude-linear-workflow/plugin install linear-workflow@claude-linear-workflowDefined in hooks/hooks.json
{
"PreCompact": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Pre-Compact: Sync progress to Linear\n\n1. Extract issue ID from branch name (pattern: [a-z]+-\\d+)\n2. Summarize work done in this session\n3. Post comment via mcp__linear-server__create_comment\n\nSkip if no issue ID in branch."
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/check_linear_env.py\""
}
],
"matcher": "Write|Edit|ExitPlanMode"
},
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/ensure_linear_branch.py\""
}
],
"matcher": "Write|Edit|ExitPlanMode"
},
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/validate_commit_msg.py\""
}
],
"matcher": "Bash"
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/scripts/check_linear_env.py\""
}
]
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"prompt": 1,
"command": 4
},
"eventStats": {
"PreCompact": 1,
"PreToolUse": 3,
"UserPromptSubmit": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 4,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 4
}
}