← 返回 Skills 市场
324
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install coros-data-skill
功能描述
查询高驰(COROS)运动手表的运动数据。当用户询问"高驰(COROS)运动数据"、"高驰(COROS)跑步记录"等相关问题时触发。
使用说明 (SKILL.md)
功能说明
本 skill 通过调用 COROS 官方 API,实现以下功能:
- 账号登录:使用 COROS 账号(手机号/邮箱)和 MD5 加密密码登录,获取
accessToken。 - 查询运动活动列表:按日期范围查询跑步相关活动记录,支持以下运动模式:
100- 户外跑步101- 室内跑步102- 越野跑103- 跑步机
环境变量配置
在 scripts/.env 文件中配置以下变量:
COROS_ACCOUNT=\x3C你的 COROS 账号(手机号或邮箱)>
COROS_PASSWORD=\x3C账号密码的 MD5 加密值>
使用方式
import { CorosClient } from "./coros.js";
const client = new CorosClient(process.env.COROS_ACCOUNT, process.env.COROS_PASSWORD);
await client.login();
// 查询指定日期范围内的跑步活动(日期格式:YYYYMMDD)
const activities = await client.fetchActivity("20260303", "20260307");
activities.forEach(activity => {
console.log("date:",activity.date, "distance:",activity.distance);
});
API 说明
| 方法 | 参数 | 说明 |
|---|---|---|
login() |
无 | 登录并初始化鉴权 axios 实例 |
fetchActivity(startDay, endDay) |
startDay: 开始日期(YYYYMMDD)\x3Cbr>endDay: 结束日期(YYYYMMDD) |
查询指定日期范围内的跑步活动列表,默认查询 20260303 ~ 20260307 |
工具方法(util.js)
生成加密密码
使用 genHashedPassword 将明文密码转换为 MD5 加密值,用于配置 COROS_PASSWORD 环境变量:
import { genHashedPassword } from "./util.js";
const hashedPassword = genHashedPassword("your_plain_password");
console.log(hashedPassword); // 输出 MD5 加密后的密码,填入 .env 的 COROS_PASSWORD
计算某时间段总跑量
使用 computeDistance 对 fetchActivity 返回的活动列表求总距离(单位:米),再转换为公里:
import { CorosClient } from "./coros.js";
import { computeDistance } from "./util.js";
const client = new CorosClient(process.env.COROS_ACCOUNT, process.env.COROS_PASSWORD);
await client.login();
// 查询指定日期范围内的跑步活动
const activities = await client.fetchActivity("20260101", "20260310");
// 计算总跑量(distance 单位为米,除以 1000 转换为公里)
const totalMeters = computeDistance(activities);
console.log(`总跑量:${(totalMeters / 1000).toFixed(2)} km`);
工具方法 API 说明
| 方法 | 参数 | 返回值 | 说明 |
|---|---|---|---|
genHashedPassword(password) |
password: 明文密码 |
string MD5 加密后的密码 |
用于生成 .env 中 COROS_PASSWORD 的值 |
computeDistance(activities) |
activities: 活动列表数组 |
number 总距离(单位:米) |
对活动列表中所有 distance 字段求和 |
安全使用建议
This skill's code appears to do what it claims (login with COROS credentials and fetch activities), but the package metadata fails to declare the required environment variables (COROS_ACCOUNT, COROS_PASSWORD). Before installing or running it: 1) Verify the COROS endpoints (teamcnapi.coros.com) are legitimate for your region; 2) Do not commit a filled .env to any repository — treat it as a secret; 3) Prefer to use an API token or app-specific credential if COROS supports one rather than your main account password; 4) If you must use a password hash, consider creating a throwaway account or rotating the password after testing; 5) Run the code in an isolated environment (container) and inspect network traffic if possible; 6) Ask the author to update the skill metadata to explicitly list required env vars and explain why an MD5 of the password is required. These steps will reduce the risk of accidental credential exposure.
功能分析
Type: OpenClaw Skill
Name: coros-data-skill
Version: 1.0.0
The skill is designed to fetch sports activity data from the COROS API using standard Node.js libraries like axios and dotenv. It communicates directly with legitimate COROS endpoints (teamcnapi.coros.com) and handles credentials (account and MD5-hashed password) as specified in the documentation. No evidence of data exfiltration, malicious execution, or prompt injection was found in coros.js or SKILL.md.
能力评估
Purpose & Capability
The name/description describe querying COROS activity data and the included code (coros.js, util.js) implements logging in and fetching activity lists from COROS endpoints (teamcnapi.coros.com). The requested dependencies (axios, dotenv) and utility functions (MD5 hashing, distance summation) are appropriate for the stated purpose.
Instruction Scope
SKILL.md and coros.js instruct the agent to read credentials from scripts/.env (COROS_ACCOUNT and COROS_PASSWORD) and to call COROS APIs; these runtime instructions are narrowly scoped to the described task. However the skill explicitly instructs storing an MD5-hashed password in .env and the package includes a .env template — reading/writing credential files is sensitive and the metadata does not declare these env requirements (mismatch noted).
Install Mechanism
There is no install spec (instruction-only) but source files and package.json are provided. Dependencies are standard (axios, dotenv) and package-lock references common npm packages (mirrors.tencent.com entries appear to be a registry mirror). No arbitrary download URLs or archive extracts are present.
Credentials
The skill actually requires COROS_ACCOUNT and COROS_PASSWORD (MD5) environment variables and includes a scripts/.env file, yet the registry metadata states 'Required env vars: none'. Requiring an account credential is reasonable for this API integration, but the omission from metadata is an inconsistency and the skill asks the user to persistively store a hashed password — both are privacy-sensitive and should be explicitly declared and justified.
Persistence & Privilege
Skill flags are default (always: false, user-invocable: true). It does not request system-wide config changes, no always:true. It does read a local .env in its own folder (normal for a script), and does not attempt to modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install coros-data-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/coros-data-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
coros-data-skill 1.0.0
- 初始版本发布,实现高驰(COROS)运动手表跑步数据查询。
- 支持 COROS 账号登录,需配置手机号/邮箱和 MD5 加密密码。
- 查询指定日期范围内的跑步活动(含户外、室内、越野、跑步机模式)。
- 提供工具方法,包括密码加密与跑量计算。
元数据
常见问题
查询高驰(COROS)运动手表的跑步运动数据 是什么?
查询高驰(COROS)运动手表的运动数据。当用户询问"高驰(COROS)运动数据"、"高驰(COROS)跑步记录"等相关问题时触发。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 324 次。
如何安装 查询高驰(COROS)运动手表的跑步运动数据?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install coros-data-skill」即可一键安装,无需额外配置。
查询高驰(COROS)运动手表的跑步运动数据 是免费的吗?
是的,查询高驰(COROS)运动手表的跑步运动数据 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
查询高驰(COROS)运动手表的跑步运动数据 支持哪些平台?
查询高驰(COROS)运动手表的跑步运动数据 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 查询高驰(COROS)运动手表的跑步运动数据?
由 rock506(@wurongle)开发并维护,当前版本 v1.0.0。
推荐 Skills