Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

fcalendar-skill日历技能

Agent Skill

fcalendar-skill 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

99,522

周安装

4,275

GitHub Stars

1

下载量

34,884
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fcalendar-skill(日历技能)
来源仓库:https://github.com/youngfreefjs/fcalendar-skill
安装命令:
openclaw skills install fcalendar-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install fcalendar-skill

简介

fcalendar-skill 识别中英文时间表达式并计算日期,支持中国公共假期查询。

  • 适用于日程安排、时间解析和节假日判断等开发场景。
  • 通过 openclaw skills install fcalendar-skill 安装使用。
  • 需确认时区设置和假期数据准确性,注意本地化适配问题。
  • 适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
fcalendar-skill
description
fcalendar-skill is a Chinese date/time expression recognition and holiday query tool. Trigger this skill whenever users mention any time-related terms, including but not limited to: 明天, 后天, 下周, 春节, 国庆节, Christmas, Monday, etc. It can identify and annotate time expressions in natural language text (Chinese and English), resolve them to exact calendar dates, and query Chinese public holidays and normal weekends within a specified time range. Use this skill when users ask about dates, time expressions, schedules, holidays, or when you need to resolve relative time references to concrete dates.
license
See LICENSE.txt
allowed-tools
Read Exec
compatibility
Requires Python 3.7+. Supports Linux, macOS, and Windows systems.

fcalendar

Use fcalendar to identify time expressions in text and query Chinese public holiday schedules. All commands output single-line JSON to stdout; errors go to stderr.

[!IMPORTANT] Always invoke fcalendar as python3 -m fcalendar ... — this bypasses all PATH issues and works regardless of virtual environments, system Python, or installation prefix. Never rely on the bare fcalendar command being on PATH.

Quick Start

  1. Check if already installed (do this first — skip install if it succeeds):
   python3 -c "import fcalendar; print('fcalendar installed, version:', fcalendar.__version__)"

If this prints a version number, skip to step 3.

  1. Install (only if step 1 failed):

> [!NOTE] > Package Source: The fcalendar package is available on PyPI at https://pypi.org/project/fcalendar/ > > Source Code: You can review the source code at https://github.com/youngfreefjs/fcalendar > > Security: This package only performs local date/time parsing and does not access network resources or collect user data.

   python3 -m pip install fcalendar 

For enhanced security, consider installing in a virtual environment:

   python3 -m venv venv
   source venv/bin/activate  # On Windows: venv\Scripts\activate
   python3 -m pip install fcalendar
  1. Verify:
   python3 -m fcalendar --help

Confirm help output is shown. If this fails but step 1 succeeded, the package is installed but may not support -m invocation — fall back to the full binary path:

   $(python3 -c "import sys, os; print(os.path.join(sys.prefix, 'bin', 'fcalendar'))") --help
  1. Get current date when needed: date +%Y-%m-%d
[!NOTE] Invocation rule: In all commands below, replace fcalendar with python3 -m fcalendar. Example: fcalendar query "明天"python3 -m fcalendar query "明天"

Core Capabilities

1. Time Expression Recognition — query

Identifies and annotates time expressions in natural language, resolving them to exact dates.

Command:

fcalendar query "<text>" [--today YYYY-MM-DD] [--lang zh|en]

Arguments:

ArgumentRequiredDescription
<text>yesNatural language text containing time expressions
--todaynoReference date (YYYY-MM-DD). Defaults to system date
--langnoLanguage: zh or en. Defaults to auto-detect

Output:

{"input": "下周开会", "result": "下周开会(今天是2026年3月31日,下周是2026年4月6日至12日)"}

Examples:

fcalendar query "明天下午三点开会"
fcalendar query "国庆节去旅游" --today 2026-09-01
fcalendar query "meeting next Monday" --lang en
fcalendar query "春节回家" --today 2026-01-15

Supported time expression types:

For a comprehensive list of all supported time expression types with detailed examples, see references/time-expressions.md.

