Summarize note
Generate AI summaries for markdown notes using Ollama and populate the frontmatter `summary` property. Use hierarchical map-reduce for notes exceeding model context. Trigger when asked to summarize notes, generate note abstracts, add AI summaries to frontmatter, or batch-summarize Obsidian vault notes.From its SKILL.md
npx -y skills add yixin0829/semantic-obsidian --skill summarize-noteAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, as published. Nobody here has run it
Instructions
-
Ask the user which Ollama model to use (e.g.,
qwen3:8b,llama3,gemma2). The model must already be pulled in Ollama. -
Dry-run first to preview summaries without modifying files:
uv run --with ollama,pyyaml \ skills/summarize-note/scripts/summarize_note.py <model> --dry-run <file_path> [...] -
If summaries look good, run without
--dry-runto write them:uv run --with ollama,pyyaml \ skills/summarize-note/scripts/summarize_note.py <model> <file_path> [...] -
Review the JSON output to confirm summaries were generated and written correctly.
Key behaviors
- Notes with an existing human summary (no
[AI]prefix) are skipped automatically. - Long notes are split by headings and summarized via concurrent map-reduce.
- Thinking model tags (e.g.
<think>) are stripped automatically. - Use
--chunk-sizeto adjust for models with smaller context windows (default: 50000 chars, ~12K tokens, sized for 32K+ context models). - Use
--base-urlto point to a remote Ollama instance.