← 返回 Skills 市场
goog

Food Expiration Calculator

作者 Jay · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install food-cal
功能描述
Food expiration calculator. Use when user wants to check if a food product has expired based on production/purchase date and shelf life. Calculates expiratio...
使用说明 (SKILL.md)

Food Expiration Calculator

This skill calculates whether a food product has expired based on the product date and shelf life.

Usage

User provides:

  • Product date: The production date, manufacture date, or purchase date (format: YYYY-MM-DD)
  • Shelf life: How long the product lasts (e.g., "6 months", "2 years", "18 months")

Output

The calculator returns:

  • Expiration date
  • Days remaining until expiration (or days since expiration)
  • Status: "Fresh" (more than 30 days left), "Expiring Soon" (less than 30 days), or "Expired"

Script

Use the Python script scripts/food_expiry.py to calculate:

python scripts/food_expiry.py --date 2025-06-01 --shelf-life "6 months"

Arguments:

  • --date or -d: Product date (YYYY-MM-DD)
  • --shelf-life or -s: Shelf life (e.g., "6 months", "2 years", "18 days")

The script outputs the expiration date, days remaining, and status.

安全使用建议
This skill appears safe: it contains a small Python script that parses dates and prints an expiration status, with no network activity or secret access. If you rely on exact calendar math, note the script approximates months as 30 days and years as 365 days. You can review the included scripts locally before running; run them in your normal environment (python3) — no external keys or installs are required.
功能分析
Type: OpenClaw Skill Name: food-cal Version: 1.0.0 The skill bundle is a straightforward utility for calculating food expiration dates. The Python script `scripts/food_expiry.py` uses standard libraries to process date strings and shelf-life durations without any network access, file system manipulation, or sensitive data retrieval. No malicious instructions or suspicious patterns were identified in the code or documentation.
能力评估
Purpose & Capability
The script and SKILL.md implement a simple expiration-date calculator matching the name/description. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
SKILL.md only instructs running the included Python script with a product date and shelf-life string. The script only parses inputs, does date math, and prints results; it does not read other files, environment variables, or contact external endpoints.
Install Mechanism
No install spec is provided (instruction-only with a bundled script). This minimizes installation risk — nothing is downloaded or written to disk beyond the provided file.
Credentials
The skill requires no environment variables, credentials, or external configuration. The declared requirements match the implementation.
Persistence & Privilege
The skill does not request permanent presence (always:false) and does not modify system or other skills' configuration. Autonomous invocation is allowed by default but is not combined with any broad privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install food-cal
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /food-cal 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Food Expiration Calculator skill. - Allows users to check if a food product is fresh, expiring soon, or expired based on product date and shelf life. - Provides expiration date, days remaining (or overdue), and status. - Includes a Python script (`scripts/food_expiry.py`) for command-line calculation.
元数据
Slug food-cal
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Food Expiration Calculator 是什么?

Food expiration calculator. Use when user wants to check if a food product has expired based on production/purchase date and shelf life. Calculates expiratio... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 Food Expiration Calculator?

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

Food Expiration Calculator 是免费的吗?

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

Food Expiration Calculator 支持哪些平台?

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

谁开发了 Food Expiration Calculator?

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

💬 留言讨论