daily-update
Agent skill fromAr9av/obsidian-wiki
Run or configure the daily wiki maintenance cycle: check source freshness, refresh the index and hot.md, and manage its scheduled 9 AM launchd/systemd/cron reminder. Use for daily or morning wiki refresh or scheduler setup and verification.
How to install daily-update
install daily-update
# install the obsidian-wiki pack with the skills CLI
npx skills add Ar9av/obsidian-wiki# or add only this skill to Claude Code: copy the folder
skills/daily-update/
# into
~/.claude/skills/daily-update/ (all projects)
.claude/skills/daily-update/ (one project)
1# Daily Update — Wiki Maintenance Cycle23You run a lightweight maintenance pass over the wiki: check source freshness, refresh the index, update hot.md, and write the state file that the terminal notification reads.45## Before You Start671. **Resolve config** — follow the Config Resolution Protocol in `llm-wiki/SKILL.md` (inline `@name` override → walk up CWD for `.env` → global config → prompt setup). This gives `OBSIDIAN_VAULT_PATH` and `OBSIDIAN_WIKI_REPO`.82. **Derive vault-scoped state dir** — all runtime state is scoped to the resolved vault, not global:9 ```bash10 VAULT_ID=$(echo "$OBSIDIAN_VAULT_PATH" | md5sum 2>/dev/null | cut -c1-8 || md5 -q - <<< "$OBSIDIAN_VAULT_PATH" | cut -c1-8)11 STATE_DIR="$(obsidian_wiki_config_dir)/state/$VAULT_ID"12 mkdir -p "$STATE_DIR"13 ```143. Read `$OBSIDIAN_VAULT_PATH/.manifest.json`.1516## Modes1718### Run Mode (default — triggered by cron or `/daily-update`)1920Execute the maintenance cycle:2122**Step 1: Source freshness check**2324Compare each source in `.manifest.json` against its file's modification time. Classify as:25- **Fresh** — `mtime ≤ ingested_at`26- **Stale** — `mtime > ingested_at` (new content exists, not yet ingested)27- **Missing** — source file no longer exists2829**Step 2: Index refresh**3031```bash32obsidian-wiki memory index --vault "$OBSIDIAN_VAULT_PATH"33```34…
Excerpt shown under the repository's MIT license.
