凭令牌同步日历事件

SKILLAI 工具

原名 随星小程序日历同步 · 标识 calendar-sync

AI 工具 未标注权限 许可证不明确
安装这个技能

仅凭日历访问令牌即可代用户写入日历事件,无需密码和额外依赖,能校验令牌并解析自然语言时间描述,可在多种智能体环境中运行。

一句话选型结论

按资料字段整理

凭令牌同步日历事件是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类AI 工具 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_418d03c9/skill-20260805185241148-97leev
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

AI 工具
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_418d03c9仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量10.1 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

0 项能力
上游给出的能力概览与适用场景
写入日历日程自然语言建事件跨智能体日历同步

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在AI 工具场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
凭令牌同步日历事件当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

10.1 KB
模型实际读到的说明书原文,来自技能仓库

Calendar Sync Skill (universal)

Upload / update calendar events through a single, decoupled entry. The module is
pure JavaScript (ESM, zero runtime dependencies, Node ≥ 18), so it runs in
any agent host — WorkBuddy, Qoder, Claude, a CI job, or a plain shell — with
no vendor SDK and no account of its own. It talks to a calendar backend only
through a token
that the user (or the user's auth system) provides.

What it needs (and does NOT need)

  • Needs: a calendar access token (JWT) issued by the user's auth backend.
    The token carries the user id (sub), the target calendar id (cid), the
    scope (calendar:write), and optionally the backend issuer (iss). For known
    issuers the skill only parses the payload locally; the calendar backend itself
    verifies the signature via the Authorization: Bearer header. The skill writes
    only to the calendar the token is scoped to.
  • Does NOT need: the user's password, an OAuth flow, any API key, or a
    vendor SDK. The token is the single credential and stays in memory for one turn.

The contract the skill speaks (canonical)

The bundled rest adapter is vendor-agnostic. By default (wireFormat: 'iso')
it speaks this canonical contract, which any backend can implement:

  • Auth: Authorization: Bearer <token> on every request.
  • Create: POST {baseUrl}/calendars/{calendarId}/events
  • body = normalized Event JSON (start/end are ISO: YYYY-MM-DDTHH:mm[:ss];
    all-day uses YYYY-MM-DD; optional title/location/description/timezone/
    reminders/recurrence).
  • response 200 with { "id": "<eventId>", ... }.
  • Update: PATCH {baseUrl}/calendars/{calendarId}/events/{eventId}
  • Delete: DELETE .../events/{eventId} (soft — flips status, never hard-deletes)
  • List (conflict check): GET .../events?from=&to= → returns a JSON array.

If your backend uses a different shape, you do not write code — you just
set three service options (see below). No subclass, no fork.

Known services (token-only, zero config)

The skill ships with built-in service configurations. If a token includes an
iss field that matches a known issuer, the skill automatically selects the
right baseUrl, wire format, and response id field
— the agent only needs the
token.

Service iss (token payload) Base URL Wire format Id field
uni-app-calendar https://prod-d5gzz0x1s8252853f.service.tcloudbase.com/api same as issuer date-hm _id

Example token payload for uni-app-calendar:

{
  "sub": "u_xxxx",
  "cid": "717c23bf6a58db0d02fa15a42597e90b",
  "iss": "https://prod-d5gzz0x1s8252853f.service.tcloudbase.com/api",
  "scope": ["calendar:write"],
  "iat": 1784632426,
  "exp": 1785237226,
  "jti": "..."
}

Two ways to use it

A) CLI (simplest — any agent can shell out)

Token-only mode (recommended for known services — no secret, no baseUrl):

node bin/cal-sync.mjs \
  --token "$CALENDAR_TOKEN" \
  --text "明天9点到10点去北京城市图书馆"
# prints one JSON line: the unified response

Explicit backend mode (for custom backends or when you want local HMAC verification):

node bin/cal-sync.mjs \
  --token "$CALENDAR_TOKEN" \
  --text "明天9点到10点去北京城市图书馆" \
  --base-url "https://your-host/api" \
  --secret "$CALENDAR_SYNC_TOKEN_SECRET" \
  --wire-format date-hm --response-id-field _id

Flags: --token (or env CALENDAR_TOKEN), --text/--nl, --event '<json>',
--action create|update|delete|recover|batch, --event-id, --service,
--base-url (or env CALENDAR_BASE_URL), --secret (or env
CALENDAR_SYNC_TOKEN_SECRET), --wire-format iso|date-hm,
--response-id-field id|_id, --path-template, --calendar, --timezone,
--idempotency-key, --fail-on-conflict, --events '<json-array>'. Run
node bin/cal-sync.mjs --help for all flags.

The CLI always prints a single JSON line (even on error) so the calling agent
gets a structured result, never a silent failure.

B) Library (programmatic)

Token-only (auto-detect by iss):

import { createCalendarSync } from './scripts/calendar-sync/src/index.js';

