AGENT SKILL

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, _2 suffix

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

shengdabai
shengdabai/Tony-Claude-Code-Skills

seedance-prompt-en

Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

onepage-pdf

Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file/report/proposal into a "single-page PDF", "long PDF", "不分页 PDF", "单页 PDF", "长图式 PDF", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

native-feel-cross-platform-desktop

Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include "cross-platform desktop", "Electron alternative", "Tauri vs native", "WebView wrapper", "near-native performance", "Raycast architecture", "WebKit/WebView2 quirks", "WKWebView", "system tray app", "global hotkey app", "launcher app". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

gstack

Router for the gstack skill suite. (gstack)

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

fireworks-tech-graph

Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent/memory, or concept map - and export as SVG+PNG. Trigger on: "画图" "帮我画" "生成图" "做个图" "架构图" "流程图" "可视化一下" "出图" "generate diagram" "draw diagram" "visualize" or any system/flow description the user wants illustrated.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

dbs-video-extract

接收抖音、小红书、微信视频号等短视频链接或分享文案,查询作品/账号数据并提取语音文字稿,按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用;运行前检查 TikHub 与轻抖使用凭证,缺少时用新手能理解的方式引导购买和安全配置。

★ 3