#!/bin/sh
# Refresh a "brief" widget every morning. Add to crontab:
#   0 7 * * * /path/to/morning-brief.sh
# Uses Claude Code with the Droplet.ai MCP server already added (see SKILL.md).
claude -p "Update my Droplet.ai widget 'brief' titled 'Morning brief' (symbol newspaper.fill): \
a metric for AAPL with today's change, and a list of the top 5 tech headlines with their sources. \
Put \"Updated\" and the current time in the subtitle. Preview it with droplet_preview_widget and fix every warning." \
  --allowedTools mcp__droplet__droplet_set_widget,mcp__droplet__droplet_preview_widget,WebSearch
