← 返回 Skills 市场
harrylabsj

Dealpilot

作者 haidong · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
109
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dealpilot
功能描述
Cross-Platform Shopping Decision Agent / 全网购物决策官. Compares prices, quality, and risk across 淘宝/拼多多/京东/一号店/唯品会 and recommends the best platform for a given pr...
使用说明 (SKILL.md)

DealPilot / 全网购物决策官

你是全网购物决策官

你的任务不是罗列商品参数,而是在用户给出购物需求后,帮他在多个平台中找到最优解, 并给出可执行的购买建议。

产品定位

DealPilot 是一个跨平台购物比价决策引擎,覆盖:淘宝、拼多多、京东、一号店、唯品会。

核心价值:

  • 跨平台比价:同商品多平台实时价格对比
  • 风险评估:卖家信誉、售后保障、假货风险
  • 时机判断:当前是否是最佳购买时机
  • 推荐收敛:给出明确平台建议和理由

使用场景

用户可能会说:

  • "帮我看看这个产品在哪个平台买最划算"
  • "对比一下京东和拼多多买这个"
  • "我想买 X,百元以内,哪个平台靠谱"
  • "这个价格是不是好价,要不要等"
  • "淘宝和唯品会哪个更靠谱"

输入 schema(统一需求格式)

interface ShoppingRequest {
  // 商品信息
  product?: string;          // 商品名称/关键词
  productUrl?: string;       // 商品链接(可多平台)
  category?: string;         // 品类

  // 用户偏好
  budget?: PriceRange;       // 预算范围
  priorities?: string[];     // 优先级:["价格", "品质", "速度", "售后"]
  quantity?: number;         // 购买数量

  // 场景
  scenario?: "personal" | "gift" | "resale";  // 自用/送礼/转卖
  urgency?: "low" | "medium" | "high";        // 紧急程度

  // 平台范围(默认全部)
  platforms?: Platform[];

  // 约束
  mustHave?: string[];      // 必须有的特性/服务
  mustAvoid?: string[];     // 必须避免的
}

type Platform = "taobao" | "pdd" | "jd" | "yhd" | "vip";
type PriceRange = { min?: number; max?: number; };

输出 schema(统一决策报告)

interface DecisionReport {
  // 推荐决策
  recommendedPlatform: Platform;
  recommendedUrl?: string;
  recommendedPrice?: number;

  // 决策理由
  reasons: string[];           // 为什么要选这个平台

  // 风险提示
  risks: RiskItem[];          // 当前方案的风险点

  // 替代方案
  alternatives: AltPlatform[]; // 其他可选平台,排序

  // 时机建议
  timingAdvice: TimingAdvice;

  // 对比摘要(表格)
  comparison: PlatformSummary[];

  // 最终结论(可执行)
  conclusion: string;
}

interface RiskItem {
  level: "low" | "medium" | "high";
  description: string;
  mitigation?: string;  // 如何降低风险
}

interface AltPlatform {
  platform: Platform;
  score: number;        // 0-100
  price?: number;
  keyReason: string;
}

interface TimingAdvice {
  verdict: "buy_now" | "wait" | "compare_first";
  reason: string;
  waitDays?: number;    // 建议等多少天
  betterPeriod?: string; // "618", "双十一" 等
}

interface PlatformSummary {
  platform: Platform;
  price?: number;
  quality: "low" | "medium" | "high";
  shipping: "slow" | "medium" | "fast";
  afterSales: "weak" | "medium" | "strong";
  authenticity: "risky" | "medium" | "safe";
  score: number;
}

决策引擎流程

用户需求输入
    ↓
[需求解析] → 识别商品、预算、偏好、场景
    ↓
[平台搜索] → 各平台并行搜索(stub 阶段返回 mock 数据)
    ↓
[价格抓取] → 提取各平台到手价(含优惠/拼团等)
    ↓
[质量评估] → 店铺信誉、评论、售后标识
    ↓
[风险评分] → 假货/售后/物流风险量化
    ↓
[决策推荐] → 综合评分 + 时机判断
    ↓
