agentleFS
b1rdmaniab1rdmania/ghostclaw/.claude/skills/add-morning-briefing/SKILL.md

add-morning-briefing

Skill91 starsChanged 7 months agoMITView on GitHub

Add scheduled briefings — morning summary, weekly review, and custom recurring prompts. No code changes, just well-crafted scheduled tasks.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use AskUserQuestion to understand what they want:

    line 14
  2. Distinctive:

    What time?: Default: 8am weekdays for morning, 5pm Friday for weekly

    line 17
  3. Distinctive:

    Check that tasks are active and next_run looks correct.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Add Morning Briefing

Registers scheduled tasks that run the agent with specific prompts on a cron. No code changes needed — this skill just creates IPC task files.

Setup

1. Ask the user

Use AskUserQuestion to understand what they want:

  • Which briefings? Morning summary / Weekly review / Both / Custom
  • What time? Default: 8am weekdays for morning, 5pm Friday for weekly
  • What to include? Weather, email, PRs, news, calendar, custom checks
  • Location? For weather (default: London)

2. Register the tasks

For each briefing, write an IPC task file to data/ipc/main/tasks/.

Find the main group's chat JID first:

sqlite3 store/messages.db "SELECT jid FROM registered_groups WHERE folder = 'main' LIMIT 1;"

Morning Briefing (weekdays at 8am)

CHAT_JID="tg:414798121"  # Replace with actual JID
cat > data/ipc/main/tasks/morning_$(date +%s).json << EOF
{
  "type": "schedule_task",
  "prompt": "Morning briefing. Be concise — 5 lines max.\n\n1. Check the weather for London today\n2. Check Gmail for anything urgent in the last 12 hours\n3. Check for open PRs on my GitHub repos (gh pr list)\n4. Any scheduled tasks that failed overnight (check task_run_logs in the database)\n\nFormat as a quick summary. No greetings, no sign-off.",
  "schedule_type": "cron",
  "schedule_value": "0 8 * * 1-5",
  "context_mode": "isolated",
  "targetJid": "$CHAT_JID"
}
EOF

Weekly Review (Friday at 5pm)

cat > data/ipc/main/tasks/weekly_$(date +%s).json << EOF
{
  "type": "schedule_task",
  "prompt": "Weekly review. Check conversations/ folder for this week's conversation archives. Summarise:\n\n1. What we worked on this week\n2. What's still open or unfinished\n3. What to focus on next week\n\nKeep it to 10 lines. No fluff.",
  "schedule_type": "cron",
  "schedule_value": "0 17 * * 5",
  "context_mode": "isolated",
  "targetJid": "$CHAT_JID"
}
EOF

3. Customise the prompts

Adjust prompts based on user answers from step 1. Common additions:

  • Crypto prices: "Check BTC and ETH price via web search"
  • News digest: "Search Hacker News and TechCrunch for AI developments"
  • Calendar: "Check Google Calendar for today's events" (requires calendar integration)
  • Project status: "Check CI status for [repo] via gh run list"

4. Verify

sqlite3 store/messages.db "SELECT id, schedule_value, status, next_run FROM scheduled_tasks WHERE prompt LIKE '%briefing%' OR prompt LIKE '%review%';"

Check that tasks are active and next_run looks correct.

Managing briefings

Tell the agent in the main channel:

  • "Pause the morning briefing" — agent writes a pause_task IPC file
  • "Change the morning briefing to 9am" — agent cancels and recreates
  • "Add crypto prices to the morning briefing" — agent updates the task prompt

Included templates

TemplateScheduleWhat it checks
Morning briefingWeekdays 8amWeather, email, PRs, failed tasks
Weekly reviewFriday 5pmConversation archives, open items

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.