healthcheckTrack water and sleep with JSON file storage
Install via ClawdBot CLI:
clawdbot install Stellarhold170NT/healthcheckSimple 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')"
Generated Mar 1, 2026
Individuals track daily water intake and sleep patterns to maintain hydration and improve sleep hygiene. This helps in establishing healthy routines and identifying trends over time for personal wellness goals.
Companies integrate this skill into employee wellness initiatives to promote hydration and adequate sleep among staff. It can be used in office environments to encourage healthy habits and reduce fatigue-related productivity loss.
Athletes and coaches use the skill to monitor hydration and recovery sleep during training regimens. This data supports performance optimization and prevents dehydration or sleep deprivation that could impact athletic results.
Healthcare providers or caregivers assist patients, such as the elderly or those with chronic conditions, in tracking water consumption and sleep schedules. This aids in managing health conditions and ensuring adherence to medical advice.
Students in schools or universities use the skill to balance academic demands with self-care by monitoring water intake and sleep duration. This promotes better focus and overall well-being during study periods.
Offer basic tracking features for free, with premium upgrades for advanced analytics, data export, or integration with other health apps. Revenue is generated through monthly or annual subscription fees from users seeking enhanced insights.
License the skill to businesses for use in corporate wellness programs or healthcare settings. Provide customization options and support services, with revenue coming from licensing fees and service contracts tailored to organizational needs.
Aggregate anonymized user data to offer insights and trends to health researchers or wellness companies. Revenue is generated by selling analyzed data reports or partnering with organizations for research and development purposes.
💬 Integration Tip
Integrate with calendar apps to set reminders for water intake or sleep schedules, and consider adding voice command support for hands-free operation in smart home environments.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Create, search, and manage Bear notes via grizzly CLI.
Notion API for creating and managing pages, databases, and blocks.
Smart ClawdBot documentation access with local search index, cached snippets, and on-demand fetch. Token-efficient and freshness-aware.
Work with Obsidian vaults as a knowledge base. Features: fuzzy/phonetic search across all notes, auto-folder detection for new notes, create/read/edit notes with frontmatter, manage tags and wikilinks. Use when: querying knowledge base, saving notes/documents, editing existing notes by user instructions.
Organize your agent's knowledge using PARA (Projects, Areas, Resources, Archive) — then make it ALL searchable. The symlink trick enables full semantic search across your entire knowledge base, not just MEMORY.md. Includes session transcript indexing and memory flush protocol. Your agent finally has a real second brain.