tangyuan-parenting
by @protozoan-yuan
This skill should be used when the user wants to manage daily parenting plans, record caregiver feedback logs, dynamically adjust childcare schedules, or gen...
clawhub install tangyuan-parentingš About This Skill
name: tangyuan-parenting description: This skill should be used when the user wants to manage daily parenting plans, record caregiver feedback logs, dynamically adjust childcare schedules, or generate weekly parenting reports for a 2.5-year-old girl named TangYuan (걤å) living in Harbin with her grandparents. Trigger phrases include "ę©äøå„½", "ä»å¤©č®”å", "ęØéč®”å", "č®°å½åé¦", "ä»å¤©ę±¤å", "å§„å§„åé¦", "ēęåØę„", "ę¬åØę»ē»", "č²åæę„å", "ę“ę°ē„čÆ", "ę„ę¾č²åæčµč®Æ".
Tangyuan Parenting - 걤åęŗč½č²åæå©ę
Overview
This skill provides an intelligent parenting assistant for managing the daily care of TangYuan (걤å), a 2.5-year-old girl living in Harbin with her maternal grandparents (å§„å§„ and å§„ē·), while her parents work remotely from Beijing. The skill generates scientifically-grounded daily care plans, records caregiver feedback, dynamically adjusts plans based on feedback, and produces weekly parenting reports enriched with the latest childcare knowledge.
Workflow Decision Tree
Determine which workflow to execute based on the user's input:
User Input
āāā Contains "ę©äøå„½" / "ä»å¤©č®”å" / "ęØéč®”å" / "ä»ę„č®”å" / "ēęä»å¤©ēč®”å"
ā āāā ā Execute Workflow 1: Daily Plan Generation
ā
āāā Contains "č®°å½" / "åé¦" / "ä»å¤©ę±¤å" / "姄姄诓" / "걤åä»å¤©" / describes TangYuan's day
ā āāā ā Execute Workflow 2: Feedback Logging
ā
āāā Contains "åØę„" / "ę¬åØę»ē»" / "č²åæę„å" / "äøåØę»ē»"
ā āāā ā Execute Workflow 3: Weekly Report Generation
ā
āāā Contains "ę“ę°ē„čÆ" / "č²åæčµč®Æ" / "ę„ę¾č²åæ" / "å¦ä¹ ę°ē„"
ā āāā ā Execute Workflow 4: Knowledge Update
ā
āāā Contains "ę„ēę„åæ" / "åå²č®°å½" / "ä¹åēåé¦"
ā āāā ā Execute Workflow 5: Log Retrieval
ā
āāā General parenting question about TangYuan
āāā ā Load references/parenting_guide.md and references/tangyuan_profile.md
ā Answer based on scientific parenting knowledge
Workflow 1: Daily Plan Generation
Trigger: User says "ę©äøå„½", "ä»å¤©č®”å", "ęØéä»ę„č®”å", or similar morning greeting.
Steps
1. Determine the current date and day of the week - Check if today is a weekday (Mon-Fri) or weekend (Sat-Sun) - This affects whether TangYuan has early education class (ę©ęē)
2. Read yesterday's feedback log - Run the log manager script to retrieve the previous day's log:
python scripts/log_manager.py read --date {yesterday_date}
- If no log exists, proceed with default plan
- If log exists, note any issues to adjust today's plan (see Step 5)3. Query Harbin weather
- Use web_search to check today's weather in Harbin (åå°ę»Øä»ę„天ę°)
- Extract: temperature range, weather condition, wind level
- If weather query fails, use seasonal defaults from references/harbin_seasonal_guide.md
4. Load reference materials
- Read references/tangyuan_profile.md for TangYuan's personal info
- Read references/harbin_seasonal_guide.md for seasonal guidance matching current month
- Read references/parenting_guide.md as needed for specific nutrition/activity guidance
5. Generate the daily plan
- Use assets/daily_plan_template.md as the structural template
- Fill in all template variables based on:
- Weather data ā dress suggestions, outdoor activity feasibility
- Day of week ā weekday: include ę©ęē 9:00-12:00; weekend: plan home/outdoor activities
- Yesterday's feedback ā adjust meals (if appetite was poor), activities (continue what worked well), sleep schedule (if sleep was disrupted)
- Seasonal guide ā appropriate foods, clothing layers, health precautions
- Parenting guide ā age-appropriate activities, nutritional balance
- Output the plan in clean, easy-to-read Markdown format
- Use simple language that grandparents can easily follow
- Include emoji for visual clarity but keep content practical
6. End with feedback reminder - Always end the plan with a gentle reminder for grandma to provide evening feedback
Key Rules for Plan Generation
Workflow 2: Feedback Logging
Trigger: User provides feedback about TangYuan's day, typically in the evening. Examples: "ä»å¤©ę±¤ååäŗäø¤ē¢é„ļ¼å¦äŗę°ęļ¼ē©å¾å¾å¼åæ", "å§„å§„åé¦ļ¼ę±¤åä»å¤©ęē¹é¹", etc.
Steps
1. Parse the feedback content
- Extract information from the user's natural language input into structured categories:
- meals: What and how much TangYuan ate, appetite level
- mood: Emotional state throughout the day (happy, cranky, clingy, etc.)
- activities: What activities/games were played
- learning: What was learned at ę©ęē or at home
- health: Physical condition (normal, runny nose, cough, fever, etc.)
- sleep: Nap duration and quality, bedtime
- notes: Any special events or observations
2. Confirm the structured data with the user - Present the parsed data back to the user for confirmation - Ask if anything needs to be added or corrected - Keep this step brief ā the user (mom) may be tired
3. Write to the log file - Determine today's date - Run the log manager script:
python scripts/log_manager.py append --date {today_date} --data '{json_data}'
- Confirm successful logging to the user4. Provide brief analysis - Give a short, warm summary of TangYuan's day - Note any concerns that will influence tomorrow's plan - Example: "걤åä»å¤©čå£äøč¬ļ¼ę天讔åä¼č°ę“é„®é£ļ¼å äøäŗå¼čēé£ē©å¦~"
Key Rules for Feedback Logging
Workflow 3: Weekly Report Generation
Trigger: User says "ēęåØę„", "ę¬åØę»ē»", "č²åæę„å", or it's Sunday evening.
Steps
1. Collect the week's log data - Run the log manager script to get the weekly summary:
python scripts/log_manager.py summarize_week --date {today_date}
2. Search for latest parenting knowledge - Use web_search to find recent parenting tips and news: - Search: "2-3å²å¹¼åæč²åæē»éŖ {current_year}" - Search: "å¹¼åæę©ęęę°ē ē©¶ {current_year}" - Search: "čæęå¹¼åæēøå ³ē¤¾ä¼ę°é»" - Extract 2-3 most relevant and valuable pieces of information - Verify information comes from reputable sources
3. Analyze the week's data - Review all daily logs for patterns and trends - Assess across dimensions: diet, sleep, learning, mood, health - Identify highlights and concerns - Compare with previous weeks if data is available
4. Generate the weekly report
- Use assets/weekly_report_template.md as the structural template
- Fill in all sections with analysis results
- Include specific data points from logs
- Incorporate relevant new parenting knowledge found in Step 2
- Provide actionable suggestions for the coming week
5. Propose next week's plan adjustments - Based on the week's patterns, suggest specific changes: - Diet adjustments (if appetite issues detected) - Activity modifications (if certain activities were particularly engaging or rejected) - Sleep schedule tweaks (if sleep problems noted) - New activities to try based on latest parenting research - Present these as suggestions, not mandates
6. Save and present the report - Output the complete report in clean Markdown format - Summarize the key takeaways at the top for busy parents
Key Rules for Weekly Report
Workflow 4: Knowledge Update
Trigger: User says "ę“ę°ē„čÆ", "ę„ę¾č²åæčµč®Æ", "å¦ä¹ č²åæę°ē„", or as part of weekly report generation.
Steps
1. Search for latest parenting information - Use web_search with targeted queries: - "2-3å²å¹¼åæē§å¦č²åæęę°ē ē©¶ {current_year}" - "å¹¼åæę©ęęč²ę°ę¹ę³ {current_year}" - "åæē«„č„å »å„åŗ·ęę°ęå" - "å¹¼åæē¤¾ä¼ę°é» čæę" - Focus on reputable sources (pediatric journals, government health sites, established parenting platforms)
2. Evaluate and filter results - Prioritize information that is: - Relevant to TangYuan's age group (2-3 years) - Scientifically backed (not folk remedies or commercial promotion) - Practical and actionable for the caregiving context - Seasonally appropriate for Harbin
3. Present findings - Summarize 3-5 key findings in clear, concise language - For each finding, note: - The source - The key takeaway - How it can be applied to TangYuan's care - Highlight any important safety alerts or health advisories
4. Suggest plan updates - Based on new knowledge, recommend specific changes to daily plans - Examples: new food to introduce, new activity to try, updated safety precaution
Workflow 5: Log Retrieval
Trigger: User asks to view past logs or history.
Steps
1. Determine the date range - Parse the user's request for specific dates or ranges - Default to the last 7 days if not specified
2. Retrieve logs - For a specific date:
python scripts/log_manager.py read --date {target_date}
- For a week:
python scripts/log_manager.py read_week --date {target_date}
- For a list of recent logs:
python scripts/log_manager.py list
3. Present the information - Display logs in chronological order - Highlight any notable patterns or events
Resources
scripts/
log_manager.py: Core logging utility for TangYuan's daily logs. Supports commands: append (write feedback), read (single date), read_week (week range), summarize_week (weekly summary), list (recent logs). Logs are stored as Markdown files organized by date at tangyuan-logs/YYYY/MM/DD.md in the current workspace.references/
parenting_guide.md: Comprehensive scientific parenting guide for 2-3 year olds covering nutrition, sleep, early education, safety, emotional management, hygiene, and disease prevention. Load this when generating daily plans or answering parenting questions.tangyuan_profile.md: TangYuan's personal profile including basic info, family situation, early education schedule (Mon-Fri 9:00-12:00), dietary preferences, and health records. Load this when personalizing plans or reports. This file should be updated as new information is learned from logs.harbin_seasonal_guide.md: Season-specific parenting guide for Harbin covering clothing recommendations, seasonal foods, outdoor activity suggestions, and health precautions for spring, summer, autumn, and winter. Load the relevant season's section when generating daily plans.assets/
daily_plan_template.md: Template for the daily parenting plan with time-based schedule, meal plans, activity suggestions, and reminder sections. Use this as the structural foundation when generating each day's plan.weekly_report_template.md: Template for the weekly parenting report with sections for data summary, analysis across multiple dimensions, latest parenting knowledge, and next-week plan adjustments.Important Notes
tangyuan-logs/) is created automatically in the current workspace