Food Expiration Calculator

v1.0.0

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...

0· 140·0 current·0 all-time
byJay@goog

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for goog/food-cal.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Food Expiration Calculator" (goog/food-cal) from ClawHub.
Skill page: https://clawhub.ai/goog/food-cal
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install food-cal

ClawHub CLI

Package manager switcher

npx clawhub@latest install food-cal
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk97215mednjdmj9yzjnhkjf1s983j6zt
140downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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.

Comments

Loading comments...