SuperAPI AI 工具集

seo-crawl-render

营销与增长

查看项目

更新于 10-15 22:11

技能介绍

用途:为 SEO 审计流程做页面/站点采集,产出统一的 PageSnapshot(v2),供各模块读取。脚本负责抓取、解析、渲染与持久化,技能只决定运行哪条命令并读取其精简的标准输出摘要;不把 HTML 粘贴进对话,模块通过 Read pages/<slug>.json 与 Grep pages/<slug>.html 使用结果。

主要能力:单页面/本地路径用 node "${CLAUDE_PLUGIN_ROOT}/scripts/snapshot.mjs" <url|path> --out "${CLAUDE_PLUGIN_DATA}/runs",可加 --render auto|static|js、--ua default|googlebot|bingbot|gptbot|oai-searchbot|claude-searchbot、--renderer auto|chrome|playwright|none、--rendered-file <dom.html>、--max-bytes、--json。多页面用 crawl.mjs <url>,可设 --pages、--max、--per-template、--depth、--out,并支持 --concurrency、--delay、--include/--exclude、--seeds、--sitemap-sample、--link-status、--no-robots;首页与目标页必抓,robots 被遵守,跳过项记录在 crawl.json.sampling。

快照内容:目标、请求信息、状态链与重定向信息、最终响应头(set-cookie 仅保留名称)、robots 指令、body 摘要与哈希、计时、raw_html_path 与 rendered_html_path、render 判定、parsed 与 parsed_rendered,以及 site/robots.json、site/sitemaps.json、site/discovery.json 等站点产物。

渲染判定:auto 在字数偏少、存在水合标记、缺 h1 等条件下标记需要渲染;snapshot.mjs 默认 auto,crawl.mjs 与 audit.mjs 默认 static;renderer auto 会检测本地无头浏览器,playwright 需已安装且不自动安装。渲染不可用时快照标记 confidence: reduced 并给出提示,不假装看到渲染内容。分层为 0 脚本、1 加渲染或 PSI、2 加账号数据,模块需更高层时标记 needs_api。限制:本地目录按已构建 HTML 读取,无构建产物退出码 2;未提供的收费、平台支持等信息暂未说明。