Agent Notebook
A NotebookLM-style notebook built entirely on plain Markdown: one folder per
notebook inside the agent-notebook/ root, curated pages per source, dictation
notes via voice mode (for example Mistral Vibe Work voice mode), and
transformations that produce citable insights. The notebook is just Markdown
files your agent reads and writes; there is no server or database to run.
Load references/structure.md for the notebook layout and all schemas, and
references/instructions.md for binding behavior rules (citation, language,
index care) before performing any notebook operation.
Conventions (binding)
- Frontmatter keys and enumerated values are English and lowercase:
type: summary | keypoints | structure | style | custom-<name>. - Tags are English, lowercase, kebab-case.
- Trigger phrases are intent-based and recognized in any language; trigger phrases quoted in this skill are examples.
- Dates are ISO 8601; filenames use a
YYYY-MM-DD-date prefix plus a slugified title (ASCII, lowercase, hyphens), for example2026-10-11-test-note.md. In frontmatter,createdis date-only (YYYY-MM-DD, matching Obsidian's Date property) andcreated_timecarries the full ISO 8601 date-time with timezone. This keeps files compatible with external systems such as Obsidian. - Note and insight content stays in the language of its source; titles may be any
language. Use the
aliasesfrontmatter field for multilingual titles, e.g.aliases: ["Idea: minor characters", "Idee: Nebendarsteller"]. - Sources are never modified, moved, or deleted.
- Every page carries a provenance line; every insight names its source(s). Never fabricate content.
- After every change, update
index.mdandstate.mdin the notebook: rewrite the current-standing block in place and append one row to the monthly log (state schema inreferences/structure.md).
Layout: notebooks hub
All notebooks live in a single hub root, one folder per notebook. This keeps every notebook under one root for download, zip export, or git sync:
agent-notebook/
├── KNOWLEDGE.md # Hub entrypoint: description and list of notebooks
├── <slug>/ # One notebook per project
│ ├── KNOWLEDGE.md # Notebook entrypoint: description, conventions, index link
│ ├── index.md # Global index: pages, notes, insights
│ ├── structure.md # Copied from references/structure.md
│ ├── instructions.md # Copied from references/instructions.md
│ ├── sources/KNOWLEDGE.md
│ ├── pages/KNOWLEDGE.md
│ ├── notes/KNOWLEDGE.md
│ ├── insights/KNOWLEDGE.md
│ ├── state.md # Current standing + rolling monthly log
│ └── state-archive/ # Rotated log archives (YYYY-MM.md; created on first rotation)
└── <another-slug>/
The hub KNOWLEDGE.md lists every notebook with a one-line description so
routing can find the right notebook; the notebook frontmatter value of each
note and insight is the bare <slug>.
Setup (create a new notebook)
- If the
agent-notebook/root does not exist, create it with a hubKNOWLEDGE.md(frontmatter: namenotebooks, description naming the hub and its purpose; body: list of notebooks, initially the new one). - Create
agent-notebook/<slug>/with the layout defined inreferences/structure.md(KNOWLEDGE.md entrypoint, index, structure, instructions, sources/, pages/, notes/, insights/, state.md with an empty standing block and an empty log table for the current month). The notebook description must name the project it belongs to. - Copy
references/structure.mdinto the notebook asstructure.mdandreferences/instructions.mdasinstructions.md. - Add the notebook to the hub
KNOWLEDGE.mdlist. - Confirm setup to the user with root path, notebook slug, and layout.
Resolve the target notebook
Every save operation needs exactly one target notebook. Resolve it explicitly before saving anything, never implicitly:
- Read the hub
KNOWLEDGE.mdand match the content (source, note, or transformation request, together with its project or user context) against each notebook's one-line description. - Exactly one clear match: save to that notebook and name it in the confirmation.
- Multiple plausible matches: list the candidates and ask the user to choose. Never guess.
- No match: propose creating a new notebook (see Setup) and wait for explicit confirmation. Never create a notebook silently.
- An explicit user instruction (named notebook or project context) always overrides the routing proposal.
Ingest a source
- Resolve the target notebook per "Resolve the target notebook" above.
- Resolve the source: a document library URI (for example doclib://...), a URL,
or an uploaded file. Library documents stay in the library; record their
URI in the notebook source registry. Files are copied unchanged into
sources/. - Read the full source (library_read or file read) — never work from snippets.
- Create a curated page
pages/<type>/<slug>.mdwith the page frontmatter schema and the fixed section order: Summary, Key Points, Details, Related, References (provenance line last). - Update
index.md, the pages registry, andstate.md.
Save a dictation
- Trigger: a voice-mode transcript plus a request to save it as a note.
- Resolve the target notebook per "Resolve the target notebook" above.
- Clean STT artifacts without changing meaning; derive title, tags, language.
- Save as
notes/YYYY-MM-DD-<slug>.mdwith the note schema inreferences/structure.md(source: dictation, thestt_enginevalue naming the engine used; no fabricated duration or audio fields). - Update
index.mdand the notes registry; confirm filename, title, tags.
Run a transformation
- Trigger: transform/summarize/keypoints/structure/style/custom requests.
- Resolve the target notebook per "Resolve the target notebook" above.
- Load the target source(s) fully, then produce the result grounded in the source only.
- Save as
insights/<type>/<YYYY-MM-DD>-<slug>.mdwith the insight schema (English type value, source URI(s) in frontmatter). - Update
index.mdand the insights registry; confirm briefly.
Maintenance
Consolidation and lint follow the wiki pipeline stages (consolidate, lint, repair): detect near-duplicates, check for broken links, orphans, and missing sections; dedupe or delete only with explicit user confirmation.
Sync and export
All notebooks live under the single hub root, so the entire notebook
collection can be downloaded, zipped, or synced with a personal git repository
in one step. state.md and state-archive/ are part of the sync by design:
they are the designated artifact for cross-agent orientation. An external
agent reading a synced clone (for example a CLI agent) reads one compact
state.md per notebook to learn where a topic stands; the standing block's
last-updated date lets it judge staleness against the sync schedule.
State files are written by whichever agent is currently working on the
notebook, platform or external. Any other agent reading a synced clone treats
them as its orientation and syncs with the remote before it starts writing.
Keep one writing agent at a time and sync between handoffs to avoid
conflicting updates.