journal-management-generic
Skill2 starsChanged 2 months agoMITView on GitHub
Generic hierarchical journal system for any agent's operational context with time-based consolidation. Use this skill whenever you need to read, write, or consolidate operational journals — including at session startup, after completing tasks, before ending a session, or when reviewing past work. This skill works for ANY agent type (persona, non-persona, implementer, tester, researcher, etc.). Do NOT attempt to manage journal context manually; always consult this skill for all journal operations.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- simplified-technical-englishSkill
- code-implementationSkill
- python-quality-gatesSkill
- journal-managementSkill
- plan-trackingSkill
- project-notesSkill
- task-routingSkill
- herdrSkill
- plan-output-templateSkill
- risk-and-dependency-identificationSkill
- task-decompositionSkill
- source-selectionSkill
- code-review-checklistSkill
- production-issue-flaggingSkill
- regression-identificationSkill
- test-case-structureSkill
- test-strategy-selectionSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 98
Never rebuild the file from memory.
- Distinctive: line 105
If the file was heavily rewritten or consolidated since your read, write from the latest recoverable state and note the discrepancy in your …
- Distinctive: line 107
If a write fails, retry once with a fresh re-read.
- Very specific: line 113
Always use the write tool, never edit.
- Very specific: line 150
When a day's work spans MORE THAN ONE project/repository, group the Work Log bullets under ### <project> subsections — one subsection per …
- Distinctive: line 178
All other sections (Details, Key Decisions, Issues / Blockers, Verification, Lessons Learned) are OPTIONAL — include them ONLY when they …
- Distinctive: line 183
Keep section names standard and plain.
- Distinctive: line 213
Always load at startup:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Journal Management
Discovery — Find Your Home Directory
At the START of every session, run this bash command ONCE:
echo $HOMEStore the returned value and use it to replace <USER_HOME> in all paths below.
CRITICAL: Tools like
globdo NOT expand$HOME,~, or any shell variables. Always substitute the discovered literal path (e.g.,/home/exampleuser) into tool calls.
Determining <AGENT_TYPE>
Journals live under <USER_HOME>/agent-notes/<AGENT_TYPE>/, so every theme's
agent of the same profession shares one stable operational memory.
This skill is agent-agnostic and lives in the shared skills/common/ folder:
<AGENT_TYPE> comes from the profession that DECLARES it (for this repo's
overseer: overseer), never from a persona name in a system prompt.
How to resolve <AGENT_TYPE> (in priority order):
- Profession / agent type (preferred, always used in this repo) —
<AGENT_TYPE>is the profession this skill ships with, set once per deployment. In this repo it isoverseer. It comes from the profession / agent type, NOT from anything in a system prompt. - NEVER resolve it from a persona name — a system prompt opening like
"You are
<PersonaName>the<RoleTitle>..." is theme flavor only and varies per theme. Personas are decoration; the profession's operational memory must be stable across themes. Every theme's Overseer journals to<USER_HOME>/agent-notes/overseer/, never to a persona-named directory.
Format the value lowercase with hyphens (e.g. overseer). Use the same value
every session so the journal history stays in one place.
Folder Structure
<USER_HOME>/agent-notes/<AGENT_TYPE>/
├── journals/
│ ├── daily/ YYYY-MM-DD.md
│ ├── weekly/ YYYY-Wnn.md
│ ├── monthly/ YYYY-MM.md
│ └── yearly/ YYYY.mdJournal filenames are plain — no agent suffix. The profession lives in the directory path.
Reading Journals
Primary method (glob):
glob(pattern="YYYY-MM-DD.md",
path="<USER_HOME>/agent-notes/<AGENT_TYPE>/journals/daily/")Pick the most recent by filename (YYYY-MM-DD sorts naturally). Read that file.
Fallback (if glob returns nothing):
ls <USER_HOME>/agent-notes/<AGENT_TYPE>/journals/daily/ | sort | tail -1Writing Journals
HARD LIMIT — 100 lines maximum. Applies to ALL journal levels: daily, weekly, monthly, yearly. If new information cannot fit, compress existing content (tighten wording, merge redundant points, drop non-essential detail) rather than exceeding the limit.
For the correct current date use the date bash command.
Merge-aware updates (shared journal cave)
Journal files under agent-notes may be written by MORE THAN ONE session (e.g. several sessions of the same profession sharing one home directory). A naive read-then-write clobbers the other sessions' entries. Follow these rules on EVERY update:
- Re-read the file IMMEDIATELY before writing. Never write from an earlier read or from memory — the file may have changed since you first loaded it.
- Never rebuild the file from memory. The content you write must be the current on-disk content plus your own additions.
- Preserve verbatim every section/subsection you did not author, including
other projects'
### <project>sections and any unknown content. Add or update only your own project's section. When two sessions share the same project subsection, treat your additions as append-only and always write from the current disk content. - If the file was heavily rewritten or consolidated since your read, write from the latest recoverable state and note the discrepancy in your entry.
- If a write fails, retry once with a fresh re-read; if it fails again, report it — never silently discard.
- Re-read-before-write narrows but cannot fully eliminate a simultaneous write by two sessions; if that happens the later write wins silently. Check for lost sections before finishing a session.
Always use the write tool, never edit. Follow the merge-aware rules above
when updating; do not skip the merged re-read.
Entry Structure
One daily file per day, structured like this:
# YYYY-MM-DD
## Work Log
- <task>: <1-line result> (<commit hash if any>)
- <task>: <1-line result>
## Details
- <only for the day's complex task(s), if needed>
## Key Decisions
- <only notable decisions>
## Issues / Blockers
- <only blockers>
## Verification
- <key checks> ✅
## Lessons Learned
- <only what's worth remembering>Headings below are examples. Omit any with no content; never leave placeholder text (like
<only blockers>) in a written journal.
Per-project sections
When a day's work spans MORE THAN ONE project/repository, group the Work Log
bullets under ### <project> subsections — one subsection per project worked
that day. Skip a subsection if a project has nothing to log. The subsection
header carries the project name, so bullets inside it don't need a project
tag.
Example (two projects in one daily file):
## Work Log
### persona-agents
- permission audit: tuned 3 rules (commit 40a358b)
- audit log cleared for clean baseline
### tarragon
- cache-filename sanitize: folder + reserved-name guardsFor the optional sections (Key Decisions, Verification, etc.), use the same
### <project> subsections when the file spans multiple projects; otherwise
keep bullets flat and add a [project] tag only if a bullet would otherwise
be ambiguous.
Key rules:
- One entry per day, not one entry per task.
- Work Log is the primary section: a compact bullet list, one line per task, with a short result and a commit hash if any.
- All other sections (Details, Key Decisions, Issues / Blockers, Verification, Lessons Learned) are OPTIONAL — include them ONLY when they have real, non-empty content.
- Details is reserved for the day's complex task(s) only — not routine work already in the Work Log.
- Keep section names standard and plain. Do not rename them to match a persona voice.
When to Write
| Event | What to document |
| Delegation completed | What subagent did, result, any issues |
| Commit made | Commit hash, summary of changes |
| Multi-step task finished | Overview of what was accomplished |
| Error / troubleshooting | What went wrong, how it was fixed |
| Session end / pause | Summary of everything done this session |
| Multiple tasks in one day | Consolidate all into ONE daily entry's Work Log — not separate entries per task |
Entry Types
- CREATE — First entry of the day. Write the full file.
- UPDATE — Later work the same day. Read existing, update, write full file (see Writing).
- APPEND — For consolidation. Read source files first, then write the merged result.
Startup Read Behavior
Always load at startup:
- Latest daily journal — most recent
YYYY-MM-DD.mdin the daily folder - Current period summary — if a weekly or monthly file covers the current date, read it too
Load additional entries when:
- The user's task references work from more than a few days ago
- The latest daily entry mentions dependencies on earlier work
Priority for additional reads: weekly summary → monthly → yearly → specific dailies.
Voice Rules
- Reading: Extract facts and context only. Never adopt the voice or style of journals you read.
- Writing: Plain, neutral, factual language. No persona voice, no drama, no storytelling — just what was done, decisions, issues, verification, lessons.
Consolidation Schedule
| Level | When | Source | Target |
| Weekly | First run of a new ISO week | Last 7 daily files | YYYY-Wnn.md |
| Monthly | First run of a new month | 4-5 weekly files | YYYY-MM.md |
| Yearly | First run of a new year | 12 monthly files | YYYY.md |
First run of a new ISO week: consolidate the last 7 daily files into
YYYY-Wnn.md (read source files first, then write the merged result).
Keep summaries short:
- Weekly: 1-2 paragraphs per day (~15 lines total)
- Monthly: 1 paragraph per week (~20 lines total)
- Yearly: 1 paragraph per month (~25 lines total)
Consolidations (weekly/monthly/yearly) keep the per-project grouping of the
source dailies (e.g. ### <project> inside each day's summary where sources
had it).
Error Handling
- Journal file not found on read → normal, no work was done that period. Continue.
- Directory missing on write → create with
mkdir -p <path>, then write.
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.

