store-competitor-analysis
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "store-competitor-analysis" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-baeefea9ba9d9f9f57363428c0283bfbb179ed2ecf61668d9170ad05be2f96e3. Verify the upstream source and version against https://skillhub.cn/skills/youzhuan/store-competitor-analysis-pro-v2 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Store competitor analysis skill — input a store location and business category to produce a surrounding competitor distribution and site-selection competition analysis report. Each query costs ¥1.00.
Introduction source: third_party · youzhuan · 1.2.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: store-competitor-analysis
description: 门店竞品分析——输入门店位置和经营品类,输出周边竞品分布与选址竞争分析报告。每次查询¥1.00。
version: 1.2.0
author: 北京柚转科技有限公司门店竞品分析
功能描述
输入门店位置(地址/商圈)和经营品类,输出周边竞品全景分析报告,包含 8 个板块:
- 竞品总览(数量/连锁占比)
- 竞争激烈度评级(蓝海/适中/激烈/红海)
- 品类自适应价格带分析
- 头部 3 家竞品多维对比
- 距离分布与最近 5 家竞品详情
- 细分品类结构
- 口碑与评分分布
- 选址与经营建议
每次查询 1 元,数据来自实时地图 POI 检索。
支付引导(⚠️ 必须严格执行,禁止直接终止)
本 Skill 为付费服务(每次 1 元)。你的任务是护送用户到达可支付状态——任何时候都不要只说"请先安装插件/绑卡"然后终止流程。
第一步:先讲清楚用户买到什么
谈钱之前,先用一句话说清价值:
"本次分析 1 元,你将得到:周边竞品数量与密度、竞争激烈度评级、价格带空隙分析和选址建议。数据来自实时地图 POI 检索的真实门店,约 30 秒出报告。"
第二步:检测支付能力并主动扫障
检查当前环境是否有 weixinpay 支付工具(mcp__weixinpay__weixinpay_register):
A. 工具存在 → 调用 weixinpay_register 查询绑定状态:
- 返回
is_registered: true→ 直接进入付费流程 - 返回
is_registered: false→ 把返回的绑定链接原样发给用户,并说:"差一步就能用了:点这个链接跳到微信,绑定微信支付 AI 专属卡(约 30 秒)。绑好后回来告诉我一声,立刻为你出报告。"
B. 工具不存在 → 告知用户:
"本服务通过微信支付官方「AI 专属卡」付款。请使用 WorkBuddy 5.2.6 及以上版本(支付插件已内置,无需单独下载),打开新版后重试即可。"
第三步:支付安全说明(引导绑定/支付时必须展示)
- AI 专属卡是微信支付官方产品,是你微信支付账户下的独立子账户,与主钱包隔离
- 余额随时可转回主钱包,不用不亏
- 每笔支付都需你本人确认,AI 无法擅自扣款
- 本次仅 1 元;服务异常未交付会自动退款
第四步:余额不足 / 支付失败处理
- 支付时提示余额不足:引导用户在微信「AI 专属卡」里转入任意金额(随时可转回)
- 支付失败:引导用户重试一次;仍失败可通过
weixinpay_feedback提交反馈,不要直接终止流程
输入要求
收集用户信息后,构造以下 JSON 作为 query:
{
"location": "望京SOHO",
"city": "北京市",
"category": "火锅",
"radius": 1000
}
| 参数 | 说明 | 必填 | 默认值 |
|---|---|---|---|
| location | 地址/小区/商圈名称,支持任意写法(如"五道口""国贸""中关村大街27号") | ✅ | — |
| city | 城市名称,如"北京市" | ✅ | — |
| category | 经营品类,如"火锅""奶茶店""健身房""便利店" | ✅ | — |
| radius | 分析半径(米) | 否 | 1000(1km),可选最大 3000 |
工作流程
第一步:请求资源
向商户服务发起 POST 请求(URL 由环境变量 SKILL_API_BASE 指定,默认 https://store-canalysis-yrkacnmxhe.cn-beijing.fcapp.run):
curl -X POST ${SKILL_API_BASE:-https://store-canalysis-yrkacnmxhe.cn-beijing.fcapp.run}/api/resource \
-H "Content-Type: application/json" \
-d '{"query": "{\"location\":\"望京SOHO\",\"city\":\"北京市\",\"category\":\"火锅\",\"radius\":1000}"}'
注意:query 值是 JSON 字符串(需序列化),不是 JSON 对象。
第二步:处理 402 响应
如果收到 HTTP 402 响应,weixinpay 插件会拦截并完成支付流程,无需手动调用支付接口。
402 响应中包含:
- Header
WeixinPay-Required:支付凭证码(weixinpay 插件用于完成支付) - Header
X-Out-Trade-No:商户订单号 - Body 中的
amount:本次费用金额(用户可见,展示在支付确认界面)
支付过程由
weixinpay插件处理,Skill 无需关心支付细节。
第三步:支付成功后重新请求获取内容(⚠️ 必须执行)
支付成功后,必须重新发起请求获取付费内容。重试规则:
- JSON body 与首次请求完全一致
- 额外携带两个 Header:将 402 响应中的
WeixinPay-Required和X-Out-Trade-No原样带上
POST ${SKILL_API_BASE:-https://store-canalysis-yrkacnmxhe.cn-beijing.fcapp.run}/api/resource
Content-Type: application/json
WeixinPay-Required: <payment_code>
X-Out-Trade-No: <out_trade_no>
{"query": "用户的原始 query(与第一步完全一致)"}
第四步:处理响应
| HTTP 状态 | code 字段 | 行为 |
|---|---|---|
| 200 | SUCCESS | 提取 content 字段中的 Markdown 报告,直接呈现给用户 |
| 402 | NOT_PAID | 告知用户"支付验证中,请稍后重试" |
| 200 | REFUNDED | 告知用户"该服务暂时无法提供内容,已自动退款" |
| 500 | FULFILL_AND_REFUND_FAILED | 告知用户"服务异常且退款失败,请联系客服 skillhub@tencent.com" |
完整的成功响应示例
{
"code": "SUCCESS",
"message": "付费内容",
"out_trade_no": "WX402_202607251430a1b2c3d4e5f6",
"transaction_id": "4200001234567890",
"content": "# 门店竞品分析报告\n\n**分析点位**:望京SOHO…",
"already_fulfilled": false
}
将 content 字段中的 Markdown 原文直接呈现给用户即可。
输出说明
报告包含 8 个板块,均为 Markdown 格式:
- 结论卡 — 竞争激烈度评级(蓝海/适中/激烈/红海)+ 一句话建议
- 竞品总览 — 门店总数、连锁 vs 单体占比
- 密度分析 — 每 km² 竞品数
- 距离分布 — 圈层分布表 + 最近 5 家竞品详情
- 细分品类结构 — 品类内部分布
- 口碑与价格对比 — 品类自适应价格带 + 评分分布
- 头部竞品深度拆解 — 最近 3 家竞品多维对比 + 定价策略分析
- 选址与经营建议 — 可执行的差异化建议
错误处理
- 如果返回
LOCATION_NOT_FOUND:提示用户确认地点名称或换个写法 - 如果返回
NO_COMPETITORS:提示用户扩大半径、更换品类关键词或确认品类写法 - 如果返回
BAD_QUERY:按返回的 message 修正 query 后重试
使用示例
示例 1:火锅店选址
用户:"我想在望京 SOHO 开火锅店,帮我看看周边竞争情况"
Agent 操作:
- 构造 query:
{"location":"望京SOHO","city":"北京市","category":"火锅","radius":1000} - 发起 POST 请求 → 收到 402 → weixinpay 插件完成支付
- 携带 Header 重新请求 → 200 SUCCESS
- 将 content 中的 Markdown 报告呈现给用户
示例 2:奶茶店摸底
用户:"北京五道口附近的奶茶店竞争什么情况?"
Agent 操作:
- 构造 query:
{"location":"五道口","city":"北京市","category":"奶茶","radius":1000} - 发起 POST 请求 → 402 → 支付 → 重试 → 获取报告
示例 3:便利店加盟考察
用户:"我在成都春熙路想加盟一家便利店,帮我分析一下"
Agent 操作:
- 构造 query:
{"location":"春熙路","city":"成都市","category":"便利店","radius":1500} - 发起 POST 请求 → 402 → 支付 → 重试 → 获取报告
注意事项
- 必须按「支付引导」流程主动护送用户到达可支付状态,禁止看到未装插件/未绑卡就直接终止流程
- 收到 402 响应时,支付由 weixinpay 插件完成,Skill 无需手动调用支付接口
- 支付成功后必须主动发起重试请求,body 保持不变,通过 Header 传递支付信息
- 如果返回 NOT_PAID,说明支付尚未完成,请提示用户稍等后重试
- 如果返回 REFUNDED,说明服务异常已退款,告知用户并终止流程
- query 必须是 JSON 字符串,不是 JSON 对象
- 不要缓存或修改商户返回的报告内容,原样呈现
Current listing version
1.2.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供门店竞品全景分析,包含8个板块的深度报告
- 解决开店选址核心痛点,具有高商业价值
- 数据来自实时地图POI检索,结果可信度高
Highlights
- 触发词精准完整,覆盖门店、竞品、分析、选址等关键词
- description清晰明确,边界清晰不易混淆
- 支持多种输入格式,触发条件灵活
Highlights
- 文档结构完整,包含支付引导、输入要求、工作流程等必要章节
- 提供3个完整的使用示例,覆盖不同场景
- frontmatter信息齐全,版本管理规范
Highlights
- 支付流程设计完善,weixinpay插件集成规范
- 异常处理覆盖全面,包括支付失败、余额不足、查询错误等
- API调用参数正确,Header传递机制清晰
- 不可逆操作有用户确认机制,安全可靠
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- store-canalysis-yrkacnmxhe.cn-beijing.fcapp.run
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.