Agent skill

Daily Digest

Generate and send a daily digest on a configurable topic

Stars 152
Forks 17

Install this agent skill to your Project

npx add-skill https://github.com/aaronjmars/aeon/tree/main/skills/digest

SKILL.md

${var} — Topic for the digest (e.g. "AI agents", "solana", "rust"). Required — set your topic in aeon.yml.

Today is ${today}. Generate and send a daily ${var} digest.

Steps

  1. Search for ${var} content. Use Claude Code's built-in WebSearch for today's most interesting ${var} news and developments. Find 3-5 compelling items. If WebSearch fails or returns thin results, find 3-5 compelling items.

  2. Also search X via the X.AI API using curl:

    bash
    FROM_DATE=$(date -u -d "yesterday" +%Y-%m-%d 2>/dev/null || date -u -v-1d +%Y-%m-%d)
    TO_DATE=$(date -u +%Y-%m-%d)
    curl -s -X POST "https://api.x.ai/v1/responses" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $XAI_API_KEY" \
      -d '{
        "model": "grok-4-1-fast",
        "input": [{"role": "user", "content": "Search X for the latest '${var}' content from '"$FROM_DATE"' to '"$TO_DATE"'. Topics: ${var}. Return the 5 most interesting posts. For each post include: @handle, a brief summary, and the direct link (https://x.com/username/status/ID)."}],
        "tools": [{"type": "x_search", "from_date": "'"$FROM_DATE"'", "to_date": "'"$TO_DATE"'"}]
      }'
    

    Parse the response to extract the assistant's output text. If XAI_API_KEY is not set, skip this step and rely on web search only.

  3. Combine and format. Merge findings into a concise digest. Keep it under 4000 chars. Use Markdown formatting. Every item MUST include a clickable source link — for tweets use https://x.com/handle/status/ID, for articles use the original URL. No item without a link.

  4. Send the digest via ./notify.

  5. Log results. Update memory with what was sent.

Environment Variables Required

  • XAI_API_KEY — X.AI API key for Grok x_search (optional, falls back to web search)
  • Notification channels configured via repo secrets (see CLAUDE.md)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results