mirror of
https://github.com/AgriciDaniel/claude-seo.git
synced 2026-11-25 07:30:08 +01:00
Fact review (each re-checked live on 2026-09-29): - Ahrefs: restore the 2025-12-12 date for the 75,000-brand study with the YouTube 0.737 figure (the v2.4.1 change to 2025-05-26 was wrong) and drop the guard that banned the correct wording. - Gemini image models: -preview IDs retired 2026-06-25, 2.5 Flash Image retires 2026-10-02; point to gemini-3.1-flash-image and gemini-3-pro-image. - Google-Extended also limits training of the models behind Search gen-AI features (no effect on Search inclusion or ranking). - AI Mode 1B+ monthly users is stated by Google (blog.google, I/O 2026). - Whitespark 68% is an average; VideoObject interactionStatistic has been recommended since 2019 (types clarified 2026-09-24); the Merchant Center insights came with the holiday shopping update and are "available". - gsc_inspect: mobileUsabilityResult is deprecated (report retired December 2023); the output field is flagged. Regression review: - Restore installer banner widths lost in the em dash sweep. - Split the banana extension's 421-line prompt reference like the core copy and extend the size test to extensions/*/references. - google_report no longer renders em dashes via escapes; the em dash test now also catches —, — and —, and its own literal em dashes are escapes. - Narrow the 08-28 guard to site reputation context and scan scripts. - Assert --kind core includes the core+spam rollout. - Marketplace description, workflow state, and pointers for lighthouse_version and the moved CWV thresholds. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
"""Development rules from CLAUDE.md: SKILL.md files stay under 500 lines and
|
|
reference files stay under 200 lines, so on-demand loading stays cheap.
|
|
|
|
Six references had grown past 200 lines by v2.4.0; they were split in v2.4.1.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
SKILL_LIMIT = 500
|
|
REFERENCE_LIMIT = 200
|
|
|
|
|
|
def _line_count(path: Path) -> int:
|
|
return len(path.read_text(encoding="utf-8").splitlines())
|
|
|
|
|
|
def test_skill_files_under_limit() -> None:
|
|
files = [*ROOT.glob("skills/*/SKILL.md"), *ROOT.glob("extensions/*/skills/*/SKILL.md")]
|
|
assert files
|
|
over = {str(p.relative_to(ROOT)): n for p in files if (n := _line_count(p)) > SKILL_LIMIT}
|
|
assert not over, f"SKILL.md over {SKILL_LIMIT} lines: {over}"
|
|
|
|
|
|
def test_reference_files_under_limit() -> None:
|
|
files = [*ROOT.glob("skills/*/references/**/*.md"),
|
|
*ROOT.glob("extensions/*/skills/*/references/**/*.md"),
|
|
*ROOT.glob("extensions/*/references/**/*.md")]
|
|
assert files
|
|
over = {str(p.relative_to(ROOT)): n for p in files if (n := _line_count(p)) > REFERENCE_LIMIT}
|
|
assert not over, f"reference files over {REFERENCE_LIMIT} lines: {over}"
|