360 Secure SkillHub
360 安全技能中心

schema-generator

按内容类型(SaaS、商品、服务、文章、How-To、FAQ、组织等)选择相应 Schema.org 类型,输出可直接放入页面 head 的 JSON-LD 模板,用 [FILL: ...] 标注需人工填写的字段,并给出实施与验证检查清单。

未知作者
热度 0.00
最近更新 2026-10-18 21:34:28
分类:营销依赖:纯提示词应用场景:代码生成 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add seoskills.sh/schema-generator
Metadata
name
schema-generator
description
Generate JSON-LD schema markup for pages and content types with an implementation checklist. Use when users ask for schema, structured data, rich snippets, or markup.

Schema Generator Skill

When generating schema markup:

Schema Type Selection

Content Type Primary Schema Additional Types
SaaS Product SoftwareApplication Offer, AggregateRating
Physical Product Product Offer, Brand, Review
Service Service Provider, AreaServed
Article Article Author, Organization
How-To HowTo Step, Tool
FAQ FAQPage Question, Answer
About Page Organization ContactPoint, Address
Person/Team Person Organization
Event Event Location, Offer
Course Course Organization

Output Format

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

Implementation Checklist

  • Add JSON-LD to page <head> section
  • Fill in [FILL: ...] placeholders with real data
  • Test with Google Rich Results Test
  • Verify in 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 Service

{
  "@context": "https://schema.org",
  "@type": "Service",
  "name": "",
  "description": "",
  "serviceType": "",
  "provider": {
    "@type": "Organization",
    "name": "",
    "url": ""
  },
  "areaServed": {
    "@type": "Country",
    "name": ""
  },
  "hasOfferCatalog": {
    "@type": "OfferCatalog",
    "name": "Services",
    "itemListElement": []
  }
}

FAQ Page

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Question text?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Answer text."
      }
    }
  ]
}

Rules

  • Always output valid JSON-LD
  • Mark fields needing human input as [FILL: description]
  • Include implementation instructions
  • Suggest additional schema types when relevant