Skip to content

Types & Templates

Types give notes a repeatable structure. A type maps a name to a directory and a template.

TypeDirectoryTemplate
noteNotes/.pkm/types/note.md
mocMOCs/.pkm/types/moc.md
fleetingInbox/.pkm/types/fleeting.md
---
type: dag
schedule: ""
retry: ""
---
# {title}
## What
## How
## Why
## See Also

Register it:

Terminal window
pkm type add dag --template dag-template.md --dir Notes/DAGs --scope global

Use it:

Terminal window
pkm save --type dag --title "DAG: user_events_daily" --tags dag,airflow

When saving a project note, pkm checks project types first and then falls back to global types. Project types override global types with the same name.