Track water and sleep with JSON file storage
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install healthcheck或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install healthcheck⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/healthcheck/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: healthcheck description: Track water and sleep with JSON file storage version: 1.0.2 tags: health, tracking ---
Simple tracking for water intake and sleep using JSON file.
File: {baseDir}/health-data.json
{
"water": [{"time": "ISO8601", "cups": 2}],
"sleep": [{"time": "ISO8601", "action": "sleep|wake"}]
}
When user says "uống X cốc" or "uống nước X cốc":
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d={water:[],sleep:[]};try{d=JSON.parse(fs.readFileSync(f))}catch(e){}d.water.push({time:new Date().toISOString(),cups:CUPS});fs.writeFileSync(f,JSON.stringify(d));console.log('Da ghi: '+CUPS+' coc')"
Replace CUPS with number from user input.
When user says "đi ngủ":
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d={water:[],sleep:[]};try{d=JSON.parse(fs.readFileSync(f))}catch(e){}d.sleep.push({time:new Date().toISOString(),action:'sleep'});fs.writeFileSync(f,JSON.stringify(d));console.log('Da ghi: di ngu')"
When user says "thức dậy" or "dậy rồi":
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d={water:[],sleep:[]};try{d=JSON.parse(fs.readFileSync(f))}catch(e){}const last=d.sleep.filter(s=>s.action==='sleep').pop();d.sleep.push({time:new Date().toISOString(),action:'wake'});fs.writeFileSync(f,JSON.stringify(d));if(last){const h=((new Date()-new Date(last.time))/3600000).toFixed(1);console.log('Da ngu: '+h+' gio')}else{console.log('Da ghi: thuc day')}"
When user says "thống kê" or "xem thống kê":
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d={water:[],sleep:[]};try{d=JSON.parse(fs.readFileSync(f))}catch(e){}console.log('Water:',d.water.length,'records');console.log('Sleep:',d.sleep.length,'records');const today=d.water.filter(w=>new Date(w.time).toDateString()===new Date().toDateString());console.log('Today:',today.reduce((s,w)=>s+w.cups,0),'cups')"
To update last water entry:
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d=JSON.parse(fs.readFileSync(f));d.water[d.water.length-1].cups=NEW_CUPS;fs.writeFileSync(f,JSON.stringify(d));console.log('Updated')"
To delete last water entry:
node -e "const fs=require('fs');const f='{baseDir}/health-data.json';let d=JSON.parse(fs.readFileSync(f));d.water.pop();fs.writeFileSync(f,JSON.stringify(d));console.log('Deleted')"
安装 healthcheck 后,可以对 AI 说这些话来触发它
Help me get started with healthcheck
Explains what healthcheck does, walks through the setup, and runs a quick demo based on your current project
Use healthcheck to track water and sleep with JSON file storage
Invokes healthcheck with the right parameters and returns the result directly in the conversation
What can I do with healthcheck in my documents & notes workflow?
Lists the top use cases for healthcheck, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/healthcheck/ 目录(个人级,所有项目可用),或 .claude/skills/healthcheck/(项目级)。重启 AI 客户端后,用 /healthcheck 主动调用,或让 AI 根据上下文自动发现并使用。
healthcheck 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
healthcheck 可免费安装使用。请查阅仓库了解许可证信息。
Track water and sleep with JSON file storage
healthcheck 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using healthcheck
Identifies repetitive steps in your workflow and sets up healthcheck to handle them automatically