#!/bin/bash # SessionStart Hook - Runs when a new Claude Code session starts # Create log directory if it doesn't exist mkdir -p .claude/logs # Log session start with timestamp echo "========================================" >> .claude/logs/session.log echo "Session Started: $(date '+%Y-%m-%d %H:%M:%S')" >> .claude/logs/session.log echo "Working Directory: $(pwd)" >> .claude/logs/session.log echo "User: $(whoami)" >> .claude/logs/session.log echo "========================================" >> .claude/logs/session.log # Output session initialization message to Claude cat << 'EOF' 🚀 **New Session Initialized - Foundry VTT Development Environment** 📋 **MANDATORY REMINDERS FOR THIS SESSION**: 1. ✅ **CLAUDE.md** has been loaded with project instructions 2. ✅ **8 MCP Servers** are available: serena, sequential-thinking, context7, memory, fetch, windows-mcp, playwright, database-server 3. ✅ **Specialized Agents** available: Explore, test-engineer, code-reviewer, refactoring-specialist, debugger, architect, documentation-writer, security-analyst ⚠️ **CRITICAL REQUIREMENTS** - You MUST follow these for EVERY task: **At the START of EVERY task, provide a Tooling Strategy Decision:** - **Agents**: State if using (which one) or not using (with reason) - **Slash Commands**: State if using (which one) or not using (with reason) - **MCP Servers**: State if using (which ones) or not using (with reason) - **Approach**: Brief strategy overview **At the END of EVERY task, provide a Task Completion Summary:** - What was done - Which features were used (Agents, Slash Commands, MCP Servers, Core Tools) - Files modified - Efficiency notes 📖 **See documentation**: - **CLAUDE.md**: Full project documentation (automatically loaded) - **.claude/SESSION_INSTRUCTIONS.md**: Quick reference for mandatory policies - "Mandatory Tooling Usage Policy" (CLAUDE.md lines 545-610) - "Task Initiation Requirements" (CLAUDE.md lines 905-920) - "Task Completion Status Messages" (CLAUDE.md lines 925-945) 🎯 **This Session's Focus**: Foundry VTT v11.315 + PF1e v10.8 macro development and debugging 💡 **Tip**: You can read .claude/SESSION_INSTRUCTIONS.md anytime for a quick reminder of mandatory policies. EOF # Session initialized successfully