Frontmatter is a short block of labels at the very top of a markdown file, set off by two lines of dashes. It isn’t part of what you read; it’s information about the file.

---
title: Grandma's Holiday Soup
occasion: holidays, birthdays
contains: peanuts, shrimp
---

Why it matters for a knowledge base

  • It makes files findable. Tag each file with what it is, when it’s for, or who it’s for, and you (or an AI) can pull every file with a given label instead of reading them all.
  • It’s cheap context. An AI can read the labels at the top of a hundred files without opening a hundred files. That’s part of context engineering: helping it find what matters without filling up its context window.
  • It controls things. Some tools read frontmatter as settings. On this site, publish: false keeps a page private.

Where you’ll see it

Obsidian shows frontmatter as a “Properties” panel at the top of a note, so you can edit the labels without touching the dashes. An AI working in your folder can add or fix frontmatter across many files at once.

Covered in Seminar 1.