GO

guppythecat/obsidian-clipper-template-creator

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

69 stars 质量 53 趋势 0Apache-2.0

Agent Skill,使 AI 代理(Claude Code、Cursor、Gemini CLI 等)能帮助你为 Obsidian Web Clipper 创建可导入的 JSON 模板。

概览

这项技能使 AI 代理(Claude Code、Cursor、Gemini CLI 等)能够帮助你为 Obsidian Web Clipper 创建可导入的 JSON 模板。它引导代理分析网页、映射到 Obsidian 模式,并生成有效的模板配置。 - 🎯 分析网页以提取 Schema.org 元数据、元标签和CSS选择器 - 📋 将网页内容映射到您现有的Obsidian Base模式 - 🔧 生成遵循Obsidian Web Clipper模式的有效JSON模板 - ✅ 验证变量并提供参考文档 - 📐 使用Clipper 1.0模板逻辑(条件句、循环、回退)生成模板,确保可选部分和默认正确工作;逻辑与Clipper内置模板验证保持一致 - 📦 包含示例模板(配方、一般裁剪) 该技能针对并支持1.0.0引入的模板逻辑(条件、循环、变量赋值)和模板验证。

概述(AI 翻译)

为Obsidian Web Clipper创建自定义模板的AI代理技能

这项技能使 AI 代理(Claude Code、Cursor、Gemini CLI 等)能够帮助你为 Obsidian Web Clipper 创建可导入的 JSON 模板。它引导代理分析网页、映射到 Obsidian 模式,并生成有效的模板配置。

特色

  • 🎯 分析网页以提取 Schema.org 元数据、元标签和CSS选择器
  • 📋 将网页内容映射到您现有的Obsidian Base架构
  • 🔧 生成符合 Obsidian Web Clipper 模式的有效 JSON 模板
  • ✅ 验证变量并提供参考文档
  • 📐 使用Clipper 1.0模板逻辑(条件句、循环、回退)生成模板,确保可选部分和默认值正常工作;逻辑与Clipper内置的模板验证保持一致
  • 📦 包含示例模板(配方、一般剪辑)

兼容性

该技能针对 Obsidian Web Clipper 1.0.0,支持模板逻辑(条件句、循环、变量赋值)和模板验证,这些功能在 1.0.0 中引入。 它遵循了通用的**技能。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Obsidian Clipper Template Creator

AI Agent skill for creating custom templates for the Obsidian Web Clipper

This skill enables AI agents (Claude Code, Cursor, Gemini CLI, etc.) to help you create importable JSON templates for the Obsidian Web Clipper. It guides the agent through analyzing web pages, mapping to your Obsidian schema, and generating valid template configurations.

Features

  • 🎯 Analyzes web pages to extract Schema.org metadata, meta tags, and CSS selectors
  • 📋 Maps web content to your existing Obsidian Base schemas
  • 🔧 Generates valid JSON templates following Obsidian Web Clipper schema
  • ✅ Validates variables and provides reference documentation
  • 📐 Produces templates using Clipper 1.0 template logic (conditionals, loops, fallbacks) so optional sections and defaults work correctly; logic aligns with the Clipper’s built-in template validation
  • 📦 Includes example templates (recipes, general clipping)

Compatibility

This skill targets Obsidian Web Clipper 1.0.0 and supports the template logic (conditionals, loops, variable assignment) and template validation introduced in 1.0.0. It follows the universal SKILL.md format and works with any AI coding assistant that supports agentic skills.

Tool Type Compatibility Installation Path
Claude Code CLI ✅ Full .claude/skills/ or .agent/skills/
Cursor IDE ✅ Full .cursor/skills/ or project root
Gemini CLI CLI ✅ Full .gemini/skills/ or .agent/skills/
Codex CLI CLI ✅ Full .codex/skills/ or .agent/skills/
Antigravity IDE IDE ✅ Full .agent/skills/
OpenCode CLI ✅ Full .opencode/skills/ or .claude/skills/

Installation

  1. Download or clone this repository
  2. Copy the skills/obsidian-clipper-template-creator/ folder to your agent’s skills directory

Most tools auto-discover skills in .agent/skills/.

Configuration

Important: Template Paths Setup

This skill contains hardcoded references to Bases/ as the default path for your Obsidian Base schemas. You must edit the skill files to configure your vault path before using the skill.

Files to Edit

  1. SKILL.md - Main skill file with workflow instructions
  2. references/bases-workflow.md - Contains path references in the workflow documentation

Setup Steps

  1. Edit both SKILL.md and references/bases-workflow.md
  2. Replace all instances of Bases/ with your actual Obsidian bases directory path

The skill expects your Base schemas to be in *.base files within your configured directory.

Usage

Once installed, trigger the skill by asking your AI agent to create an Obsidian Clipper template:

"Create an Obsidian Web Clipper template for YouTube videos"
"Help me make a clipper template for recipe sites"
"I want to clip articles to Obsidian"
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add guppythecat/obsidian-clipper-template-creator
新手?先看 mcpskill.org 教程 →