mcpField
S
schema-generator

schema-generator

github.com/mverab营销与增长20976 次安装3 天前更新
代码仓库

关于 schema-generator

根据内容类型生成 Schema 标记的技能,提供 JSON-LD 模板和实施检查清单,也会标出需人工填写的字段并建议相关 Schema 类型。

主要功能

  1. 01选择 Schema 类型
  2. 02JSON-LD 模板
  3. 03标记人工填写项
  4. 04实施检查清单
  5. 05建议相关 Schema 类型

适用场景

  1. 01为 SaaS 页面添加标记
  2. 02生成 FAQ 页面 JSON-LD
  3. 03为服务准备结构化数据

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/mverab/egeoagents --skill schema-generator

安装后在 Claude Code 中输入/schema-generator确认已加载。

详细介绍

Schema 生成器技能

生成 Schema 标记时:

Schema 类型选择

内容类型主要 Schema其他类型
SaaS 产品SoftwareApplicationOffer、AggregateRating
实体产品ProductOffer、Brand、Review
服务ServiceProvider、AreaServed
文章ArticleAuthor、Organization
操作指南HowToStep、Tool
常见问题FAQPageQuestion、Answer
关于页面OrganizationContactPoint、Address
个人/团队PersonOrganization
活动EventLocation、Offer
课程CourseOrganization

输出格式

┌─────────────────────────────────────────────────────────────┐
│  🏗️ 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