← 返回 Skills 市场
wuhaichao87

家庭消费意图识别

作者 wuhaichao87 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
241
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install family-intent-recognition
功能描述
家庭消费意图识别 - 从家庭聊天文本中识别消费意图,输出结构化JSON
使用说明 (SKILL.md)

家庭消费意图识别 V3.0

从家庭成员的日常聊天文本中识别是否存在消费意图,并输出结构化JSON结果。

消费意图定义

用户表达出可能购买某种商品或服务的需求、兴趣、计划、比较、询问价格或评价等行为。

示例:

  • 想买
  • 需要换一个
  • 有没有推荐
  • 这个多少钱
  • 最近想换
  • 这个好不好

输出格式

{
  "has_intent": true,
  "intent_category": "餐饮",
  "intent_stage": "awareness",
  "intent_strength": "low",
  "keywords": ["火锅"],
  "reason": "用户只是提到或对某商品表达兴趣,触发了关键词:火锅,涉及商品类别:餐饮"
}

字段说明

字段 类型 说明
has_intent boolean 是否存在消费意图
intent_category string 商品类别
intent_stage string 意图阶段 (awareness/consideration/purchase)
intent_strength string 意图强度 (low/medium/high)
keywords array 触发关键词列表
reason string 判断理由

意图阶段

阶段 说明 示例
awareness 兴趣阶段,只是提到某类商品或表达兴趣 "明天去吃火锅吧"、"想买电脑"
consideration 考虑阶段,询问价格、评价、品牌、对比 "电脑多少钱?"、"哪个牌子好"
purchase 购买阶段,明确表达想买、准备买、需要买 "买了手机"、"打算买电脑"

意图强度

强度 说明
low 只是轻微提及
medium 有一定兴趣或讨论
high 明确表达购买意图或已完成购买

商品类别

  • 家电
  • 数码产品
  • 电脑外设
  • 家具
  • 食品饮料
  • 服装鞋帽
  • 日用品
  • 汽车
  • 母婴用品
  • 娱乐产品
  • 教育培训
  • 医疗保健
  • 通讯费
  • 水电燃气
  • 餐饮

使用方法

# 命令行调用
python3 intent_classifier.py "想买一台电脑"

# API 调用
curl -X POST http://localhost:5000/intent -H "Content-Type: application/json" -d '{"text": "明天咱们去吃火锅吧"}'

Python 调用

from intent_classifier import classify

result = classify("明天咱们去吃火锅吧")
print(result)
# {
#   "has_intent": True,
#   "intent_category": "餐饮",
#   "intent_stage": "awareness",
#   "intent_strength": "low",
#   "keywords": ["火锅"],
#   "reason": "用户只是提到或对某商品表达兴趣..."
# }
安全使用建议
This skill appears to do what it says: local classification of family-chat text into purchase-intent categories. Before installing/activating: (1) run it locally or inspect the code yourself—no hidden network calls were found; (2) avoid binding the Flask API to 0.0.0.0 or exposing it without authentication—bind to localhost or put it behind an authenticated proxy if you must provide remote access; (3) CORS is enabled by default in the sample, which allows cross-origin requests—remove or restrict CORS in production; (4) treat any processed chat data as sensitive personal data (do not send logs or inputs to third parties), and consider adding logging, rate-limiting, and input validation if you will run this as a long-lived service; (5) if you plan to change or extend the skill (add packages or an installer), re-evaluate for downloads, new dependencies, or added environment variables that could widen its privileges.
功能分析
Type: OpenClaw Skill Name: family-intent-recognition Version: 1.0.0 The skill bundle is a legitimate rule-based NLP tool designed to identify family consumption intents from Chinese text. The core logic in `intent_classifier.py` uses keyword matching to categorize intents, while `api.py` and `cli.py` provide standard interfaces for the service. There is no evidence of data exfiltration, malicious execution, or prompt injection attempts in the code or documentation.
能力评估
Purpose & Capability
Name/description match the included files: a classifier (intent_classifier.py), a CLI entrypoint, and a small Flask API. The only required binary is python3 which is appropriate for this implementation. No unrelated dependencies or credentials are requested.
Instruction Scope
SKILL.md instructs running the classifier locally or starting the Flask API. The runtime instructions and code operate only on provided text inputs and return structured JSON. Note: the API binds to 0.0.0.0 and enables CORS, which can expose the service to the network if run on a machine with open network access—this is a deployment/configuration concern rather than hidden malicious behavior in the code.
Install Mechanism
There is no install spec—this is instruction + source files to run with python3. Nothing is downloaded or written by an installer; no archives or third-party package installs are invoked by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths and the code does not read environment secrets. This is proportionate to the stated purpose.
Persistence & Privilege
The skill is not set to always:true and does not modify other skills or system-wide settings. It runs as a simple process (CLI or Flask app) and does not persist credentials or alter agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install family-intent-recognition
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /family-intent-recognition 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
支持消费意图识别
元数据
Slug family-intent-recognition
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

家庭消费意图识别 是什么?

家庭消费意图识别 - 从家庭聊天文本中识别消费意图,输出结构化JSON. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 241 次。

如何安装 家庭消费意图识别?

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

家庭消费意图识别 是免费的吗?

是的,家庭消费意图识别 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

家庭消费意图识别 支持哪些平台?

家庭消费意图识别 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 家庭消费意图识别?

由 wuhaichao87(@wuhaichao87)开发并维护,当前版本 v1.0.0。

💬 留言讨论