fix
@hainrixz · 收录于 1 周前
Opt-in fixer (the /claude-seo-ai:fix command). Applies the safe, deterministic SEO/AI-search fixes from an audit to the user's code — meta viewport/charset/lang, JSON-LD, robots.txt AI directives, hreflang, sitemaps, OG/Twitter cards, image dimensions, canonical, llms.txt. Dry-run preview by default; writes only after explicit per-change confirmation. Runs only when the user invokes it — never auto-triggered.
适合你,如果你有 SEO 审计结果需要批量应用到代码中
/ 下载安装
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code
~/.claude/skills/(项目级 .claude/skills/)Codex CLI
~/.codex/skills/Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add hainrixz/claude-seo-ai/fix/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- hainrixz/claude-seo-ai/fix/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify hainrixz/claude-seo-ai/fix安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
27GitHub stars
~790上下文体积 · 单文件
镜像托管
怎么用
技能原文 SKILL.md
fix (opt-in writer)
disable-model-invocation: true means the model can never trigger this on its own — only the user running /claude-seo-ai:fix. Writes happen only through the seo-fixer-writer subagent (the one agent with Write/Edit) and only after explicit confirmation.
Fixability classes (from each finding's fixable field — see schema/finding.schema.json)
- AUTO — deterministic, additive, machine-verifiable, low-semantic-risk. May be written (with diff + confirmation): meta
viewport/charset/<html lang>; Tier-1 JSON-LD blocks;sameAs/@id/dateModified(from confirmed inputs only); robots.txt AI-crawler presets +Sitemap:line; self-referential canonical; hreflang link sets; OG/Twitter cards; imagewidth/height; XML sitemap entries;llms.txt(disclosure-gated). - PROPOSED — changes prose/meaning or is editorial; generate a draft diff and require per-item accept: generated
<title>and meta description, answer-block/TL;DR rewrites, internal-link insertions, heading restructuring, generated image alt text (titles, descriptions, and image alt are editorial messaging, not deterministic). - ADVISORY — never written: content/E-E-A-T rewrites, adding stats/citations/original data, Core Web Vitals/performance, rendering strategy, redirects/status codes, link-building, Merchant Center/GBP backend data.
Workflow
- Take the findings (from the last audit or a fresh one). Filter to
fixable: auto(+proposedif the user opts in). Honor--categoryto scope (schema|meta|robots|sitemap|hreflang|alt|canonical|social|llms). - For each, locate the exact insertion point in the user's files and build a unified diff (or new-file content). Resolve any required real-world inputs (e.g.
sameAsURLs, locale map, publish dates) by asking the user — never invent them. - Dry-run (default): print every diff grouped by file. Write nothing. Summarize what
fix(without--dry-run) would change. - On explicit confirmation (and only then): delegate to seo-fixer-writer to apply. Per-change or batch confirmation is the user's choice.
Safety (hard rules)
- Dry-run is the default; writing requires the user to drop
--dry-runand confirm. - Git-aware: refuse to write to a dirty working tree unless
--force; prefer creating/using a branch. Detect viagit status --porcelain. - Backup every file before first modification to
${CLAUDE_PLUGIN_DATA}/backups/<timestamp>/<path>. - Idempotent: detect existing tags/blocks; update in place, never duplicate (re-running
fixproduces no new diffs once applied). - Re-verify: after writing, re-run the finding's
verification.assertion(e.g.scripts/validate-jsonld.mjs) and report pass/fail per change. - Never touch
.git/,.env/secrets, lockfiles, or files outside the project root. - No fabrication: never write invented statistics, citations, dates (no backdating
dateModified), credentials, or identity links.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…