work-journal
Skill2 starsChanged 3 months agoMITView on GitHub
Generate work summaries from the session-browser registry — across
In this repository2 other files it gives its agents.
- checkpointSkill
- snapshotSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Read <daily_dir>/<YYYY-MM-DD>.md and present it conversationally in stand-up framing.
- Very specific: line 44
If unenriched_ids or stale_ids is non-empty, or on_disk_all_time counts clearly exceed what the registry has indexed, heal before reporting:
- Very specific: line 54
DO NOT block: generate the report with (unsummarized) fallbacks and say so.
- Very specific: line 65
Step 3 — Markdown report: read references/report-style.md for the structure of the requested mode.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
work-journal
Turn the registry's journal-grade session records into a report for any time window. Capture is automatic (Stop/SessionEnd hooks + watcher + nightly enrichment); this skill is the read layer.
Resolve paths first
The skill directory may be a symlink into ~/.claude/skills. Resolve the repo:
REPO="$(cd "$(dirname "$(python3 -c 'import os,sys; print(os.path.realpath(sys.argv[1]))' "<this skill dir>/SKILL.md")")/../.." && pwd)" # readlink -f is missing on macOS < 12.3
PY="$REPO/.venv/bin/python"Output paths come from [reports] / [digest] in the repo's config
(defaults: ~/.session-browser/reports, ~/.session-browser/daily-logs).
Mode: daily — "what did I do today / yesterday"
"$PY" "$REPO/scripts/daily-digest.py" --date <YYYY-MM-DD>(local date; this regenerates the file even for today).- Read
<daily_dir>/<YYYY-MM-DD>.mdand present it conversationally in stand-up framing. No report files are written.
Modes: weekly-summary / monthly-summary / review-summary
Step 1 — pre-flight (always):
"$PY" "$REPO/scripts/report-data.py" --check-only --window <window>If unenriched_ids or stale_ids is non-empty, or on_disk_all_time counts
clearly exceed what the registry has indexed, heal before reporting:
"$PY" "$REPO/scripts/backfill.py" # index anything the hooks missed
"$PY" "$REPO/scripts/enrich-sessions.py" # journals new + stale (resumed) sessionsRe-run the check and tell the user what was healed (e.g. "journaled 6 codex
sessions that were never enriched"). If enrichment fails (provider down, quota),
DO NOT block: generate the report with (unsummarized) fallbacks and say so.
Step 2 — data: resolve the user's phrasing to a window
(last-week, last-month, last-quarter, last-6-months, Nd, or
--from/--to for anything custom — the script owns date math, don't compute
dates yourself), then:
"$PY" "$REPO/scripts/report-data.py" --window <window> > /tmp/worklog-report.jsonStep 3 — Markdown report: read references/report-style.md for the
structure of the requested mode. If the file named by [reports].style_override
exists, read it too — its instructions WIN over the defaults (personal /
company framing). Write the report to <out_dir>/summary-<from>-to-<to>.md.
Non-negotiable: every non-trivial session in the window appears in its project's section. Compression happens only in the narrative sections (executive summary, highlights, themes) — never by dropping sessions.
Step 4 — HTML timeline:
cp "<this skill dir>/templates/timeline.html" "<out_dir>/timeline-<from>-to-<to>.html"Then edit the copy: replace the {} inside
<script id="worklog-data" type="application/json">{}</script> with the
report JSON from Step 2, plus one added key you author:
"narrative": {"summary": "<2-4 sentences>", "highlights": ["...", ...]}.
Step 5 — report both file paths (and the healing note from Step 1). Do not open the files.
Mode: checkpoint (optional, mid/end-session)
journal to function; enrichment covers every session automatically.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

