Summary: There is a dependency issue between the hook and core system. Those scripts should be fixed depending on the desired official/recommended order. I'm going to try what the root INSTALL.md is recommending.
in INSTALL.md
**Installation order matters.** Install in this sequence:
1. pai-hook-system (foundation)
2. pai-core-install (identity and routing)
3. pai-history-system (memory)
4. pai-voice-system (optional)
5. pai-browser-skill (optional)
When claude tries to install pai-hook-system, Packs/pai-hook-system/INSTALL.md
# Check if pai-core-install is installed (REQUIRED)
if [ -f "$PAI_CHECK/skills/CORE/SKILL.md" ]; then
echo "✓ pai-core-install is installed"
else
echo "❌ pai-core-install NOT installed - REQUIRED!"
fi
The order conflicts.
Then in the pai-core-install
# Check for hook system (required dependency)
if [ -f "$PAI_CHECK/hooks/lib/observability.ts" ]; then
echo "✓ Hook system is installed (required)"
else
echo "❌ Hook system NOT installed - install pai-hook-system first!"
fi
Summary: There is a dependency issue between the hook and core system. Those scripts should be fixed depending on the desired official/recommended order. I'm going to try what the root INSTALL.md is recommending.
in INSTALL.md
When claude tries to install pai-hook-system, Packs/pai-hook-system/INSTALL.md
The order conflicts.
Then in the pai-core-install