chrono-follow-date

Use chrono-node in the browser to parse natural-language dates such as “tomorrow” or “next Friday at 3 PM” into follow-up times; suitable for scenarios that need natural-language date parsing and colloquial follow-up time interpretation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "chrono-follow-date" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2359775642e96b5052f5697a4378b932518aa02451d207f994560b5d5d9efe33. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/prd20263897 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use chrono-node in the browser to parse natural-language dates such as “tomorrow” or “next Friday at 3 PM” into follow-up times; suitable for scenarios that need natural-language date parsing and colloquial follow-up time interpretation.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: chrono-follow-date
slug: prd20263897
displayName: 自然语言日期
version: 1.0.0
summary: 用 chrono-node 解析「下周五下午三点」等跟进时间,本地不请求后端。
license: MIT
description: 用 chrono-node 在浏览器内把「明天」「下周五下午三点」等自然语言解析为跟进时间。当用户需要自然语言日期、chrono-node、跟进时间口语解析、下周五三点时使用。

自然语言日期(chrono-node)

灵感:能力工具箱 chrono-date(pkg: chrono-node)。

把跟进备注里的口语时间(如「下周五下午三点」「后天上午」)解析为 Date,用于预约跟进、日历写入,本地完成、不请求后端。

何时使用

  • 粘贴/输入「明天下午三点跟进」类文本
  • 快速填跟进时间,不想手点日期面板
  • 需要中文相对日期(昨天/今天/明天/下周)

硬约束

  1. 依赖 chrono-node;中文场景使用中文 locale(如 zh 解析器),不要只用默认英文。
  2. 解析失败返回 { ok: false, reason },禁止静默写成 Invalid Date。
  3. 以「参考时刻」refDate(默认 new Date())解释相对词;时区用运行环境本地时区并在 UI 标明。
  4. 多段匹配时优先取第一条或让用户确认;结果同时给 iso 与可读文案。
  5. 不发起网络请求;不把整段聊天上传第三方。

推荐实现要点

import * as chrono from 'chrono-node'

/** 中文优先;若包版本导出不同,改为项目文档推荐的 zh 入口 */
const zh = (chrono as any).zh?.casual || chrono.casual

export function parseFollowWhen(
  text: string,
  refDate: Date = new Date(),
): { ok: true; date: Date; iso: string; text: string } | { ok: false; reason: string } {
  const hit = zh.parse(text.trim(), refDate, { forwardDate: true })[0]
  if (!hit) return { ok: false, reason: '未识别到时间表达' }
  const date = hit.start.date()
  if (Number.isNaN(date.getTime())) return { ok: false, reason: '时间无效' }
  return {
    ok: true,
    date,
    iso: date.toISOString(),
    text: hit.text,
  }
}

// 示例:parseFollowWhen('下周五下午三点提醒我')

Agent 步骤

  1. 接入 chrono-node 中文解析,封装 parseFollowWhen。
  2. 自测:「明天」「下周五下午三点」「3天后」;无时间句应失败。
  3. UI:解析成功写入日期时间控件,并展示「已识别:xxx」。

附加

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value65/100

Highlights

  • 解决自然语言日期解析的实际需求,适用于跟进时间口语化解析场景
Trigger Precision85/100

Highlights

  • 触发词精准完整,覆盖多种自然语言时间表达变体
Structure and Standards80/100

Areas to improve

  • 缺少明确的出口条件描述 Reported severity: Minor

    文档中未明确说明解析失败或用户取消操作时的出口条件

    Recommendation: 建议在 Agent 步骤或硬约束中补充出口条件说明

Highlights

  • Phase/步骤清晰,有硬约束和推荐实现要点
  • 包含端到端示例,frontmatter 完整
Execution Reliability90/100

Highlights

  • 工具来源明确(chrono-node),参数正确
  • 覆盖主要异常(解析失败、无效时间),有错误返回机制
Evidence Verifiability (mean of the first four)80/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.