Skip to main content

---

title: Session Retrospective Hook component_type: hook version: 1.0.0 audience: contributor status: active summary: Automated session retrospective for continual skill optimization keywords:

  • retrospective
  • learning
  • skill-improvement
  • optimization
  • patterns tokens: ~2500 created: 2025-01-01 updated: 2025-01-01

Session Retrospective Hook for CODITECT-core

Automatically analyzes session effectiveness and skill utilization to:

  1. Track which skills were invoked and their outcomes
  2. Identify success/failure patterns
  3. Detect anti-patterns that reduce effectiveness
  4. Generate skill improvement recommendations
  5. Update skill learnings database for future sessions

Hook Triggers: - session.end - Triggered when session ends - manual.retrospective - Manually triggered analysis - periodic.checkpoint - Triggered at session checkpoints

Usage: # Automatic (via hook system) hooks/session-retrospective.py --event session.end

# Manual invocation
hooks/session-retrospective.py --manual --session-id SESSION_ID
hooks/session-retrospective.py --analyze-skills

# Real-time optimization during session
hooks/session-retrospective.py --optimize-now

File: session-retrospective.py

Classes

SkillInvocation

Track a single skill invocation.

SessionRetrospective

Analyze session for skill optimization opportunities.

Usage

python session-retrospective.py