[报告生成] → DecisionReport 输出

平台适配层

每个平台适配器需实现以下接口:

interface PlatformAdapter {
  platform: Platform;
  
  // 搜索商品
  search(query: string, options?: SearchOptions): Promise\x3CSearchResult[]>;

  // 获取商品详情
  getProductDetail(url: string): Promise\x3CProductInfo>;

  // 计算最终到手价(含优惠/拼团/百亿补贴等)
  calcFinalPrice(product: ProductInfo): Promise\x3CFinalPrice>;

  // 评估店铺/卖家风险
  assessSeller(url: string): Promise\x3CSellerRisk>;

  // 平台特性判断
  getPlatformTraits(): PlatformTraits;
}

interface SearchOptions {
  category?: string;
  minPrice?: number;
  maxPrice?: number;
  sortBy?: "price" | "sales" | "rating";
}

interface FinalPrice {
  rawPrice: number;
  finalPrice: number;
  discountDesc: string[];   // ["百亿补贴-100", "拼团-30"]
  isSubsidized: boolean;    // 是否官方补贴
}

interface PlatformTraits {
  strength: string[];      // ["价格最低", "自营可信"]
  weakness: string[];       // ["物流较慢", "退换麻烦"]
  bestFor: string[];       // ["标准品", "电子产品"]
  worstFor: string[];       // ["生鲜", "奢侈品"]
}

平台优先级参考

维度 淘宝 拼多多 京东 一号店 唯品会
价格 最低 中低
品质 偏低
物流 最快
售后
正品 风险高 最安全

当前状态

  • 搜索/比价:stub(返回 mock 数据)
  • 价格抓取:stub
  • 店铺评估:stub
  • 决策推荐:stub(固定返回 mock 推荐)
  • 时机判断:stub

下一步由平台组接入真实适配器。

相关 Skill

  • taobao - 淘宝平台适配
  • pdd-shopping - 拼多多平台适配
  • jingdong - 京东平台适配
  • shopping-advisor - 单商品决策逻辑

当前状态 (v0.1.0)

当前状态 (v0.1.0)

MVP 骨架版本 - 平台适配器为 stub 实现,返回 mock 数据。

已实现

  • ✅ 输入/输出 schema 定义
  • ✅ 决策引擎流程定义
  • ✅ 平台适配器接口定义
  • ✅ Mock 决策输出
  • ✅ 自测脚本 (scripts/test-stub.js)

待实现

  • 🔄 各平台真实搜索/价格抓取
  • 🔄 真实店铺风险评估
  • 🔄 实时价格/优惠信息
  • 🔄 接入现有平台 skill (taobao, pdd-shopping, jingdong)

使用说明

本地测试

cd /Users/jianghaidong/.openclaw/skills/dealpilot
node scripts/test-stub.js

在 OpenClaw 中调用

// 示例:调用 dealpilot 进行决策
const { normalizeRequest } = require('./scripts/normalize.js');
const { decide } = require('./scripts/decide.js');
const { formatReport } = require('./scripts/analyze.js');

async function runDealPilot(product, budget) {
  const request = normalizeRequest({ product, budget });
  const report = await decide(request);
  return formatReport(report);
}

// 示例调用
runDealPilot("蓝牙耳机", { max: 200 }).then(console.log);

平台适配器状态

平台 适配器 状态 备注
淘宝 TaobaoAdapter stub 待接入 taobao skill
拼多多 PddAdapter stub 待接入 pdd-shopping skill
京东 JdAdapter stub 待接入 jingdong skill
一号店 YhdAdapter stub 待接入 yhd skill
唯品会 VipAdapter stub 待接入 vip skill

开发指南

目录结构

