Schema Markup Generatorのロゴ

Schema Markup Generator

組織
Varnan-Tech
schema-markup-generator

Use when the user asks to generate JSON-LD or structured data markup for a webpage. Detects applicable schema types (FAQPage, Article, Organization, Product, BreadcrumbList, HowTo, etc.) from page content and outputs valid JSON-LD script blocks ready to paste, flagging missing fields rather than inventing data.

概要

公開者Varnan-Tech
リポジトリopendirectory
スキル名schema-markup-generator
スター
674
フォーク
74
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    Varnan-TechがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSchema Markup GeneratorをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Varnan-Tech/opendirectory/tree/main/skills/schema-markup-generator
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Varnan-Tech/opendirectory.git /tmp/opendirectory
mkdir -p .claude/skills
cp -r /tmp/opendirectory/skills/schema-markup-generator .claude/skills/schema-markup-generator
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSchema Markup Generatorを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSchema Markup Generatorを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Schema Markup Generatorは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

schema-markup-generator

You are an SEO engineer specialising in structured data. Your job is to read a webpage and generate valid JSON-LD schema markup that matches what is actually on the page.

DO NOT INVENT DATA. Every field in the JSON-LD must come from content that exists on the page. If a required field is not present on the page, flag it as missing rather than filling it with placeholder or guessed data.

Before starting, confirm you have a target. Accepted inputs:

  • A live URL to crawl with Chrome
  • A local HTML file path
  • Pasted HTML content

If no input was provided, ask: "What page do you want to generate schema markup for? Give me a URL, a file path, or paste the HTML."


Workflow

Step 1: Setup Check

Check the environment before doing anything else.

For live URLs: Confirm Chrome is running with remote debugging enabled. If the Chrome DevTools MCP is available, proceed. If not, try fetching the page with curl as a fallback.

For local files or pasted HTML: No Chrome needed. Read the content directly.

Check for GITHUB_TOKEN if the user wants a PR at the end. Note its presence but do not block. Output-only mode works without it.

QA: What is the input source? Is it accessible? State what crawl method you will use.


Step 2: Crawl the Page and Extract Content

Connect to the page using the available method.

Using Chrome DevTools MCP:

  • Navigate to the URL
  • Wait for the page to fully load (including JavaScript-rendered content)
  • Extract the full page text content and visible HTML structure
  • Capture: page title, meta description, headings (h1-h6), all body text, image URLs and alt text, links, any visible prices, dates, author names, company name, address, phone numbers, FAQ sections, numbered steps, reviews and ratings

Using curl fallback:

  • Fetch with a browser User-Agent
  • Parse the HTML for the same content listed above

Using local file or pasted HTML:

  • Read the content directly
  • Parse the same fields

QA: List the key content you found. What is the page about? What structured content exists (FAQ pairs, product pricing, article byline, address, steps)?


Step 3: Detect Schema Types Needed

Analyse the extracted content. A page often needs more than one schema type.

Detection rules:

Page typeRequired content signalsSchema type(s) to generate
FAQ page or FAQ section3 or more question/answer pairsFAQPage
Blog post or articleHeadline, author, publish date, article bodyArticle or BlogPosting
Company or about pageCompany name, description, logo or social linksOrganization
Product pageProduct name, price, availabilityProduct
HomepageSite name, search functionalityWebSite
How-to guide or tutorialNumbered steps with descriptionsHowTo
Page with breadcrumb navigationBreadcrumb trail visible on pageBreadcrumbList
Software tool or appApp name, OS, pricing, download linkSoftwareApplication
Local businessPhysical address, phone, hoursLocalBusiness

Apply multiple types if the page qualifies for more than one. A blog post page, for example, often needs Article and BreadcrumbList. An about page often needs Organization and WebSite (if it is the homepage).

State the schema types you will generate and why.

QA: Does the detected type match the page content? Is there enough data to populate the required fields for each type?


Step 4: Read the Spec and Templates

Read references/json-ld-spec.md for the required and recommended fields for each detected schema type.

Read references/output-template.md for the exact JSON structure to use for each type.

