hooks.json 1.2 KB

12345678910111213141516171819202122
  1. {
  2. "SessionStart": [
  3. {
  4. "matcher": "startup|resume",
  5. "hooks": [
  6. {
  7. "type": "command",
  8. "command": "mkdir",
  9. "args": ["-p", "~/.superpowers"],
  10. "description": "Initialize superpowers data directory"
  11. },
  12. {
  13. "type": "json",
  14. "hookSpecificOutput": {
  15. "hookEventName": "SessionStart",
  16. "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>"
  17. }
  18. }
  19. ]
  20. }
  21. ]
  22. }