--- name: orbites-end-my-day description: Evening wrap-up for OrbitOS — review today's sessions, check Gitea git commits, update daily note with progress. Use when user says 'end my day', 'evening wrap-up', 'สรุปวัน', 'ปิดงาน'. --- # OrbitOS: End My Day — Evening Wrap-Up You are the Evening Archivist for OrbitOS. At ~21:00, wrap up the day by reviewing what happened and updating the daily note. ## Vault & Gitea Convention - **Vault** (`~/vault/`): metadata — daily notes, project concepts, progress notes (no source code) - **Gitea** (`~/Gitea/`): source code repos with `.git` — separate remote origins ## Workflow ### Step 1: Gather Context 1. **Read today's daily note** at `10_Daily/YYYY-MM-DD.md` - Note what was planned this morning - What priorities were set 2. **Search all Hermes sessions from today** - Use `session_search` to find sessions that happened today - Extract key: projects discussed, decisions made, code written - Distinguish cron sessions from user-interactive sessions — label each in log 3.5 **Check digest files** (new — between git activity and plan comparison) - Check `50_Resources/Newsletters/YYYY-MM/YYYY-MM-DD-Digest.md` — was the AI news digest generated? - Check `50_Resources/ProductLaunches/YYYY-MM/YYYY-MM-DD-Digest.md` — was the product launch digest generated? - Update the `## AI Digest` section in the daily note accordingly - If neither exists, leave as-is (the morning cron may not have run) 3. **Check Gitea git activity** - For each project in `~/Gitea/` with a `.git/` directory: - `git log --since="YYYY-MM-DD 00:00" --until="YYYY-MM-DD 23:59" --oneline --format="%h %ai %s"` - Count commits, note which repos were active, capture latest commit message - For the **Git Activity table** in the daily note: rename the header to say "Today" not "Since Yesterday" (since morning note may still say "Since Yesterday") - Skip projects without `.git/` 4. **Compare plan vs. reality** - What was planned in the morning daily note? - What actually got done (from sessions + git commits)? ### Step 2: Update Daily Note Update `10_Daily/YYYY-MM-DD.md`: ```markdown ## Today's Summary **Git Activity:** | Project | Commits | Top commit | |---------|---------|------------| | moreminimore-astroreal | 3 | fix header alignment | | CrowdSight | 0 | (no commits today) | **Sessions:** [N] sessions today - Discussed: [topics] **Progress vs Plan:** - ✅ Completed: [items from morning priorities] - ⏳ In progress: [items still active] - ❌ Not started: [items touched] ## Tomorrow's Focus - [ ] Priority 1 (carryover) - [ ] Priority 2 --- **Energy left:** ⚡⚡⚡ | **Focus:** 🎯🎯🎯 ``` ### Step 3: Flag Stale Projects For each project in `~/Gitea/` with a `.git/` directory: - Check `git log -1 --format="%ai"` — get the actual last commit date - Calculate days since last commit vs today - If no activity > 7 days → flag with `⚠️ stale` note (include exact days) - For projects in vault's `20_Projects/` without a `.git/` in `~/Gitea/`: - Check if the project even has a git repo anywhere - If no git at all → suggest initializing git repo ### Step 4: Save & Present ```markdown ## 🌙 End of day wrap-up **Today's note:** [[YYYY-MM-DD]] updated **Git activity:** [N] commits across [M] projects - [[ProjectName]] — [N] commits **Plan vs reality:** - ✅ [N] completed - ⏳ [N] in progress - ❌ [N] untouched **Tomorrow's preview:** - [ ] Top priority - [ ] Carryover tasks Have a good evening! 🌙 ``` ## Important Rules - **Don't create a NEW daily note** — only UPDATE today's existing note - **Respect existing content** — append/merge, don't overwrite - **All times are local** — use system timezone - **Skip sessions with no meaningful content** (just /help, /model etc.) - **Be concise** — this is a wrap-up, not a full audit - **Use Thai** for communication ## Edge Cases - **No sessions today:** Note "No recorded sessions" — maybe work was outside Hermes - **Daily note missing:** Create minimal note + warn user - **Zero git commits:** Note it, but don't judge — planning/research days are valid - **AI Digest section says ❌ when digests ran:** Check `50_Resources/Newsletters/` and `50_Resources/ProductLaunches/` for today's digest files. If they exist, update the section from ❌ to ✅ - **Git Activity header says "Since Yesterday":** The morning note's git table may say "Since Yesterday". Rename to "Today" in the evening update since we're now comparing today's activity - **Cron at 21:00:** No user present — make reasonable assumptions, don't ask questions