seo-schema
暂无简介
- License 许可
- MIT
- 所属仓库
- bonc-ai/cogseed
- 最近更新
- 2026-11-13
- Stars
- ★ 19
- Forks
- 10
01 前言 Front Matter
- name
- seo-schema
- category
- data
- ownerAgent
- e064dca9e1bd
- description_en
- Validate a page's JSON-LD structured data, recommend types to add by page role, and generate paste-ready JSON-LD templates (Organization/WebSite/SoftwareApplication/FAQPage/BreadcrumbList/Article/Product); lint covers missing @type, missing required fields, deprecated rich-result types (FAQPage/HowTo); For: 'check structured data', 'give me Organization JSON-LD'; Triggers: structured data, JSON-LD, schema, rich result, FAQ schema
- description_zh
- 校验页面 JSON-LD 结构化数据并按页面角色推荐应补的类型,也能生成可粘贴的 JSON-LD 模板(Organization/WebSite/SoftwareApplication/FAQPage/BreadcrumbList/Article/Product);校验项含缺 @type、缺必填字段、已废弃富结果类型(FAQPage/HowTo);适合"检查结构化数据""给我一段 Organization 的 JSON-LD";触发词:结构化数据、JSON-LD、schema、富结果、FAQ schema
02 资源文件 9
- 参考文档artifact.yaml902 B
- 参考文档evals/evals.json249 B
- 参考文档references/business-ontology.yaml65 B
- 参考文档references/security-manifest.yaml2.4 KB
- 参考文档references/skill-spec.yaml459 B
- 参考文档references/validation-contract.yaml51 B
- 参考文档schemas.json40 B
- 脚本scripts/schema.py9.0 KB
- 脚本test/test_schema.py6.2 KB
03 SKILL.md 正文
seo-schema
Lint existing JSON-LD and generate templates. Pure analysis/templating — no network.
When to use
- The diagnose flow wants structured-data findings + which schema types the page should add.
- The apply/content flow needs a paste-ready JSON-LD snippet for a type.
When NOT to use
- Coarse "has any structured data?" —
seo-tech-auditalready flags that. This goes deeper (per-node lint, recommendations, generation). - Writing the JSON-LD into source — the agent does that (with this skill's generated snippet).
Preconditions
- For
validate: aseo-crawlJSON (uses each page's parsedstructured_data). Python 3.9+ stdlib only.
How to call
Validate existing JSON-LD + recommend types:
"$COGSEED_NODE" "$COGSEED_PC_DIR/bin/run-skill.cjs" seo-schema schema -- --op validate --input <crawl.json> [--out <schema.json>]
Generate a template (for apply/content mode):
"$COGSEED_NODE" "$COGSEED_PC_DIR/bin/run-skill.cjs" seo-schema schema -- --op generate --type Organization [--json '{"name":"CogSeed","url":"https://cogseed.ai"}']
Expected output
validate:
{ "ok": true, "data": {
"schema_score": 96, "present_types": ["Organization"], "recommended_types": ["WebSite"],
"findings": [ { "id": "schema_recommend", "dimension": "schema", "severity": "low", ... } ],
"summary": { "total": 1 }, "meta": { "url": "..." } } }
Findings use dimension: "schema" and feed seo-report --add.
generate: { "ok": true, "data": { "jsonld": { "@context": "https://schema.org", "@type": "Organization", ... } } }. Emit the jsonld object as a <script type="application/ld+json"> block; the JSON-LD must match the visible page one-to-one (esp. FAQ Q&A). Failure: {"ok": false, "error": "..."}, non-zero exit.
Lint coverage
Missing @type; missing required fields (Organization/WebSite/SoftwareApplication/Article/FAQPage/BreadcrumbList/Product/HowTo); deprecated rich-result types (FAQPage/HowTo still valid markup but no rich result for most sites); recommended types by page role (home → Organization+WebSite; deep page → BreadcrumbList). @graph is expanded.
04 同仓库更多 Skills
sample-supply-chain
供应链样本:安装钩子 + 拼写伪装 + 源覆盖。
sample-prose-only
纯散文安全守则样本:禁止某行为的说明不等于该行为。
sample-obfuscated
混淆载荷样本:解码与执行共现。
sample-hidden-content
隐藏内容载荷样本:用于回归「不可见字符不做上下文降权」这一不变量。
sample-evasion
反规避样本:危险内容只以「不可见字符切断」与「编码后」两种形式出现。
sample-agentic
代理运行时风险样本:配置篡改 + 隐蔽指令。