{
  "schemaVersion": "1.0",
  "item": {
    "slug": "daily-briefing",
    "name": "Daily Briefing",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/antgly/daily-briefing",
    "canonicalUrl": "https://clawhub.ai/antgly/daily-briefing",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/daily-briefing",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=daily-briefing",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "install.sh",
      "scripts/daily_briefing_orchestrator.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/daily-briefing"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/daily-briefing",
    "agentPageUrl": "https://openagent3.xyz/skills/daily-briefing/agent",
    "manifestUrl": "https://openagent3.xyz/skills/daily-briefing/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/daily-briefing/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "daily-briefing",
        "body": "Generates a compact, warm daily message suitable for cron delivery (stdout/chat reply). Always succeeds even with minimal context."
      },
      {
        "title": "Skill Type: System Skill (Orchestrator Pattern)",
        "body": "This skill uses the System Skill pattern for execution on macOS. The agent must:\n\nNever run raw CLI commands directly (except curl for weather).\nAlways invoke the runner script to gather data.\nRead gathered data from JSON after the script completes.\nGenerate the briefing text using the agent's own capabilities.\n\nQuick reference:\n\n# Invoke data gatherer (waits for completion)\n\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\"\n\n# Read output\ncat /tmp/daily_briefing_data.json"
      },
      {
        "title": "Output Contract (STRICT)",
        "body": "CRITICAL: Output only the briefing text. No prefaces, no explanations, no \"Done\", no file paths, no tool output, no markdown code fences around the briefing."
      },
      {
        "title": "Line 1 Format (Required)",
        "body": "Line 1 must begin exactly with the time-appropriate greeting:\n\nGood {time_of_day} - Today is {Weekday}, {Month} {D}, {YYYY}. {Skies sentence}.\n\nUse full month name (e.g., \"February\", not \"Feb\").\nIf today is the user's birthday (matched by name in contacts): replace greeting with:\n🎉 Happy Birthday! Today is {Weekday}, {Month} {D}, {YYYY}. {Skies sentence}."
      },
      {
        "title": "Greeting Selection (Local Time)",
        "body": "Time RangeGreeting05:00–11:59Good morning12:00–16:59Good afternoon17:00–21:59Good evening22:00–04:59Good nightUnknownGood morning (default)"
      },
      {
        "title": "Skies Sentence Rules",
        "body": "If weather is usable:\n\n{Conditions} skies, around {TEMP}°{time_clause}{low_clause}{precip_clause}.\n\nUse high temp if reliable → time clause: \" this afternoon\"\nOtherwise use current temp → time clause: \" right now\"\nIf low exists: append , with a low around {LOW}°\nIf precip chance ≥30%: append , and a {CHANCE}% chance of {rain/snow/precipitation}\n\nIf weather is not usable: Use exact fallback:\n\nI can't access weather right now."
      },
      {
        "title": "Layout Rules",
        "body": "{Line 1: Greeting with skies sentence}\n\n{Birthdays section - only if any today or upcoming}\n\n{Calendar events section - only if any}\n\n{Reminders section - only if any}\n\n{Important emails section - only if enabled and any}\n\n{Anchors - only if real priorities from context}\n\n{Closing line - always required}\n\nAlways include a blank line after Line 1.\nEach section separated by a blank line if present.\nTarget ~5–15 lines depending on enabled integrations."
      },
      {
        "title": "Vibe and Tone",
        "body": "Gentle gift for the day: warm, calm, compassionate, quietly hopeful.\nNo scolding, no urgency, no productivity pressure.\nTelegram-friendly: short lines, roomy spacing, easy to skim."
      },
      {
        "title": "Step 1: Check Mode (Interactive vs Cron)",
        "body": "If interactive AND missing critical info (location/timezone/units):\n\nPrompt briefly for missing info before generating briefing.\nOffer toggles for integrations.\nMention the important emails feature: explain it uses AI-powered semantic analysis to surface actionable emails (transactions, shipments, security alerts, etc.) and can be enabled via emails.enabled in config; note iCloud Mail requires an app-specific password (emails.icloudPassword).\n\nIf non-interactive (cron/automation):\n\nDo NOT ask questions (cron-safe). Use defaults.\nDo NOT create/modify any files.\nDo NOT spawn background tasks/sub-agents.\nOmit weather if location is unavailable."
      },
      {
        "title": "Step 2: Invoke the Data Gatherer",
        "body": "\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\"\n\nThe runner script executes scripts/daily_briefing_orchestrator.sh.\nTCC permissions are granted to Terminal.app (or the calling process)."
      },
      {
        "title": "Step 3: Read the Gathered Data",
        "body": "After the app completes, read:\n\n/tmp/daily_briefing_data.json\n\nJSON structure:\n\n{\n  \"generated_at\": \"ISO timestamp\",\n  \"system\": {\n    \"timezone\": \"America/New_York\",\n    \"local_time\": \"2024-02-03T08:30:00\",\n    \"hour\": 8\n  },\n  \"config\": {\n    \"location\": \"New York, NY\",\n    \"units\": \"C\",\n    \"birthdays_enabled\": true,\n    \"birthdays_lookahead\": 14,\n    \"calendar_google_enabled\": true,\n    \"calendar_icloud_enabled\": true,\n    \"calendar_lookahead\": 0,\n    \"reminders_enabled\": true,\n    \"reminders_due_filter\": \"today\",\n    \"reminders_include_past_due\": true,\n    \"emails_enabled\": false,\n    \"emails_limit\": 10,\n    \"emails_sort_newest\": true,\n    \"emails_starred_first\": true,\n    \"emails_unread_only\": true\n  },\n  \"birthdays\": {\n    \"available\": true,\n    \"user_birthday_today\": false,\n    \"data\": [\n      {\"name\": \"Jane Doe\", \"date\": \"2024-02-03\", \"days_until\": 0},\n      {\"name\": \"John Smith\", \"date\": \"2024-02-05\", \"days_until\": 2}\n    ]\n  },\n  \"calendar\": {\n    \"available\": true,\n    \"data\": [\n      {\"title\": \"Team standup\", \"start\": \"09:00\", \"end\": \"09:30\", \"all_day\": false, \"date\": \"2024-02-03\", \"source\": \"google\"},\n      {\"title\": \"Doctor appointment\", \"start\": null, \"end\": null, \"all_day\": true, \"date\": \"2024-02-03\", \"source\": \"icloud\"}\n    ]\n  },\n  \"reminders\": {\n    \"available\": true,\n    \"data\": [\n      {\"title\": \"Pick up prescription\", \"due\": \"2024-02-03\"}\n    ]\n  },\n  \"emails\": {\n    \"available\": true,\n    \"data\": [\n      {\"id\": \"abc123\", \"from\": \"Amazon\", \"from_email\": \"shipment@amazon.com\", \"subject\": \"Your order has shipped\", \"preview\": \"Your package is on its way...\", \"starred\": false, \"unread\": true, \"date\": \"2024-02-03T07:30:00Z\", \"source\": \"gmail\"},\n      {\"id\": \"def456\", \"from\": \"Chase\", \"from_email\": \"alerts@chase.com\", \"subject\": \"Payment received\", \"preview\": \"We received your payment of...\", \"starred\": true, \"unread\": true, \"date\": \"2024-02-03T06:15:00Z\", \"source\": \"icloud\"}\n    ]\n  },\n  \"contacts\": {\n    \"available\": true,\n    \"data\": [\n      {\"name\": \"Jane Doe\", \"email\": \"jane@example.com\"},\n      {\"name\": \"John Smith\", \"email\": \"john@example.com\"}\n    ]\n  }\n}"
      },
      {
        "title": "Step 4: Fetch Weather (Agent Task)",
        "body": "The agent must fetch weather directly using curl (not via orchestrator):\n\ncurl -fsSL --max-time 12 \"https://wttr.in/{ENCODED_LOCATION}?format=j1\"\n\nLocation: Use config.location from gathered data; if empty/null, weather is unavailable.\nRetry: Retry once on failure.\nIf still failing or unusable: Weather is unavailable; use fallback sentence.\n\nParse from JSON response:\n\nConditions: current_condition[0].weatherDesc[0].value\nCurrent temp (C): current_condition[0].temp_C\nCurrent temp (F): current_condition[0].temp_F\nHigh temp (C): weather[0].maxtempC\nHigh temp (F): weather[0].maxtempF\nLow temp (C): weather[0].mintempC\nLow temp (F): weather[0].mintempF\nPrecip chance: max of weather[0].hourly[*].chanceofrain (as integers)\n\nUnits: Use config.units (\"C\" or \"F\"). Default to Celsius if unknown.\n\nCRITICAL: Do NOT output raw curl/tool output. Do NOT use wttr.in one-line formats."
      },
      {
        "title": "Step 5: Classify Important Emails (Agent Task)",
        "body": "Only if config.emails_enabled is true and emails.available is true.\n\nFor each email in emails.data, use the agent's own semantic analysis to determine importance.\n\nImportant Email Criteria (any match qualifies):\n\nFrom contacts in the gathered contacts list\nOrder shipment notifications\nReceipts for purchases or transaction confirmations\nIncoming/outgoing transaction alerts\nRefund-related messages\nCustomer service interactions\nUpcoming subscription renewal notices\nUpcoming payment heads-up notices\nTechnical newsletters\nJob application updates\nMessages from recruiters (exclude WITCH-like outsourcing firms)\nBanking alerts\nCalendar invites\nAccount security emails (e.g., \"your account is locked\")\nShared items (e.g., Google Drive shares)\nWishlist-related alerts\nStarred/flagged emails (positive signal, not sole determinant)\nAny other contextually important emails\n\nExclusions: The following are never important, even if matching other criteria:\n\nPromotional/marketing emails\nLinkedIn Job Alert emails (LinkedIn message notifications are fine)\nUnsolicited recruiter/job-posting emails and mass hiring notices (e.g., subjects or bodies containing keywords like \"hire\", \"hiring\", \"job\", \"position\", \"onsite\", \"fulltime\", \"recruiter\", \"application\", or obvious bulk outreach), unless the sender is in the user's contacts or the message is starred/readily identified as personally relevant.\nProduct announcement / product update emails and vendor/platform notifications (e.g., \"[Product Update]\", release announcements, automatic enablement notices), unless the sender is in the user's contacts or the message is explicitly starred.\nVendor newsletters, community announcements, and general technical mailing-list posts (e.g., blog posts, release notes, product previews, digests), unless clearly personal or from a contact.\n\nFailure behavior: If semantic analysis fails, silently omit the entire email section.\n\nApply filters and sorting:\n\nFilter by emails_unread_only if true\nIf emails_starred_first is true, starred emails first\nSort by date per emails_sort_newest\nLimit to emails_limit"
      },
      {
        "title": "Step 6: Generate the Briefing",
        "body": "Using all gathered and processed data, compose the briefing text following the Output Contract.\n\nSection Formats:\n\nBirthdays:\n\n🎂 **Birthdays:**\n• Today: Name\n• Feb 5: Name\n\nGroup multiples per date\nToday entries first\nUp to 5 upcoming (excluding today)\n\nCalendar Events:\n\n📅 **Today's schedule:**\n• All-day: Event title\n• 9:00 AM: Event title\n\nSingle day: \"Today's schedule\"\nMulti-day: \"Schedule\" with \"Today/Tomorrow/{Month} {D}\" labels\nAll-day events first, then timed by start\nUp to 3 events per day\n\nReminders:\n\n✅ **Reminders:**\n• Pick up prescription\n\nDue-today reminders only\nUp to 3 reminders\n\nImportant Emails:\n\n📧 **Emails needing attention:**\n• Amazon: Your order has shipped\n• Chase: Payment received\n\nFormat: • Sender: Subject (truncated if needed)\n\nAnchors:\n\nOnly if you can confidently infer 1–3 real priorities from user-provided context.\nPlain bullets, no heading.\nIf not real/uncertain, omit entirely (do not invent).\n\nClosing Line:\n\nRequired. Use the quote field from the gathered JSON data.\nThe orchestrator provides a random motivational quote each run."
      },
      {
        "title": "Step 7: Output the Briefing",
        "body": "Return only the briefing text. Nothing else."
      },
      {
        "title": "Configuration",
        "body": "Configuration is read from ~/.openclaw/openclaw.json at path skills.entries.daily-briefing.config:\n\n{\n  \"skills\": {\n    \"entries\": {\n      \"daily-briefing\": {\n        \"config\": {\n          \"location\": \"New York, NY\",\n          \"timezone\": \"America/New_York\",\n          \"units\": \"C\",\n          \"birthdays\": {\n            \"enabled\": true,\n            \"lookahead\": 14,\n            \"sources\": [\"contacts\", \"google\"]\n          },\n          \"calendar\": {\n            \"enabled\": true,\n            \"lookahead\": 0,\n            \"sources\": [\"google\", \"icloud\"]\n          },\n          \"reminders\": {\n            \"enabled\": true\n          },\n          \"emails\": {\n            \"enabled\": false,\n            \"icloudPassword\": \"\",\n            \"limit\": 10,\n            \"sortNewest\": true,\n            \"starredFirst\": true,\n            \"unreadOnly\": true\n          }\n        }\n      }\n    }\n  }\n}"
      },
      {
        "title": "Configuration Options",
        "body": "OptionTypeDefaultDescriptionlocationstring\"\"Location for weather (e.g., \"New York, NY\")timezonestringsystemTimezone (e.g., \"America/New_York\")unitsstring\"C\"Temperature units: \"C\" or \"F\"birthdays.enabledbooltrueEnable birthday trackingbirthdays.lookaheadint14Days ahead to show upcoming birthdaysbirthdays.sourcesarray[\"contacts\"]Sources: \"contacts\" (iCloud), \"google\"calendar.enabledbooltrueEnable calendar eventscalendar.lookaheadint0Days ahead (0 = today only)calendar.sourcesarray[\"google\", \"icloud\"]Calendar sourcesreminders.enabledbooltrueEnable Apple Remindersreminders.dueFilterstring\"today\"Due date filter: \"today\", \"week\", or \"all\"reminders.includePastDuebooltrueInclude overdue/past-due remindersemails.enabledboolfalseEnable important emails featureemails.icloudPasswordstring\"\"iCloud Mail app-specific passwordemails.limitint10Maximum emails to showemails.sortNewestbooltrueSort newest firstemails.starredFirstbooltruePrioritize starred emailsemails.unreadOnlybooltrueOnly show unread emails"
      },
      {
        "title": "Defaults",
        "body": "Timezone: User's local timezone; fallback to UTC if unknown.\nLocation: User's location if present; omit weather if unavailable in cron mode.\nUnits: User's preferred units if known; otherwise Celsius."
      },
      {
        "title": "Dependencies",
        "body": "Required:\n\ncurl — for weather fetching\nbash — for orchestrator script\n\nOptional:\n\ngog — brew install steipete/tap/gogcli (Google Calendar, Gmail, Contacts)\nicalpal — brew install ajrosen/tap/icalpal (iCloud Calendar)\nhimalaya — brew install himalaya (iCloud Mail via IMAP)"
      },
      {
        "title": "File Structure",
        "body": "daily-briefing/\n├── SKILL.md\n├── README.md\n├── install.sh\n├── scripts/\n│   └── daily_briefing_orchestrator.sh\n└── bin/\n    └── run_daily_briefing.sh (created by install.sh)"
      },
      {
        "title": "Example Output",
        "body": "Good morning - Today is Saturday, February 3, 2024. Partly cloudy skies, around 45°F this afternoon, with a low around 32°F.\n\n🎂 **Birthdays:**\n• Today: Jane Doe\n• Feb 5: John Smith\n\n📅 **Today's schedule:**\n• All-day: Doctor appointment\n• 9:00 AM: Team standup\n\n✅ **Reminders:**\n• Pick up prescription\n\n📧 **Emails needing attention:**\n• Amazon: Your order has shipped\n• Chase: Payment received\n\nTake things one step at a time today—you've got this."
      },
      {
        "title": "Cleanup",
        "body": "\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\" --cleanup"
      }
    ],
    "body": "daily-briefing\n\nGenerates a compact, warm daily message suitable for cron delivery (stdout/chat reply). Always succeeds even with minimal context.\n\nSkill Type: System Skill (Orchestrator Pattern)\n\nThis skill uses the System Skill pattern for execution on macOS. The agent must:\n\nNever run raw CLI commands directly (except curl for weather).\nAlways invoke the runner script to gather data.\nRead gathered data from JSON after the script completes.\nGenerate the briefing text using the agent's own capabilities.\n\nQuick reference:\n\n# Invoke data gatherer (waits for completion)\n\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\"\n\n# Read output\ncat /tmp/daily_briefing_data.json\n\nOutput Contract (STRICT)\n\nCRITICAL: Output only the briefing text. No prefaces, no explanations, no \"Done\", no file paths, no tool output, no markdown code fences around the briefing.\n\nLine 1 Format (Required)\n\nLine 1 must begin exactly with the time-appropriate greeting:\n\nGood {time_of_day} - Today is {Weekday}, {Month} {D}, {YYYY}. {Skies sentence}.\n\nUse full month name (e.g., \"February\", not \"Feb\").\nIf today is the user's birthday (matched by name in contacts): replace greeting with:\n🎉 Happy Birthday! Today is {Weekday}, {Month} {D}, {YYYY}. {Skies sentence}.\n\nGreeting Selection (Local Time)\nTime Range\tGreeting\n05:00–11:59\tGood morning\n12:00–16:59\tGood afternoon\n17:00–21:59\tGood evening\n22:00–04:59\tGood night\nUnknown\tGood morning (default)\nSkies Sentence Rules\n\nIf weather is usable:\n\n{Conditions} skies, around {TEMP}°{time_clause}{low_clause}{precip_clause}.\n\nUse high temp if reliable → time clause: \" this afternoon\"\nOtherwise use current temp → time clause: \" right now\"\nIf low exists: append , with a low around {LOW}°\nIf precip chance ≥30%: append , and a {CHANCE}% chance of {rain/snow/precipitation}\n\nIf weather is not usable: Use exact fallback:\n\nI can't access weather right now.\n\nLayout Rules\n{Line 1: Greeting with skies sentence}\n\n{Birthdays section - only if any today or upcoming}\n\n{Calendar events section - only if any}\n\n{Reminders section - only if any}\n\n{Important emails section - only if enabled and any}\n\n{Anchors - only if real priorities from context}\n\n{Closing line - always required}\n\nAlways include a blank line after Line 1.\nEach section separated by a blank line if present.\nTarget ~5–15 lines depending on enabled integrations.\nVibe and Tone\nGentle gift for the day: warm, calm, compassionate, quietly hopeful.\nNo scolding, no urgency, no productivity pressure.\nTelegram-friendly: short lines, roomy spacing, easy to skim.\nSystem Skill Execution\nStep 1: Check Mode (Interactive vs Cron)\n\nIf interactive AND missing critical info (location/timezone/units):\n\nPrompt briefly for missing info before generating briefing.\nOffer toggles for integrations.\nMention the important emails feature: explain it uses AI-powered semantic analysis to surface actionable emails (transactions, shipments, security alerts, etc.) and can be enabled via emails.enabled in config; note iCloud Mail requires an app-specific password (emails.icloudPassword).\n\nIf non-interactive (cron/automation):\n\nDo NOT ask questions (cron-safe). Use defaults.\nDo NOT create/modify any files.\nDo NOT spawn background tasks/sub-agents.\nOmit weather if location is unavailable.\nStep 2: Invoke the Data Gatherer\n\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\"\n\nThe runner script executes scripts/daily_briefing_orchestrator.sh.\nTCC permissions are granted to Terminal.app (or the calling process).\nStep 3: Read the Gathered Data\n\nAfter the app completes, read:\n\n/tmp/daily_briefing_data.json\n\n\nJSON structure:\n\n{\n  \"generated_at\": \"ISO timestamp\",\n  \"system\": {\n    \"timezone\": \"America/New_York\",\n    \"local_time\": \"2024-02-03T08:30:00\",\n    \"hour\": 8\n  },\n  \"config\": {\n    \"location\": \"New York, NY\",\n    \"units\": \"C\",\n    \"birthdays_enabled\": true,\n    \"birthdays_lookahead\": 14,\n    \"calendar_google_enabled\": true,\n    \"calendar_icloud_enabled\": true,\n    \"calendar_lookahead\": 0,\n    \"reminders_enabled\": true,\n    \"reminders_due_filter\": \"today\",\n    \"reminders_include_past_due\": true,\n    \"emails_enabled\": false,\n    \"emails_limit\": 10,\n    \"emails_sort_newest\": true,\n    \"emails_starred_first\": true,\n    \"emails_unread_only\": true\n  },\n  \"birthdays\": {\n    \"available\": true,\n    \"user_birthday_today\": false,\n    \"data\": [\n      {\"name\": \"Jane Doe\", \"date\": \"2024-02-03\", \"days_until\": 0},\n      {\"name\": \"John Smith\", \"date\": \"2024-02-05\", \"days_until\": 2}\n    ]\n  },\n  \"calendar\": {\n    \"available\": true,\n    \"data\": [\n      {\"title\": \"Team standup\", \"start\": \"09:00\", \"end\": \"09:30\", \"all_day\": false, \"date\": \"2024-02-03\", \"source\": \"google\"},\n      {\"title\": \"Doctor appointment\", \"start\": null, \"end\": null, \"all_day\": true, \"date\": \"2024-02-03\", \"source\": \"icloud\"}\n    ]\n  },\n  \"reminders\": {\n    \"available\": true,\n    \"data\": [\n      {\"title\": \"Pick up prescription\", \"due\": \"2024-02-03\"}\n    ]\n  },\n  \"emails\": {\n    \"available\": true,\n    \"data\": [\n      {\"id\": \"abc123\", \"from\": \"Amazon\", \"from_email\": \"shipment@amazon.com\", \"subject\": \"Your order has shipped\", \"preview\": \"Your package is on its way...\", \"starred\": false, \"unread\": true, \"date\": \"2024-02-03T07:30:00Z\", \"source\": \"gmail\"},\n      {\"id\": \"def456\", \"from\": \"Chase\", \"from_email\": \"alerts@chase.com\", \"subject\": \"Payment received\", \"preview\": \"We received your payment of...\", \"starred\": true, \"unread\": true, \"date\": \"2024-02-03T06:15:00Z\", \"source\": \"icloud\"}\n    ]\n  },\n  \"contacts\": {\n    \"available\": true,\n    \"data\": [\n      {\"name\": \"Jane Doe\", \"email\": \"jane@example.com\"},\n      {\"name\": \"John Smith\", \"email\": \"john@example.com\"}\n    ]\n  }\n}\n\nStep 4: Fetch Weather (Agent Task)\n\nThe agent must fetch weather directly using curl (not via orchestrator):\n\ncurl -fsSL --max-time 12 \"https://wttr.in/{ENCODED_LOCATION}?format=j1\"\n\nLocation: Use config.location from gathered data; if empty/null, weather is unavailable.\nRetry: Retry once on failure.\nIf still failing or unusable: Weather is unavailable; use fallback sentence.\n\nParse from JSON response:\n\nConditions: current_condition[0].weatherDesc[0].value\nCurrent temp (C): current_condition[0].temp_C\nCurrent temp (F): current_condition[0].temp_F\nHigh temp (C): weather[0].maxtempC\nHigh temp (F): weather[0].maxtempF\nLow temp (C): weather[0].mintempC\nLow temp (F): weather[0].mintempF\nPrecip chance: max of weather[0].hourly[*].chanceofrain (as integers)\n\nUnits: Use config.units (\"C\" or \"F\"). Default to Celsius if unknown.\n\nCRITICAL: Do NOT output raw curl/tool output. Do NOT use wttr.in one-line formats.\n\nStep 5: Classify Important Emails (Agent Task)\n\nOnly if config.emails_enabled is true and emails.available is true.\n\nFor each email in emails.data, use the agent's own semantic analysis to determine importance.\n\nImportant Email Criteria (any match qualifies):\n\nFrom contacts in the gathered contacts list\nOrder shipment notifications\nReceipts for purchases or transaction confirmations\nIncoming/outgoing transaction alerts\nRefund-related messages\nCustomer service interactions\nUpcoming subscription renewal notices\nUpcoming payment heads-up notices\nTechnical newsletters\nJob application updates\nMessages from recruiters (exclude WITCH-like outsourcing firms)\nBanking alerts\nCalendar invites\nAccount security emails (e.g., \"your account is locked\")\nShared items (e.g., Google Drive shares)\nWishlist-related alerts\nStarred/flagged emails (positive signal, not sole determinant)\nAny other contextually important emails\n\nExclusions: The following are never important, even if matching other criteria:\n\nPromotional/marketing emails\nLinkedIn Job Alert emails (LinkedIn message notifications are fine)\nUnsolicited recruiter/job-posting emails and mass hiring notices (e.g., subjects or bodies containing keywords like \"hire\", \"hiring\", \"job\", \"position\", \"onsite\", \"fulltime\", \"recruiter\", \"application\", or obvious bulk outreach), unless the sender is in the user's contacts or the message is starred/readily identified as personally relevant.\nProduct announcement / product update emails and vendor/platform notifications (e.g., \"[Product Update]\", release announcements, automatic enablement notices), unless the sender is in the user's contacts or the message is explicitly starred.\nVendor newsletters, community announcements, and general technical mailing-list posts (e.g., blog posts, release notes, product previews, digests), unless clearly personal or from a contact.\n\nFailure behavior: If semantic analysis fails, silently omit the entire email section.\n\nApply filters and sorting:\n\nFilter by emails_unread_only if true\nIf emails_starred_first is true, starred emails first\nSort by date per emails_sort_newest\nLimit to emails_limit\nStep 6: Generate the Briefing\n\nUsing all gathered and processed data, compose the briefing text following the Output Contract.\n\nSection Formats:\n\nBirthdays:\n\n🎂 **Birthdays:**\n• Today: Name\n• Feb 5: Name\n\nGroup multiples per date\nToday entries first\nUp to 5 upcoming (excluding today)\n\nCalendar Events:\n\n📅 **Today's schedule:**\n• All-day: Event title\n• 9:00 AM: Event title\n\nSingle day: \"Today's schedule\"\nMulti-day: \"Schedule\" with \"Today/Tomorrow/{Month} {D}\" labels\nAll-day events first, then timed by start\nUp to 3 events per day\n\nReminders:\n\n✅ **Reminders:**\n• Pick up prescription\n\nDue-today reminders only\nUp to 3 reminders\n\nImportant Emails:\n\n📧 **Emails needing attention:**\n• Amazon: Your order has shipped\n• Chase: Payment received\n\nFormat: • Sender: Subject (truncated if needed)\n\nAnchors:\n\nOnly if you can confidently infer 1–3 real priorities from user-provided context.\nPlain bullets, no heading.\nIf not real/uncertain, omit entirely (do not invent).\n\nClosing Line:\n\nRequired. Use the quote field from the gathered JSON data.\nThe orchestrator provides a random motivational quote each run.\nStep 7: Output the Briefing\n\nReturn only the briefing text. Nothing else.\n\nConfiguration\n\nConfiguration is read from ~/.openclaw/openclaw.json at path skills.entries.daily-briefing.config:\n\n{\n  \"skills\": {\n    \"entries\": {\n      \"daily-briefing\": {\n        \"config\": {\n          \"location\": \"New York, NY\",\n          \"timezone\": \"America/New_York\",\n          \"units\": \"C\",\n          \"birthdays\": {\n            \"enabled\": true,\n            \"lookahead\": 14,\n            \"sources\": [\"contacts\", \"google\"]\n          },\n          \"calendar\": {\n            \"enabled\": true,\n            \"lookahead\": 0,\n            \"sources\": [\"google\", \"icloud\"]\n          },\n          \"reminders\": {\n            \"enabled\": true\n          },\n          \"emails\": {\n            \"enabled\": false,\n            \"icloudPassword\": \"\",\n            \"limit\": 10,\n            \"sortNewest\": true,\n            \"starredFirst\": true,\n            \"unreadOnly\": true\n          }\n        }\n      }\n    }\n  }\n}\n\nConfiguration Options\nOption\tType\tDefault\tDescription\nlocation\tstring\t\"\"\tLocation for weather (e.g., \"New York, NY\")\ntimezone\tstring\tsystem\tTimezone (e.g., \"America/New_York\")\nunits\tstring\t\"C\"\tTemperature units: \"C\" or \"F\"\nbirthdays.enabled\tbool\ttrue\tEnable birthday tracking\nbirthdays.lookahead\tint\t14\tDays ahead to show upcoming birthdays\nbirthdays.sources\tarray\t[\"contacts\"]\tSources: \"contacts\" (iCloud), \"google\"\ncalendar.enabled\tbool\ttrue\tEnable calendar events\ncalendar.lookahead\tint\t0\tDays ahead (0 = today only)\ncalendar.sources\tarray\t[\"google\", \"icloud\"]\tCalendar sources\nreminders.enabled\tbool\ttrue\tEnable Apple Reminders\nreminders.dueFilter\tstring\t\"today\"\tDue date filter: \"today\", \"week\", or \"all\"\nreminders.includePastDue\tbool\ttrue\tInclude overdue/past-due reminders\nemails.enabled\tbool\tfalse\tEnable important emails feature\nemails.icloudPassword\tstring\t\"\"\tiCloud Mail app-specific password\nemails.limit\tint\t10\tMaximum emails to show\nemails.sortNewest\tbool\ttrue\tSort newest first\nemails.starredFirst\tbool\ttrue\tPrioritize starred emails\nemails.unreadOnly\tbool\ttrue\tOnly show unread emails\nDefaults\nTimezone: User's local timezone; fallback to UTC if unknown.\nLocation: User's location if present; omit weather if unavailable in cron mode.\nUnits: User's preferred units if known; otherwise Celsius.\nDependencies\n\nRequired:\n\ncurl — for weather fetching\nbash — for orchestrator script\n\nOptional:\n\ngog — brew install steipete/tap/gogcli (Google Calendar, Gmail, Contacts)\nicalpal — brew install ajrosen/tap/icalpal (iCloud Calendar)\nhimalaya — brew install himalaya (iCloud Mail via IMAP)\nFile Structure\ndaily-briefing/\n├── SKILL.md\n├── README.md\n├── install.sh\n├── scripts/\n│   └── daily_briefing_orchestrator.sh\n└── bin/\n    └── run_daily_briefing.sh (created by install.sh)\n\nExample Output\nGood morning - Today is Saturday, February 3, 2024. Partly cloudy skies, around 45°F this afternoon, with a low around 32°F.\n\n🎂 **Birthdays:**\n• Today: Jane Doe\n• Feb 5: John Smith\n\n📅 **Today's schedule:**\n• All-day: Doctor appointment\n• 9:00 AM: Team standup\n\n✅ **Reminders:**\n• Pick up prescription\n\n📧 **Emails needing attention:**\n• Amazon: Your order has shipped\n• Chase: Payment received\n\nTake things one step at a time today—you've got this.\n\nCleanup\n\"{baseDir}/skills/daily-briefing/bin/run_daily_briefing.sh\" --cleanup"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/antgly/daily-briefing",
    "publisherUrl": "https://clawhub.ai/antgly/daily-briefing",
    "owner": "antgly",
    "version": "1.0.5",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/daily-briefing",
    "downloadUrl": "https://openagent3.xyz/downloads/daily-briefing",
    "agentUrl": "https://openagent3.xyz/skills/daily-briefing/agent",
    "manifestUrl": "https://openagent3.xyz/skills/daily-briefing/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/daily-briefing/agent.md"
  }
}