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:
asepharyana
2026-07-26 14:24:52 +07:00
parent 530eb111a0
commit 95c77c694f
7 changed files with 107 additions and 21 deletions
+2 -2
View File
@@ -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."