← 返回 Skills 市场
workday-calculator
作者
hunterxysy
· GitHub ↗
· v1.0.0
· MIT-0
240
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install workday-calculator
功能描述
计算时间区间内有多少个工作日的技能。支持排除中国的节假日和调休安排。当用户询问工作日计算、节假日排除、工作时间计算时使用此技能。
安全使用建议
This skill appears to be what it claims: a local Python workday calculator that needs only Python. Before installing or running: (1) review install.sh — it may copy files into /usr/lib or create symlinks (requires root); run it in a safe directory or inspect/modify paths if you don't want system-wide changes; (2) run scripts in an isolated environment (virtualenv or container) if you have security concerns; (3) be aware example_usage.py executes shell commands (subprocess with shell=True) for demos — only run it if you trust the included command strings; (4) if you plan to use update_holidays.py, note it reads and prints code from workday_calculator.py and can generate code snippets to paste back into that file. If you want extra assurance, open the files locally and verify they match the provided sources before execution.
功能分析
Type: OpenClaw Skill
Name: workday-calculator
Version: 1.0.0
The skill is a legitimate utility for calculating workdays based on Chinese holiday schedules for 2025–2026. The core logic in `workday_calculator.py` and the data management in `update_holidays.py` are self-contained, performing date arithmetic without external network requests or sensitive data access. While `example_usage.py` utilizes `subprocess.run(shell=True)` to demonstrate the CLI, the commands are internally defined and do not process untrusted user input, posing no significant security risk in this context.
能力评估
Purpose & Capability
Name/description (workday calculator for China holidays) aligns with the provided code and docs. The code files implement date calculations, holiday lists for 2025–2026, an update tool that edits the holiday lists, and example usage — all expected for this purpose.
Instruction Scope
SKILL.md and the scripts confine behavior to local operations: parsing dates, calculating workdays, exporting JSON, and interactively updating holiday lists. update_holidays.py reads the main script to extract holiday arrays (expected for an update helper). No instructions to read unrelated system config, environment secrets, or to transmit data to external endpoints are present.
Install Mechanism
No formal install spec in the registry (instruction-only), but an install.sh is included. install.sh copies script files into a chosen install directory and may place them under /usr/lib or ~/.openclaw if those paths exist; it also makes scripts executable. This is reasonable for a local script installer but means files may be written to system locations if run with sufficient privileges — review before running as root.
Credentials
The skill declares no required environment variables, no credentials, and does not access secrets. package.json lists engine minimums but no dependencies. The environment access requested is proportional to the stated functionality.
Persistence & Privilege
always:false and normal autonomous invocation. The install script can create files under ~/.openclaw or /usr/lib and suggests creating a symlink under /usr/local/bin (requires sudo). This is expected for command-line tools but means installation may modify local filesystem locations; it does not modify other skills or request persistent platform-wide privileges.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install workday-calculator - 安装完成后,直接呼叫该 Skill 的名称或使用
/workday-calculator触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Workday Calculator:
- Calculate the number of workdays between any two dates, excluding weekends and China’s official holidays (2025-2026, with extra workdays considered).
- Offers detailed breakdowns (workday, holiday, weekend, and special workday lists).
- Supports exporting results in JSON format.
- Holiday data is updatable via script or manual methods.
- Usable as a command line tool or as a Python module for integration.
- Includes documentation for feature explanation, examples, and extension guidelines.
元数据
常见问题
workday-calculator 是什么?
计算时间区间内有多少个工作日的技能。支持排除中国的节假日和调休安排。当用户询问工作日计算、节假日排除、工作时间计算时使用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 240 次。
如何安装 workday-calculator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install workday-calculator」即可一键安装,无需额外配置。
workday-calculator 是免费的吗?
是的,workday-calculator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
workday-calculator 支持哪些平台?
workday-calculator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 workday-calculator?
由 hunterxysy(@hunterxysy)开发并维护,当前版本 v1.0.0。
推荐 Skills