schemajson

A specialized skill optimized for SchemaJSON to help AI agents efficiently perform tasks related to SchemaJSON.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "schemajson" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e1a9a199cb28bc3f78dc9e0166c5e542aeadbc2a605017d9fa90b3b83ef8eb35. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/schema-json-optimization-gx3t before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A specialized skill optimized for SchemaJSON to help AI agents efficiently perform tasks related to SchemaJSON.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Validate existing JSON-LD and suggest **only relevant** schemas based on the detected page type.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: SchemaJSON优化
slug: schema-json-optimization
version: 1.0.0
displayName: SchemaJSON优化
description: >
  SchemaJSON优化专用技能,帮助AI Agent高效完成相关任务。
summary: "SchemaJSON优化专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Schema JSON Optimization

Validate existing JSON-LD and suggest only relevant schemas based on the detected page type.

Important: Do NOT blindly check for all schema types. First detect what kind of page this is, then only validate/suggest schemas that are applicable.

Step 1: Find and validate existing JSON-LD

Look for all <script type="application/ld+json"> elements:

  • None found → ⚠️ WARN "No JSON-LD schema markup found"
  • Found → ✅ PASS "Found N JSON-LD block(s)" → validate each:

Validation rules

  • Invalid JSON → ❌ FAIL "Could not parse JSON-LD"
  • Missing @context → ❌ FAIL
  • Missing @type → ❌ FAIL
  • Valid → ✅ PASS and check type-specific required fields (see Step 3)

Step 2: Auto-detect page type

Scan the HTML for signals to determine what type of page this is. A page may match zero, one, or multiple types:

Page type Detection signals
Article / Blog <meta property="article:published_time">, <article> tag, blog-like URL patterns (/blog/, /post/, /news/)
LocalBusiness <address> tag, <a href="tel:...">, [itemprop="telephone"], [itemprop="address"], contact page patterns
Product <meta property="og:type" content="product">, price elements ([itemprop="price"]), add-to-cart buttons
FAQ Multiple <details>/<summary> or FAQ-patterned heading + paragraph pairs
Organization About page with company info, <meta property="og:type" content="website"> on homepage
BreadcrumbList <nav aria-label="breadcrumb">, .breadcrumb class, <ol> with breadcrumb-like links
WebSite Homepage with site-wide search form

If no type is detected → only validate existing schemas, do not suggest new ones.

Step 3: Validate and suggest ONLY for detected types

Only if Article/Blog detected:

Check existing Article schema for:

Field Missing =
headline ⚠️ WARN
datePublished ⚠️ WARN
author ⚠️ WARN
image ⚠️ WARN
description ⚠️ WARN

If no Article schema exists, suggest generating one:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "[from og:title, <title>, or <h1>]",
  "datePublished": "[from article:published_time or <time datetime>]",
  "author": { "@type": "Person", "name": "[from meta author]" },
  "image": "[from og:image or first article img]",
  "description": "[from meta description]",
  "url": "[from canonical or og:url]"
}

Only if LocalBusiness detected:

Check for:

Field Missing =
name ❌ FAIL
address ⚠️ WARN
telephone ⚠️ WARN

If no LocalBusiness schema exists, suggest generating one:

{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "[from og:site_name or <title>]",
  "address": "[from <address> or itemprop=address]",
  "telephone": "[from itemprop=telephone or tel: link]",
  "url": "[from canonical or og:url]",
  "image": "[from og:image]"
}

Only if Product detected:

Check for:

Field Missing =
name ❌ FAIL
offers (with price and priceCurrency) ⚠️ WARN
image ⚠️ WARN
description ⚠️ WARN

Only if FAQ detected:

Suggest FAQPage schema with Question/Answer pairs extracted from the page.

Only if BreadcrumbList detected:

Suggest BreadcrumbList schema from the breadcrumb navigation structure.

Key principle

DO: "This page looks like a blog post → checking for Article schema"
DON'T: "Missing LocalBusiness schema" on a blog post page

The goal is relevance, not completeness. Only flag missing schemas that would actually benefit the detected page type.

Edge cases

  • A page may have multiple valid types (e.g. a product page with FAQ section → suggest both Product and FAQPage)
  • A page may have existing schemas that are valid but don't match the detected type — that's fine, still validate them
  • If detection is ambiguous, report what was detected and let the user decide
  • Schema @type can be an array (e.g. ["Article", "NewsArticle"])

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 精准解决开发者优化 JSON-LD Schema 的实际需求
  • 提供页面类型自动检测与针对性建议,避免无效推荐
Trigger Precision85/100

Highlights

  • 触发词清晰完整,覆盖 SchemaJSON、JSON-LD 等核心术语
  • description 准确描述功能边界与目标用户
Structure and Standards92/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 与 skill_body 内部均包含 description,存在重复

    Recommendation: 建议移除 skill_body 内部的 description 字段,保持单一数据源

Highlights

  • 步骤划分清晰(Step 1-3 + Edge cases),逻辑完整
  • 提供具体验证规则与代码示例,便于执行
Execution Reliability88/100

Highlights

  • 基于 Schema.org 标准,工具来源权威
  • WARN/FAIL 分级机制合理,覆盖主要异常场景
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • schema.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.