add conscience to weekly note
This commit is contained in:
parent
3ea550ce8a
commit
0ace572c6a
3 changed files with 37 additions and 10 deletions
|
|
@ -21,7 +21,7 @@ col = db["journal"]
|
||||||
|
|
||||||
doc = {
|
doc = {
|
||||||
"note": sys.argv[1],
|
"note": sys.argv[1],
|
||||||
"tags": ["examination-of-conscience"],
|
"tags": ["examination_of_conscience"],
|
||||||
"created_at": datetime.now(timezone.utc),
|
"created_at": datetime.now(timezone.utc),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
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:
|
triggers:
|
||||||
- weekly review
|
- weekly review
|
||||||
- how'd my week go
|
|
||||||
- plan my week
|
- plan my week
|
||||||
- Sunday review
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Weekly Review
|
# Weekly Review
|
||||||
|
|
@ -51,9 +49,14 @@ This part is backward-looking only. Focus on what happened, not what's coming.
|
||||||
**Carry Forward?**
|
**Carry Forward?**
|
||||||
Ask: "Anything from this week you want to carry into next week?"
|
Ask: "Anything from this week you want to carry into next week?"
|
||||||
|
|
||||||
5. Ask two reflection questions (conversational — wait for each answer):
|
#### Reflective Questions
|
||||||
- "How did the week go overall?"
|
Ask the following reflection questions (conversational — wait for each answer):
|
||||||
- "Anything you'd do differently next week?"
|
|
||||||
|
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.
|
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.
|
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?"
|
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. 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?"
|
5. Ask: "Anything else to note going into the week? Deadlines, commitments, things to watch for?"
|
||||||
6. Add those to the Notes section.
|
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.
|
- 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 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`.
|
- 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.*
|
|
||||||
|
|
|
||||||
26
weekly-review/scripts/last_weeks_conscience
Executable file
26
weekly-review/scripts/last_weeks_conscience
Executable file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue