feat: /lawページに「最近の改正をわかりやすく」解説を追加 (SEO B案 Phase1)#3
Merged
Conversation
GSC分析を受けたSEOコンテンツ強化。/law改正履歴ページに 「最近の改正をわかりやすく」長文解説を追加する設計。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 根拠付け: diff有改正はpr_summaryを入力にgrounded:true、diff無はwhy/impact抑制 - recent_changesを改正法/トピック単位に集約(重複・技術的整理法を排除) - FAQPage JSON-LDを格下げ(lexdiffはリッチリザルト対象外)・スコープ外に - meta descriptionをexplainer.intro優先に - 事実性レビューゲートと自動スキーマ検証を明文化 - Phase1の成功条件・観測期間を追加 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…red snapshot) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
不動産登記法・民法・労働基準法・道路交通法に「最近の改正をわかりやすく」 解説を生成。groundedな記述は各diffのpr_summaryに基づき、ungroundedは 施行年・改正法名のみのwhatに限定(why/impact抑制)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
GSC/GA4分析で判明した課題(表示回数は急増中だがCTRほぼ0、
/law改正履歴ページが唯一クリックを獲得する勝ち型)への対応。/law/{lawId}ページに、最近の改正を平易に解説するAI生成セクションを追加し、上がってきた検索露出を実クリックに変えます。設計:
docs/superpowers/specs/2026-06-09-law-explainer-seo-design.mdプラン:
docs/superpowers/plans/2026-06-09-law-explainer-seo.md変更内容
frontend/lib/types.ts):LawExplainer/ExplainerChange/ExplainerFaq追加、LawTimeline.explainer?(optional・後方互換)。scripts/explainer.py新規): Claude(claude-sonnet-4-6)でexplainer(intro/recent_changes/faq) を生成しtimeline JSONに格納。frontend/components/law-explainer.tsx新規 +app/law/[lawId]/page.tsx): summaryカード直後にセクション描画。meta descriptionをexplainer.intro優先に。hallucination対策(設計の中核)
year/grounded/採用する改正はPython側で決定的に確定し、LLMには散文(title/what/why/impact)のみ書かせる。grounded:true(既存diffのpr_summaryが根拠)の改正だけwhy/impactを許可、diff_id:nullはwhatのみで背景・影響を抑制。検証(validate_explainer)と正規化(normalize_explainer)が同じ不変条件を二重に強制。レビュー
pr_summaryに準拠、新規hallucination無し。テスト・検証
uv run pytest tests/test_explainer.py→ 14 passed(純関数のTDD)。npm run build→ 成功。対象4法令にセクション有り、対象外法令は従来通り(後方互換確認済み)。マージ後
main反映でVercelが本番デプロイ。2-3週間後にGSC/GA4で4法令の
/lawのクリック・CTR・対象クエリ順位を観測し、効果が出れば残り法令へ横展開。🤖 Generated with Claude Code