skills/connectors/similarweb/SKILL.md
SimilarWeb 网站分析连接器 — 流量、排名、营销渠道、受众画像等数据
npx skillsauth add claude-office-skills/claude-office-plugin similarwebInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 dataBridgePull() 获取网站流量、排名、营销渠道等分析数据。
var resp = dataBridgePull("similarweb", "traffic_engagement", {
domain: "google.com",
start_date: "2025-01",
end_date: "2025-12",
granularity: "monthly",
country: "world"
});
if (!resp || !resp.ok) return "获取数据失败: " + (resp ? resp.error : "网络错误");
// resp.data.data 是月度数组,每个元素包含:
// date, visits, bounce_rate, average_visit_duration, pages_per_visit, unique_visitors
var rows = resp.data.data; // Array: [{date:"2025-01-01", visits:723462947, ...}, ...]
for (var i = 0; i < rows.length; i++) {
var r = rows[i];
// r.date (日期), r.visits (访问量), r.bounce_rate (跳出率 0-1),
// r.average_visit_duration (秒), r.pages_per_visit, r.unique_visitors
}
var resp = dataBridgePull("similarweb", "website_ranking", {
domain: "google.com"
});
if (!resp || !resp.ok) return "获取失败: " + (resp ? resp.error : "网络错误");
// resp.data.data 是数组: [{date, rank_global, rank_country, rank_category, ...}]
var rank = resp.data.data[0]; // rank.rank_global, rank.rank_country
var resp = dataBridgePull("similarweb", "traffic_sources", {
domain: "google.com",
start_date: "2025-01",
end_date: "2025-12",
country: "world"
});
// 各渠道(直接/搜索/社交/引荐/邮件/展示广告)的流量占比
var resp = dataBridgePull("similarweb", "traffic_geography", {
domain: "google.com",
start_date: "2025-01",
end_date: "2025-12"
});
// 按国家的流量占比
var resp = dataBridgePull("similarweb", "app_details", {
app_id: "com.google.android.gm",
store: "google"
});
| Action | 说明 | 必需参数 |
|--------|------|----------|
| traffic_engagement | 流量与互动 | domain, start_date, end_date |
| website_ranking | 网站排名 | domain |
| traffic_sources | 流量来源 | domain, start_date, end_date |
| traffic_geography | 流量地域分布 | domain, start_date, end_date |
| app_details | 应用详情 | app_id, store |
| 参数 | 说明 | 示例 |
|------|------|------|
| domain | 网站域名(不含 www) | "google.com", "baidu.com" |
| start_date | 开始月份 | "2024-01" |
| end_date | 结束月份 | "2024-12" |
| granularity | 时间粒度 | "daily" / "weekly" / "monthly" |
| country | 国家/地区 | "world", "us", "cn", "gb" |
| store | 应用商店 | "google" / "apple" |
start_date: "2025-01", end_date: "2025-12" 或 "2026-01" 等近期日期。不要用超出范围的日期。"us" 而非 "US"),或 "world" 表示全球"google.com" 而非 "https://www.google.com"resp.ok:必须检查返回状态traffic_engagement 和 website_ranking action:traffic_sources 和 traffic_geography 在当前 API 计划下不可用(返回 404)。不要使用它们。business
自动生成月度报告工作流
tools
专属助理人格引擎 — 控制助理的身份、口吻和行为风格
tools
首次见面引导 — 在用户完成 Onboarding 后的第一次对话中使用
tools
长记忆管理器 — 隐式学习用户偏好,生成对话摘要