Loading...
Loading...
Run the daily wiki maintenance cycle: check all source freshness, update the index, and regenerate hot.md. Use this skill when the user says "/daily-update", "run the daily update", "update everything", "morning sync", "refresh the wiki index", or when triggered by the launchd cron at 9 AM. Also use to set up or verify the cron + terminal notification infrastructure for the first time ("set up the daily cron", "install the terminal notification", "how do I get the morning reminder?").
npx skill4agent add ar9av/obsidian-wiki daily-update~/.obsidian-wiki/configOBSIDIAN_VAULT_PATHOBSIDIAN_WIKI_REPO$OBSIDIAN_VAULT_PATH/.manifest.json/daily-update.manifest.jsonmtime ≤ ingested_atmtime > ingested_at$OBSIDIAN_VAULT_PATH/index.mdfind $OBSIDIAN_VAULT_PATH -name "*.md" -not -path "*/_*"hot.mdupdated:mkdir -p ~/.obsidian-wiki
date +%s > ~/.obsidian-wiki/.last_update
echo "<stale_count>" > ~/.obsidian-wiki/.pending_deltaimpl-validatorimpl-validator check:
goal: "Daily wiki maintenance — index reconciled, hot.md refreshed, state file written"
artifacts:
- $OBSIDIAN_VAULT_PATH/index.md
- $OBSIDIAN_VAULT_PATH/hot.md
- ~/.obsidian-wiki/.last_update
- ~/.obsidian-wiki/.pending_delta
checks:
- Does .last_update contain a recent Unix timestamp (within the last 60 seconds)?
- Does .pending_delta contain a non-negative integer?
- Does hot.md have an updated: frontmatter field set to today?
- Does index.md list at least as many pages as exist in the vault?$OBSIDIAN_VAULT_PATH/log.md- [TIMESTAMP] DAILY-UPDATE fresh=N stale=N missing=N index_added=N hot_refreshed=true|false## Daily Wiki Update
- Sources: N fresh · N stale · N missing
- Index: N pages (N added, N removed)
- hot.md: refreshed / up to date
Stale sources (run to sync):
/wiki-history-ingest claude — N sessions since last ingest
/wiki-history-ingest codex — N sessions since last ingest$OBSIDIAN_WIKI_REPO/scripts/daily-update.sh# Replace placeholder in plist
sed "s|OBSIDIAN_WIKI_REPO|$OBSIDIAN_WIKI_REPO|g" \
"$OBSIDIAN_WIKI_REPO/scripts/com.obsidian-wiki.daily-update.plist" \
> "$HOME/Library/LaunchAgents/com.obsidian-wiki.daily-update.plist"
# Load it
launchctl load "$HOME/Library/LaunchAgents/com.obsidian-wiki.daily-update.plist"~/.zshrcwiki-notify.shecho "" >> ~/.zshrc
echo "# obsidian-wiki terminal notification" >> ~/.zshrc
echo "source $OBSIDIAN_WIKI_REPO/scripts/wiki-notify.sh" >> ~/.zshrcbash "$OBSIDIAN_WIKI_REPO/scripts/daily-update.sh"~/.obsidian-wiki/.last_update/daily-update/tmp/obsidian-wiki-daily.log