summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2025-10-09 13:22:37 -0700
committerJesse Vincent <jesse@fsck.com>2025-10-09 13:22:37 -0700
commit3ed9af97ed4e03dd159f3464d9c7b3ec66918c49 (patch)
tree4f79ba4da4e7390834e4c0947a9c0897cf235702
parenta544b37d33f6d273fdace9a1e5e9e1d9f24f820c (diff)
Simplify SessionStart hook to minimal bootstrap
Just point to skills-search and getting-started guide. All details are in the SKILL.md itself.
-rwxr-xr-xhooks/session-start.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/hooks/session-start.sh b/hooks/session-start.sh
index 0f0409e..33d8c1d 100755
--- a/hooks/session-start.sh
+++ b/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