---
actual_hours: null
assignees: []
created_at: '2025-07-24T14:37:19.992895'
dependencies: []
description: '# Unify Hook Loading Logic


  ## Objective

  Consolidate duplicate hook loading implementations into a single utility.


  ## Current State

  - Hook loading logic duplicated in multiple files

  - Inconsistent error handling for hook failures

  - Different approaches to hook discovery


  ## Target Areas

  1. **services/hook_service.py**

  2. **core/hook_manager.py** (if exists)

  3. **orchestrators using hooks**


  ## Tasks

  1. Analyze current hook loading implementations

  2. Create centralized hook_utils module

  3. Implement unified hook discovery and loading

  4. Add proper error handling and logging

  5. Refactor all hook users to use utility


  ## Expected Outcome

  - Single hook loading implementation

  - Consistent hook discovery across system

  - Better error handling for hook failures


  ## Parent: ISS-0005 (Code Duplication)'
due_date: null
estimated_hours: null
id: TSK-0034
labels: []
metadata:
  created_by: claude-mpm
  extracted_at: '2025-07-24T14:37:19.992887'
  source: ticket-cli
  ticket_type: task
parent: null
priority: medium
status: open
tags:
- hooks
- refactoring
- task
- source:ticket-cli
- code-duplication
- auto-extracted
title: 'ISS-0008: Unify hook loading logic'
updated_at: '2025-07-24T14:37:19.992895'
---

# ISS-0008: Unify hook loading logic

## Description
# Unify Hook Loading Logic

## Objective
Consolidate duplicate hook loading implementations into a single utility.

## Current State
- Hook loading logic duplicated in multiple files
- Inconsistent error handling for hook failures
- Different approaches to hook discovery

## Target Areas
1. **services/hook_service.py**
2. **core/hook_manager.py** (if exists)
3. **orchestrators using hooks**

## Tasks
1. Analyze current hook loading implementations
2. Create centralized hook_utils module
3. Implement unified hook discovery and loading
4. Add proper error handling and logging
5. Refactor all hook users to use utility

## Expected Outcome
- Single hook loading implementation
- Consistent hook discovery across system
- Better error handling for hook failures

## Parent: ISS-0005 (Code Duplication)

## Details
- **Status**: open
- **Priority**: medium
- **Assignees**: None
- **Tags**: hooks, refactoring, task, source:ticket-cli, code-duplication, auto-extracted
- **Created**: 2025-07-24 14:37:19
- **Updated**: 2025-07-24 14:37:19

## Tasks
- [ ] Add task items here

## Notes
_Add any additional notes or context here._
