Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

schema-markup模式标记

Agent Skill

schema-markup 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

16,019

周安装

648

GitHub Stars

409

下载量

5,028
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:schema-markup(模式标记)
来源仓库:https://github.com/kostja94/marketing-skills
仓库路径:skills/schema-markup
安装命令:
npx skills add https://github.com/kostja94/marketing-skills --skill schema-markup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kostja94/marketing-skills --skill schema-markup

简介

schema-markup 协助生成结构化数据标记代码。

  • 常用于提升网页在搜索引擎中的富摘要展示效果。
  • 可直接集成至前端项目并通过 GitHub 技能部署。
  • 确保不泄露敏感元数据且遵循平台 Schema.org 规范。
  • 建议对照目标平台要求校验生成的标记准确性。schema-markup 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

SEO On-Page: Schema / Structured Data

Guides implementation of Schema.org structured data (JSON-LD) for rich snippets, enhanced search results, and Generative Engine Optimization (GEO).

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Scope (On-Page SEO)

  • Schema markup: Schema.org types for rich results, AI search visibility, and machine-readable content
  • Schema.org vs. search engines: Schema.org defines 800+ types; each search engine supports only a subset for rich results

Schema.org vs. Search Engine Support

Schema.org and Google Structured Data are not fully aligned. Schema.org is an open vocabulary (800+ types); Google, Bing, and other engines each support only a curated subset for rich results.

EngineSupportNotes
GoogleSubset onlyOnly types in Google's search gallery generate rich results. Valid Schema.org markup not in Google's list won't produce enhanced snippets—even if technically correct.
BingSubset; differentSupports JSON-LD, Microdata, RDFa, Open Graph. Some types (e.g., Product, Offer) have format-specific support. Check Bing Webmaster docs.
Other enginesVariesYandex, DuckDuckGo, AI search tools (Perplexity, etc.) may use Schema.org for understanding even when they don't display rich results.

Practical implication: Implement Schema.org markup for your content type. If Google doesn't show rich results for that type, Bing or AI systems may still use it. Always verify against Google's developer docs for Google-specific rich result eligibility.

Rich Results: Google Support (2025)

High-impact types: Product, Review snippets, HowTo (desktop), Article/News, Video, Recipe, LocalBusiness, Event, Breadcrumb, Sitelinks searchbox, JobPosting.

Limited or context-dependent: HowTo (mobile), FAQ (government/health sites for many queries), Education Q&A, Course, SoftwareApplication, Speakable (news), DiscussionForumPosting.

Deprecated: COVID data panels, some AMP-only formats, data-vocabulary.org.

Implementation: JSON-LD preferred; include @context, @type, stable @id; ISO 8601 dates; match structured data to visible content. Validate with Rich Results Test. Rich results can increase CTR up to ~35% and improve AI citation. AISO Hub, Digital Applied

Schema ↔ SERP Features ↔ Rich Results (Strongly Related)

Schema, SERP features, and rich results are strongly related. Schema is the necessary condition for most rich results. When targeting a SERP feature, implement the corresponding schema type. See serp-features for the full SERP feature list and optimization.

Rich Results vs Featured Snippets

  • Rich results: Schema-powered enhancements to standard listings (stars, breadcrumbs, FAQ dropdowns, product info). Appear within organic positions; do not require top-10 rank.
  • Featured snippets: Google-extracted answer boxes at position zero. No schema required; content structure matters. Schema (FAQPage, HowTo, Article) can support extraction.
Schema TypeSERP Feature / Rich ResultNotes
FAQPagePAA, Featured SnippetFAQ dropdown; Q&A-style snippet. Eligibility restricted for many sites (e.g. government/health)
BreadcrumbListBreadcrumbsPath display in result
AggregateRating, ReviewReviews / StarsStar ratings
HowToFeatured Snippet (list)Step-based snippet; desktop support; mobile may be limited
ArticleIn-Depth Articles, SnippetArticle rich result
VideoObjectVideoVideo thumbnail; see video-optimization
Product, OfferShopping, ProductProduct/shopping results
RecipeRecipeRecipe rich result
JobPostingGoogle JobsJob listings
EventEventEvent rich result
WebSite + SearchActionSitelinks searchboxSite links for brand queries
Organization, PersonKnowledge PanelEntity info; see entity-seo

