SuperAPI AI 工具集

score

通用与其它

查看项目

更新于 10-15 23:39

技能介绍

用途:从已持久化的审计运行中重新计算并展示两个 0–100 分数(Search SEO 与 AI Visibility),不重新爬取网站。

主要能力:通过 seo-score 技能调用 scripts/score.mjs 得到可复现的分数;输出两个分数及区间、按类别细分、严重度封顶原因(cap_reasons)、无活跃类别时的未评分状态,以及 needs_api、manual_review、dropped 计数。两个分数分别呈现,不混合。

使用方式:运行目录位于 <root>/<host>/<run-id>/,<root> 依次取 --out、$CLAUDE_SEO_AI_HOME、${CLAUDE_PLUGIN_DATA}/runs、~/.claude-seo-ai/runs;<host> 为小写主机名,冒号替换为下划线,本地目标为 local/<basename>-<hash>。score.mjs --run 接受目录或 findings 文件,不识别 latest,需先用 Read 解析指针:<root>/<host>/latest.json 含 run、path、updated_at,path 为绝对运行目录;<root>/index.json 列出各主机及其最新 run id。

无参数默认:读 index.json,取最新 run id 排序最高的主机,读其 latest.json,再执行 node "${CLAUDE_PLUGIN_ROOT}/scripts/score.mjs" --run <path>。latest:<host> 则读对应 latest.json 并传其 path。运行目录:node "${CLAUDE_PLUGIN_ROOT}/scripts/score.mjs" --run <run-dir>,读取 <run-dir>/findings.json。findings JSON 路径:node "${CLAUDE_PLUGIN_ROOT}/scripts/score.mjs" --findings <path>,可加 --vertical a,b、--multilingual、--environment production|preview|staging|local;--manifest <crawl.json> 增加站点汇总,--strict 在任一 finding 未通过 schema 校验时以退出码 2 结束,--validate-only 只报告逐条 schema 结论而不评分。

限制:若不存在 index.json/latest.json,或运行中没有 findings.json,应提示用户先运行 /claude-seo-ai:audit <url>,不得凭记忆评分。某轴返回 provisional: true(state: "partial")时,需在同一句中说明区间与覆盖率,per-axis warnings[] 会列出未测量项。有汇总时,对照 pages_scored 与 pages_count:unscored_pages[] 中的页面未返回 2xx,从未被评分,应点名这些页面及其状态,不能让站点分数代表未测量的样本。