[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-62fa7ca5-bbe2-47c8-b13b-926d555bdf2e":3,"$fUGki2PavDSiy-fmohnQevAiZe2jmYL4KLs1bXUDz-Ko":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"62fa7ca5-bbe2-47c8-b13b-926d555bdf2e","fixing-metadata","审计和修复HTML元数据，包括页面标题、元描述、规范URL、Open Graph标签、Twitter卡片、favicon、JSON-LD结构化数据和robots指令。在添加或审查SEO和社会元数据时使用。","cat_writing_article","mod_writing","sickn33,writing","---\nname: fixing-metadata\ndescription: \"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.\"\nrisk: safe\nsource: community\nversion: 1.0.1\nlicense: MIT\n---\n\n## Workflow\n\n1. Identify pages with missing or incorrect metadata (titles, descriptions, canonical, OG tags)\n2. Audit against the priority rules below — fix critical issues (duplicates, indexing) first\n3. Ensure title, description, canonical, and og:url all agree with each other\n4. Verify social cards render correctly on a real URL, not localhost\n5. Keep diffs minimal and scoped to metadata only — do not refactor unrelated code\n## When to Use\nReference these guidelines when:\n- adding or changing page titles, descriptions, canonical, robots\n- implementing Open Graph or Twitter card metadata\n- setting favicons, app icons, manifest, theme-color\n- building shared SEO components or layout metadata defaults\n- adding structured data (JSON-LD)\n- changing locale, alternate languages, or canonical routing\n- shipping new pages, marketing pages, or shareable links\n\n## rule categories by priority\n\n| priority | category | impact |\n|----------|----------|--------|\n| 1 | correctness and duplication | critical |\n| 2 | title and description | high |\n| 3 | canonical and indexing | high |\n| 4 | social cards | high |\n| 5 | icons and manifest | medium |\n| 6 | structured data | medium |\n| 7 | locale and alternates | low-medium |\n| 8 | tool boundaries | critical |\n\n## quick reference\n\n### 1. correctness and duplication (critical)\n\n- define metadata in one place per page, avoid competing systems\n- do not emit duplicate title, description, canonical, or robots tags\n- metadata must be deterministic, no random or unstable values\n- escape and sanitize any user-generated or dynamic strings\n- every page must have safe defaults for title and description\n\n### 2. title and description (high)\n\n- every page must have a title\n- use a consistent title format across the site\n- keep titles short and readable, avoid stuffing\n- shareable or searchable pages should have a meta description\n- descriptions must be plain text, no markdown or quote spam\n\n### 3. canonical and indexing (high)\n\n- canonical must point to the preferred URL for the page\n- use noindex only for private, duplicate, or non-public pages\n- robots meta must match actual access intent\n- previews or staging pages should be noindex by default when possible\n- paginated pages must have correct canonical behavior\n\n### 4. social cards (high)\n\n- shareable pages must set Open Graph title, description, and image\n- Open Graph and Twitter images must use absolute URLs\n- prefer correct image dimensions and stable aspect ratios\n- og:url must match the canonical URL\n- use a sensible og:type, usually website or article\n- set twitter:card appropriately, summary_large_image by default\n\n### 5. icons and manifest (medium)\n\n- include at least one favicon that works across browsers\n- include apple-touch-icon when relevant\n- manifest must be valid and referenced when used\n- set theme-color intentionally to avoid mismatched UI chrome\n- icon paths should be stable and cacheable\n\n### 6. structured data (medium)\n\n- do not add JSON-LD unless it clearly maps to real page content\n- JSON-LD must be valid and reflect what is actually rendered\n- do not invent ratings, reviews, prices, or organization details\n- prefer one structured data block per page unless required\n\n### 7. locale and alternates (low-medium)\n\n- set the html lang attribute correctly\n- set og:locale when localization exists\n- add hreflang alternates only when pages truly exist\n- localized pages must canonicalize correctly per locale\n\n### 8. tool boundaries (critical)\n\n- prefer minimal changes, do not refactor unrelated code\n- do not migrate frameworks or SEO libraries unless requested\n- follow the project's existing metadata pattern (Next.js metadata API, react-helmet, manual head, etc.)\n\n## review guidance\n\n- fix critical issues first (duplicates, canonical, indexing)\n- ensure title, description, canonical, and og:url agree\n- verify social cards on a real URL, not localhost\n- prefer stable, boring metadata over clever or dynamic\n- keep diffs minimal and scoped to metadata only\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,119,445,"2026-05-16 13:18:19",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"写作研究","writing","mdi-pencil-outline","从学术写作到创意文案，让 AI 成为你的专属写作助手",1,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"文章写作","article","mdi-file-document-edit-outline","博客、新闻稿、自媒体文章等",61,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"40cd7f64-603e-4abb-ba6a-223bc0209c6e","1.0.0","fixing-metadata.zip",2066,"uploads\u002Fskills\u002F62fa7ca5-bbe2-47c8-b13b-926d555bdf2e\u002Ffixing-metadata.zip","91e742ee2bb8110d55b2e4a31c9aeba170f31082d8ac7dd3a7d69dca6da3623a","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":4665}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]