Workflow: 1) Use serp-features to identify target SERP feature; 2) Look up schema type in this table; 3) Implement and validate with Rich Results Test.

Generative Engine Optimization (GEO)

GEO = optimizing content so AI systems (Google AI Overviews, Perplexity, ChatGPT, Gemini) choose, cite, and quote your content in generated answers. Structured data makes content machine-readable; AI engines extract and cite more accurately. Key schema types for GEO: Organization, Person/Author, WebSite, WebPage, FAQPage, HowTo, Article, Product, AggregateRating. See generative-engine-optimization for full GEO strategy.

Initial Assessment

Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for product type and content.

Identify:

  1. Page type: Article, Product, FAQ, Organization, JobPosting, Event, etc.
  2. Content: What entities to describe
  3. Goal: Rich snippets, AI Overview visibility, Knowledge Panel

Schema Type Classification

Core Types (General Use)

TypeUse case
OrganizationSite-wide; company info, logo, sameAs; see placement below
WebSiteSite-wide; search action, site name; pair with Organization on homepage
ArticleBlog posts, news, tool intros
BreadcrumbListBreadcrumb navigation
FAQPageFAQ sections; triggers PAA-style results
PersonAuthor info; pairs with Article
ImageObjectImage metadata for rich results
HowToTutorials, step-by-step guides. Note: Google may have deprecated HowTo rich results (2023–2024); Schema.org still supports it; Bing/AI may use it

Exclusive Types (Specific Scenarios)

TypeUse case
JobPostingRecruitment sites, AI Job Matching
ProductE-commerce product pages
EventEvent pages, ticketing (not general blogs)
SoftwareApplicationApp pages, tool pages
LocalBusinessLocal business pages
DatasetData platforms, datasets
DiscussionForumPostingForums, community posts
QuizEducation, flashcards
MathSolverMath tools
CaseStudyCase study pages
RecipeRecipes, meal plans, cooking instructions

Rule: Use core types for most sites. Use exclusive types only when page content matches (e.g., don't use Event on a blog; don't use JobPosting on a product page).

Organization & WebSite Schema Placement

WhereOrganizationWebSiteNotes
HomepageMinimumMinimumAdd both Organization and WebSite to homepage at least. Organization describes the entity that owns the site; WebSite enables sitelinks searchbox and site identity.
Root layout / globalOptimalOptimalPlace in site-wide layout (e.g. layout.tsx, _document, global header/footer) so schema appears on every page. Google uses the first instance found; one instance per site is sufficient.
About pageNoNoAbout page uses AboutPage schema (page-specific: headline, description, author, about). Organization is entity-level, not page-level—do not confine it to About. See about-page-generator.

