Gingiris commited on
Commit
0f0de30
·
1 Parent(s): b8efd93

feat(gr-seo-patrol): + Monthly Full-Site Audit workflow + HARD RULE section (validated 05-07 on 58 pages)

Browse files
Files changed (1) hide show
  1. skills/gr-seo-patrol/SKILL.md +101 -0
skills/gr-seo-patrol/SKILL.md CHANGED
@@ -131,3 +131,104 @@ def serp(kw, loc=2840, lang="en", depth=100):
131
  - ❌ 不要在生产环境直接 `git push` —— 用 Contents API 的 PUT
132
  - ❌ 不要一次 serp 50 个关键词 —— 批量过大易触发 rate limit,按 6-10 个一批
133
  - ❌ canonical 改到 master 后不要立刻 force Google 重新索引 —— 等 3-7 天自然爬取
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  - ❌ 不要在生产环境直接 `git push` —— 用 Contents API 的 PUT
132
  - ❌ 不要一次 serp 50 个关键词 —— 批量过大易触发 rate limit,按 6-10 个一批
133
  - ❌ canonical 改到 master 后不要立刻 force Google 重新索引 —— 等 3-7 天自然爬取
134
+
135
+
136
+ ---
137
+
138
+ ## Monthly Full-Site Audit Workflow
139
+
140
+ > **Validated 2026-05-07 on 58 pages**: caught 43 SERP-truncating titles + 36 schema warns + 27 stop-word slugs in a single 30-min pass. Single layout-level fix (commit `24a0410e`) resolved 20 of 43 title issues.
141
+
142
+ Run **once per month** before `phase2-monthly-checkpoint`. Output: HTML report + machine-readable findings.json archived to `gingiris-skills/data/audit-{YYYY-MM-DD}.json`.
143
+
144
+ ### Stage 1 — Discovery (5 min)
145
+
146
+ ```python
147
+ import urllib.request, re
148
+ sm = urllib.request.urlopen("https://gingiris.github.io/growth-tools/sitemap.xml").read().decode()
149
+ urls = [u for u in re.findall(r"<loc>([^<]+)</loc>", sm) if "/blog/" in u]
150
+ # typically 50-70 URLs
151
+ ```
152
+
153
+ ### Stage 2 — Parallel Audit (20 min for 60 pages, 4 threads)
154
+
155
+ Use the **adopted seo-audit-skill scripts** in `scripts/`:
156
+
157
+ ```bash
158
+ # For each URL — run 2 scripts in parallel
159
+ python3 scripts/check-page.py URL --timeout 20 # title, H1, meta, canonical, slug, alt, keyword placement
160
+ python3 scripts/check-schema.py URL --timeout 20 # JSON-LD validation
161
+ ```
162
+
163
+ Or batch with Python's `concurrent.futures.ThreadPoolExecutor(max_workers=4)`. Don't go higher than 4 — GitHub Pages CDN throttles aggressive parallel hits.
164
+
165
+ Each script outputs structured JSON envelope:
166
+ ```json
167
+ {"field": {"status": "pass|warn|fail|info", "detail": "...", "llm_review_required": false}}
168
+ ```
169
+
170
+ ### Stage 3 — Aggregate Findings
171
+
172
+ Bucket by category:
173
+ - **Title length** > 70 chars (SERP truncation risk)
174
+ - **H1 length** > 70 chars (mobile readability)
175
+ - **Meta description** < 80 or > 170 chars
176
+ - **Schema warns** by @type (BlogPosting, Article, Organization)
177
+ - **Canonical issues** (mismatch with final URL)
178
+ - **Slug issues** (stop words, uppercase, missing keyword)
179
+ - **Image alt text** missing on content images
180
+
181
+ Save aggregated counts + per-issue URL lists to `findings.json`.
182
+
183
+ ### Stage 4 — Layered Fix Strategy (HIGH ROI ORDER)
184
+
185
+ **1️⃣ Layout-level fixes first** (1 commit, fixes 20+ pages):
186
+ - Schema bugs in `_layouts/default.html`
187
+ - Site-name suffix in `<title>` tag
188
+ - Missing `dateModified` from `last_modified_at` frontmatter
189
+ - Organization / Publisher / contactPoint completeness
190
+
191
+ **2️⃣ Config-level fixes** (1 commit, fixes site-wide):
192
+ - `_config.yml` — logo URL (must be absolute), twitter, social, author structure
193
+
194
+ **3️⃣ Per-article batch fixes** (1 commit per file, parallelizable):
195
+ - Trim long titles while preserving keyword (target ≤ 70 chars, ideal 50-60)
196
+ - Trim long H1s (target ≤ 70 chars)
197
+ - Expand short meta descriptions (target 120-160 chars)
198
+ - Add missing Citable Statistics blocks for top GSC-impression pages
199
+
200
+ **4️⃣ Skip these (low ROI):**
201
+ - Slug stop words (changing breaks 301)
202
+ - Old articles with <50 imp/month (low traffic = low fix priority)
203
+
204
+ ### Stage 5 — Verify (after Jekyll rebuild ~60-90s)
205
+
206
+ Re-run `check-schema.py` on a sample page. Confirm `status: pass` for at least:
207
+ Article · BlogPosting · Organization · FAQPage
208
+
209
+ ### Stage 6 — Archive
210
+
211
+ Commit `findings.json` to `gingiris-skills/data/audit-{YYYY-MM-DD}.json` for trend tracking.
212
+ Add 2-5 atoms documenting any new lessons learned.
213
+
214
+ ---
215
+
216
+ ## HARD RULE (anti-hallucination guardrail)
217
+
218
+ > Adopted from [JeffLi1993/seo-audit-skill](https://github.com/JeffLi1993/seo-audit-skill) — strict whitelist pattern.
219
+
220
+ ⛔ **Output ONLY the checks defined in the audit script's JSON envelope.**
221
+ - Do NOT add "bonus" checks not in the script output
222
+ - Do NOT contradict the script's `status` field unless you have additional observable evidence
223
+ - Do NOT invent metrics like "EEAT score 89" — third-party scoring tools are unofficial (per Google's 2026 guidance)
224
+ - Do NOT include checks marked `llm_review_required: false` in your judgment commentary — the script's `status` is final
225
+ - If `llm_review_required: true`, make explicit judgment, document reasoning, then update status
226
+
227
+ The script envelope is the **single source of truth**. Treat it as a strict whitelist.
228
+
229
+ ---
230
+
231
+ ## Companion skill
232
+
233
+ For single-page audits (not full-site), the same scripts power **[JeffLi1993/seo-audit-skill](https://github.com/JeffLi1993/seo-audit-skill)** which produces a polished HTML audit report.
234
+ Install as a complementary skill if you want client-presentable per-page audits.