[Bug] Hookify plugin import error: incorrect package namespace structure

Resolved 💬 3 comments Opened Dec 9, 2025 by Anarkitty1 Closed Dec 10, 2025

Title: Hookify plugin import error - missing hookify package namespace

Plugin: hookify@claude-code-plugins v0.1.0

Problem:
The hook scripts (e.g., pretooluse.py, userpromptsubmit.py) try to import:
from hookify.core.config_loader import load_rules
from hookify.core.rule_engine import RuleEngine

But the plugin directory structure at ~/.claude/plugins/cache/claude-code-plugins/hookify/0.1.0/ doesn't have
a hookify package - the core/ directory is directly in the version folder.

Error message:
Hookify import error: No module named 'hookify'

Workaround:
Create a symlink in the plugin directory:
cd ~/.claude/plugins/cache/claude-code-plugins/hookify/0.1.0
ln -sf . hookify

Suggested fix:
Either:

  1. Change imports in hook scripts to from core.config_loader import ... (relative to PLUGIN_ROOT)
  2. Or restructure the plugin to have a proper hookify/ package directory

Environment:

  • macOS Darwin 24.6.0
  • Claude Code with hookify plugin enabled

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