← スキル一覧に戻る

astro-seo-safe-changes
by nordenq
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: astro-seo-safe-changes description: Safely update SEO metadata, OpenGraph/Twitter tags, canonical URLs, robots directives, and schema JSON-LD for the Top10Maison Astro site. Use when editing page-level SEO or structured data; extend existing tags/components; reuse the shared SEO component and schema helpers; avoid inline JSON-LD unless explicitly requested.
Astro SEO Safe Changes
Overview
- Use for any SEO, metadata, or schema edits on the Top10Maison Astro site.
- Guardrails: never remove existing meta tags; extend or enhance only. Reuse
SEO.astroand schema helpers; do not inline JSON-LD unless requested; prefer reusable Astro components for schema.
Quick start checklist
- Locate the layout (
src/layouts/BaseLayout.astroorsrc/layouts/MinimalLayout.astro) and pass props:title,description,canonical, optionalschemaarray,ogImage,ogType,robots,metaRefresh. - Canonical:
const site = requireSite(Astro.site); const canonical = buildCanonical(site, "<pathname>");fromsrc/utils/seo.ts. Keep URLs absolute. - Titles/descriptions: concise, unique, and aligned with on-page content. If adding brand, use
buildTitle(pageTitle, "Top10Maison")only when the brand is not already present. - Schema: build objects with helpers in
src/utils/schema.ts; append to existingschemaarrays; never delete existing entries. The SEO component auto-adds Organization and WebSite schema. - OpenGraph/Twitter: pass
ogImage(relative or absolute) and optionalogType. The SEO component resolves absolute URLs; set OG/Twitter alt text to the page title. - Robots/meta refresh: default is
index,follow. Usenoindexonly when intentional (e.g., staging or gated pages).metaRefreshonly if explicitly needed.
Components and helpers to reuse (do not duplicate)
src/components/SEO.astro: renders meta, OpenGraph/Twitter tags, and outputs theschemaarray via<script type="application/ld+json">. Do not add inline JSON-LD elsewhere unless explicitly requested.src/utils/seo.ts:requireSite,buildCanonical,buildTitle.src/utils/schema.ts: schema builders; prefer these over hand-crafted schema objects.- Layout meta: Base/Minimal layouts already include theme color, fonts, analytics, verification tags—do not remove or rename these when editing SEO.
Structured data patterns (helpers only)
- Breadcrumbs:
buildBreadcrumbSchema(site, items). - Products:
buildProductSchema(site, product). - Reviews:
buildReviewSchema(site, product). - Articles/toplists:
buildArticleSchema(site, toplist, canonicalUrl?). - FAQs:
buildFaqSchema(items). - Lists:
buildItemListSchema(items, { ordered?: boolean }). - Keep
@contextand@typeon every object; ensure URLs are absolute and values match on-page content.
Safety checklist before committing
- All existing meta tags remain; only extend/update values as needed.
- SEO component and schema helpers are reused; no new inline
<head>tags or JSON-LD blobs. - Canonical/OG/Twitter URLs are absolute;
og:image:altmatches the page title. - Robots directives are intentional and minimal.
- Schema objects include required fields and align with visible content.
- No routing/slug changes or layout meta removals are introduced as part of SEO tweaks.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です