Finance Guru™ Core Context Loader Auto-loads essential Finance Guru system configuration and user profile at session start. Ensures complete context availability for all financial operations.
Built: 2025-11-03 Type: Session-start hook + skill Purpose: Automatically load Finance Guru system context at every session start
This system ensures Finance Guru has complete context availability from the moment a session begins, without requiring manual skill invocation or file reading.
Location: {project}/.claude/skills/fin-core/SKILL.md (project-specific)
Contains the core Finance Guru system overview:
Location: {project-root}/.claude/hooks/load-fin-core-config.ts
TypeScript hook that executes at session start and:
config.yamluser-profile.yamlsystem-context.mdLocation: {project-root}/.claude/settings.json
Registered in the SessionStart hooks array:
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "npx tsx $CLAUDE_PROJECT_DIR/.claude/hooks/load-fin-core-config.ts"
}
]
}
]
At every session start, Claude receives:
System Configuration (config.yaml)
User Profile (user-profile.yaml)
System Context (system-context.md)
Latest Portfolio Data (CSV files)
Session Start
↓
settings.json triggers hook
↓
load-fin-core-config.ts executes
↓
Reads all essential files
↓
Outputs formatted system-reminder
↓
Claude receives full context
↓
Ready for financial operations
# Test the hook manually
echo '{"session_id":"test","event":"session_start"}' | \
npx tsx .claude/hooks/load-fin-core-config.ts
# Verify skill content
cat ~/.claude/skills/fin-core/SKILL.md
# Check hook registration
cat .claude/settings.json | grep -A 10 SessionStart
✅ Zero Manual Setup: Context loaded automatically ✅ Always Current: Auto-detects latest CSV files ✅ Complete Context: All essential files in one load ✅ Session Awareness: Context available from first interaction ✅ Type-Safe: TypeScript hook with proper ES module support
Skill: {project}/.claude/skills/fin-core/SKILL.md (project-specific)
Hook: {project}/.claude/hooks/load-fin-core-config.ts (project-specific)
Config: {project}/.claude/settings.json (project-specific)
All files are project-specific - this setup only works in the family-office project.
The hook uses:
$CLAUDE_PROJECT_DIR - Set by Claude Code to project rootWhen you start your next Claude Code session in this project, you'll see:
🏦 FINANCE GURU CORE CONTEXT LOADED
Session: {session_id}
📘 FIN-CORE SKILL
⚙️ SYSTEM CONFIGURATION
👤 USER PROFILE
🌐 SYSTEM CONTEXT
💰 LATEST PORTFOLIO BALANCES
📊 LATEST PORTFOLIO POSITIONS
✅ Finance Guru context fully loaded and ready
Status: ✅ Production Ready Last Updated: 2025-11-03
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Category:stocks-finance