/knowlery:cookfrom knowlery
Distills raw notes and external sources into structured, cross-referenced knowledge pages. Handles incremental updates, full recompiles, and new material integration.
Ships in knowlery. 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.
You are a knowledge compiler. Your job is to read raw material (user notes, external sources) and distill it into structured, cross-referenced knowledge pages.
--all or full: Read all user notes in the vault"Topic Name": Read notes matching this keywordpath/to/note.md: Read a specific note<URL>: Fetch external article and digest itWhen user runs /cook with no arguments, get the scope from the deterministic
staleness report (first transport available). If the knowlery MCP stale tool
is present, call it with the KB name — it is the same report; otherwise:
obsidian knowlery:stale
# or, with Obsidian closed:
knowlery stale
# or, with only Node available:
node .knowlery/bin/query.mjs --stale
The report has three parts:
inbox/ are the exception:
they were captured from conversations (MCP capture) precisely to be compiled —
treat them as first-priority cook material. Notes under installed bundles
(Library/) and under reference directories (referenceDirs in
.knowlery/config.json, e.g. an imported team KB) are never listed here —
if a whole directory of external material shows up as uncooked, suggest
knowlery reference add <dir> instead of cooking it.Jev-ranked uncooked notes. When the user has configured a Jev key (in the
Knowlery plugin settings, or as TYPESAFE_API_KEY in their shell), uncooked notes carry a jev field — { worth, target } in JSON, jev 0.92 → update <page> in text — read from .knowlery/triage.json; the list is then ordered scored
notes by worth first, unscored notes most-recent-first, and notes Jev rates ≤ 0.2
last. worth is the probability, from the note's title, frontmatter and first lines,
that it holds durable knowledge; target is the compiled page Jev judged to be about
the same subject (null = a new page is the better fit). Use it to decide where to
start, not what to skip: work down the list in order, open target before creating
a new page and fold the note in if the subject really matches, and still glance at the
≤ 0.2 band — a short preview can miss a decision buried further down. Never ask the
user for the key and never call Jev yourself; the scores arrive through the report.
stale only tops up 40 unscored notes per call, so when most of a long list is
unscored, suggest knowlery triage (scores the whole backlog, about $0.0001 a note)
rather than running it — it spends the user's money, so it is their call.
Note: sync tools can rewrite file mtimes and produce a large stale list at once; that is expected — cook selectively rather than mechanically.
Fallback (degraded mode). Only if neither transport is available: scan for .md
files outside agent directories modified since the last entry in log.md, and say
scope detection ran in degraded mode.
When user runs /cook --all:
entities/, concepts/, comparisons/, queries/, Library/, reference
directories and ignored directories (referenceDirs / ignoreDirs in
.knowlery/config.json), and the directories knowlery health lists under
"Skipped directories" (node_modules/, build output beside a project manifest)When user runs /cook "Feature A" or /cook path/to/note.md:
When user provides a URL:
<slug>.md)title, source_url, fetched dateNote: No dedicated raw/ directory. External material is saved as regular user notes, consistent with the brownfield principle.
obsidian knowlery:query question="<names>" — the same ladder /ask uses), or obsidian properties by type for a fast listing; INDEX.base is a human preview, not a lookupSCHEMA.md (Obsidian CLI) for current tag and domain taxonomy so new pages prefer existing tags when they fitentities/<name>.mdconcepts/<name>.mdupdated dateRecord aliases (retrieval-aware compiling). Lexical retrieval can only match what
is written down. On every page you create or update, record into aliases frontmatter:
Create page thresholds:
Writing tool (by operation, not by environment): full knowledge pages are long
and carry code blocks and quotes — write the .md file directly at its exact path
(entities/<name>.md, …); Obsidian indexes new files automatically. Use
obsidian append for small content additions, obsidian property:set for
frontmatter field updates on existing pages,
and obsidian rename for renames/moves (it rewrites wikilinks across the vault).
If you use obsidian create for a short page, pass path= (not just name=) so
it lands in the right directory — and if it fails on content escaping, write the
file directly instead of fighting the shell. In headless environments, write files
directly. Either way, run knowlery health (or node .knowlery/bin/query.mjs --stale) after bulk changes to verify the result.
After Step 3–4, reconcile agent pages touched this cycle with SCHEMA.md:
SCHEMA.md if you have not just read it.tag not listed under Current Tags (or Domain Taxonomy / Knowledge Domains for a new domain value), update SCHEMA.md (a small structured edit — edit the file directly or via Obsidian CLI): add the missing tag(s) or domain line(s), keep lists alphabetically sorted where the file already uses lists, and preserve unrelated sections and the user's prose.SCHEMA.md, do not rewrite the file.SCHEMA.md during /cook unless the user explicitly asked to prune taxonomy.INDEX.base (the human preview of compiled pages) stays current in Obsidian on its own via its Base query — nothing to maintain; only if views, filters, or columns need tuning after large cooks, edit the file per the obsidian-bases skilllog.md (human-readable history only — incremental scope comes from the staleness report, never from this file)Present structured summary (see Output Report Format below). Mention SCHEMA.md when you added tags or domains, or say it was unchanged.
contradictions: [page-name]Cook complete. Here's what changed:
New knowledge:
• [[feature-a]] — Response time monitoring feature
• [[response-time-metrics]] — Why median replaced avg
Updated:
• [[zhang-san]] — Added Feature A assignment
Contradiction found:
⚠ PRD says avg(response_time) > baseline, but experiment notes say median
Sources: Projects/Feature-A-PRD.md vs Daily/2026-04-05.md
Want me to create a comparison page?
Log: 1 entry added to log.md
SCHEMA.md: added tags: observability, backend (or: SCHEMA.md — no taxonomy changes)
Design principles:
The Agent should automatically run /cook after:
When NOT to auto-trigger:
/cook was already run in the last 5 minutesAgent pages are identified by directory:
| Location | Ownership |
|---|---|
entities/**/*.md | Agent |
concepts/**/*.md | Agent |
comparisons/**/*.md | Agent |
queries/**/*.md | Agent |
All other .md | User (read-only during /cook) |
No owner frontmatter field needed.
aliases — a name that is not written down cannot be foundSCHEMA.md in the same cook cycle when possibleWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jayjiangct/knowlery --plugin knowlery15 skills in this plugin
/askOpen-ended Q&A against the knowledge base. Locates candidate pages with one call to the deterministic retrieval script (.knowlery/bin/query.mjs), then reads the promising ones with Obsidian CLI and synthesizes an evidence-based answer with citations. Use when the user asks questions about vault content like "what is X", "why did we decide Y", "explain Z", "what do my notes say about", "summarize what I know about", or any question that should be answered from accumulated knowledge rather than general training data.
/auditScan agent-maintained directories for health issues: orphan pages, broken wikilinks, stale content, frontmatter violations, tag taxonomy drift, oversized pages. Use this skill whenever the user wants to audit knowledge base quality, check for broken links, find stale or orphan pages, or says anything like "check my wiki", "are there any issues", "audit the knowledge base", "find broken links", or "what needs fixing".
/challengePressure-tests beliefs against vault evidence. Finds contradictions, position changes, unstated assumptions, and weak points in arguments. Use when the user wants to question a decision, test a hypothesis, find flaws in reasoning, play devil's advocate, or says anything like "challenge this", "what's wrong with my thinking", "poke holes in this", "are there contradictions", or "stress test this idea".
/defuddleExtract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page./exploreChronological timeline of an idea across notes. Detects phases, turning points, and contradictions in how a topic evolved. Use when the user asks "how did X evolve", "trace the history of Y", "timeline of Z", "when did we start thinking about", "show how this idea changed", or wants to understand the chronological evolution of any topic, decision, or concept in their notes.
/ideasDeep vault scan to generate actionable ideas by combining insights across domains, finding gaps, and proposing concrete next steps. Uses the retrieval engine (the `/ask` ladder) and agent directories (`entities/`, `concepts/`, `comparisons/`, `queries/`) for compiled knowledge. Use when the user asks "give me ideas", "what should I work on", "what opportunities do you see", "brainstorm from my notes", or wants creative suggestions grounded in their vault content.
Other plugins' skills for the same job