关于 schema-generator
根据内容类型生成 Schema 标记的技能,提供 JSON-LD 模板和实施检查清单,也会标出需人工填写的字段并建议相关 Schema 类型。
主要功能
- 01选择 Schema 类型
- 02JSON-LD 模板
- 03标记人工填写项
- 04实施检查清单
- 05建议相关 Schema 类型
适用场景
- 01为 SaaS 页面添加标记
- 02生成 FAQ 页面 JSON-LD
- 03为服务准备结构化数据
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ mverab/ egeoagents --skill schema-generator安装后在 Claude Code 中输入/schema-generator确认已加载。
详细介绍
Schema 生成器技能
生成 Schema 标记时:
Schema 类型选择
| 内容类型 | 主要 Schema | 其他类型 |
|---|---|---|
| SaaS 产品 | SoftwareApplication | Offer、AggregateRating |
| 实体产品 | Product | Offer、Brand、Review |
| 服务 | Service | Provider、AreaServed |
| 文章 | Article | Author、Organization |
| 操作指南 | HowTo | Step、Tool |
| 常见问题 | FAQPage | Question、Answer |
| 关于页面 | Organization | ContactPoint、Address |
| 个人/团队 | Person | Organization |
| 活动 | Event | Location、Offer |
| 课程 | Course | Organization |
输出格式
┌─────────────────────────────────────────────────────────────┐
│ 🏗️ SCHEMA MARKUP GENERATED │
├─────────────────────────────────────────────────────────────┤
│ Type: [Schema Type] │
│ Validation: ✓ Valid JSON-LD │
└─────────────────────────────────────────────────────────────┘
## JSON-LD (copy to <head>)
```html
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Product Name",
"description": "GEO-optimized description",
"applicationCategory": "BusinessApplication",
"operatingSystem": "Web",
"offers": {
"@type": "Offer",
"price": "99",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "[FILL: rating]",
"reviewCount": "[FILL: review count]"
}
}
</script>
实施清单
- 将 JSON-LD 添加到页面的
<head>部分 - 使用真实数据填充
[FILL: ...]占位符 - 使用 Google Rich Results Test 进行测试
- 在 Google Search Console 中验证
## Common Templates
### SaaS/Software
```json
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "",
"description": "",
"applicationCategory": "BusinessApplication",
"operatingSystem": "Web",
"offers": {
"@type": "Offer",
"price": "",
"priceCurrency": "USD",
"priceValidUntil": ""
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "",
"reviewCount": ""
},
"author": {
"@type": "Organization",
"name": ""
}
}
B2B 服务
{
"@context": "https://schema.org",
"@type": "Service",
"name": "",
"description": "",
"serviceType": "",
"provider": {
"@type": "Organization",
"name": "",
"url": ""
},
"areaServed": {
"@type": "Country",
"name": ""
},
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Services",
"itemListElement": []
}
}
常见问题页面
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Question text?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Answer text."
}
}
]
}
规则
- 始终输出有效的 JSON-LD
- 将需要人工输入的字段标记为
[FILL: description] - 包含实施说明
- 适用时建议添加其他 Schema 类型
评论
支持 Markdown