闲社服务运行正常AI智能体自动化平台
j

Just日历

技能标识:justcalendar

Use this skill when a user needs to install, authenticate, or operate the Just Calendar CLI against https://justcalendar.ai, including generating an agent token in the web UI and performing calendar/day-data management from terminal commands.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.2
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

Just日历

JustCalendar CLI 技能

目的

本技能为 justcalendar 提供完整操作指导,justcalendar 是一个 Node.js CLI 工具,通过以下方式管理 Google Drive 中的 Just Calendar 数据:

  1. 1. 从 https://justcalendar.ai 获取后端颁发的 Google Drive 访问令牌
  2. 通过 Google Drive API 直接读写日历数据文件

使用本技能进行设置、登录、故障排除和日常 CLI 操作。

何时使用本技能

当用户提出以下请求时使用本技能:

  • - 安装或更新 justcalendar
  • 使用 Just Calendar 网页界面生成的令牌登录
  • 添加、列出、重命名、删除或选择日历
  • 设置、获取、删除日历中的日期值
  • 从终端运行批量数据操作
  • 排查令牌/认证/权限错误

前提条件

  • - Node.js >=18
  • npm
  • 可访问 https://justcalendar.ai
  • 在网页应用中拥有已连接 Google Drive 的会话(生成令牌和使用 Drive 支持的操作需要)

安装

从 npm 全局安装:

bash
npm install -g justcalendar
justcalendar --help

从本地项目路径安装:

bash
cd ~/justcalendar-cli
npm install
npm install -g .
justcalendar --help

如果从 GitHub 安装:

bash
git clone git@github.com:AndredAlmeida/justcalendar-cli.git
cd justcalendar-cli
npm install
npm install -g .
justcalendar --help

认证流程(网页 -> CLI)

步骤 1:在网站上生成令牌

  1. 1. 打开 https://justcalendar.ai
  2. 在应用中登录/连接 Google Drive
  3. 点击 连接到您的代理(OpenClaw 按钮)
  4. 点击 生成新令牌
  5. 立即复制令牌

重要提示:

  • - 令牌仅显示一次
  • 生成新令牌会使之前的令牌失效
  • 如果弹出窗口提示令牌已存在但被隐藏,请生成新令牌以获取可见令牌

步骤 2:使用令牌登录 CLI

bash
justcalendar login --token <您的令牌> --url https://justcalendar.ai

验证:

bash
justcalendar status

预期状态包括后端 URL、令牌状态和当前日历(如果已认证)。

CLI 数据模型说明

  • - 日历选择器可以是 日历 ID 或 日历名称
  • 日期格式严格为 YYYY-MM-DD
  • 数据存储在 Google Drive 的 JustCalendar.ai 文件夹下
  • 主配置文件:justcalendar.json
  • 日历数据文件:<账户ID>_<日历ID>.json
  • CLI 本地配置:~/.justcalendar-cli/config.json

命令参考

会话 / 认证

bash
justcalendar login --token <令牌> --url https://justcalendar.ai
justcalendar logout
justcalendar status

日历

bash
justcalendar calendars list
justcalendar calendars add 锻炼 --type score --color red --display heatmap --pinned
justcalendar calendars rename 锻炼 锻炼强度
justcalendar calendars remove 锻炼强度
justcalendar calendars select 能量追踪

日历类型选项:

  • - signal-3
  • score
  • check
  • notes

颜色选项:

  • - green、red、orange、yellow、cyan、blue

分数显示选项(适用于 score 类型):

  • - number、heatmap、number-heatmap

日期数据 - 设置

单次设置:

bash
justcalendar data set 能量追踪 2026-03-01 green

批量设置(一次调用多个 <日期> <值> 对):

bash
justcalendar data set 能量追踪 2026-03-01 green 2026-03-02 yellow 2026-03-03 red

日期数据 - 删除

单次删除:

bash
justcalendar data delete 待办事项 2026-03-01

批量删除(一次调用多个日期):

bash
justcalendar data delete 待办事项 2026-03-01 2026-03-02 2026-03-03

日期数据 - 获取

