Manantra

Birthday Reminder

生活服務v1.0.0
作者:Manantra更新於 2026-05-11birthday-reminder@clawhub_manantra/birthday-reminder
個人計劃效率習慣#Home

據 AlphaMoat 統計,截至 2026-09,Birthday Reminder 累計下載 3,929 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 2,632 位,在「生活服務」分類(246 個)中排名第 99 位。

累計安裝
157
累計下載
3929
星標
1
全站排名
#2,632
全站前 52% · 「生活服務」前 41%
平台累計安裝累計下載星標評論
ClawHub ↗12439291-
SkillHub ↗15738441—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件描述將生日存入 data/birthdays.md,並說明如何按姓名、日期或年齡查詢。提供出生日期和年份時可計算下次生日及屆時年齡;若設定每日檢查,也可按文件設定的時點傳送提醒。新增或修改記錄前應核對姓名和日期。 文件指定 birthdays.md,但風險卡稱腳本使用 birthdays.json,依賴提醒或審核留存前先核實統一實際檔案。姓名及出生年為個人資訊,應認可位置、存取和保留期限。年齡需已知出生年;提醒另需設定每日檢查,不代表排程已啟用。

資料釋出於 2026-10-27

可以用來做什麼

  • 登記生日並查詢指定人物的日期

什麼時候用

  • 列出已儲存的生日並檢視近期安排

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請說明生日儲存位置、自然語言查詢方式和提醒如何運作。

月度資料趨勢

累計下載3929
2396322040432026-03 · 累計下載 25102026-05 · 累計下載 30782026-06 · 累計下載 32592026-07 · 累計下載 36042026-08 · 累計下載 37942026-09 · 累計下載 392926-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093929—1
2026-083794+5.3%1
2026-073604+10.6%1
2026-063259+5.9%1
2026-053078—1
2026-032510—1

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.7 KB · ClawHub v1.0.0
---
name: birthday-reminder
description: Manage birthdays with natural language. Store birthdays in /home/clawd/clawd/data/birthdays.md, get upcoming reminders, calculate ages. Use when the user mentions birthdays, wants to add/remember someone's birthday, check 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 Skill

Manage birthdays naturally. Store in `data/birthdays.md`, query with natural language.

## Storage
展開全部(共 109 行)

Birthdays are stored in `/home/clawd/clawd/data/birthdays.md`:

```markdown
# Geburtstage

- **Valentina** - 14.02.2000 (wird 26)
- **Max** - 15.03.1990
```

## Natural Language Patterns

### Adding 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:**
1. Parse name and date
2. Extract year if provided
3. Calculate upcoming age: `birthday_year - birth_year`
4. Append to `/home/clawd/clawd/data/birthdays.md`
5. Confirm with age info

### Querying Birthdays
When user asks:
- "Wann hat Valentina Geburtstag?"
- "Welche Geburtstage kommen als Nächstes?"
- "Wie alt wird Valentina?"
- "Nächster Geburtstag"

**Action:**
1. Read `/home/clawd/clawd/data/birthdays.md`
2. Parse all entries
3. Calculate days until each birthday
4. Sort by upcoming date
5. Show age turning if year is known

### Listing All
When user says:
- "Zeige alle Geburtstage"
- "Liste meine Geburtstage"

**Action:**
1. Read the file
2. Show formatted list with days until each

## Date Parsing

Support various formats:
- "14. Februar" → 14.02
- "14.02." → 14.02
- "14.02.2000" → 14.02.2000
- "14.2.2000" → 14.02.2000

## Age Calculation

```python
from datetime import 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

```python
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, check birthdays daily and notify if:
- 7 days before
- 1 day before  
- On the day

Use the `check_reminders()` logic from `scripts/reminder.py`.

## File Format

Each line: `- **Name** - DD.MM.YYYY (wird X)` or `- **Name** - DD.MM.`

Keep the file sorted by date (month/day) for easier reading.

「生活服務」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。