/skillbase:zettelkasten-vaultfrom skillbase
Create and manage a Zettelkasten-style knowledge vault using Obsidian Flavored Markdown. Use this skill whenever the user wants to capture notes, ideas, research, meeting notes, or any knowledge in a structured way — especially when they mention "vault", "zettelkasten", "atomic notes", "zettels", "knowledge base", "second brain", "evergreen notes", "note-taking", or want to link ideas together. Always use this skill when creating .md files that should live in the vault, not just standalone markdown. Strongly prefer this skill over the generic obsidian-markdown skill when the intent is knowledge management rather than one-off document creation.
Ships in skillbase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ZK is shorthand for Zettelkasten. Use these terms interchangeably.
This skill governs the creation and management of a personal knowledge vault using Zettelkasten principles within an Obsidian-compatible folder structure.
The Zettelkasten method, pioneered by sociologist Niklas Luhmann, treats knowledge as a web of atomic ideas, not a hierarchy of documents.
Key principles to embody in every note:
The vault path is resolved in this order:
~/.config/ZK/.env and use ZK_VAULT_PATH if set~/Projects/ZK/ if the file or variable is missingAlways resolve the vault path before creating or reading any notes. Run:
grep ZK_VAULT_PATH ~/.config/ZK/.env 2>/dev/null | cut -d= -f2 | sed 's|~|'"$HOME"'|'
If empty, use ~/Projects/ZK/.
Verify the resolved path is the real vault, not an empty fallback. A missing
~/.config/ZK/.env sends every note into a local directory that may not be the
vault at all — the write succeeds, so nothing looks wrong until the notes are
found missing months later. Before writing, confirm:
test -d "$ZK_VAULT_PATH/.git" || echo "STOP: vault is not a git clone — resolve before writing"
find "$ZK_VAULT_PATH" -name '*.md' | wc -l # a real vault has hundreds of notes, not zero
If the path holds no git repo or almost no notes, stop and tell the user rather than creating a note there. Recovering stranded notes later is far more expensive than pausing now.
The vault is a git clone of a private remote (github.com:mattjoyce/ZK.git).
Sync is not optional housekeeping; it is what stops the same note existing in two
divergent copies on two machines.
Pull before reading or writing. Another machine may hold notes this one hasn't seen:
git -C "$ZK_VAULT_PATH" pull --rebase --autostash
Commit and push after any note is created or edited. A note that exists only in the working tree is a note that can be lost:
git -C "$ZK_VAULT_PATH" add -A
git -C "$ZK_VAULT_PATH" commit -m "<what changed and why, one line>"
git -C "$ZK_VAULT_PATH" push
On conflict, never discard a side. Both versions are somebody's thinking — keep both bodies under one note, mark the seam, and tell the user which parts came from where.
Setting up a new machine:
git clone [email protected]:mattjoyce/ZK.git ~/Projects/ZK
mkdir -p ~/.config/ZK && echo 'ZK_VAULT_PATH=~/Projects/ZK' > ~/.config/ZK/.env
Never cp -r a vault between machines. Copying is how forks are born; cloning is
how they are prevented.
If you find a local ./vault/ directory in the current working directory, it may contain a mix of ZK notes and other Obsidian documentation. Do not blindly migrate everything. Follow this order:
type: with one of: permanent, fleeting, literature, structure. Non-ZK Obsidian docs will lack this field or use different values. Skip anything that isn't a ZK note./home/matt/admin/ductile-test/ → project: ductile)project: fieldproject: <inferred> to each note missing it — insert after the type: line — before moving anything$ZK_VAULT_PATH./vault/ (leave non-ZK files in place)The vault uses this layout:
$ZK_VAULT_PATH/
├── inbox/ # Fleeting notes — raw captures, not yet processed
├── notes/ # Permanent Zettels — atomic, linked, evergreen
├── literature/ # Literature notes — processed from a source
├── structure/ # Structure notes (MOCs) — index/map notes
└── assets/ # Images, attachments
Create the folder structure if it doesn't exist:
mkdir -p "$ZK_VAULT_PATH"/{inbox,notes,literature,structure,assets}
Every note must carry a project: field in its frontmatter. This records provenance — which project or context the note was created in. Notes can link freely across projects; this field is metadata, not a category.
Resolve project before creating any note:
ductile-test/ or ductile-local/ or /Projects/ductile → ductileAgenticLoop → agenticloopductile-discord → ductile-discord/home/matt/admin (generic admin work) → adminExamples:
Working in /home/matt/admin/ductile-test/ on a config discovery:
project: ductile
Working in /home/matt/Projects/AgenticLoop/ on a run constraint bug:
project: agenticloop
A general insight about systemd services that spans projects:
project: admin
tags: [systemd, linux]
A note captured mid-conversation with no clear CWD context — ask the user:
"Which project should I associate this note with?"
Project MOCs: Each project with 3+ notes should have a structure/MOC-<project>.md entry. When creating a note, check if a MOC exists for that project and add a link.
inbox/)Quick capture of a raw thought. Temporary — meant to be processed into a permanent note.
Filename: YYYY-MM-DD-short-slug.md
---
type: fleeting
date: 2025-02-27
tags: [inbox]
---
literature/)Processing a source (book, article, paper, video). Summarises in own words. One note per source.
Filename: author-year-short-title.md (e.g., luhmann-1992-communicating-with-zettelkastens.md)
---
type: literature
title: "Communicating with Zettelkastens"
author: Niklas Luhmann
year: 1992
source: https://example.com/source
tags: [knowledge-management, systems]
related: []
---
notes/)The core unit. One atomic idea, written to stand alone, linked richly.
Filename: Use a timestamp ID + slug: YYYYMMDDHHII-slug.md (e.g., 202502271430-links-are-first-class.md)
The timestamp ID is the unique identity of the note — never change it.
---
id: "202502271430"
type: permanent
title: "Links are first-class citizens in a Zettelkasten"
created: 2025-02-27
modified: 2025-02-27
tags: [zettelkasten, linking, knowledge-management]
related: ["[[202502271200-atomicity-principle]]", "[[202502271315-emergence-of-structure]]"]
status: evergreen
---
Status values: seedling (new, rough) → budding (developing) → evergreen (mature, stable)
structure/)A Map of Content — an index note that gives navigation context for a cluster of ideas. Not a category; it's a curated lens.
Filename: MOC-topic-name.md
---
type: structure
title: "MOC: Knowledge Management"
created: 2025-02-27
tags: [MOC, knowledge-management]
---
| Field | Description |
|---|---|
type | fleeting / literature / permanent / structure |
title | Human-readable title |
created | ISO date YYYY-MM-DD |
tags | List of lowercase hyphenated tags |
| Field | Description |
|---|---|
id | Timestamp YYYYMMDDHHII — immutable unique ID |
modified | ISO date, updated on each edit |
related | Wikilinks to related notes |
status | seedling / budding / evergreen |
| Field | Description |
|---|---|
author | Author name(s) |
year | Publication year |
source | URL or citation string |
[[note-id-slug]][[202502271430-links-are-first-class|links are first-class]][[202502271430-links-are-first-class#Why this matters]]Title is a claim or question, not a label.
"Atomic notes prevent knowledge silos""About atomic notes"Body starts with the idea, not with preamble or context.
One heading level max in a permanent note — if you need more, split the note.
End every permanent note with a ## Linked from or ## See also section listing related wikilinks.
Tags describe what a note is about, not what type of note it is (that's the type field).
[knowledge-management, cognition][permanent-note, linked]When the user wants to capture a new idea:
inbox/ as a quick captureWhen the user wants to process notes:
When the user wants to capture from a source:
literature/Before a session ends (or when context compaction is triggered), review the conversation for knowledge worth preserving:
Ask yourself: "If I forgot this conversation entirely, what would I wish I'd written down?"
This review should happen:
PreCompact fires (context getting full)---
id: "202502271430"
type: permanent
title: "Connectivity is more valuable than completeness in a knowledge system"
created: 2025-02-27
modified: 2025-02-27
tags: [zettelkasten, linking, emergence]
related: ["[[202502271200-atomicity-principle]]", "[[202502271315-emergence-of-structure]]"]
status: seedling
---
A knowledge system with fewer, well-connected notes will surface more insight than one with many isolated notes. The value of a note is not in its content alone, but in the **relationships it participates in**.
This mirrors how memory works in the brain: recall is associative, not hierarchical. A note reached via three different paths is more likely to be retrieved — and more likely to spark unexpected connections — than one filed in the "right" folder.
> [!tip] Practical implication
> Before saving a new note, ask: *what does this connect to?* If the answer is nothing, the note isn't ready yet.
## See also
- [[202502271200-atomicity-principle|Atomicity prevents ideas from hiding inside each other]]
- [[202502271315-emergence-of-structure|Structure emerges from linking, not from planning]]
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/cynefin-frameworkApplies Cynefin framework for sense-making and decision-making across different contexts. Use when analyzing problem types, determining appropriate responses, making decisions under uncertainty, or when user mentions complexity, chaos, sense-making, problem classification, or asks which approach to use for a situation./ductileOperate, configure, and troubleshoot the ductile integration gateway CLI. Use this skill when the user wants to: run ductile commands, manage plugins or pipelines, configure the gateway, inspect jobs, trigger API calls, manage tokens/webhooks, validate or lock config, or understand ductile architecture. Triggers: any mention of "ductile", "config lock", "plugin list", "job inspect", "system start", pipeline DSL, or integration gateway tasks.
/Other plugins' skills for the same job
Generated from the plugin's indexed repository (mattjoyce/skillbase) — no native marketplace selected
npx claudepluginhub p/mattjoyce-skillbase