vault-capture
Vault Capture
Save a URL as a formatted Obsidian note in the vault. Extracts content via defuddle, generates structure and wikilinks, files into a new project folder.
Workflow
-
Extract content from the URL:
defuddle parse <url> --md defuddle parse <url> -p title defuddle parse <url> -p description defuddle parse <url> -p domainIf defuddle is not installed:
npm install -g defuddle -
Determine a folder name following vault conventions:
- Format:
snake_casewith source/author suffix when known - Examples:
agent_routing_patterns_anthropic,obsidian_cli_guide_kepano,mcp_servers_overview_ai_labs - Check the URL domain + page title to construct a descriptive slug
- Ask the user if unclear
- Format:
-
Search for related vault projects:
obsidian search query="<2-3 key topics from the content>" limit=10Run 1-2 searches. Collect matching folder names for wikilinks.
-
Compose the note. For content longer than ~2,000 chars, use the
Writetool directly rather than the CLIcreatecommand:--- description: <extracted or synthesized one-liner> title: <page title> date: YYYY-MM-DD source: <url> --- # <Title> > <extracted description or brief summary> ## Key Takeaways - <Claude-generated bullet summary, 3-7 points> ## Content <cleaned extracted markdown content> ## Related - [[related_folder/README]] - [[another_folder/gemini3_summary]] -
Write the file:
- For short content:
obsidian create path="<folder_name>/README.md" content="..." silent - For long content: Use
Writetool to write to<vault-root>/<folder_name>/README.md
- For short content:
-
Log to daily note (optional, do by default unless user says not to):
obsidian daily:append content="### HH:MM — Captured: <title>\nSaved [[<folder_name>/README]] from <domain>.\n**Source:** <url>\n" -
Report the folder created, the file path, and any related links found.
Tips
- Always include the
sourcefrontmatter property with the original URL - If the content is very long (>5,000 words), summarize rather than include in full — put the summary in
## Contentand note that the full content is at the source URL - Prefer
## Key Takeawaysas bullet points over dense prose — this vault is a research reference - If the user provides context ("this is about MCP servers"), use that to improve the folder name and search queries
More from az9713/claude-code-obsidian
vault-moc
Generate a Map of Content (MOC) note that categorizes and wikilinks vault project folders by theme. Can create a full vault index or a focused MOC for a specific category (e.g., "skills", "agents", "browser automation"). Use when wanting to create a navigational index of vault content.
2vault-save
Capture insights, solutions, or learnings from the current Claude Code conversation into a formatted Obsidian note with wikilinks. Use when the user wants to save something discovered during a conversation — a technique, a solution, a workflow decision, or a key insight.
2defuddle
Extract 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.
1json-canvas
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.
1vault-journal
Log a research entry to today's Obsidian daily note, automatically finding and wikilinking related vault projects. Use when the user wants to capture something they learned, worked on, or found interesting about Claude Code or AI tooling.
1obsidian-cli
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
1