From 0ace572c6a237804f5ed501cfec8fda0a97527b0 Mon Sep 17 00:00:00 2001 From: Connor Rhodes Date: Sat, 9 May 2026 19:53:43 -0500 Subject: [PATCH] add conscience to weekly note --- .../scripts/add_improvement_journal_entry | 2 +- weekly-review/SKILL.md | 19 +++++++------- weekly-review/scripts/last_weeks_conscience | 26 +++++++++++++++++++ 3 files changed, 37 insertions(+), 10 deletions(-) create mode 100755 weekly-review/scripts/last_weeks_conscience diff --git a/shutdown-routine/scripts/add_improvement_journal_entry b/shutdown-routine/scripts/add_improvement_journal_entry index ff92d01..0760623 100755 --- a/shutdown-routine/scripts/add_improvement_journal_entry +++ b/shutdown-routine/scripts/add_improvement_journal_entry @@ -21,7 +21,7 @@ col = db["journal"] doc = { "note": sys.argv[1], - "tags": ["examination-of-conscience"], + "tags": ["examination_of_conscience"], "created_at": datetime.now(timezone.utc), } diff --git a/weekly-review/SKILL.md b/weekly-review/SKILL.md index c02a388..fd1b1b4 100644 --- a/weekly-review/SKILL.md +++ b/weekly-review/SKILL.md @@ -3,9 +3,7 @@ name: weekly-review description: Single weekly session (typically Sunday) that reviews the closing week and plans the new one. Creates a week note for the new week at the end. triggers: - weekly review - - how'd my week go - plan my week - - Sunday review --- # Weekly Review @@ -51,9 +49,14 @@ This part is backward-looking only. Focus on what happened, not what's coming. **Carry Forward?** Ask: "Anything from this week you want to carry into next week?" -5. Ask two reflection questions (conversational — wait for each answer): - - "How did the week go overall?" - - "Anything you'd do differently next week?" +#### Reflective Questions +Ask the following reflection questions (conversational — wait for each answer): + +1. **"How did the week go overall?"** + +2 **"Anything you'd do differently next week?"** + - For this one, summarize the past week's (7 days) journal entries tagged "examination_of_conscience." Get those entries by running `scripts/last_weeks_conscience` + - Then ask the user "anything else?" --- @@ -65,6 +68,8 @@ This part looks forward. Use `vik t up` to see what's on deck. 2. Run `vik t up` to show tasks due or starting in the past or next 7 days. Present this as context for planning. 3. Create `~/notes/week_YYMMDD.md` for the new week using the template below. 4. Ask: "What are your goals for this week? What tasks do you want to make sure happen?" +5. Optional: search last week of daily note for items labeled `raise the bar: ITEM` (This is under the "Today I get to" heading.) If those are present, list all from the past 7 days to the user and ask them: "How do you want to challenge yourself this week" + 5. Take the response and populate the Goals section of the new week note. 5. Ask: "Anything else to note going into the week? Deadlines, commitments, things to watch for?" 6. Add those to the Notes section. @@ -86,7 +91,3 @@ If Connor gives a philosophical or reflective answer (e.g., "take it easy," "foc - Keep the whole session focused. If it's running long, it's okay to timebox the planning step. - Part 1 is backward-looking: use `vik t done 7` to see what was completed. Do NOT use `vik t up` here. - Part 2 is forward-looking: use `vik t up` to show what's due/starting soon. Do NOT pull in the full `vik task list`. - ---- - -*Customized in Video 7 via the assembler.* diff --git a/weekly-review/scripts/last_weeks_conscience b/weekly-review/scripts/last_weeks_conscience new file mode 100755 index 0000000..2853f44 --- /dev/null +++ b/weekly-review/scripts/last_weeks_conscience @@ -0,0 +1,26 @@ +#!/usr/bin/env -S uv run --script +# /// script +# requires-python = ">=3.12" +# dependencies = ["pymongo"] +# /// + +from datetime import datetime, timedelta, timezone +from pymongo import MongoClient + +client = MongoClient( + "mongodb://root:3wwfoUjyk2E2zWELXFlLuHqfw1ALlOp4pb2H5Vq3TImbMIHL2h1u8Jej2mjzCPl@docdb.connorrhodes.com:35563" +) + +seven_days_ago = datetime.now(timezone.utc) - timedelta(days=7) + +results = client.notes.journal.find( + { + "tags": "examination_of_conscience", + "created_at": {"$gte": seven_days_ago}, + } +) + +for doc in results: + print(f"[{doc['created_at'].strftime('%Y-%m-%d %H:%M')}] {doc['note']}") + +client.close()