wefitai
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 "wefitai" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a221bd48244b1bc4fe0e0aa3d04fe10f4703430ee38ea3b42e81ee1fcd6ff49a. Verify the upstream source and version against https://skillhub.cn/skills/user_68e12bad/wefit 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
Wefitos gym management backend data query skill. Used to query backend data in the Wefitos system such as payroll reports, timecard statistics, commissions, sales performance, remaining timecard days, membership card expirations and sales records, product cash sales and refund records. Membership card queries are divided into three types: card status (cards series), membership card sales records (recharge series), and store product cash records (cashRecords; retail transactions only, excluding membership card sales). All queries are performed via the Wefitos OpenAPI and require the user’s APISECRET authentication key; supports multi-club management and requires calling getClubs to check available clubs before querying.
Introduction source: third_party · user_68e12bad · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: WefitAI
description: >
微健(Wefitos)健身房管理系统后台数据查询 skill。当用户需要查询微健系统中的薪资报表、时间卡统计等后台数据时,使用此 skill。
触发场景包括:查教练/员工薪资、查提成、查销售业绩、查时间卡、查会员卡到期情况、查时间卡剩余天数、查商品收银记录(卖水/蛋白粉等零售流水)及退单记录等。
会员卡查询分三类:①会员卡状态(cards系列)查系统有多少卡、卡什么状态;②会员卡销售记录(recharge系列)查发了多少卡、销售明细;③收银记录(cashRecords)仅查门店商品零售,不含会员卡销售。
所有查询均通过 Wefitos OpenAPI 完成,需要用户提供 APISECRET 认证密钥。支持多俱乐部管理,每次查询前先调用 getClubs 检测可用俱乐部。
disable: false微健(Wefitos)后台数据查询
ApiSecret 管理
ApiSecret 存储在 skill 内部 apisecret/config.md,格式:
ApiSecret: <密钥值>
每次调用流程:
- Read skill 目录下的
apisecret/config.md- 文件存在 → 提取
ApiSecret:后的值,直接使用 - 文件不存在 → 询问用户:"请提供您的 Wefitos ApiSecret(接口认证密钥)"
- 文件存在 → 提取
- 获取到值后,立即创建
apisecret/config.md,写入ApiSecret: <值>,后续调用自动读取,永不重复询问 - 使用 Read 工具提取值时,匹配行首
ApiSecret:后的内容即可
注意:该文件位于 skill 目录内部,随 skill 一起管理,跨会话持久有效
调用规范
- 所有 API 均为 POST,Base URL:
https://api.wefitos.com/open - 请求头必带:
APISECRET: <密钥>+Content-Type: application/x-www-form-urlencoded;charset=UTF-8 - 参数通过 body 传递,除
/getClubs外所有接口必须携带clubId
俱乐部检测(缓存优先)
俱乐部列表缓存在 skill 内部 apisecret/clubs.md,避免每次调用接口。
每次查询流程:
- Read skill 目录下的
apisecret/clubs.md- 文件存在 → 直接使用缓存的俱乐部列表,跳过接口调用
- 文件不存在 → 调用
POST /getClubs获取,然后立即创建apisecret/clubs.md
- 俱乐部匹配规则不变:单俱乐部自动使用,多俱乐部按名称匹配或让用户选择
- 详细规则见
references/common/getclubs.md
错误码处理(最高优先级)
每次接口调用后,必须立即检查响应的 cn 字段:
cn == 0:成功,正常继续cn == 1(或任何非 0 值):立即停止,不再发起任何后续请求(包括分页循环和其他接口调用),向用户报告错误信息:接口返回错误(cn=1):<message 字段内容>
此规则适用于所有接口,包括
/getClubs、分页循环中的每一页、以及任何数据查询接口。绝不能在 cn != 0 时继续循环或重试。
分页规范
所有查询必须自动分页拉取全部数据:pageIndex 从 0 开始,pageSize 固定 100,循环直到已拉取条数 >= total。每页响应必须先检查 cn,非 0 立即中断循环。
工具函数见 references/common/utils.md
🔑 会员卡查询:两个概念,切勿混淆
会员卡相关查询分为两类完全不同的业务场景,对应不同的接口:
📋 会员卡状态查询(cards 系列)— "系统里有多少卡?卡现在什么状态?"
对应接口:/timeCardStats、/personalTrainerCardStats、/onceCardStats、/storedValueCardStats
适用场景(命中任意一条就用这个):
- 查系统有多少张会员卡 / 有多少张时间卡、私教卡、次卡、储值卡
- 查会员卡到期情况、剩余天数、剩余次数、剩余额度
- 查会员卡状态(是否过期、是否激活)
- 查会员卡的剩余课时、剩余金额
- "有多少会员卡即将到期"、"查一下某会员的卡还有多少天"
- 筛选条件按到期时间(
expireTimeStartTime/expireTimeEndTime)
这类查询关心的是卡的存量和当前状态,返回的是每张卡的"档案"。
💰 会员卡销售/发卡记录查询(recharge 系列)— "卖了多少卡?什么时候卖的?"
对应接口:/getTimeCardRecharge、/getPersonalTrainerCardRecharge、/getOnceCardRecharge、/getStoredValueCardRechange
适用场景(命中任意一条就用这个):
- 查会员卡销售记录 / 发卡记录 / 录单记录 / 充值记录
- 查某段时间卖了多少张卡、销售额多少
- 查发卡明细、合同号、支付方式
- 查销售业绩(谁卖的、卖了多少钱)
- "这个月卖了多少时间卡"、"查一下某教练的发卡记录"
- 筛选条件按销售/发卡时间(
rechargeDateStart/End或startInsertTime/endInsertTime)
这类查询关心的是交易流水,返回的是每笔销售/发卡操作的记录。
⚡ 快速判断
| 用户说的话 | 用哪个 |
|---|---|
| "有多少卡" / "卡什么状态" / "还剩多少天/次数/额度" / "卡到期了吗" | cards 系列(会员卡状态) |
| "卖了多少钱" / "发了多少卡" / "销售记录" / "发卡记录" / "录单记录" | recharge 系列(销售/发卡记录) |
| "收银记录" / "卖了多少水/蛋白粉" / "商品零售" / "前台收款" | cashRecords(商品收银,不含会员卡) |
🏪 商品收银 vs 会员卡销售 — 切勿混淆
| 场景 | 用哪个接口 |
|---|---|
| 卖水、卖蛋白粉、运动饮料等门店商品零售流水 | /cashRecords(收银记录) |
| 办时间卡、私教卡、次卡、储值卡等会员卡销售/发卡记录 | recharge 系列(如 /getTimeCardRecharge) |
关键区分:收银记录 = 商品零售(实物商品);会员卡销售 = 卡务业务。两者数据源完全独立,不要用错。
接口索引
按需 Read 对应文档获取参数和返回字段详情。
📌 基础接口
| 数据类型 | 接口路径 | 文档路径 |
|---|---|---|
| 获取俱乐部 | /getClubs |
references/common/getclubs.md |
| 薪资报表 | /wageReport |
references/wage/report.md |
| 签到记录 | /signs |
references/sign/records.md |
| 收银记录 | /cashRecords |
references/cash/records.md |
📋 会员卡状态查询(查系统有多少卡、卡的当前状态)
场景:查会员卡数量、到期情况、剩余天数/次数/额度、卡状态等
| 数据类型 | 接口路径 | 文档路径 |
|---|---|---|
| 时间卡状态 | /timeCardStats |
references/cards/time_card/stats.md |
| 私教卡状态 | /personalTrainerCardStats |
references/cards/personal_trainer/stats.md |
| 次卡状态 | /onceCardStats |
references/cards/once/stats.md |
| 储值卡状态 | /storedValueCardStats |
references/cards/stored_value/stats.md |
💰 会员卡销售/发卡记录(查卖了多少钱、发卡明细)
场景:查销售记录、发卡记录、录单记录、充值记录、合同号、支付方式等
| 数据类型 | 接口路径 | 文档路径 |
|---|---|---|
| 时间卡销售记录 | /getTimeCardRecharge |
references/recharge/time_card/records.md |
| 私教卡销售记录 | /getPersonalTrainerCardRecharge |
references/recharge/personal_trainer/records.md |
| 次卡销售记录 | /getOnceCardRecharge |
references/recharge/once/records.md |
| 储值卡销售记录 | /getStoredValueCardRechange |
references/recharge/stored_value/records.md |
✂️ 核销记录(查会员卡的使用/消耗情况)
场景:查会员卡被核销/消耗的记录
| 数据类型 | 接口路径 | 文档路径 |
|---|---|---|
| 核销-私教卡 | /spendFormPersonalTrainerCard |
references/verify/personal_trainer/records.md |
| 核销-次卡 | /sendFormtOnceCard |
references/verify/once/records.md |
| 核销-储值卡 | /sendFormtSpendRecord |
references/verify/stored_value/records.md |
通用工具
| 文档 | 内容 |
|---|---|
references/common/utils.md |
分页函数、Excel 保存函数、请求头模板 |
references/common/getclubs.md |
getClubs 入口接口详细说明 |
调用流程
- 获取 clubId → 优先 Read
apisecret/clubs.md缓存,不存在才调/getClubs - Read 对应接口文档 → 从上方索引找到文档路径,获取参数和字段
- 确认筛选条件 → 时间范围、姓名等可选参数
- 自动分页拉取 → 使用
post_with_pagination工具函数 - 表格展示 → 列名用中文(见各接口文档的返回字段表)
- 自动保存 Excel → 桌面,文件名见各接口文档
注意事项
- 薪资接口仅返回已创建薪资模版的人员;用户说明其他统计方式时按用户要求
- 时间参数命名不同接口有差异:核销用
startTime/endTime,签到用timeRangeStart/End,充值用rechargeDateStart/End或startInsertTime/endInsertTime - Excel 保存失败时告知用户,不静默跳过
扩展方式
新增接口时:1) 在 references/ 下新增对应 .md 文档 → 2) 在上方「接口索引」表新增一行
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对健身房管理系统的专业数据查询工具,解决实际业务痛点
- 功能覆盖薪资、销售、会员卡、收银等核心业务场景
- 支持多俱乐部管理和完整的数据导出流程
Highlights
- 触发场景描述完整,覆盖薪资、提成、销售、时间卡等多种查询需求
- 明确区分三种会员卡查询类型,边界清晰不易混淆
- 详细说明了认证方式和接口调用规范
Highlights
- 文档结构清晰,包含完整的调用流程和规范说明
- frontmatter完整,接口索引详细,便于维护和扩展
- 提供了详细的会员卡查询分类指南和快速判断表格
Highlights
- 错误处理机制完善,对所有接口响应进行cn字段检查
- 分页机制健全,支持自动拉取全部数据
- 缓存机制优化性能,避免重复调用getClubs接口
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.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 7, 18, 25, 34
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.
- api.wefitos.com
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.