Birthday Reminder
v1.0.0Manage birthdays with natural language. Store birthdays in /home/clawd/clawd/data/birthdays.md, 获取 upcoming reminders, calculate ages. Use when the user mentions birthdays, wants to 添加/remember someone's birthday, 检查 upcoming birthdays, or asks about someone's age/birthday. Understands phrases like "X hat am DD.MM. Geburtstag", "Wann hat X Geburtstag?", "Nächste Geburtstage".
运行时依赖
安装命令
点击复制技能文档
Birthday Reminder 技能
Manage birthdays naturally. Store in data/birthdays.md, 查询 with natural language.
Storage
Birthdays are stored in /home/clawd/clawd/data/birthdays.md:
# Geburtstage
- Valentina - 14.02.2000 (wird 26)
- Max - 15.03.1990
Natural Language Patterns 添加ing Birthdays
When user says things like:
"Valentina hat am 14. Februar Geburtstag" "Füge hinzu: Max, 15.03.1990" "X wurde am 10.05.1985 geboren"
Action:
解析 name and date 提取 year if provided Calculate upcoming age: birthday_year - birth_year 应用end to /home/clawd/clawd/data/birthdays.md Confirm with age 信息 查询ing Birthdays
When user asks:
"Wann hat Valentina Geburtstag?" "Welche Geburtstage kommen als Nächstes?" "Wie alt wird Valentina?" "Nächster Geburtstag"
Action:
Read /home/clawd/clawd/data/birthdays.md 解析 all entries Calculate days until each birthday 排序 by upcoming date Show age turning if year is known 列出ing All
When user says:
"Zeige alle Geburtstage" "列出e meine Geburtstage"
Action:
Read the file Show 格式化ted 列出 with days until each Date Parsing
Support various 格式化s:
"14. Februar" → 14.02 "14.02." → 14.02 "14.02.2000" → 14.02.2000 "14.2.2000" → 14.02.2000 Age Calculation from datetime 导入 datetime
def calculate_turning_age(birth_year, birthday_month, birthday_day): today = datetime.now() birthday_this_year = today.replace(month=birthday_month, day=birthday_day) if today.date() <= birthday_this_year.date(): birthday_year = today.year else: birthday_year = today.year + 1 return birthday_year - birth_year
Days Until Birthday def days_until(month, day): today = datetime.now() birthday = today.replace(month=month, day=day) if birthday < today: birthday = birthday.replace(year=today.year + 1) return (birthday - today).days
Automatic Reminders
For cron/reminders, 检查 birthdays dAIly and 通知 if:
7 days before 1 day before On the day
Use the 检查_reminders() 记录ic from scripts/reminder.py.
File 格式化
Each line: - Name - DD.MM.YYYY (wird X) or - Name - DD.MM.
Keep the file 排序ed by date (month/day) for easier reading.