Implementation: JSON-LD in <head>; use @id (e.g. https://example.com/#organization) to link Organization ↔ WebSite ↔ WebPage for entity graph. See entity-seo for @id and Knowledge Panel.

Action: Website/Product Type → Schema Mapping

Use this table to recommend which exclusive schema types fit a site. Match the site's content and product type to the most relevant schema. When in doubt, start with core types (Organization, WebSite, Article); add exclusive types only when content clearly matches.

Website / Product typeRecommended exclusive schemaWhy
AI meal planner, recipe site, food blog, cooking appRecipeIngredients, instructions, cook time, servings—highly relevant for food/meal content. Google supports Recipe rich results.
Job board, recruitment site, careers pageJobPostingTitle, company, location, salary, employment type. Required for Google Jobs.
Event platform, ticketing, webinar, conferenceEventDate, location, price. Use only on actual event pages.
SaaS, app, Chrome extension, tool, software product pageSoftwareApplicationApp name, category, rating, price, OS. Fits product/feature pages.
E-commerce product pageProductPrice, availability, brand, reviews. Use with Offer, AggregateRating.
Forum, community, Reddit-style, Q&ADiscussionForumPostingPost content, author, comments. For user-generated discussion.
Data platform, dataset repository, Scale AI / Surge AIDatasetDataset name, creator, license, distribution format. For data catalog pages.
Education site, flashcards, Quizlet-styleQuizQuestion-answer pairs. For educational Q&A content.
Math solver, calculator, equation toolMathSolverMath problem input, solution output. For math tools.
Restaurant, local service, store locatorLocalBusinessAddress, hours, NAP. For local SEO.
Case study, customer story pageCaseStudyClient, outcome, methodology. For B2B case studies.
FAQ page, product FAQ, support FAQFAQPageQuestion + acceptedAnswer pairs. Triggers PAA-style results.
Tutorial, how-to guide, step-by-stepHowToSteps, tools, time. Note: Google may have deprecated rich results; Bing/AI may still use.
News article, press releaseNewsArticleUse instead of Article for news.
Video page, podcast episodeVideoObject / PodcastEpisodeFor video/audio content. See video-optimization for VideoObject, thumbnail, key moments.

Examples:

  • AI meal planner (e.g., generates weekly meal plans with recipes) → Add Recipe schema to each recipe/meal page; Article or WebPage for landing pages
  • AI writing toolSoftwareApplication on product page; Article on blog
  • Recruitment SaaSJobPosting on job listing pages; SoftwareApplication on product page
  • Recipe blogRecipe on each recipe post; Article for non-recipe posts

Output: When recommending schema, state: (1) which exclusive types fit the site/product, (2) which page types get which schema, (3) core types to add site-wide (Organization, WebSite, BreadcrumbList).

Article / BlogPosting / NewsArticle: Type Selection & Implementation

Choose the most specific type that matches content:

TypeUse case
BlogPostingInformal blog posts; individual authors; regularly updated
ArticleFormal, evergreen content; tool intros; encyclopedic
NewsArticleTime-sensitive news; recognized publishers

Required properties: headline (max 110 chars), image (min 1200px wide; absolute URL), datePublished (ISO 8601), author (Person or Organization), publisher (Organization with logo).

Recommended: dateModified, description, mainEntityOfPage (canonical URL).

Date display for CTR: Google recommends showing only one date on the page. If both datePublished and dateModified are visible, Google may pick the wrong date for SERP display—Search Engine Land saw ~22% CTR drop. Best practice: show dateModified if it exists, otherwise datePublished. Keep both in JSON-LD; the rule applies to visible date only.

JSON-LD example (BlogPosting):

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "The Ultimate SEO Checklist for 2025",
  "description": "A complete guide to optimizing blog posts for search and AI.",
  "image": "https://example.com/image.jpg",
  "datePublished": "2025-01-15T09:00:00Z",
  "dateModified": "2025-02-01T14:30:00Z",
  "author": { "@type": "Person", "name": "Jane Doe", "url": "https://example.com/author/jane" },
  "publisher": { "@type": "Organization", "name": "Example", "logo": { "@type": "ImageObject", "url": "https://example.com/logo.png" } }
}

Place in <head> via <script type="application/ld+json">. For article pages, use og:type: article with og:article:published_time, og:article:modified_time, og:article:author. See article-page-generator, open-graph.

BreadcrumbList

For breadcrumb navigation. Schema must match visible breadcrumbs exactly. See breadcrumb-generator for UI, placement, and semantic HTML.

RequirementGuideline
FormatJSON-LD in <script type="application/ld+json">
URLsAbsolute URLs with https:// for each item
PositionSequential integers starting from 1
MatchSchema must match visible breadcrumbs exactly

JSON-LD example:

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Home", "item": "https://example.com/" },
    { "@type": "ListItem", "position": 2, "name": "Category", "item": "https://example.com/category/" },
    { "@type": "ListItem", "position": 3, "name": "Current Page", "item": "https://example.com/category/current-page/" }
  ]
}

Multiple paths: Google supports multiple BreadcrumbList objects on the same page when a page is reachable via multiple paths (e.g., product in multiple categories). Use an array of BreadcrumbList objects.

Best Practices

