Event Hooks

obsidian-second-brain

1 event · 1 hook

From obsidian-second-brain
Install
1
Run in your terminal
$
npx claudepluginhub kriscard/kriscard-claude-plugins --plugin obsidian-second-brain
Source

Defined in hooks/hooks.json

Configuration
{
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "async": true,
          "command": "VAULT=\"/Users/kriscard/obsidian-vault-kriscard\"; TODAY=$(date +%Y-%m-%d); YEAR=$(date +%Y); DOW=$(date +%u); DAILY=\"$VAULT/2 - Areas/Daily Ops/$YEAR/$TODAY.md\"; MISSING=\"\"; [ ! -f \"$DAILY\" ] && MISSING=\"daily\"; if [ \"$DOW\" = \"1\" ]; then WEEK=$(date +%G-W%V); MONTH_NUM=$(date +%-m); MONTH_NAME=$(date +%B); YEAR=$(date +%Y); WEEKLY_DIR=\"$VAULT/2 - Areas/Daily Ops/Weekly/$MONTH_NUM - $MONTH_NAME $YEAR\"; WEEKLY=\"$WEEKLY_DIR/$WEEK.md\"; [ ! -f \"$WEEKLY\" ] && MISSING=\"${MISSING:+$MISSING and }weekly\"; fi; [ -n \"$MISSING\" ] && echo \"Tip: Run /daily-startup to create your $MISSING note.\" || true"
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": false
  },
  "typeStats": {
    "command": 1
  },
  "eventStats": {
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 1
  }
}
Stats
Parent Repo Stars5
Parent Repo Forks1
Last CommitMar 4, 2026