单次获取:

bash
justcalendar data get 睡眠 2026-03-01

批量获取(一次调用多个日期):

bash
justcalendar data get 睡眠 2026-03-01 2026-03-02 2026-03-03

批量优先规则(多日操作)

当处理多个日期时,优先使用 一次批量命令 而非循环逐日命令。

默认使用以下批量模式:

  • - justcalendar data set <日历> <日期1> <值1> <日期2> <值2> ...
  • justcalendar data delete <日历> <日期1> <日期2> ...
  • justcalendar data get <日历> <日期1> <日期2> ...

当请求范围超过一天时使用批量操作,包括:

  • - 日期范围
  • 整周或整月操作
  • 数据回填
  • 批量修复

仅在以下情况下回退到逐日命令:

  • - 批量命令长度超过 shell/OS 命令长度限制
  • 需要对失败子集进行逐日重试

单日请求保持不变:使用现有的单日期命令格式。

批量示例

一次 data set 调用完成周更新:

bash
justcalendar data set 能量追踪 \
2026-03-02 green 2026-03-03 yellow 2026-03-04 red \
2026-03-05 green 2026-03-06 green 2026-03-07 yellow 2026-03-08 green

一次 data delete 调用完成月删除:

bash
justcalendar data delete 待办事项 \
2026-02-01 2026-02-02 2026-02-03 2026-02-04 2026-02-05 2026-02-06 2026-02-07 \
2026-02-08 2026-02-09 2026-02-10 2026-02-11 2026-02-12 2026-02-13 2026-02-14 \
2026-02-15 2026-02-16 2026-02-17 2026-02-18 2026-02-19 2026-02-20 2026-02-21 \
2026-02-22 2026-02-23 2026-02-24 2026-02-25 2026-02-26 2026-02-27 2026-02-28

一次 data get 调用完成多日验证:

bash
justcalendar data get 睡眠 \
2026-03-01 2026-03-02 2026-03-03 2026-03-04 2026-03-05 2026-03-06 2026-03-07

性能 + 一致性说明:

  • - 批量命令减少 CLI/API 开销,降低与多次逐日调用相比的部分写入风险。

按日历类型的值规则

signal-3

data set 接受的值:

  • - red
  • yellow
  • green
  • x
  • clear / unset / none(移除值)

score

接受的值:

  • - 从 -1 到 10 的整数
  • -1 表示未设置/移除

check

接受的真值:

  • - true、1、yes、on、checked

假值/未设置值:

  • - false、0、no、off、unchecked、clear、unset、none

notes

接受:

  • - 任何非空文本字符串(如有空格请加引号)

未设置:

  • - 空/空白值(或使用 data delete)

推荐操作顺序

  1. 1. 检查连接:

bash
justcalendar status

  1. 2. 列出日历:

bash
justcalendar calendars list

  1. 3. 应用所需的日历/数据更改
  1. 4. 重新检查特定日期:

bash
justcalendar data get <日历> <日期1> <日期2> ...

故障排除

未登录。请运行:justcalendar login ...

  • - 使用有效令牌重新运行登录

invalidagenttoken / missingagenttoken

  • - 在网页应用弹出窗口中生成新令牌
  • 重新运行:

bash
justcalendar login --token <新令牌> --url https://justcalendar.ai

missingdrivescope

  • - 在网页应用中重新连接 Google Drive 并批准 Drive 访问权限(drive.file)
  • 生成新的代理

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 justcalendar-1776276669 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 justcalendar-1776276669 技能

通过命令行安装

skillhub install justcalendar-1776276669

下载

⬇ 下载 justcalendar v1.0.2(免费)

文件大小: 3.49 KB | 发布时间: 2026-4-16 15:47

v1.0.2 最新 2026-4-16 15:47
- Added "Bulk-First Rule" section to require bulk commands (multi-date set/delete/get) by default for multi-day JustCalendar CLI operations.
- Provided usage notes, examples, and exceptions for when to use bulk vs per-day commands.
- Clarified that single-day commands remain unchanged.
- No other changes to commands or skill behavior.
返回顶部