← 返回
未分类 中文

Cat Food Tracker

Work with cat feeding, weight, and water tracking records. Use when validating CatFoodCalculator-style JSON backups, calculating dry-equivalent cat food tota...
Work with cat feeding, weight, and water tracking records. Use when validating CatFoodCalculator-style JSON backups, calculating dry-equivalent cat food tota...
hhr8 hhr8 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 342
下载
💾 0
安装
1
版本
#data-processing#latest#offline-first#pet-care

概述

Cat Food Tracker

Use this skill to process cat feeding tracker data reliably. Prefer the bundled scripts for validation, daily summaries, and CSV output instead of doing arithmetic manually.

Workflow

  1. Identify the input shape. Supported input is a JSON object with optional settings, pets, feed_records, weight_records, and water_records arrays. If the user provides CSV or free-form data, first convert it into this shape.
  2. Validate JSON backups with scripts/validate-backup.mjs before calculating or transforming records.
  3. Generate daily summaries with scripts/daily-summary.mjs when the user asks for totals, dry-equivalent food, water intake, daily history, or CSV export.
  4. Read the focused reference files only when needed:
    • references/domain-model.md for accepted fields and enums.
    • references/calculations.md for formulas, rounding, and grouping behavior.
    • references/import-export.md for backup validation and CSV expectations.

Commands

Run validation:

node {baseDir}/scripts/validate-backup.mjs backup.json --pretty

Read backup JSON from stdin:

cat backup.json | node {baseDir}/scripts/validate-backup.mjs - --pretty

Create daily JSON summaries:

node {baseDir}/scripts/daily-summary.mjs backup.json --pretty

Create daily CSV summaries:

node {baseDir}/scripts/daily-summary.mjs backup.json --format csv

Filter by pet or date range:

node {baseDir}/scripts/daily-summary.mjs backup.json --pet-id pet-1 --from 2026-04-01 --to 2026-04-30 --format csv

Public Data Handling

Treat cat names and feeding histories as private user data. Do not include real backup files, pet names, or feeding history in examples, logs, commits, or published skill packages unless the user explicitly asks.

If an input has unsupported fields, validate first and explain that this skill keeps only the supported CatFoodCalculator-style schema. If records reference missing pets, report the warnings from the scripts and still summarize using the pet_id.

When Editing Or Extending

Keep formulas in scripts/cat-food-core.mjs and references/calculations.md aligned. If adding a field to the backup schema, update references/domain-model.md, references/import-export.md, validation in cat-food-core.mjs, and the self-test examples.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 17:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

healthcheck

stellarhold170nt
使用 JSON 文件存储追踪饮水和睡眠
★ 11 📥 30,119
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 454 📥 228,265
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 243 📥 30,633