跳到正文
Skillpedia
写作48k · #5330

obsidian-clipper-template-creator

它能做什么

帮助你创建模板,把网页上的信息保存到 Obsidian 中。它能找到网页上的正确数据,并规划好这些数据该如何保存。

适用场景

  • ✓创建一个用于保存网站菜谱的新模板。
  • ✓调整 Obsidian 保存新闻文章的方式。
  • ✓整理网上商店的商品信息。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/obsidian-clipper-template-creator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/obsidian-clipper-template-creator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“创建一个模板,用于保存网站 'recipes.com' 上的菜谱,重点提取标题、食材和做法。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会分析你提供的网站,找出重要数据(比如标题、正文、图片),并验证“选择器”(即查找这些数据的路径)是否有效。然后,它会为你生成一个 JSON 格式的模板文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Obsidian Web Clipper Template Creator

This skill helps you create importable JSON templates for the Obsidian Web Clipper.

When to Use

  • You need to create or refine an importable Obsidian Web Clipper template.
  • You want to map a site's real DOM, schema data, and selectors into a valid clipping template.
  • You need selector verification and template logic guidance before handing the JSON to the user.

Workflow

  1. Identify User Intent: specific site (YouTube), specific type (Recipe), or general clipping?
  2. Check Existing Bases: The user likely has a "Base" schema defined in Bases/.
    • Action: Read Bases/*.base to find a matching category (e.g., Recipes.base).
    • Action: Use the properties defined in the Base to structure the Clipper template properties.
    • See references/bases-workflow.md for details.
  3. Fetch & Analyze Reference URL: Validate variables against a real page.
    • Action: Ask the user for a sample URL of the content they want to clip (if not provided).
    • Action (REQUIRED): Use WebFetch to retrieve page content; if WebFetch is not available, use a browser DOM snapshot. See references/analysis-workflow.md.
    • Action: Analyze the HTML for Schema.org JSON, Meta tags, and CSS selectors.
    • Action (REQUIRED): Verify each selector against the fetched content. Do not guess selectors.
    • See references/analysis-workflow.md for analysis techniques.
  4. Draft the JSON: Create a valid JSON object following the schema.
  5. Consider template logic: Use conditionals for optional blocks (e.g. show nutrition only if present), loops for list data, variable assignment to avoid repeating expressions, and fallbacks for missing variables. Use logic only when it improves the template; keep simple templates simple. See references/logic.md.
  6. Verify Variables: Ensure the chosen variables (Preset, Schema, Selector) exist in your analysis.
    • Action (REQUIRED): If a selector cannot be verified from the fetched content, state that explicitly and ask for another URL.
    • See references/variables.md.

Selector Verification Rules

  • Always verify selectors against live page content before responding.
  • Never guess selectors. If the DOM cannot be accessed or the element is missing, ask for another URL or a screenshot.
  • Prefer stable selectors (data attributes, semantic roles, unique IDs) over fragile class chains.
  • Document the target element in your reasoning (e.g., "About sidebar paragraph") to reduce mismatch.

Output Format

ALWAYS output the final result as a JSON code block that the user can copy and import.

The Clipper template editor validates template syntax. If you use template logic (conditionals, loops, variable assignment), ensure it follows the syntax in references/logic.md and the official Logic docs so the template passes validation.

{
  "schemaVersion": "0.1.0",
  "name": "My Template",
  ...
}

Resources

Official Documentation

Examples

See assets/ for JSON examples.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是“选择器”?

选择器就像地址,告诉 AI 在网页中去哪里找到特定信息,比如文章的标题或商品的价格。

为什么 AI 需要网页链接?

AI 需要链接来“看到”真实的页面,从而确保它将使用的选择器确实有效,并能找到正确的信息。

什么是 JSON 文件?

这是 Obsidian 能够识别的一种文件格式。AI 会生成这个文件,方便你导入后,用它来有条理地保存信息。

详情

作者的原始描述

Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5330
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能