On first activation, check if memory/travel-plan.json exists.
If not found → ask the user for their home city, then create it:
json
{ "default_location": "<User's City>, <Country>", "daily_locations": {} }
If found → confirm default_location with the user before first use.
Read memory/travel-plan.json. Use today's date (Asia/Shanghai) to look up daily_locations:
default_locationWhen user mentions travel (dates + location), update travel-plan.json proactively:
bash
python3 skills/travel-morning-weather/scripts/update-travel-plan.py \
--start YYYY-MM-DD --end YYYY-MM-DD --location "City, Country"
For detailed trigger conditions, see references/capture-triggers.md.
Before morning briefing, run cleanup to remove past dates:
bash
python3 skills/travel-morning-weather/scripts/travel-cleaner.py
TaskReferenceJSON schema + fieldsreferences/data-format.mdCapture triggers + flowreferences/capture-triggers.mdMorning cron integrationreferences/morning-briefing.mdClean expired entriesscripts/travel-cleaner.pyUpdate travel datascripts/update-travel-plan.pyExample dataexamples/travel-plan.json