Procházet zdrojové kódy

Simplify SessionStart hook to minimal bootstrap

Just point to skills-search and getting-started guide.
All details are in the SKILL.md itself.
Jesse Vincent před 11 měsíci
rodič
revize
3ed9af97ed
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1 2
      hooks/session-start.sh

+ 1 - 2
hooks/session-start.sh

@@ -5,12 +5,11 @@
 mkdir -p ~/.superpowers
 
 # Output context injection as JSON
-# Use double quotes for heredoc to allow variable expansion
 cat <<EOF
 {
   "hookSpecificOutput": {
     "hookEventName": "SessionStart",
-    "additionalContext": "<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\nBefore ANY task, search for relevant skills:\n\n${CLAUDE_PLUGIN_ROOT}/skills/getting-started/skills-search PATTERN\n\n**Skills are mandatory when they exist, not optional.**\n\nFailed searches are logged to: ~/.superpowers/search-log.jsonl\n\n**Skills location**: ${CLAUDE_PLUGIN_ROOT}/skills/\n\nCategories:\n- testing/ - TDD, async testing, anti-patterns\n- debugging/ - Systematic debugging, root cause tracing, verification\n- collaboration/ - Brainstorming, planning, code review, parallel agents\n- meta/ - Creating, testing, and contributing skills\n\n**Critical**: Skills exist and you didn't use them = failed task.\n\n**RIGHT NOW, go read**: @${CLAUDE_PLUGIN_ROOT}/skills/getting-started/SKILL.md\n</EXTREMELY_IMPORTANT>"
+    "additionalContext": "<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\n**Skills search tool**: ${CLAUDE_PLUGIN_ROOT}/skills/getting-started/skills-search\n\n**RIGHT NOW, go read**: @${CLAUDE_PLUGIN_ROOT}/skills/getting-started/SKILL.md\n</EXTREMELY_IMPORTANT>"
   }
 }
 EOF