← 返回 Skills 市场
mrlyk

time-calc

作者 LiaoYk · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
70
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install time-calc
功能描述
通过 7 个原子操作完成日期时间的计算与解析:获取当前时间、日期元信息查询、相对星期查找、 日期时间加减、日期时间差值、时区转换、Unix 时间戳互转。 两类触发场景:(1) 用户直接提问时间问题,如当前日期、星期几、日期加减、日期差值、 时区换算、时间戳转换、闰年判断、第几周等。 (2) 用户请求中包含可解析为...
安全使用建议
This skill is internally consistent for date/time tasks and doesn't ask for credentials or external installs. Before enabling it, confirm the agent runtime will (1) actually run shell commands only within a restricted context, (2) properly escape or validate any user-supplied date/time strings before interpolating them into shell commands to avoid command injection, and (3) grant the skill only the minimal shell privileges needed. Also test on your target OS because date command behavior differs across platforms (the skill provides cross-platform reference files and safe schemes for GNU date month/year adjustments). If you cannot ensure safe shell invocation or input sanitization, consider rejecting or sandboxing the skill.
功能分析
Type: OpenClaw Skill Name: time-calc Version: 1.0.0 The skill provides a framework for date and time calculations by instructing the AI agent to execute shell and PowerShell commands across different platforms. While the logic in SKILL.md and the reference files (linux.md, macos.md, windows.md) is technically sound and aligned with the stated purpose, the design pattern of constructing shell commands from user-provided strings (e.g., dates and offsets) without explicit sanitization instructions introduces a significant risk of shell injection. The use of complex nested command substitutions and arithmetic expansion in the Linux and macOS reference files further increases the attack surface for potential RCE if the agent is manipulated via prompt injection.
能力评估
Purpose & Capability
Name/description (time/date arithmetic and parsing) match the actual contents: an instruction-only skill that runs platform-specific shell commands (BSD/GNU/PowerShell) using the included references. It does not request unrelated credentials, binaries, or config paths.
Instruction Scope
SKILL.md instructs the agent to detect the platform, read the skill's own reference files ($SKILL_ROOT/references/*.md), and execute shell commands to compute times. This is appropriate for the stated purpose, but because the runtime executes shell commands constructed from user inputs, there is an implementation risk: user-provided strings must be safely validated/escaped to avoid command injection. The skill itself documents safe handling for month/year arithmetic (GNU date overflow handling).
Install Mechanism
No install spec and no code files beyond documentation — lowest-risk model. Nothing is downloaded or written to disk by an installer.
Credentials
The skill requires no environment variables, credentials, or external config paths beyond reading its own bundled reference files. Requested access is proportional to its function.
Persistence & Privilege
always:false and user-invocable:true; the skill does not request permanent presence or attempt to modify other skill/system settings. Autonomous invocation is allowed (platform default) but not excessive here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install time-calc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /time-calc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
time-calc v1.0.0 Initial Release - Provides 7 atomic operations for date/time calculation and parsing: current time, date info, relative weekday, add/subtract, difference, timezone conversion, and Unix timestamp conversion. - Directly invokes platform-specific shell commands for all operations; no mental math or external dependencies required. - Supports smart parsing of user queries (e.g., “明天”, “下周三”, “3天后”) and maps to corresponding time calculation. - Handles complex corner cases like month-end adjustment for date arithmetic and correct weekday calculation per ISO week. - Cross-platform: macOS, Linux (WSL), and Windows PowerShell supported, with detailed platform references for each operation. - Fully user-invocable for a wide variety of everyday and technical date/time questions.
元数据
Slug time-calc
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

time-calc 是什么?

通过 7 个原子操作完成日期时间的计算与解析:获取当前时间、日期元信息查询、相对星期查找、 日期时间加减、日期时间差值、时区转换、Unix 时间戳互转。 两类触发场景:(1) 用户直接提问时间问题,如当前日期、星期几、日期加减、日期差值、 时区换算、时间戳转换、闰年判断、第几周等。 (2) 用户请求中包含可解析为... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 70 次。

如何安装 time-calc?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install time-calc」即可一键安装,无需额外配置。

time-calc 是免费的吗?

是的,time-calc 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

time-calc 支持哪些平台?

time-calc 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 time-calc?

由 LiaoYk(@mrlyk)开发并维护,当前版本 v1.0.0。

💬 留言讨论