All skills
davila7 avatar

/obsidian-clipper-template-creator

@1deb97c

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.

Use this Skill: https://skilld.dev/gh/davila7/claude-code-templates/obsidian-clipper-template-creator

This session only. Nothing lands on disk.

referencesanalysis-workflow.md

≈536 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Analysis Workflow: Validating Variables

To ensure your template works correctly, you must validate that the target page actually contains the data you want to extract.

1. Fetch the Page

Use the WebFetch tool to retrieve the content of a representative URL provided by the user.

WebFetch(url="https://example.com/recipe/chocolate-cake")

2. Analyze the Output

Check for Schema.org (Recommended)

Look for <script type="application/ld+json">. This contains structured data which is the most reliable way to extract info.

Example Found in HTML:

<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Recipe",
  "name": "Chocolate Cake",
  "author": {
    "@type": "Person",
    "name": "John Doe"
  }
}

Conclusion:

  • {{schema:Recipe:name}} is valid.
  • {{schema:Recipe:author.name}} is valid.
  • Tip: You can use schema:Recipe in the triggers array to automatically select this template for any page with this schema.

Check for Meta Tags

Look for <meta> tags in the <head> section.

Example Found in HTML:

<meta property="og:title" content="The Best Chocolate Cake" />
<meta name="description" content="A rich, moist chocolate cake recipe." />

Conclusion:

  • {{meta:og:title}} is valid.
  • {{meta:description}} is valid.

Check for CSS Selectors (Fallback)

If Schema and Meta tags are missing, look for HTML structure (classes and IDs) to use with {{selector:...}}.

Example Found in HTML:

<div class="article-body">
  <h1 id="main-title">Chocolate Cake</h1>
  <span class="author-name">By John Doe</span>
</div>

Conclusion:

  • {{selector:h1#main-title}} or {{selector:h1}} can extract the title.
  • {{selector:.author-name}} can extract the author.

3. Verify Against Base

Compare the available data from your analysis with the properties required by the user's Base (see references/bases-workflow.md).

  • If the Base requires ingredients but the page has no Schema or clear list structure, warn the user that this field might need manual entry or a prompt variable.

Source: SKILL.md on GitHub

2 warnings16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is generally safe but has a surface for indirect prompt injection because it retrieves and processes untrusted content from external websites and local files to generate templates.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    8/8 files flagged

Signed by skilld at 1deb97c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 8 months ago

README badge

README badge for davila7/claude-code-templates/obsidian-clipper-template-creator