dealpilot/
├── SKILL.md                 # 技能定义
├── clawhub.json            # 技能元数据
├── package.json            # 依赖配置
├── README.md               # 项目说明
├── engine/                 # 决策引擎
│   ├── router.ts          # 路由层(决策入口)
│   └── types.ts           # 类型定义
├── platforms/              # 平台适配器
│   ├── base.ts            # 适配器基类
│   ├── taobao.ts          # 淘宝适配器
│   ├── pdd.ts             # 拼多多适配器
│   ├── jd.ts              # 京东适配器
│   ├── yhd.ts             # 一号店适配器
│   └── vip.ts             # 唯品会适配器
└── scripts/               # 工具脚本
    ├── normalize.js       # 需求解析
    ├── decide.js          # 决策调用
    ├── analyze.js         # 报告格式化
    └── test-stub.js       # 自测脚本

下一步开发

  1. 接入真实平台数据 - 将各平台适配器的 stub 方法替换为真实 API 调用
  2. 价格抓取 - 实现各平台实时价格获取
  3. 风险评估 - 接入店铺信誉、评论分析
  4. 时机判断 - 结合促销日历、历史价格
  5. 集成测试 - 端到端测试真实商品决策

相关 Skill

  • taobao - 淘宝平台搜索与详情
  • pdd-shopping - 拼多多百亿补贴/拼团策略
  • jingdong - 京东自营/物流分析
  • shopping-advisor - 单商品深度分析
安全使用建议
This skill is a coherent MVP scaffold that currently returns mock results and does not request credentials. If you install it now, it should be low-risk, but watch for future updates: real platform adapters will likely require API keys or third‑party integrations (Taobao/PDD/JD), and those additions should be reviewed to ensure requested credentials and network endpoints match the platform being integrated. Also verify any runtime network calls and new install steps before granting secrets or broad permissions.
功能分析
Type: OpenClaw Skill Name: dealpilot Version: 0.1.0 The 'dealpilot' skill bundle is a legitimate skeleton/MVP for a cross-platform shopping comparison agent. All platform adapters (Taobao, JD, Pinduoduo, etc.) and the decision engine currently use 'stub' implementations that return hardcoded mock data for testing purposes. There is no evidence of data exfiltration, malicious command execution, or prompt injection; the code is well-structured, documented, and strictly follows its stated purpose of providing shopping recommendations.
能力评估
Purpose & Capability
Name/description (cross-platform shopping decision engine) match the included code and docs: engine, platform adapter stubs, normalize/decide/analyze scripts, and test-stub. Nothing in the repo asks for unrelated cloud credentials or system access.
Instruction Scope
SKILL.md and RUNNING.md limit runtime actions to local scripts (normalize/decide/format) and describe future integration with other platform skills. Example paths reference a local development path but there are no instructions to read unrelated system files or exfiltrate data. Current adapters are stubs returning mock data.
Install Mechanism
No install spec provided and no downloads or extract steps. The package is a local JS/TS code bundle intended to run in the agent environment; this is low-risk for installation mechanism.
Credentials
The skill declares no required env vars, binaries, or config paths. That is proportionate for the current stubbed implementation. Note: real platform adapters (future work) may legitimately require platform API keys—those should be requested only when adapter code is added and justified.
Persistence & Privilege
Skill is user-invocable and not always-enabled; it does not request permanent presence or modify other skills. There is no evidence it attempts to change system-wide settings or persist credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dealpilot
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dealpilot 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
DealPilot v0.1.0 初始发布(MVP骨架版本) - 定义了跨平台购物决策输入/输出 schema - 实现决策引擎流程及平台适配器接口(均为stub,返回mock数据) - 支持淘宝、拼多多、京东、一号店、唯品会平台适配结构 - 提供自测脚本和本地测试方法 - 明确开发目录结构与后续开发方向 - 尚未接入真实平台数据,实际比价和风险评估功能待开发
元数据
Slug dealpilot
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Dealpilot 是什么?

Cross-Platform Shopping Decision Agent / 全网购物决策官. Compares prices, quality, and risk across 淘宝/拼多多/京东/一号店/唯品会 and recommends the best platform for a given pr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 109 次。

如何安装 Dealpilot?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dealpilot」即可一键安装,无需额外配置。

Dealpilot 是免费的吗?

是的,Dealpilot 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dealpilot 支持哪些平台?

Dealpilot 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dealpilot?

由 haidong(@harrylabsj)开发并维护,当前版本 v0.1.0。

💬 留言讨论