← 返回 Skills 市场
date-utils
作者
jpengcheng523-netizen
· GitHub ↗
· v1.0.0
· MIT-0
152
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jpeng-date-utils
功能描述
Provides date and time manipulation operations for working with dates. Use when you need to format, parse, compare, or manipulate dates and times.
使用说明 (SKILL.md)
Date Utils
Provides date and time manipulation operations.
Usage
const date = require('./skills/date-utils');
// Formatting
const formatted = date.formatDate(new Date(), 'YYYY-MM-DD HH:mm:ss');
// Parsing
const parsed = date.parseDate('2024-03-15', 'YYYY-MM-DD');
// Differences
const diff = date.diffDays(date1, date2);
// Add/Subtract
const tomorrow = date.addDays(new Date(), 1);
const lastWeek = date.subtractDays(new Date(), 7);
Features
- Date formatting with patterns
- Date parsing from strings
- Date arithmetic (add/subtract)
- Date comparisons
- Timezone handling
- Calendar generation
- Relative time (ago, fromNow)
- Duration calculations
安全使用建议
This appears to be a straightforward date/time utility library. Before installing or using it, check these minor issues: (1) SKILL.md's require path ('./skills/date-utils') doesn't match package layout (index.js at package root) — adjust your import path. (2) package.json test calls a main() that may not exist — ensure the module exports the functions you need (module.exports) or add an entry point. Run the code locally and review exports to confirm it works in your environment. No secrets or network access are requested, but always inspect bundled code before trusting third‑party packages.
功能分析
Type: OpenClaw Skill
Name: jpeng-date-utils
Version: 1.0.0
The date-utils skill provides standard date and time manipulation functions such as formatting, parsing, and arithmetic. Analysis of index.js and SKILL.md shows no evidence of malicious intent, data exfiltration, or suspicious execution patterns; the code is entirely self-contained and aligns with its stated purpose.
能力评估
Purpose & Capability
The name/description (date/time manipulation) match the provided code: formatting, parsing, arithmetic, comparisons, ranges, and relative-time helpers are implemented. No unrelated capabilities (cloud, network, or system-level access) are requested.
Instruction Scope
SKILL.md usage examples are scoped to requiring and calling the date functions only. Minor inconsistencies: the example shows require('./skills/date-utils') while package.json/main points to index.js at the package root; the test script calls require('./index.js').main() even though the code appears to expose functions rather than a main() entry. These are packaging/usability issues, not evidence of malicious behavior.
Install Mechanism
There is no install specification (instruction-only for the runtime), and the package contains a simple index.js and package.json. Nothing is downloaded from external URLs or written during install.
Credentials
The skill does not request any environment variables, credentials, or config paths. The code does not reference process.env or other secrets-related APIs.
Persistence & Privilege
Flags show always:false and normal invocability. The skill does not attempt to persist or modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jpeng-date-utils - 安装完成后,直接呼叫该 Skill 的名称或使用
/jpeng-date-utils触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of date-utils
- Provides utilities for formatting, parsing, comparing, and manipulating dates and times.
- Supports date arithmetic, timezone handling, calendar generation, relative time, and duration calculations.
元数据
常见问题
date-utils 是什么?
Provides date and time manipulation operations for working with dates. Use when you need to format, parse, compare, or manipulate dates and times. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 152 次。
如何安装 date-utils?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jpeng-date-utils」即可一键安装,无需额外配置。
date-utils 是免费的吗?
是的,date-utils 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
date-utils 支持哪些平台?
date-utils 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 date-utils?
由 jpengcheng523-netizen(@jpengcheng523-netizen)开发并维护,当前版本 v1.0.0。
推荐 Skills