一键导入
site-analyzer
大型商业网站深度分析工具。基于 neo 项目理念,通过被动捕获 + 主动探索 + 视觉理解,完整解析网站操作逻辑。支持 API 逆向、模式提取、知识库生成。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
大型商业网站深度分析工具。基于 neo 项目理念,通过被动捕获 + 主动探索 + 视觉理解,完整解析网站操作逻辑。支持 API 逆向、模式提取、知识库生成。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
PRD 驱动的完整开发工作流 - 从用户故事分析到自动化测试的端到端流程。 当用户需要"一条龙开发"、"全自动开发"、"从需求到代码"、"先分析PRD再开发"、 "多模型分析后自动开发"、"完整开发流程"、"从需求分析到测试"或任何涉及 PRD分析→需求整合→代码生成→自动化测试的连续工作时,**必须**使用此技能。 整合多模型聚合、Kimi深度整合、PRD生成、多模型代码审查、代码开发、自动化测试等能力。 **新增**: 智能决策大脑(th-workflow-decision-engine) - 自动判断何时使用GitNexus代码分析、 unified-search联网搜索、多模型聚合,测试失败时智能选择修复策略。
PRD驱动工作流的决策大脑 - 智能判断何时使用搜索、代码分析、多模型聚合。 作为子Skill被 th-prd-driven-dev-workflow 调用,负责工具选择和策略决策。
动态 Agent 生成器(母体模式)。当用户需要处理复杂项目时,自动分析需求并生成定制化专业 Agent 团队。接收项目描述、技术栈、版本号、约束条件,输出完整的 Agent 配置和启动命令。触发词:需要专业团队、生成 Agent、创建定制化 Agent、复杂项目团队、动态生成 Agent。
Arch Linux 系统特性(PEP 668、AUR Helpers)
浏览器交互自动化:网页测试、表单填写、截图、数据提取。触发词:打开网页、填写表单、网页截图。
系统化代码审查:安全性、性能、可维护性、正确性、测试覆盖。触发词:代码审查、review 代码、PR 审查。
| name | site-analyzer |
| description | 大型商业网站深度分析工具。基于 neo 项目理念,通过被动捕获 + 主动探索 + 视觉理解,完整解析网站操作逻辑。支持 API 逆向、模式提取、知识库生成。 |
| version | 1.1 |
| allowed-tools | Bash(neo:*), Bash(browser-use:*), Bash(curl:*), Bash(jq:*) |
大型商业网站深度分析框架,整合三种分析方式:
触发此 skill 时,任务完成必须满足:
| 错误类型 | 处理方式 |
|---|---|
| Chrome 连接失败 | 检查 CDP 端口,重启浏览器 |
| 扩展未捕获 | 重新加载扩展,检查权限 |
| API 解析失败 | 手动标注,跳过复杂 schema |
| 超时 | 增加 capture 时间或分批处理 |
# 压缩 API 列表输出
neo capture list target-site.com --limit 20 --json | \
jq '[.[] | {method, path, status, has_body}]'
复杂网站分析采用分工协作:
┌─────────────────┐
│ Orchestrator │ 协调分析任务
└────────┬────────┘
│
┌────┼────┐
▼ ▼ ▼
┌──────┐ ┌──────┐ ┌──────┐
│捕获层│ │分析层│ │生成层│
└──────┘ └──────┘ └──────┘
│ │ │
▼ ▼ ▼
neo flows SKILL.md
capture deps openapi.yaml
# 主控脚本
analyze_site() {
local site="$1"
mkdir -p "site-analysis/$site"
# Phase 1: 捕获(可并行)
neo capture start "$site" &
capture_pid=$!
# Phase 2: 分析(依赖捕获)
wait $capture_pid
neo schema generate "$site" > "site-analysis/$site/schema.json"
neo flows "$site" > "site-analysis/$site/flows.json"
# Phase 3: 生成
neo export-skill "$site" > "site-analysis/$site/SKILL.md"
}
| Worker | 工具 | 输出 |
|---|---|---|
| 捕获 Worker | neo capture | traffic.har |
| 分析 Worker | neo flows/deps | flows.json, deps.json |
| 生成 Worker | neo export-skill | SKILL.md, openapi.yaml |
用户操作 → Neo 捕获 API → Schema 自动生成 → 知识库输出
↓ ↓ ↓
UI 探索 → 数据流分析 → 可复用 Skill
↓ ↓ ↓
VL 理解 → 模式提取 → 测试用例
# 克隆并安装
git clone https://github.com/4ier/neo.git
cd neo && npm install && npm run build
npm link # 使 neo 命令全局可用
# 加载 Chrome 扩展
# 1. 打开 chrome://extensions
# 2. 启用"开发者模式"
# 3. 点击"加载已解压的扩展程序" → 选择 extension/dist/
npm install -g browser-use
browser-use doctor
环境变量已在 ~/.config/fish/config.fish 中配置:
DASHSCOPE_API_KEY ✅DASHSCOPE_BASE_URL ✅# 启动 neo 并连接浏览器
neo connect 9222
# 打开目标网站
neo open https://target-site.com
# 开始捕获(扩展自动运行)
# 浏览网站,执行各种操作...
# 查看捕获状态
neo status
neo capture summary
# 列出捕获的 API 调用
neo capture list target-site.com --limit 20
# 生成 API Schema
neo schema generate target-site.com
# 分析 API 流程
neo flows target-site.com
# 发现数据依赖
neo deps target-site.com
# 语义标签
neo label target-site.com
# 导出 OpenAPI 规范
neo schema openapi target-site.com > api-spec.yaml
# 生成 Agent Skill
neo export-skill target-site.com > SKILL.md
# 发现可复用工作流
neo workflow discover target-site.com
# 实时监控
neo capture watch target-site.com
# 按时间过滤
neo capture list target-site.com --since 2h
# 搜索特定 API
neo capture search "CreateTweet" --method POST
# 导出为 HAR
neo capture export target-site.com --format har > traffic.har
# 统计分析
neo capture stats target-site.com
# 重放捕获的请求
neo replay <capture-id> --tab target-site.com
# 执行新请求
neo exec <url> --method POST \
--body '{"key":"value"}' \
--tab target-site.com \
--auto-headers
# 智能 API 调用(自动查找 schema)
neo api target-site.com HomeTimeline
# 获取页面快照(accessibility tree)
neo snapshot
# 交互操作
neo click @1
neo fill @2 "search query"
neo press Enter
# 截图
neo screenshot page.png --full --annotate
# 1. 捕获购物流程
neo open https://shop.example.com
# 浏览商品 → 加购物车 → 结算 → 支付
# 2. 分析关键 API
neo capture list shop.example.com --since 1h
neo flows shop.example.com
# 3. 提取商品 API
neo capture search "product" --method GET
neo capture search "cart" --method POST
# 4. 生成知识库
neo schema generate shop.example.com
neo export-skill shop.example.com
# 1. 捕获认证流程
neo open https://app.example.com/login
# 登录操作...
# 2. 分析认证 API
neo capture list app.example.com --since 30m
neo label app.example.com
# 3. 发现工作流
neo workflow discover app.example.com
neo workflow show <workflow-name>
# 1. 监控所有 API 调用
neo capture watch api-app.com
# 2. 分析 API 依赖
neo deps api-app.com --min-confidence 2
# 3. 生成 OpenAPI 规范
neo schema openapi api-app.com > openapi.yaml
# VL 模型分析页面布局
python ~/skills/visual-analyzer/tools/page-analyzer.py \
--url https://target-site.com \
--output analysis.json
# 结合 neo 捕获的数据
neo capture list target-site.com --json > api-data.json
# 合并分析结果
python ~/skills/knowledge-generator/tools/merge-analysis.py \
--visual analysis.json \
--api api-data.json \
--output final-report.md
# 提取 API 模式
python ~/skills/api-pattern-extractor/tools/extract-patterns.py \
--schema $(neo schema show target-site.com --json) \
--output patterns.yaml
site-analysis/
├── captures/ # 原始捕获数据
│ ├── traffic.har
│ └── captures.json
├── schemas/ # API Schema
│ ├── schema.json
│ └── openapi.yaml
├── analysis/ # 分析结果
│ ├── flows.json
│ ├── deps.json
│ └── labels.json
├── knowledge/ # 知识库
│ ├── SKILL.md
│ └── workflows/
└── tests/ # 测试用例
└── test-cases.yaml
#!/bin/bash
# auto-explore.sh
TARGET=$1
neo open "https://$TARGET"
neo snapshot > "snapshots/home.json"
# 点击主要导航
neo snapshot | jq -r '.[] | select(.role == "link") | .@ref' | head -10 | while read ref; do
neo click "$ref"
sleep 2
neo snapshot > "snapshots/nav-$ref.json"
neo capture list "$TARGET" --since 5m >> "captures/session.log"
done
# 生成依赖图
neo deps target-site.com --format dot > deps.dot
dot -Tpng deps.dot -o deps.png
# 基于捕获创建 mock 服务器
neo mock target-site.com --port 8080 --latency 100
# 检查 CDP 端点
neo discover
# 重新连接
neo connect 9222
# 检查扩展状态
neo doctor
# 重新加载扩展
neo reload
# 手动注入
neo inject --persist