← Back to Skills Marketplace
wurongle

查询高驰(COROS)运动手表的跑步运动数据

by rock506 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
324
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install coros-data-skill
Description
查询高驰(COROS)运动手表的运动数据。当用户询问"高驰(COROS)运动数据"、"高驰(COROS)跑步记录"等相关问题时触发。
README (SKILL.md)

功能说明

本 skill 通过调用 COROS 官方 API,实现以下功能:

  1. 账号登录:使用 COROS 账号(手机号/邮箱)和 MD5 加密密码登录,获取 accessToken
  2. 查询运动活动列表:按日期范围查询跑步相关活动记录,支持以下运动模式:
    • 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

计算某时间段总跑量

使用 computeDistancefetchActivity 返回的活动列表求总距离(单位:米),再转换为公里:

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 加密后的密码 用于生成 .envCOROS_PASSWORD 的值
computeDistance(activities) activities: 活动列表数组 number 总距离(单位:米) 对活动列表中所有 distance 字段求和
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install coros-data-skill
  3. After installation, invoke the skill by name or use /coros-data-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
coros-data-skill 1.0.0 - 初始版本发布,实现高驰(COROS)运动手表跑步数据查询。 - 支持 COROS 账号登录,需配置手机号/邮箱和 MD5 加密密码。 - 查询指定日期范围内的跑步活动(含户外、室内、越野、跑步机模式)。 - 提供工具方法,包括密码加密与跑量计算。
Metadata
Slug coros-data-skill
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 查询高驰(COROS)运动手表的跑步运动数据?

查询高驰(COROS)运动手表的运动数据。当用户询问"高驰(COROS)运动数据"、"高驰(COROS)跑步记录"等相关问题时触发。 It is an AI Agent Skill for Claude Code / OpenClaw, with 324 downloads so far.

How do I install 查询高驰(COROS)运动手表的跑步运动数据?

Run "/install coros-data-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 查询高驰(COROS)运动手表的跑步运动数据 free?

Yes, 查询高驰(COROS)运动手表的跑步运动数据 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 查询高驰(COROS)运动手表的跑步运动数据 support?

查询高驰(COROS)运动手表的跑步运动数据 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 查询高驰(COROS)运动手表的跑步运动数据?

It is built and maintained by rock506 (@wurongle); the current version is v1.0.0.

💬 Comments