ktg-plugin-marketplace/plugins/okr/hooks/hooks.json
Kjell Tore Guttormsen ac95cd6a30 feat(okr): sync to v1.3.0 from ktg-privat
Syncs all changes from v1.0.0 through v1.3.0:

v1.1 (quick fixes):
- Fix deprecated Viva Goals references
- Add DFO-OKR terminology mapping
- Add tillitsvalgt/fagforening perspective
- Update Objectives recommendation from 3-5 to 2-3

v1.1 (persistent context):
- Deep onboarding interview (full/mvp)
- Persistent .claude/okr/ directory tree
- Context-aware commands
- Cycle archival with retrospective

v1.3 (AI-first differentiators):
- /okr:gap — tildelingsbrev gap analysis with coverage matrix
- /okr:analyse — cross-cycle Mermaid analytics
- SessionStart coaching hook (proactive, phase-aware)
- gapanalytiker + trendanalytiker agents
- inject-okr-context.mjs extended for historikk/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 20:31:49 +02:00

46 lines
1.3 KiB
JSON

{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/coaching-hook.mjs",
"timeout": 3000
}
]
}
],
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/inject-okr-context.mjs",
"timeout": 5000
}
]
}
],
"PreCompact": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before compacting: if OKR work is in progress this session (writing, scoring, reviewing, or cascading OKR), preserve the current state. Include: any OKR draft text, quality scores given, cascade decisions, and next steps agreed upon."
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "prompt",
"prompt": "If OKR work occurred this session (new OKR written, scored, cascaded, or reviewed), generate a brief 2-3 bullet reminder of what was accomplished and what should be saved to the tracking system (Oboard/Linear). Skip this entirely if no OKR work occurred."
}
]
}
]
}
}