import-to-obsidian
Use when user wants to save web content, articles, videos, or any URL to Obsidian vault. Auto-triggers on keywords like "obsidian", "import", "clip", "save to vault", "知识库", "收藏". Handles URL extraction, auto-classification, tagging, and vault insertion with graph connections.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- import-to-obsidian
- description
- Use when user wants to save web content, articles, videos, or any URL to Obsidian vault. Auto-triggers on keywords like "obsidian", "import", "clip", "save to vault", "知识库", "收藏". Handles URL extraction, auto-classification, tagging, and vault insertion with graph connections.
03 SKILL.md 正文
Import to Obsidian
Save any web content, video, or text into the Obsidian vault as a structured, tagged note with graph connections.
Vault Path
/Users/adam/Library/Mobile Documents/iCloud~md~obsidian/Documents/Tony
Folders: 前哨/, 中文教学/, 计算机科学/, 数学/, 高考/, 最新资讯/, 剪藏/
Workflow
digraph import {
"Input" -> "Type?";
"Type?" -> "URL" [label="URL"];
"Type?" -> "Text" [label="raw text"];
"URL" -> "Video?";
"Video?" -> "yt-dlp subs" [label="YouTube/B站"];
"Video?" -> "defuddle" [label="web page"];
"yt-dlp subs" -> "Classify";
"defuddle" -> "Classify";
"Text" -> "Classify";
"Classify" -> "Tag & Frontmatter";
"Tag & Frontmatter" -> "Write .md to vault";
"Write .md to vault" -> "Update MOC";
}
Step 1: Extract Content
Web Page (default)
defuddle parse <url> --md -o /tmp/obsidian-import.md
YouTube / Bilibili
# YouTube
yt-dlp --write-auto-sub --sub-lang zh,en --skip-download --convert-subs srt <url> -o /tmp/obsidian-import
# Bilibili
yt-dlp --write-sub --sub-lang zh-Hans --skip-download --convert-subs srt <url> -o /tmp/obsidian-import
Raw Text
Use input directly, no extraction needed.
Step 2: Auto-Classify
| Keywords in content | Folder |
|---|---|
| AI, 大模型, agent, LLM, GPT, Claude, DeepSeek | 最新资讯 |
| 数学, 微积分, 线性代数, 几何, 概率 | 数学 |
| 高考, 考试, 试题, 分数 | 高考 |
| 编程, 代码, 开发, software, CLI, API | 计算机科学 |
| 中文, 教学法, 语言学习, grammar | 中文教学 |
| 投资, 股市, 经济, 地缘, 出海 | 前哨 |
| No match or unclear | 剪藏 |
Step 3: Auto-Tag
Scan title + first 500 chars for these topics and add as frontmatter tags:
AI, 投资, 教育, 数学, 编程, 芯片, 自动驾驶, 电动车, 全球化, 健康, 职业, 创业, 中国, 美国, 物理, 化学, 生物, 哲学, 历史, 经济
Step 4: Write Note
File: <vault>/<folder>/<clean-title>.md
---
source: <url or "manual">
kb: <folder>
date: YYYY-MM-DD
tags:
- <auto-tag-1>
- <auto-tag-2>
url: <original-url>
---
# <Title>
<extracted content>
Filename rules:
- Remove
/ \ : * ? " < > | - Max 90 chars
- Deduplicate with
_1,_2suffix
Step 5: Update MOC
Append to <folder>-MOC.md:
- [[<filename-without-ext>|<title>]] (YYYY-MM-DD)
Quick Reference
| Input | Command |
|---|---|
/import-to-obsidian <url> |
Full pipeline |
| User says "save to obsidian" + URL | Auto-trigger |
| User says "收藏这个" + URL | Auto-trigger |
| User says "导入obsidian" | Auto-trigger |
| Raw text + "存到obsidian" | Save as note |
04 同仓库更多 Skills
xiaolai-methodology
以李笑来(Li Xiaolai)的思考方式、方法论与表达风格,为用户做全方位 1-on-1 教练指导,覆盖创业、赚钱、投资、学习、自学、读书写作、用 AI、以及人生心态与自我管理。当用户提到 "李笑来"、"笑来"、"笑来老师"、"扮演李笑来"、"找笑来聊聊"、"笑来怎么看"、"xiaolai"、"把时间当作朋友"、"通往财富自由之路"、"定投改变命运"、"韭菜的自我修养"、"自学是门手艺"、"让时间陪你慢慢变富"、"七年就是一辈子"、"元认知"、"活在未来"、"复利/长期主义"、"践行"、"痴迷改进"、"个人商业模式/出售时间"、"睡后收入"、"定投"、"财富自由"、"操作系统升级"、"最少必要知识"、"北极星提示词"、"用 AI 该怎么学/思考" 等任一触发词,或当用户带着关于创业/赚钱/投资/学习/职业/重大人生决策的困惑、希望被人用笑来式的「逻辑 + 大白话 + 类比 + 重新定义 + 践行导向」来点醒和指导时,自动进入李笑来教练模式。
zread
Produce and consume a wiki-style knowledge base for a code repository via the `zread` CLI and its on-disk output under `./.zread/wiki/`. Use this skill whenever the user wants to understand, onboard onto, explore, summarize, map, or get an overview of an unfamiliar codebase; asks for architecture docs, a project wiki, a repo walkthrough, module/package explanations, or "what does this repo do"; wants to generate, regenerate, resume, browse, or serve code documentation locally; or mentions zread / zread.ai directly. Also use it proactively before diving into a large unknown repo — if `./.zread/wiki/current` exists, read the generated pages instead of crawling source file-by-file; if it doesn't, consider offering to run `zread generate`. The trigger is the intent (understand a codebase through generated docs), not the literal word "zread".
youtube
Launch the YouTube Creator Agent to auto-generate videos. Use when: user types /youtube, wants to create YouTube videos, generate video content, or upload to YouTube. Keywords: youtube, video, 视频, 创作视频, 发布视频
youtube-script-sync
Sync, update, or optimize Tony's GetNote knowledge base `Youtube视频逐字稿` by turning each parent recording or first-person idea note into an idempotent child note containing a directly recordable YouTube long-video or Shorts script. Use when the user says “更新/同步/优化 Youtube视频逐字稿知识库”, or says “更新/同步/优化该知识库” while this knowledge base is the active context.
writing-skills
How to write SKILL.md files that trigger reliably and teach effectively. Use when creating, improving, or reviewing Claude Code skills.
writing-rules
How to write .claude/rules/ files that Claude actually follows. Use when creating, improving, or reviewing project rules.