zimai233/dsh-wash-calendar ↗★ 1

dsh-wash-calendar

按上次日期与间隔推算下次时间,生成周期习惯排期与建议。 适合需要管理洗护等周期性习惯的用户,输入上次日期与间隔即可查询排期。

套件
dsh-wash-calendar
相容性
待驗證
Cordis 依賴範圍
^4.0.0
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zimai233/dsh-wash-calendar

Usage

Ask the agent in natural language:

"My last wash was 2026-08-01, every 4 days. Should I wash today? When is next? List the remaining August schedule."

The agent calls:

// habit_check
{ "dateISO": "2026-08-14", "lastDate": "2026-08-01", "interval": 4 }
// -> {"scheduled":false,"daysSince":13}

// habit_next
{ "lastDate": "2026-08-01", "interval": 4, "today": "2026-08-14" }
// -> {"nextDate":"2026-08-17","daysUntil":3}

// habit_schedule
{ "lastDate": "2026-08-01", "interval": 4, "startISO": "2026-08-14", "endISO": "2026-08-31" }
// -> ["2026-08-17","2026-08-21","2026-08-25","2026-08-29"]

// habit_advice
{ "lastDate": "2026-08-01", "interval": 4, "today": "2026-08-14" }
// -> "已逾期 9 天,建议尽快"

Works for far more than washing: watering plants, feeding fish, refilling medication, exercising, cleaning — any recurring "last time + fixed interval" habit.