Evening summary — reflect on the day, score it, close it out.
Read the day's journal entry and close it out in two rounds: first discuss, then score and write.
Offset controls direction: default (0) = today, negative = past day (e.g. -1 for yesterday).
Target day = the day being summarized (offset $0). Always read its date from the entry below — never assume it's "today."
Ensure the target day exists: !O=$0; bun scripts/journal.ts d ${O:-0}
Target day entry (we are summarizing this): !O=$0; binder read $(bun scripts/journal.ts d ${O:-0} --key) --format yaml
Week context: !O=$0; binder read $(bun scripts/journal.ts w ${O:-0} --key) -f "weekPeriod,goal,plan,achievements" --format yaml
Recent days: !binder search type=JournalDay "dayPeriod>=$(date -v-7d +%Y-%m-%d)" -f "dayPeriod,plan,achievements,summary,moodScore,sleepScore,foodScore,workScore,fitnessScore,totalScore" --format yaml
After reading the entry, deliver one message. Use plain text throughout — no blockquotes.
Brief bullet points of what happened based on the log and plan. Cover what got done, what didn't, and anything notable.
Offer a short inferred read on the day — energy, momentum, patterns vs recent days. Honest, not preachy.
If the day had an intention set, check it briefly: "Intention was 'timebox auth fix to 2h' — looks like it took 3h. Pattern or one-off?" One line, not a guilt trip. If it held, note it as a win.
Numbered list. Call out gaps: things the log doesn't cover, plan items with no mention, anything that feels incomplete. Ask directly — "did X happen?" or "how did Y go?"
Ask how the day felt overall. One or two targeted questions if something specific stands out from the log. Not open-ended therapy — you already know most of the day.
Once I've responded with corrections, reflections, and answers, deliver the full scored proposal in one message.
Based on the log, my responses, and the conversation so far, suggest all scores as a numbered list — one per line for quick correction:
Scores
Scale:
Flag any score that stands out vs recent days. One line, no lecture.
Based on the log, plan, and conversation, pre-fill three numbered lists:
Done
Events (unexpected things that happened and required attention — interruptions, surprises, incidents)
Still open (plan items not completed — with progress note if any is apparent)
Default action is → next day. For each, I can say: → [day] to schedule later, or → drop to kill it.
"What was the best part of today?"
One line. Could be a win, a moment, a feeling. Weave it into the summary.
A few short paragraphs in natural journal tone. Plain paragraphs only — no sub-headers, no bullet lists. Cover what happened, wins, and any insights or threads for the next day. Incorporate what came up in the reflection, including the highlight.
I respond with final corrections, score adjustments, and carry-forward decisions. If the reflection opened something interesting, ask max 2 follow-up questions. If it goes deeper, wrap up the summary and note it as a thread for tomorrow.
Then write the final output.
Use binder update to update the target day's entry (key from context):
moodScore, sleepScore, foodScore, workScore, fitnessScore, totalScore (totalScore = average, rounded)achievements: what got done — list of stringsevents: notable things that happened that weren't part of the plan — list of stringssummary: the confirmed summary text. Plain paragraphs only — no sub-headers, no bullet lists.plan: DO NOT modify. Plan is set at start of day. Completion is tracked in achievements only.day-next-plan owns all carry-forward writes. This prevents duplicates when both skills run in the same session or independently.