返回顶部
s

schema-gen

Generate Schema.org JSON-LD structured data markup for Person, Organization, Product, FAQ, HowTo, Article, LocalBusiness, Event, WebSite, BreadcrumbList, VideoObject, and SoftwareApplication.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
100
下载量
0
收藏
概述
安装方式
版本历史

schema-gen

# schema-gen Generate valid Schema.org JSON-LD structured data markup for any schema type. ## Supported Schema Types | Type | Key Fields | Google Rich Result | |------|-----------|-------------------| | **Person** | name, jobTitle, url, image, sameAs, worksFor | Yes | | **Organization** | name, url, logo, description, sameAs, foundingDate | Yes | | **Product** | name, description, image, price, availability, brand | Yes | | **Article** | headline, author, datePublished, image, publisher | Yes | | **FAQ** | questions (question + answer pairs) | Yes | | **HowTo** | name, steps (name + text), totalTime | Yes | | **LocalBusiness** | name, address, telephone, openingHours, geo | Yes | | **Event** | name, startDate, location, description, offers | Yes | | **WebSite** | name, url, potentialAction (SearchAction) | Yes (Sitelinks) | | **BreadcrumbList** | items (name + url position pairs) | Yes | | **VideoObject** | name, description, thumbnailUrl, uploadDate, duration | Yes | | **SoftwareApplication** | name, operatingSystem, applicationCategory, offers | Yes | ## How to Generate When asked to generate schema markup: 1. Identify which schema type is needed based on the user's request 2. Ask for the required fields (or extract from context) 3. Generate valid JSON-LD with: - `@context`: always `https://schema.org` - `@type`: the schema type name - All provided fields properly formatted 4. Output in a code block with `json` syntax highlighting 5. Wrap in `<script type="application/ld+json">` tags for HTML insertion ## Output Format Always output like this: ```html <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Person", "name": "John Doe", "jobTitle": "Software Engineer", "url": "https://johndoe.com", "sameAs": [ "https://linkedin.com/in/johndoe", "https://twitter.com/johndoe" ] } </script> ``` ## Important Notes - Always include `@context: "https://schema.org"` - Remove empty/null fields from output - For FAQ schema: each question needs both `@type: "Question"` and an `acceptedAnswer` with `@type: "Answer"` - For HowTo: each step needs `@type: "HowToStep"` - For BreadcrumbList: each item needs `@type: "ListItem"` with `position` (number) - Validate at: https://search.google.com/test/rich-results - For addresses: use `@type: "PostalAddress"` with streetAddress, addressLocality, addressRegion, postalCode, addressCountry - For geo: use `@type: "GeoCoordinates"` with latitude, longitude

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 schema-gen-1776107521 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 schema-gen-1776107521 技能

通过命令行安装

skillhub install schema-gen-1776107521

下载 Zip 包

⬇ 下载 schema-gen v1.0.0

文件大小: 1.81 KB | 发布时间: 2026-4-14 10:27

v1.0.0 最新 2026-4-14 10:27
Initial release of schema-gen.

- Supports generating Schema.org JSON-LD for 12 common types, including Person, Product, FAQ, and more
- Guides users to provide necessary fields for each schema type
- Outputs validated, ready-to-use JSON-LD within script tags for easy HTML insertion
- Ensures removal of empty/null fields and proper substructure formatting (e.g., FAQ, HowTo, Breadcrumb)
- Includes best practices and validation tips for rich Google results

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部