nexusphpweb-site-config
Skill512 starsChanged 5 months agoMITView on GitHub
适配 NexusPHPWeb 类型站点的站点配置与 infoFinder 字段编写。需要检查 `assets/sites_manifest.json` 中站点 id 是否存在,缺失时先调用 Add Site 技能创建配置文件,然后依据 `docs/SITE_CONFIGURATION_GUIDE.md` 与 `assets/site_configs.json` 的 NexusPHPWeb 模板生成或更新 `infoFinder`,并用用户提供的 cookie 抓取静态页面信息时使用。
Files
NexusPHPWeb Site Config
概览
用于在本仓库中创建或更新 NexusPHPWeb 类型站点配置,重点生成 infoFinder,并保证站点 id、manifest 与配置文件一致。
工作流
- 收集用户输入:
id、cookie。必要时确认 cookie 是否为有效登录态;只有在id不存在时才询问站点根网址与名称。 - 检查
assets/sites_manifest.json:确认id是否已存在。 - 若
id不存在:调用 Add Site 技能创建基础站点配置与 manifest 条目,再继续后续步骤。 - 若
id已存在:读取assets/sites/{id}.json获取站点根网址与站点类型,避免重复向用户询问。 - 读取规范与模板:打开
docs/SITE_CONFIGURATION_GUIDE.md,再查看assets/site_configs.json中NexusPHPWeb部分,确定字段含义与默认结构。 - 抓取页面:NexusPHPWeb 为静态站点,使用用户
cookie直接访问页面并提取 HTML 信息,编写infoFinder。优先尝试常见路径(如usercp.php、torrents.php、usercp.php?action=tracker),确保稳定可访问。 - WAF/反爬处理:若访问返回挑战页(如 SafeLine/Cloudflare)或网络不可达,要求用户提供页面 HTML 文件(浏览器“查看源代码/另存为 HTML”)。必要时从 view‑source 包装 HTML 中提取真实源码(
td.line-content合并为真实 HTML)。 - 路径异常处理:若常见请求 path 下找不到目标信息或直接 404,要求用户提供正确的 path,再继续提取。
- 写入配置:在站点配置文件中补全或更新
infoFinder,保持与模板风格一致。
关键约束
- 只在
id缺失时使用 Add Site 技能创建配置文件。 infoFinder的字段结构以docs/SITE_CONFIGURATION_GUIDE.md与模板为准,避免自创字段。- 页面抓取必须带 cookie,优先从可稳定访问的页面中提取信息。
- 未能定位页面路径时必须向用户要 path,避免猜测。
- 仅在无法从
assets/sites/{id}.json获取站点根网址时,才向用户询问站点根网址。 - 若被 WAF 拦截,必须改为使用用户提供的本地 HTML 进行解析,避免猜测。
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Add SiteSkill
- deploy-serverSkill
- flutter-screenshotSkill
- releaseSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

