| name | today-journal |
| description | Use when the user wants a quick summary of today's work from journal entries |
Today Journal
Usage: /today-journal
Produces a bullet-point summary of today's work across all features.
Steps
-
Determine today's date:
date "+%Y-%m-%d"
-
Scan for today's journal entries in two places:
- Active features: check
~/git/hibernate/*/journal/YYYY-MM-DD.md
- Archived journals: check
~/git/hibernate/journal/*/events/YYYY-MM-DD.md
find ~/git/hibernate -maxdepth 3 -path '*/journal/*.md' -name "$(date +%Y-%m-%d).md"
find ~/git/hibernate/journal -maxdepth 3 -path '*/events/*.md' -name "$(date +%Y-%m-%d).md"
-
Read all matching journal files. If none exist, say so and stop.
-
Produce the summary using this format:
# YYYY-MM-DD
- QUARKUS-48005:
- First bullet point about what was done
- Second bullet point
- Third bullet point
- QUARKUS-53413:
- First bullet point
- Second bullet point
The summary should:
- Use a top-level
# heading with the date
- Use a top-level bullet per feature (e.g.,
- QUARKUS-48005:)
- Use indented sub-bullets for each key activity
- Cover all entries from all features, not just the latest one
- Be concrete: mention what was built, fixed, refactored, or discovered
-
Write the summary to a temp file. After writing, resolve the real path and give the user that absolute path:
cat > $TMPDIR/today-journal.md <<'EOF'
<summary>
EOF
JOURNAL_PATH=$(realpath $TMPDIR/today-journal.md)
-
Print the summary, then tell the user to run using the resolved absolute path (NOT $TMPDIR):
pbcopy < /absolute/path/to/today-journal.md