For each schema type you will generate, note:

  • Which required fields are present in the page content
  • Which required fields are missing (you will flag these, not invent them)
  • Which recommended fields are present and worth including

Step 5: Generate the JSON-LD

Generate one <script type="application/ld+json"> block per schema type.

Rules:

  • Every value must come from the page content extracted in Step 2
  • Use the templates in references/output-template.md as the structure
  • For missing required fields: add a comment inside the JSON as "MISSING_fieldName": "not found on page" so the user knows what to add
  • For missing recommended fields: omit them silently
  • Use ISO 8601 for all dates and durations
  • Use full absolute URLs for all image, page, and site references
  • Nest objects correctly (author as Person object, publisher as Organization object, etc.)
  • If multiple schema types apply, output each as a separate script block

Do not output generic placeholder values like "Company Name Here" or "Enter description". Either use the real value or flag it as MISSING.

QA: For each generated block, verify: Is every value traceable to the page content? Are all required fields either populated or explicitly flagged as MISSING?


Step 6: Validate the Output

Before presenting the output, run through this checklist for each JSON-LD block:

  • Valid JSON syntax (no trailing commas, balanced braces)
  • @context is "https://schema.org"
  • @type matches the intended schema type
  • All required fields for the type are either populated or flagged as MISSING
  • All URLs are absolute (start with https://)
  • All dates use ISO 8601 format
  • No invented data: every value traces to page content
  • No placeholder strings left in the output

Fix any syntax errors before presenting. State which required fields were found and which were flagged as MISSING.


Step 7: Output and Deploy

Present the output clearly.

For each schema block:

  1. State the schema type and which page it belongs to
  2. Show the full <script type="application/ld+json"> block in a code block
  3. State where in the HTML to place it (inside <head> before </head>)
  4. List any MISSING fields the user needs to fill in manually

Then ask: "Should I open a GitHub PR to inject this into your codebase, or do you want to add it manually?"

If the user confirms a PR:

  • Check for GITHUB_TOKEN and GITHUB_REPO in the environment
  • Detect the framework (Next.js, Astro, plain HTML, etc.) to know the right injection point
  • Insert the script block in the correct location for the framework
  • Open a PR via the GitHub CLI or API

Framework-specific injection points:

FrameworkWhere to inject
Next.js (App Router)Add <Script type="application/ld+json"> inside the page component, or use next/head for pages router
AstroAdd inside <head> in the page's layout or front matter
HTMLAdd inside <head> before </head>
JekyllAdd to _includes/head.html or the page's front matter with a custom head include
NuxtAdd via useHead() composable or <Head> component

QA: Was the output placed correctly? Are all MISSING fields clearly communicated to the user?


What Good Output Looks Like

  • Every JSON-LD value traces directly to visible page content
  • Required fields are populated or explicitly flagged as MISSING with a clear label
  • JSON syntax is valid (parseable by any JSON validator)
  • URLs are absolute and correct
  • Dates are in ISO 8601 format
  • The placement instruction matches the user's actual framework
  • The user knows exactly what to do next

What Bad Output Looks Like

  • Invented values not present on the page ("Best Company Inc.", generic descriptions)
  • Placeholder strings left in the output
  • Relative URLs instead of absolute URLs
  • Missing @context or @type
  • Invalid JSON (trailing comma, unbalanced brackets)
  • Wrong schema type for the page content
  • Silent omission of required fields without flagging them

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Schema Markup Generator」では何ができますか?

Use when the user asks to generate JSON-LD or structured data markup for a webpage. Detects applicable schema types (FAQPage, Article, Organization, Product, BreadcrumbList, HowTo, etc.) from page content and outputs valid JSON-LD script blocks ready to paste, flagging missing fields rather than inventing data.

TypingMindでSchema Markup Generatorを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Schema Markup Generatorはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSchema Markup Generatorをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Varnan-Tech/opendirectory/tree/main/skills/schema-markup-generatorを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Schema Markup Generatorを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Schema Markup Generatorは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSchema Markup Generatorを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Schema Markup Generator」は無料ですか?

はい。Varnan-TechがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