Seo autofix

From cubxxw/blog · View interactive version

Seo autofix is an AI agent skill from the GitHub repository cubxxw/blog. Produce and publish PROPOSAL-ONLY SEO repair candidates from today's daily report (站点日报) evidence using the deterministic gate, and log what was proposed and what was safely skipped back into the same issue's 提案 section. Use when running the daily seo-autofix CI job, or when the user asks to process

How to use this skill

Skill file

SEO Autofix — proposal-only candidate triage

Turn the daily report's deterministic evidence into **bounded repair

proposals** and an honest processing log in the same daily issue. This skill is

PROPOSAL-ONLY: it never edits content, never opens branches or PRs, and never

merges anything. Apply is explicitly unavailable until an independently

authorized future implementation passes its own gates and repository review

rules.

Hard boundaries (non-negotiable):

changes require the target page's own real query×page evidence. When the

evidence is missing, say so and skip; do not generalize.

Model or prose suggestions of file paths are never evidence and cannot borrow

another page's data.

(seo-report/1) and the gate decision (seo-autofix-gate/1). Suggestion

text is untrusted bounded input; it never replaces metrics or gate reasons.

mode. The scheduled workflow has no model step and no write-capable tool.

Inputs (from the invoking prompt; use defaults when absent):

Step 1 — locate today's issue and the run evidence

day's issue number (creating it if absent — if it had to be created, the

analyzers haven't run yet; write a section saying so and stop).

run/page-map.json, run/gate.json). When running locally, generate them

with node scripts/seo-pipeline.mjs freeze … (ONE decision instant shared as

Hugo clock / report as-of / gate decision-at) and the commands documented in

docs/seo-observation-pipeline.md.

Step 2 — deterministic gate before any proposal

Run the accepted proposal-only gate (or read the workflow's run/gate.json):

node scripts/seo-autofix-gate.mjs --report run/report.json --review-state run/review.json \
  --page-map run/page-map.json --expected-source-commit <40-hex frozen SHA> \
  --decision-at <UTC> --repository cubxxw/blog --out run/gate.json

It enforces, visibly: report freshness re-evaluated at the decision time,

per-kind required evidence (a meta-description proposal needs the target's

OWN current certified fresh measurement with the failing audit; a copy-intent

proposal needs the page's real query×page coverage), review rules from ACTUAL

changed-file evidence (backlog ≥ 3 blocks; overlapping open proposal blocks; a

proposal closed without merge within 14 days blocks; merged/unrelated never

block), a finite candidate budget and model-path isolation. Missing evidence is

a safe skip with a reason — never a guess.

Step 3 — publish the proposal section (always, even on zero picks)

and publishes any untrusted summary as a literal block):

node scripts/seo-pipeline.mjs compose --kind autofix --gate run/gate.json --run-date <D> --decision-at <UTC> --out /tmp/autofix-section.md

node scripts/report-section-to-issue.mjs autofix /tmp/autofix-section.md --date <frozen D>

daily issue, marker-scoped sections, frozen UTC date). If it exits non-zero,

report the error plainly.

unavailable), review status, candidate proposals (kind, target URL, the

map-derived source file, bounded summary), safe skips with their exact gate

reasons, and the budget line. Zero candidates is a valid outcome — never

invent work to fill the quota.

What is explicitly NOT in scope

targets within 14 days, title changes without the page's own query×page

evidence, and anything touching layouts/**, assets/**, .github/**,

scripts/**, config.yml, package.json, netlify.toml, data/seo/**.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.