mcpField
O
obsidian-clipper-template-creator

obsidian-clipper-template-creator

github.com/davila7Productivity33.0k247 installsUpdated 1d ago
Repository

About obsidian-clipper-template-creator

Obsidian Web Clipper Template Creator is a skill for producing importable JSON templates. It checks Obsidian Bases and analyzes a sample webpage to validate template properties and variables.

Key features

  1. 01Map Bases properties to templates
  2. 02Inspect sample page HTML
  3. 03Analyze Schema.org and metadata
  4. 04Draft valid JSON templates
  5. 05Verify template variables

Use cases

  1. 01Create a recipe clipping template
  2. 02Build a template for a specific website
  3. 03Match clip fields to an existing Base

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/davila7/claude-code-templates --skill obsidian-clipper-template-creator

After installing, type/obsidian-clipper-template-creatorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
clipping-template.json
recipe-template.json
references/
analysis-workflow.md
bases-workflow.md
filters.md
json-schema.md
variables.md

Details

From the project README

Obsidian Web Clipper Template Creator

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

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 Templates/Bases/.
    • Action: Read Templates/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: Use WebFetch to retrieve the page HTML.
    • Action: Analyze the HTML for Schema.org JSON, Meta tags, and CSS selectors.
    • See references/analysis-workflow.md for analysis techniques.
  4. Draft the JSON: Create a valid JSON object following the schema.
  5. Verify Variables: Ensure the chosen variables (Preset, Schema, Selector) exist in your analysis.

Output Format

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

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

Resources

Official Documentation

Examples

See assets/ for JSON examples.

Comments

Markdown supported