session-start.sh 419 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. # SessionStart hook for superpowers plugin
  3. # Create data directory
  4. mkdir -p ~/.superpowers
  5. # Output context injection as JSON
  6. cat <<EOF
  7. {
  8. "hookSpecificOutput": {
  9. "hookEventName": "SessionStart",
  10. "additionalContext": "<EXTREMELY_IMPORTANT>\nYou have superpowers.\n\n**RIGHT NOW, go read**: @${CLAUDE_PLUGIN_ROOT}/skills/getting-started/SKILL.md\n</EXTREMELY_IMPORTANT>"
  11. }
  12. }
  13. EOF
  14. exit 0