fix(hooks): restore Superpowers-style SessionStart command hook
Properly follow Superpowers 6.1.1 pattern: - SessionStart command hook (type: command) runs run-hook.cmd session-start - run-hook.cmd is a cross-platform polyglot wrapper (Unix/Windows) - session-start script reads engineering-principles/SKILL.md and injects it as additionalContext wrapped in EXTREMELY_IMPORTANT tags - The 29 engineering principles are active in context from turn 1 plugin.json: remove sessionStart.skill, keep skills: ./skills/ The command hook is the primary mechanism (just like Superpowers' using-superpowers).
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# install.sh — code-guide installer for Claude Code
|
||||
# Installs the entire code-guide directory as one unit into ~/.claude/skills/.
|
||||
# Skills auto-discover, engineering-principles auto-loads at session start.
|
||||
# Skills auto-discover. SessionStart hook injects engineering-principles into context.
|
||||
# Usage:
|
||||
# ./install.sh # Copy code-guide to ~/.claude/skills/
|
||||
# ./install.sh --link # Symlink (edits live)
|
||||
@@ -41,4 +41,4 @@ if [ "$LINK_MODE" = true ]; then
|
||||
fi
|
||||
echo ""
|
||||
echo "Done. Restart Claude Code or run /reload."
|
||||
echo "Skills auto-trigger. engineering-principles skill auto-loads at session start."
|
||||
echo "Skills auto-trigger. SessionStart hook injects engineering-principles into context."
|
||||
|
||||
Reference in New Issue
Block a user