elderly-care-assistant
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "elderly-care-assistant":https://skillpi.com/zh/skills/deepskill-c63199ac1cbed5b10f08a39bb41fa2f07a6a9d479bbb50d810f674817ad97ec4。安装前核对上游来源和版本:https://skillhub.cn/skills/user_a5bbbda6/elderly-care-assistant。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于构建老年人护理相关应用的可复用技能,包含防诈骗告警、健康监测和社区服务等功能。在创建面向老年人的应用或集成老年护理功能时调用此技能。
介绍来源: third_party · user_a5bbbda6 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: "elderly-care-assistant"
description: "A reusable skill for building elderly care applications with anti-fraud alerts, health monitoring, and community services. Invoke when creating senior-focused apps or integrating elderly care features."Elderly Care Assistant Skill
A comprehensive skill for building intelligent elderly care applications, based on the "Silver Guardian" (银发守护者) project.
Overview
This skill provides reusable modules, components, and best practices for developing applications that serve elderly users, with focus on:
- Anti-fraud Protection: Daily tips, knowledge quizzes, emergency help
- Health Monitoring: Blood pressure, heart rate, blood sugar tracking
- Community Services: Nearby facility search (markets, hospitals, pharmacies)
- Medication Reminders: Smart scheduling and alerts
- Family Connection: Photo albums, health data sharing
- Accessibility: Large fonts, high contrast, voice interaction
When to Use
Invoke this skill when:
- Building apps for elderly users (60+)
- Adding health monitoring features
- Implementing anti-fraud education systems
- Creating community service locators
- Developing medication reminder systems
- Building family connection features
Core Modules
1. Anti-Fraud System (fraudPreventionTips.js)
// Daily tip rotation based on date
export function getTodayTip() {
const today = new Date()
const dayOfYear = Math.floor((today - new Date(today.getFullYear(), 0, 0)) / (1000 * 60 * 60 * 24))
return fraudPreventionTips[dayOfYear % fraudPreventionTips.length]
}
// Voice播报
export function speakTip(tip) {
if ('speechSynthesis' in window) {
const text = `防诈骗提醒:${tip.title}。${tip.summary}`
const utterance = new SpeechSynthesisUtterance(text)
utterance.lang = 'zh-CN'
utterance.rate = 0.9
speechSynthesis.speak(utterance)
}
}
// Emergency help
export function emergencyHelp() {
if (confirm('您是否遇到了诈骗?\n点击"确定"拨打110\n点击"取消"拨打96110')) {
window.location.href = 'tel:110'
} else {
window.location.href = 'tel:96110'
}
}
2. Map Service (mapService.js)
class MapService {
constructor(apiKey) {
this.key = apiKey
this.currentLocation = null
}
// Get current location with fallback
async getCurrentLocation() {
return new Promise((resolve) => {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(
(position) => {
this.currentLocation = {
lat: position.coords.latitude,
lng: position.coords.longitude
}
resolve(this.currentLocation)
},
() => {
// Fallback to default location (Beijing)
this.currentLocation = { lat: 39.90923, lng: 116.397428 }
resolve(this.currentLocation)
}
)
} else {
this.currentLocation = { lat: 39.90923, lng: 116.397428 }
resolve(this.currentLocation)
}
})
}
// Search nearby facilities
async searchNearby(keyword, radius = 3000) {
const location = await this.getCurrentLocation()
const response = await fetch(
`https://restapi.amap.com/v3/place/around?key=${this.key}&location=${location.lng},${location.lat}&keywords=${encodeURIComponent(keyword)}&radius=${radius}&offset=20`
)
const data = await response.json()
return data.pois || []
}
}
3. Health Data Monitor
// Anomaly detection
function checkHealthAnomaly(healthData) {
const anomalies = []
if (healthData.bp_systolic > 140 || healthData.bp_diastolic > 90) {
anomalies.push({
type: '血压偏高',
value: `${healthData.bp_systolic}/${healthData.bp_diastolic}`,
suggestion: '建议休息后再次测量,持续偏高请及时就医'
})
}
if (healthData.heart_rate > 100 || healthData.heart_rate < 60) {
anomalies.push({
type: '心率异常',
value: healthData.heart_rate,
suggestion: '心率不在正常范围,请关注身体状况'
})
}
return anomalies
}
4. Time Parser
// Parse relative time expressions
function parseTime(message) {
const patterns = [
{ regex: /(\d+)\s*分钟[之后]?/, unit: 'minute' },
{ regex: /(\d+)\s*小时[之后]?/, unit: 'hour' },
{ regex: /(\d+)[::](\d+)/, unit: 'time' },
{ regex: /早上\s*(\d+)/, unit: 'morning' },
{ regex: /晚上\s*(\d+)/, unit: 'evening' }
]
for (const pattern of patterns) {
const match = message.match(pattern.regex)
if (match) {
return { value: parseInt(match[1]), unit: pattern.unit }
}
}
return null
}
5. Medication Reminder System
// Medicine management
class MedicineReminder {
constructor() {
this.medicines = []
this.reminders = []
}
// Add medicine
addMedicine(name, dosage, frequency, time) {
const medicine = {
id: Date.now(),
name,
dosage,
frequency,
time,
createdAt: new Date()
}
this.medicines.push(medicine)
this.scheduleReminder(medicine)
return medicine
}
// Schedule reminder
scheduleReminder(medicine) {
const [hour, minute] = medicine.time.split(':')
const now = new Date()
const reminderTime = new Date(now.getFullYear(), now.getMonth(), now.getDate(), hour, minute)
if (reminderTime < now) {
reminderTime.setDate(reminderTime.getDate() + 1)
}
const delay = reminderTime - now
setTimeout(() => {
this.sendReminder(medicine)
// Reschedule for next day
this.scheduleReminder(medicine)
}, delay)
}
// Send reminder notification
sendReminder(medicine) {
if ('Notification' in window && Notification.permission === 'granted') {
new Notification('用药提醒', {
body: `该吃药了:${medicine.name} ${medicine.dosage}`,
icon: '/medicine-icon.png'
})
}
// Voice reminder
if ('speechSynthesis' in window) {
const text = `该吃药了:${medicine.name},剂量:${medicine.dosage}`
const utterance = new SpeechSynthesisUtterance(text)
utterance.lang = 'zh-CN'
utterance.rate = 0.9
speechSynthesis.speak(utterance)
}
}
// Mark as taken
markAsTaken(medicineId) {
const medicine = this.medicines.find(m => m.id === medicineId)
if (medicine) {
medicine.lastTaken = new Date()
return true
}
return false
}
}
6. Family Connection Module
// Family photo album with voice description
class FamilyAlbum {
constructor() {
this.photos = []
this.currentIndex = 0
this.autoPlayInterval = null
}
// Add photo
addPhoto(url, description, location, date) {
const photo = {
id: Date.now(),
url,
description,
location,
date: date || new Date()
}
this.photos.push(photo)
return photo
}
// Start auto slideshow with voice
startAutoPlay(interval = 5000) {
if (this.autoPlayInterval) {
clearInterval(this.autoPlayInterval)
}
this.autoPlayInterval = setInterval(() => {
this.currentIndex = (this.currentIndex + 1) % this.photos.length
const photo = this.photos[this.currentIndex]
// Voice description
if ('speechSynthesis' in window) {
const text = `这是${photo.location || '某地'}拍的照片,${photo.description || ''}`
const utterance = new SpeechSynthesisUtterance(text)
utterance.lang = 'zh-CN'
utterance.rate = 0.9
speechSynthesis.speak(utterance)
}
}, interval)
}
// Stop auto play
stopAutoPlay() {
if (this.autoPlayInterval) {
clearInterval(this.autoPlayInterval)
this.autoPlayInterval = null
}
}
}
7. Bluetooth Health Device Integration
// Bluetooth device manager
class BluetoothHealthManager {
constructor() {
this.device = null
this.server = null
this.characteristics = new Map()
}
// Scan and connect to device
async connect(deviceName) {
try {
this.device = await navigator.bluetooth.requestDevice({
filters: [
{ name: deviceName },
{ services: ['heart_rate', 'blood_pressure'] }
],
optionalServices: ['battery_service']
})
this.server = await this.device.gatt.connect()
return true
} catch (error) {
console.error('蓝牙连接失败:', error)
return false
}
}
// Read heart rate
async readHeartRate() {
try {
const service = await this.server.getPrimaryService('heart_rate')
const characteristic = await service.getCharacteristic('heart_rate_measurement')
const value = await characteristic.readValue()
return value.getUint8(1)
} catch (error) {
console.error('读取心率失败:', error)
return null
}
}
// Start monitoring
async startMonitoring(callback) {
try {
const service = await this.server.getPrimaryService('heart_rate')
const characteristic = await service.getCharacteristic('heart_rate_measurement')
await characteristic.startNotifications()
characteristic.addEventListener('characteristicvaluechanged', (event) => {
const value = event.target.value.getUint8(1)
callback({ type: 'heartRate', value })
})
} catch (error) {
console.error('启动监测失败:', error)
}
}
// Disconnect
disconnect() {
if (this.device && this.device.gatt.connected) {
this.device.gatt.disconnect()
}
}
}
UI Components
Vue Component Template
<template>
<div class="elderly-app">
<!-- Large font, high contrast -->
<div class="text-2xl font-bold text-gray-900">
{{ title }}
</div>
<!-- Voice button -->
<button @click="speak" class="voice-btn">
🔊 语音播报
</button>
<!-- Emergency button -->
<button @click="emergency" class="emergency-btn">
🆘 紧急求助
</button>
</div>
</template>
<style>
.elderly-app {
font-size: 18px;
line-height: 1.8;
}
.voice-btn {
background: #4CAF50;
color: white;
padding: 15px 30px;
border-radius: 10px;
font-size: 18px;
}
.emergency-btn {
background: #f44336;
color: white;
padding: 15px 30px;
border-radius: 10px;
font-size: 18px;
}
</style>
Accessibility Components
<!-- Large Button Component -->
<template>
<button
class="large-btn"
:style="{ fontSize: fontSize + 'px', padding: padding + 'px' }"
@click="handleClick"
>
<slot></slot>
</button>
</template>
<script>
export default {
props: {
fontSize: { type: Number, default: 20 },
padding: { type: Number, default: 15 }
},
methods: {
handleClick() {
// Voice feedback
if ('speechSynthesis' in window) {
const text = this.$slots.default()[0].children
const utterance = new SpeechSynthesisUtterance(text)
utterance.lang = 'zh-CN'
speechSynthesis.speak(utterance)
}
this.$emit('click')
}
}
}
</script>
<style scoped>
.large-btn {
min-width: 120px;
min-height: 60px;
border-radius: 12px;
border: 2px solid #333;
background: #fff;
color: #333;
cursor: pointer;
transition: all 0.3s;
}
.large-btn:hover {
background: #f0f0f0;
transform: scale(1.05);
}
.large-btn:active {
transform: scale(0.95);
}
</style>
Best Practices
Accessibility
- Font size ≥ 16px
- Button size ≥ 44px × 44px
- Color contrast ≥ 4.5:1
- Voice feedback for all actions
- Support screen readers
- Keyboard navigation
Safety
- Data encryption for health records
- JWT authentication for API calls
- HTTPS for all data transmission
- Emergency contact integration
- Regular data backup
Performance
- Page load time ≤ 3 seconds
- API response time ≤ 1 second
- Graceful degradation for offline use
- Image optimization
- Lazy loading for large lists
Integration Guide
1. Install Dependencies
npm install vue@3 express mysql2 tailwindcss
2. Setup Map Service
import MapService from './services/mapService.js'
const mapService = new MapService('YOUR_AMAP_KEY')
const places = await mapService.searchNearby('菜市场')
3. Setup Anti-Fraud System
import { getTodayTip, speakTip } from './assets/fraudPreventionTips.js'
const tip = getTodayTip()
speakTip(tip)
4. Setup Health Monitoring
import { checkHealthAnomaly } from './services/healthMonitor.js'
const anomalies = checkHealthAnomaly({
bp_systolic: 145,
bp_diastolic: 95,
heart_rate: 78
})
5. Setup Medication Reminders
import MedicineReminder from './services/medicineReminder.js'
const reminder = new MedicineReminder()
reminder.addMedicine('降压药', '1片', 'daily', '08:00')
reminder.addMedicine('降糖药', '2片', 'daily', '12:00')
6. Setup Family Album
import FamilyAlbum from './services/familyAlbum.js'
const album = new FamilyAlbum()
album.addPhoto('/photos/family1.jpg', '全家福', '家里', '2024-01-01')
album.startAutoPlay(5000)
7. Setup Bluetooth Devices
import BluetoothHealthManager from './services/bluetoothHealthManager.js'
const btManager = new BluetoothHealthManager()
await btManager.connect('小米手环')
btManager.startMonitoring((data) => {
console.log(`心率: ${data.value}`)
})
Example Projects
- Silver Guardian (银发守护者): Full-featured elderly care app
- Health Tracker: Simple health monitoring tool
- Community Helper: Facility finder for seniors
- Medication Manager: Pill reminder and tracker
- Family Connect: Photo sharing and health data
API Reference
MapService
| Method | Parameters | Return | Description |
|---|---|---|---|
getCurrentLocation() |
none | Promise<Location> | Get current GPS location |
searchNearby(keyword, radius) |
string, number | Promise<Array> | Search nearby facilities |
MedicineReminder
| Method | Parameters | Return | Description |
|---|---|---|---|
addMedicine(name, dosage, frequency, time) |
string, string, string, string | Object | Add new medicine |
markAsTaken(medicineId) |
number | boolean | Mark medicine as taken |
FamilyAlbum
| Method | Parameters | Return | Description |
|---|---|---|---|
addPhoto(url, description, location, date) |
string, string, string, Date | Object | Add new photo |
startAutoPlay(interval) |
number | void | Start auto slideshow |
stopAutoPlay() |
none | void | Stop auto slideshow |
Resources
Troubleshooting
Common Issues
-
Geolocation fails
- Check browser permissions
- Use fallback location
- Enable HTTPS
-
Bluetooth connection fails
- Ensure device is in pairing mode
- Check browser support
- Use user gesture to trigger
-
Voice synthesis not working
- Check browser support
- Ensure not muted
- Try different voices
License
MIT License - Free for personal and commercial use.
Contributing
Contributions welcome! Please submit issues and pull requests.
Support
For questions and support, please open an issue on GitHub.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供老年人护理应用的完整模块,涵盖防诈骗、健康监测、社区服务、用药提醒、家庭连接等核心功能
- 直接解决老年用户的高频刚需痛点,显著提升日常效率
- 基于真实项目“银发守护者”,具有实际应用价值
亮点
- 触发词精准完整,明确描述使用场景(为老年用户构建应用、添加健康监测功能等)
- 边界清晰,覆盖多种变体,不易误触或漏触
亮点
- 结构清晰完整,包含 Overview、When to Use、Core Modules、UI Components、Best Practices、Integration Guide 等章节
- 有端到端示例,frontmatter 完整,单文件未超过 500 行
亮点
- 工具来源明确(高德地图 API、Web Speech API、Web Bluetooth API、Web Notifications API)
- 参数正确,覆盖主要异常(地理位置失败回退、蓝牙连接异常处理、语音播报兼容性检查)
- 不可逆操作有确认机制(紧急求助确认),代码逻辑完整
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 492 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 68, 69 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- developer.mozilla.org
- lbs.amap.com
- restapi.amap.com
- vuejs.org
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。