// No secret/baseUrl needed for known issuers; services auto-selected from token.iss.
const sync = createCalendarSync();

const res = await sync.invoke(
  { action: 'create', token: '<jwt>', naturalLanguage: '明天下午3点到5点开会' },
  // token may also be passed via a SkillContext; it is wiped after the turn.
);
// res -> { ok, status, code, data:{ eventId }, error, meta }

Explicit service (custom backend):

const sync = createCalendarSync({
  token: { secret: process.env.CALENDAR_SYNC_TOKEN_SECRET },
  services: {
    'my-cal': {
      adapter: 'rest',
      baseUrl: 'https://your-host/api',
      defaultCalendarId: '',          // leave ''; token's cid is used
      wireFormat: 'iso',              // 'iso' (canonical) | 'date-hm'
      responseIdField: 'id',          // backend returns id in this field ('_id' for Mongo)
      pathTemplate: '/calendars/{calendarId}/events',
    },
  },
  defaultService: 'my-cal',
});

Pointing it at YOUR backend (no code changes)

Set these per-service options when you build the config:

option default use when your backend…
wireFormat 'iso' …expects date (YYYY-MM-DD) + start/end (HH:mm), not ISO → set 'date-hm'.
responseIdField 'id' …returns the new id in _id (Mongo) → set '_id'.
pathTemplate '/calendars/{calendarId}/events' …uses a different route → e.g. '/v1/calendars/{calendarId}/events'.

Example for a backend that stores date+HH:mm and returns _id:

services: { 'my-cal': { adapter:'rest', baseUrl:'https://host/api',
  wireFormat:'date-hm', responseIdField:'_id' } }

To register a new known service so agents only need a token, add it to both
token.knownIssuers and services in src/config.js:

token: {
  knownIssuers: {
    'https://your-host/api': 'your-service-name',
  },
},
services: {
  'your-service-name': {
    adapter: 'rest',
    baseUrl: 'https://your-host/api',
    wireFormat: 'iso',
    responseIdField: 'id',
  },
},

Natural language

naturalLanguage (alias text) is parsed into a normalized event: Chinese date
words (今天/明天/后天/周X/日期), time ranges (9点到10点, 15:00-17:00, 下午3点),
location after 在/地点:/位于/@/前往/去往/去 (e.g. "去北京城市图书馆"), reminders
(提前30分钟提醒), and recurrence (每周). Pass an explicit event object to
skip NL. eventOverrides merges after NL (handy when NL misses a field).

Token & auth

  • For known issuers (token.knownIssuers), the skill does not need the
    HMAC secret. It parses the token payload locally to obtain sub / cid /
    scope / exp / iss, and lets the calendar backend verify the signature via
    the Authorization: Bearer header. This is the default "token-only" mode.
  • For custom backends (unknown issuer) or if you want local verification, set
    the same HS256 secret the issuing backend used (env
    CALENDAR_SYNC_TOKEN_SECRET, --secret, or token.secret in config).
  • Tokens may carry an iss field. When iss matches a known issuer in
    token.knownIssuers, the skill auto-selects the matching service; no baseUrl,
    wire-format, or secret questions are needed.
  • On success the skill reads sub / cid / scope. The token's cid is
    enforced: even if a caller passes a different calendarId, a scoped token can
    only write its own calendar (least privilege / closes IDOR). Tokens without
    calendar:write are rejected.
  • The plaintext token lives only in memory, only for the turn; call
    context.dispose() (the CLI does this automatically) and never log it.
  • To delegate verification to a real auth backend instead of local HMAC, call
    setVerifier(async (token, config) => payload) from src/token.js.
  • Disable token-only fallback with token.trustKnownIssuers: false.

Reliability & compliance

Timeouts + retry + 429/503 Retry-After honoring · per-item idempotency keys
(retries are safe) · conflict detection before write · offline queue + replay on
transient failure · soft-delete/recover (never hard-delete) · audit log
(actor = userId) · optional AES-256-GCM field encryption · healthCheck() for
graceful degradation.

Unified response

Always { ok, status, code, data:{eventId?,…}, error:{code,message} | null, meta }.
error.message is always safe (no token/secret/expiry leaked). See
references/schema.md for the full contract and references/adapters.md for the
adapter interface.

Testing

cd scripts/calendar-sync && npm test (built-in node --test, zero deps):
NL parsing, validation, idempotency, conflict, token safety, soft-delete/recover,
batch, offline queue, and end-to-end via the in-memory adapter and the
configurable rest adapter (iso + date-hm).

常见问题

5 问
答案由本站依据条目字段整理
凭令牌同步日历事件怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_418d03c9/skill-20260805185241148-97leev。安装方式为未标注。装完刷新技能列表或重开客户端。

凭令牌同步日历事件支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

凭令牌同步日历事件权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

凭令牌同步日历事件收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

凭令牌同步日历事件用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。