fixing-metadata
Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding or reviewing SEO and social metadata.
- License 许可
- MIT
- 最近更新
- 2026-06-23
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- fixing-metadata
- risk
- safe
- source
- community
- license
- MIT
- version
- 1.0.1
- description
- Audit and fix HTML metadata including page titles, meta descriptions, canonical URLs, Open Graph tags, Twitter cards, favicons, JSON-LD structured data, and robots directives. Use when adding or reviewing SEO and social metadata.
02 资源文件 36
- 其他.gitignore19 B
- 参考文档agents/openai.yaml296 B
- 参考文档fixtures/cc-sdd-v2.1.0/cli-surface-contracts.txt1.4 KB
- 参考文档fixtures/cc-sdd-v2.1.0/clone-metadata.json156 B
- 参考文档fixtures/cc-sdd-v2.1.0/docs-features.txt454 B
- 参考文档fixtures/cc-sdd-v2.1.0/feature-registry.yaml840 B
- 参考文档references/invocation.md6.8 KB
- 参考文档references/reverse-engineer.feature2.7 KB
- 参考文档references/templates/security/attack-surface.md.tmpl310 B
- 参考文档references/templates/security/authn-authz.md.tmpl294 B
- 参考文档references/templates/security/crypto-review.md.tmpl283 B
- 参考文档references/templates/security/dataflow.md.tmpl298 B
- 参考文档references/templates/security/findings.md.tmpl236 B
- 参考文档references/templates/security/reproducibility.md.tmpl237 B
- 参考文档references/templates/security/threat-model.md.tmpl331 B
- 参考文档references/templates/spec-architecture.md.tmpl918 B
- 参考文档references/templates/spec-code-map.md.tmpl717 B
- 脚本scripts/binary/analyze_binary.sh6.0 KB
- 脚本scripts/binary/capture_cli_help.sh8.2 KB
- 脚本scripts/binary/extract_embedded_archives.py4.0 KB
- 脚本scripts/binary/list_embedded_archives.py3.7 KB
- 脚本scripts/extract_docs_features.sh839 B
- 脚本scripts/extract_sitemap_paths.sh892 B
- 脚本scripts/fetch_url.py853 B
- 脚本scripts/generate_feature_catalog_md.py2.9 KB
- 脚本scripts/generate_feature_inventory_md.py1.4 KB
- 脚本scripts/repo_fixture_test.sh14.4 KB
- 脚本scripts/reverse_engineer.py78.6 KB
- 脚本scripts/scaffold_feature_registry.py2.4 KB
- 脚本scripts/security/generate_sbom.sh1.3 KB
- 脚本scripts/security/scan_secrets.sh2.6 KB
- 脚本scripts/security/validate_security_audit.sh2.4 KB
- 脚本scripts/self_test.sh11.2 KB
- 脚本scripts/validate_feature_registry.py5.9 KB
- 脚本scripts/validate-output.sh5.3 KB
- 脚本scripts/validate.sh7.4 KB
03 SKILL.md 正文
Workflow
- Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)
- Audit against the priority rules below — fix critical issues (duplicates, indexing) first
- Ensure title, description, canonical, and og:url all agree with each other
- Verify social cards render correctly on a real URL, not localhost
- Keep diffs minimal and scoped to metadata only — do not refactor unrelated code
When to Use
Reference these guidelines when:
- adding or changing page titles, descriptions, canonical, robots
- implementing Open Graph or Twitter card metadata
- setting favicons, app icons, manifest, theme-color
- building shared SEO components or layout metadata defaults
- adding structured data (JSON-LD)
- changing locale, alternate languages, or canonical routing
- shipping new pages, marketing pages, or shareable links
rule categories by priority
| priority | category | impact |
|---|---|---|
| 1 | correctness and duplication | critical |
| 2 | title and description | high |
| 3 | canonical and indexing | high |
| 4 | social cards | high |
| 5 | icons and manifest | medium |
| 6 | structured data | medium |
| 7 | locale and alternates | low-medium |
| 8 | tool boundaries | critical |
quick reference
1. correctness and duplication (critical)
- define metadata in one place per page, avoid competing systems
- do not emit duplicate title, description, canonical, or robots tags
- metadata must be deterministic, no random or unstable values
- escape and sanitize any user-generated or dynamic strings
- every page must have safe defaults for title and description
2. title and description (high)
- every page must have a title
- use a consistent title format across the site
- keep titles short and readable, avoid stuffing
- shareable or searchable pages should have a meta description
- descriptions must be plain text, no markdown or quote spam
3. canonical and indexing (high)
- canonical must point to the preferred URL for the page
- use noindex only for private, duplicate, or non-public pages
- robots meta must match actual access intent
- previews or staging pages should be noindex by default when possible
- paginated pages must have correct canonical behavior
4. social cards (high)
- shareable pages must set Open Graph title, description, and image
- Open Graph and Twitter images must use absolute URLs
- prefer correct image dimensions and stable aspect ratios
- og:url must match the canonical URL
- use a sensible og:type, usually website or article
- set twitter:card appropriately, summary_large_image by default
5. icons and manifest (medium)
- include at least one favicon that works across browsers
- include apple-touch-icon when relevant
- manifest must be valid and referenced when used
- set theme-color intentionally to avoid mismatched UI chrome
- icon paths should be stable and cacheable
6. structured data (medium)
- do not add JSON-LD unless it clearly maps to real page content
- JSON-LD must be valid and reflect what is actually rendered
- do not invent ratings, reviews, prices, or organization details
- prefer one structured data block per page unless required
7. locale and alternates (low-medium)
- set the html lang attribute correctly
- set og:locale when localization exists
- add hreflang alternates only when pages truly exist
- localized pages must canonicalize correctly per locale
8. tool boundaries (critical)
- prefer minimal changes, do not refactor unrelated code
- do not migrate frameworks or SEO libraries unless requested
- follow the project's existing metadata pattern (Next.js metadata API, react-helmet, manual head, etc.)
review guidance
- fix critical issues first (duplicates, canonical, indexing)
- ensure title, description, canonical, and og:url agree
- verify social cards on a real URL, not localhost
- prefer stable, boring metadata over clever or dynamic
- keep diffs minimal and scoped to metadata only
04 同仓库更多 Skills
test_skill
暂无简介
zustand-store-ts
Create Zustand stores following established patterns with proper TypeScript types and middleware.
zoom-automation
Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.
zoho-crm-automation
Automate Zoho CRM tasks via Rube MCP (Composio): create/update records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.
zod-validation-expert
Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.