← 返回
数据分析 Key 中文

intervals.icu CLI

Use this skill when an installed `intervals` CLI should be used to query Intervals.icu, inspect activities, create scheduled workout events, create workout l...
当需要使用已安装的 `intervals` CLI 查询 Intervals.icu、检查活动、创建计划的锻炼事件、创建锻炼日志时,使用此技能。
jonaswide
数据分析 clawhub v1.0.1 1 版本 99796.7 Key: 需要
★ 0
Stars
📥 491
下载
💾 6
安装
1
版本
#latest

概述

intervals-cli

Use this skill when the task involves Intervals.icu and the local intervals CLI.

Before You Start

  1. Verify the binary exists:
    • intervals --version
  2. If it is missing, use the skill's declared installer in OpenClaw or install the CLI manually from GitHub Releases.
  3. Verify auth:
    • intervals auth status

The CLI expects one of these environment variables:

  • INTERVALS_API_KEY
  • INTERVALS_ACCESS_TOKEN

OpenClaw metadata declares INTERVALS_API_KEY as the primary env because the skill system supports one primary API-key env. Bearer-token auth via INTERVALS_ACCESS_TOKEN is also valid.

Core Rules

  • Prefer intervals ... --format json.
  • Use absolute dates like 2026-03-16, not relative values like tomorrow.
  • Treat stdout as result data and stderr as diagnostics.
  • For complex writes, prefer --file - or a temp file.
  • Payloads for events, workouts, and wellness are raw Intervals-compatible JSON.
  • Do not install the CLI unless the user asked for installation or the current task clearly depends on it.
  • Do not perform writes or deletes unless the user asked for a mutation.
  • If a temp file is used, remove it after the command completes.

Command Selection

  • Use activities search for text or tag queries.
  • Use activities list for semantic filtering on date, type, distance, tags, or moving time.
  • Use events create or events upsert for something scheduled on a specific date.
  • Use workouts create for a reusable workout library item.
  • Use wellness put or wellness bulk-put for wellness writes.

Events vs Workouts

  • event: a scheduled calendar item on a date
  • workout: a reusable library object not tied to a date

Rule of thumb:

  • "Create a workout for next Monday" usually means events create.
  • "Save this workout for later reuse" means workouts create.

More Guidance

Read these only as needed:

  • Write patterns and examples: {baseDir}/references/writes.md
  • Query guidance: {baseDir}/references/queries.md
  • Example payloads: {baseDir}/examples/

Good Defaults

  • Prefer events upsert over events create when duplicates would be harmful.
  • Resolve natural-language dates before calling the CLI.
  • Ask a follow-up question only when a key training detail is ambiguous.
  • Prefer read commands first when inspecting or validating before a mutation.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 02:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 164 📥 59,892
data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 270 📥 56,932
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,284