Key categories include:

  • Relative days (明天、后天、tomorrow)
  • Relative weeks (本周一、下周五、next Monday)
  • Chinese holidays (春节、国庆节、清明节)
  • Lunar festivals (元宵节、七夕、除夕)
  • Western festivals (Christmas、Halloween、Valentine's Day)
  • 24 solar terms (春分、冬至、立春)
  • And many more...

2. Holiday Query — holiday

Queries public holidays and normal weekends within a specified time range. Excludes workdays-on-weekends (调休上班) to avoid confusion.

For detailed information about Chinese public holidays and solar terms, see references/holidays.md.

Command:

fcalendar holiday [--scope <scope>] [--today YYYY-MM-DD]

Arguments:

ArgumentRequiredDefaultDescription
--scopenohalf_yearTime range (see below)
--todaynosystem dateReference date (YYYY-MM-DD)

Supported scope values (Chinese and English both accepted):

ScopeAliasDescription
half_year半年, 未来半年Next 180 days (default)
this_week本周, 这周Mon–Sun of current week
next_week下周, 下一周Mon–Sun of next week
next_month下个月, 下一个月, 下月Full next calendar month
weeks=NN周, 未来N周Next N weeks from today
months=NN个月, 未来N个月Next N months from today

N supports Chinese numerals: 一、两、三、四...十二, and Arabic numerals.

Output: JSON array, sorted by start date ascending.

[
  {"type": "holiday", "name": "劳动节", "start": "2026-05-01", "end": "2026-05-05", "days": 5},
  {"type": "weekend", "name": "周末",   "start": "2026-05-09", "end": "2026-05-10", "days": 2}
]

Output fields:

FieldTypeDescription
typestring"holiday" = Chinese public holiday; "weekend" = normal restful weekend
namestringHoliday name (e.g. "春节", "周末")
startstringStart date, ISO format (YYYY-MM-DD)
endstringEnd date, ISO format (YYYY-MM-DD)
daysintNumber of days
Note: Workdays-on-weekends (调休上班) are NOT included in the output. The list only shows days off.

Examples:

fcalendar holiday                          # next 180 days (default)
fcalendar holiday --scope this_week        # this week
fcalendar holiday --scope 本周             # same as above (Chinese)
fcalendar holiday --scope next_week        # next week
fcalendar holiday --scope next_month       # next full month
fcalendar holiday --scope weeks=3          # next 3 weeks
fcalendar holiday --scope 三周             # same as weeks=3 (Chinese numeral)
fcalendar holiday --scope months=2         # next 2 months
fcalendar holiday --scope 未来两个月       # same as months=2
fcalendar holiday --scope half_year --today 2026-09-01  # 180 days from Sep 1

Friendly Display Requirements

[!IMPORTANT] Strict Output Rule: Always use the exact content returned by the fcalendar CLI. Do NOT paraphrase, rewrite, supplement, or infer beyond what the CLI returns. The result field (for query) and the JSON array (for holiday) are the single source of truth. Present them as-is after formatting; never modify their semantic content.
  • General principle: output must be valid Markdown with clear structure.
  • For query: display the result field directly as the annotated response. Do not display raw JSON to the user.
  • For holiday:

- Group results by type: list holiday entries first, then weekend entries. - Use a Markdown table or bullet list to present each item. - Highlight key facts: name, date range, number of days. - If the result is empty, tell the user there are no holidays in that period.

Recommended output structure for holiday

## 放假安排([scope描述])

### 法定节假日
| 假期 | 开始 | 结束 | 天数 |
|------|------|------|------|
| 劳动节 | 2026-05-01 | 2026-05-05 | 5天 |

### 普通周末
| 日期 | 天数 |
|------|------|
| 2026-04-25 ~ 2026-04-26 | 2天 |

Error handling

  • If the --scope value is invalid, the CLI exits with a non-zero code and prints an error to stderr. Inform the user of valid scope formats.
  • Always get the current date with date +%Y-%m-%d before calling if real-time accuracy is required.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.59%
按下载量换算34,392

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills