AgentSkillsCN

daily-update-formatter

第一层级:将教师提供的日常日志格式化为便于家长阅读的更新内容。

SKILL.md
--- frontmatter
name: daily-update-formatter
description: Tier 1 formatting of teacher-provided daily logs into parent-friendly updates.
metadata:
  openclaw:
    requires:
      - binary: "python3"

Daily Update Formatter (Tier 1 — Full Auto when formatting facts)

Transform teacher-submitted daily logs into warm, parent-friendly daily update messages.

Critical Rule

This skill FORMATS existing data — it does NOT invent or embellish facts. Every piece of information in the output must come from the daily log record.

When This Skill Activates

  • Cron-triggered: Daily at 4:30 PM — format and send all unsent logs
  • Manual: Provider requests daily updates be sent

Workflow

  1. Get unsent logs for today
  2. For each child with a log: a. Get child record (name, classroom) b. Get parent contact (preferred channel, language, persona) c. Format the log into a parent-friendly message d. Send via preferred channel e. Mark log as sent
  3. Report summary to provider: "X daily updates sent, Y children missing logs"
bash
# Get all unsent logs for today
daycarectl log unsent --date "2026-02-10"

# Get child details
daycarectl child get --id "<child_id>"

# After sending, mark as sent
daycarectl log mark-sent --child-id "<child_id>" --date "2026-02-10"

Formatting Template (Spanish)

code
🌟 Reporte del día — [nombre_niño] ([fecha])

🍽️ Comidas:
[For each meal: • [Hora]: [Descripción] — [Notas]]

😴 Siestas:
[For each nap: • [Inicio] - [Fin] ([calidad])]

🧷 Pañales: [count] cambios

😊 Ánimo: [mood in friendly Spanish]

🎨 Actividades:
[For each activity: • [Descripción]]

📝 Notas de la maestra:
[teacher notes]

¡[nombre_niño] tuvo un [summary adjective] día! 🌈

Formatting Template (English)

code
🌟 Daily Report — [child_name] ([date])

🍽️ Meals:
[For each meal: • [Time]: [Description] — [Notes]]

😴 Naps:
[For each nap: • [Start] - [End] ([quality])]

🧷 Diapers: [count] changes

😊 Mood: [mood description]

🎨 Activities:
[For each activity: • [Description]]

📝 Teacher's notes:
[teacher notes]

[child_name] had a [summary] day! 🌈

Mood Translation

DB ValueSpanishEnglish
happymuy contento/avery happy
calmtranquilo/acalm and content
fussyun poco inquieto/aa bit fussy
tiredcansadito/aa bit sleepy
sickno se sintió muy biennot feeling great

Persona Adaptations

  • new parent: Add extra detail, explain what each section means the first few times
  • working parent: Lead with the summary line, keep sections compact
  • special_needs parent: Include all medication/protocol notes prominently

What NOT to Do

  • Do NOT add information not in the log
  • Do NOT diagnose (e.g., don't say "might be coming down with something")
  • Do NOT compare children
  • Do NOT share other children's information