PrincipleGuideline
AccuracyData must match visible page content; never add invisible or misleading data
CompletenessInclude all required properties per type
Most specific typeUse NewsArticle over Article when applicable
JSON-LDPreferred format; place in <script type="application/ld+json">
@id for entitiesUse @id for Organization, Person to enable entity linking; see entity-seo
Phased implementationAdd required properties first; then optional for optimization
ValidationTest with Rich Results Test and Schema Markup Validator
inLanguage (multilingual)Add "inLanguage": "en-US" (IETF BCP 47) to match hreflang; localize names, descriptions, FAQs for rich snippets per locale

Multilingual Schema (inLanguage)

For multilingual sites, add inLanguage to JSON-LD to reinforce language targeting. Align with hreflang values (e.g. "inLanguage": "zh-CN" with hreflang="zh-CN").

Localize schema data: Translate structured data fields (name, description, FAQ acceptedAnswer, etc.) for each locale to improve rich snippet CTR in that language.

Types that support inLanguage: Article, BlogPosting, WebApplication, FAQPage, HowTo, Product, Organization.

Implementation Workflow

  1. Analyze page type and content; choose matching Schema type
  2. Select format — JSON-LD recommended (Google, Bing, AI tools support it)
  3. Write structured data; start with required properties
  4. Validate with Rich Results Test, Schema Markup Validator
  5. Deploy and monitor via Search Console enhanced reports

Common Errors and Fixes

ErrorFix
Data doesn't match visible contentSchema must describe only what users see
Missing required propertiesCheck Google/Schema.org docs for each type
Wrong type for pageDon't use Event on non-event pages; don't use JobPosting on product pages
Format/syntax errorsValidate JSON-LD; check quotes, brackets, commas
Over-markupMark only relevant content; avoid stuffing unrelated types

Implementation

Next.js (metadata)

export const metadata = {
  other: {
    'script:ld+json': JSON.stringify({
      "@context": "https://schema.org",
      "@type": "Article",
      "headline": "...",
      "description": "...",
      "inLanguage": "en-US",
      "image": "https://example.com/image.jpg",
      "datePublished": "2024-01-01T00:00:00Z",
      "dateModified": "2024-01-15T00:00:00Z",
      "author": { "@type": "Person", "name": "..." },
      "publisher": { "@type": "Organization", "name": "...", "logo": { "@type": "ImageObject", "url": "..." } }
    }),
  },
};

HTML (generic)

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "...",
  "description": "...",
  "inLanguage": "en-US",
  "author": { "@type": "Person", "name": "..." },
  "publisher": { "@type": "Organization", "name": "...", "logo": { "@type": "ImageObject", "url": "..." } }
}
</script>

Validation Tools

ToolPurpose
Google Rich Results TestCheck if Google can generate rich results
Schema Markup ValidatorValidate against Schema.org spec
Search ConsoleEnhanced reports; monitor validity over time

Output Format

  • Action first: Use the Website/Product Type → Schema Mapping table to recommend which exclusive schema fits the site (e.g., AI meal planner → Recipe; SaaS tool → SoftwareApplication)
  • Schema type recommendation (core vs. exclusive)
  • Page-level mapping: Which pages get which schema
  • JSON-LD structure with required properties
  • Validation steps
  • References: Schema.org, Google Structured Data, Bing Markup

Related Skills

  • article-page-generator: Article structure; Article/BlogPosting/NewsArticle schema; date display
  • serp-features: Strongly related—schema maps to SERP features; see mapping table above
  • faq-page-generator: FAQPage schema; FAQ content structure
  • howto-section-generator: HowTo section component (steps, JSON-LD); HowTo vs FAQPage
  • breadcrumb-generator: BreadcrumbList schema implementation
  • featured-snippet: FAQPage, HowTo for snippets
  • video-optimization: VideoObject, video sitemap, thumbnail, key moments
  • entity-seo: Organization, Person for entity recognition; @id; Knowledge Panel
  • homepage-generator: Organization + WebSite schema on homepage or root layout
  • indexing: Google Indexing API for JobPosting, BroadcastEvent

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.48%
按下载量换算1,734

Claude

29.01%
按下载量换算1,459

Cursor

19.17%
按下载量换算964

Gemini CLI

9.6%
按下载量换算483

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills