Journaling
A journal is your structured long-term memory mechanism — experience, decisions, research, and methodology accumulated across sessions. With a journal, a later session can continue directly from where an earlier one stopped: read state, pick up work, avoid past pitfalls.
The Journal
The journal lives at <journal-root> and consists of:
- INDEX.md — cover page and dashboard. The journal's single entry point; shows current state signals. Every journal operation starts here.
- Rules document (RULES.md) — single entry point for rules; defines how this journal operates: INDEX structure, classification, note metadata fields, writing conventions, etc. Content is defined by the journal itself; the seed provides the initial scheme.
- Entries — individual notes. Entry organization (directories, lifecycle, etc.) is defined by journal rules.
Before You Begin
This skill's protocols depend on <journal-root>/INDEX.md context — the journal's current state and operating context (what's in progress, what needs attention, what you've learned before). If you have not read INDEX.md this session, open it now.
Operating without INDEX.md means operating blind.
| Protocol | When to use | Load |
|---|---|---|
| Init protocol | Creating a new journal | references/protocol-init.md |
| Operations protocol | Any operation that changes journal state — creating, editing, importing, moving, archiving, deleting entries. Day-to-day entry work (edit, move, delete, merge) routes here, not to maintenance. | references/protocol-operations.md |
| Maintenance protocol | Dedicated maintenance / reorganization of the journal, triggered explicitly by the user | references/protocol-maintenance.md |
Operating Principles
-
The journal serves you, not the user — the autonomy domain covers writing and user-guided operations. You write it for your future self. Entry placement, splits, cross-references — these depend on patterns only you see; within the autonomy domain the decision and execution are yours. Dedicated maintenance is outside the autonomy domain: it is triggered only by the user, as a dedicated action (see the maintenance protocol).
-
Tags follow journal rules — the tag system is self-managed by the journal. Before writing, read the tag-related content in the journal rules; when the rules define no tags, distill short words from content, purpose, etc. into the
tagsfield. -
Directory placement is judged by journal rules — read before writing. Before writing, read the journal rules document (classification section) to decide which directory the content belongs to; when undefined, use the seed scheme. Directory placement is a content-organization decision, owned by journal rules, not prescribed by this skill.
-
Verify actual entry state before proposing improvements — the spec is ideal, the disk is truth. Check files before recommending changes.
-
Capture discussion decisions immediately. When the user confirms a design decision, write it to the target project document in the same turn. Do not defer to the journal; a journal summary can follow later during maintenance.
-
Deletion handling is judged by journal rules — routed via the operations protocol. Deletion gets minimal guidance there and executes per the journal rules' deletion conventions; this skill presets no deletion protocol and no deletion semantics — the operations protocol carries only a safety fallback for when journal rules are silent.
Scripts and Facilities
Skill scripts (scripts/ in this skill) — dependency-free convenience tools (frontmatter, check-links), in both Python and Node.js versions. They serve the write and maintenance paths; take them on demand only — during mainline work there is no reason to stop and run checks or validations specially. Full guide in references/script-tools.md.
Library facilities (<journal-root>/scripts/) — tools the journal owns, stored inside the journal itself alongside its entries, serving the read path. Reading a journal never requires loading this skill, so a retrieval helper cannot be skill-owned: when the journal needs one, it belongs to the journal. Before building anything, check the journal's rules document for facilities that already exist and how they are meant to be used.
- Facilities surface; they never adjudicate. A lookup tool may rank, filter and report hits, but it must not decide a judgment the journal's rules reserve for a reader (meta-context leakage is the standing example). Mechanizing a judgment gate is a downgrade, not a robustness win — write the signals such a check would look for into the journal as recognition aids instead.
- Facilities are non-static and non-mandatory. They evolve with the journal's actual use; changing one is an ordinary journal write, on par with writing an entry. They never become a required step in a protocol, and a facility's absence is not a defect to be fixed.
Searching the Journal
A recursive search over journal content can come back empty while the content is there: the journal root is commonly reached through a symlink or another layer of indirection, and ripgrep / grep -r do not follow a link encountered during traversal (a path passed directly as an argument is resolved normally). The empty result then reads as "not recorded" — which is how a real entry gets declared missing.
- Search from inside the journal, or pass
<journal-root>(or a subdirectory of it) as the search path argument. - Searching from a parent directory: follow links explicitly —
rg --follow,grep -R. - Use the journal's own retrieval facility when it has one; it encodes the exclusions ad hoc searches forget (the recycle directory, the meta files, dot-files).
- An empty result is never evidence of absence. Re-run from the correct root before concluding a topic was never recorded.
- Match on the entry-level fields (
title/summary) before prose: they exist so a reader can decide without opening the file, so a hit there means "this entry is about it" while a prose-only hit means "it merely mentions it". - Naming and content may live in different languages — file names are often ASCII slugs while entries are written in the user's language. A query in the content language never matches file names; search both forms.
References
Load on demand; every entry states when to read it.
Protocols
- Init Protocol — creating a new journal
- Operations Protocol — any journal-state-changing operation: creating, editing, importing, moving, archiving, deleting entries
- Maintenance Protocol — user-triggered dedicated maintenance / reorganization
Design guides
- Discovery Contract Design — designing or judging a discovery contract (the injection text that routes a host agent to its journal); the init protocol's discovery phase links here
- Rule Design Guide — designing the journal's organization scheme (where content goes, naming, how it is found) before writing RULES.md
- INDEX Design Reference — designing INDEX structure and dashboards, including the INDEX-structure section of RULES.md
Specifications
- Note Writing Guide — how to write a good entry; the writing flow itself lives in the Operations protocol
- Frontmatter Specification — frontmatter format and grammar, including custom-field guidance
- INDEX.md Specification — INDEX structure rules
- Rules Specification — writing RULES.md rule text: principles and reminders for recording the organization scheme
Tools & templates
- Script Tools Guide — running the
frontmatter/check-linksscripts - Seed Templates — default scheme wherever journal rules leave a section undefined; source for bootstrapping the rules document
Patterns — read the summary first, open the full file only when it fits
- Project Dashboard Pattern — building a dashboard-style INDEX
- Layered Rules Pattern — organizing RULES.md into layers
- Note Tags Pattern — defining tag conventions
- Maintenance Memo Pattern — tracking maintenance backlog
- Classification Systems — choosing a classification system for entries
