Morning Brief

From opencodos/opencodos · View interactive version

Morning Brief is an AI agent skill from the GitHub repository opencodos/opencodos. Generate morning briefing with calendar, inbox highlights, and priority tasks. Use when starting the day, checking priorities, or asking what's on the plate.

How to use this skill

Skill file

Morning Brief

Generate a daily briefing with inbox highlights, priorities, and actionable next steps.

Triggers

What It Does

  1. Gathers context from all available sources:
  1. EOD Carryover Check:

Check if yesterday's EOD report exists at Vault/0 - Daily Briefs/End of Day/{yesterday}.md

If it exists:

  1. QMD Deep Context (when running via Claude Code):

Before generating, run these QMD queries to surface hidden context:

```

qmd_query("pending commitments promises unfulfilled")

qmd_query("stale conversations waiting response 48h")

qmd_query("deals revenue pipeline opportunities")

qmd_query("relationship tensions concerns blockers")

```

This surfaces relevant items from anywhere in the Vault, not just the hot inbox.

  1. Synthesizes using Claude API to identify:
  1. Saves the brief to Vault/0 - Daily Briefs/YYYY-MM-DD.md
  1. Opens the brief in Obsidian (when run via launchd)

Output Format

# Morning Brief — {{DATE}}

## 1. System Synthesis
[2-3 sentences: day tone, main blocker, success criteria]

---

## 2. Priority Actions (Score ≥9)
| Action | Why | Score |
|--------|-----|-------|

---

## 2.5 Carryover from Yesterday's EOD
*(Only shown if EOD report exists)*

| Person | Action | Original Deadline | Status |
|--------|--------|-------------------|--------|
| [Name] | [Action item] | [Tomorrow/This week/etc] | Pending |

---

## 3. Today's Schedule (Lead Profiles)

### CLIENT DISCOVERY CALLS
Full prep with company profile:

### HH:MM-HH:MM — [Person] @ [Company]
|              |                                           |
| ------------ | ----------------------------------------- |
| **Org**      | [Company — what they do]                  |
| **Size**     | [Employees]                               |
| **Request**  | [What they asked for]                     |
| **Tried**    | [AI tools already tried]                  |
| **Maturity** | [LOW/MEDIUM/HIGH]                         |
| **Play**     | [Strategic approach for this call]        |

**Key Questions:**
1. "[Context-specific discovery question]"
2. "[Pain point question]"
3. "[Budget/timeline question]"
4. "[Qualify/disqualify question]"
5. "[Success criteria question]"
6. "[Decision-maker question]"

---

### COFOUNDER/INTERNAL SYNCS
### HH:MM — [Name]
**Type:** Cofounder sync
**Prep:**
- [Key topics and decisions]

### NETWORKING CALLS
### HH:MM — [Name] @ [Context]
**Type:** Networking
**Context:** [Relationship context]
**Goals:** [What to explore]

---

## 4. Strategic Leverage (Score ≥7)
| Item | Leverage | Score |
|------|----------|-------|

---

## 5. Messages to Respond
[Full message threads with entity context]

---

## 6. Email Highlights
| Sender | Subject | Action |
|--------|---------|--------|

---

## 7. Tasks (Grouped)
### Deep Work
### Comms
### Long Tail

---

## 8. Context Loaded
### Health / Key Entities / Recent Calls

---

## 9. Errors
[Only if errors occurred]

Files

| File | Purpose |

|------|---------|

| generate-brief.ts | Main script that gathers context and calls Claude |

| run-brief.sh | Shell wrapper with environment setup |

| Old Prompt.md | Original detailed prompt for reference |

Launchd Agent

Location: ~/Library/LaunchAgents/com.codos.morning-brief.plist

# Check status
launchctl list | grep morning-brief

# Reload agent
launchctl unload ~/Library/LaunchAgents/com.codos.morning-brief.plist
launchctl load ~/Library/LaunchAgents/com.codos.morning-brief.plist

# Run manually
launchctl start com.codos.morning-brief

# View logs
tail -f /tmp/morning-brief.log
tail -f /tmp/morning-brief.error.log

Manual Execution

# Run directly
cd "skills/Morning Brief"
ANTHROPIC_API_KEY=... bun run generate-brief.ts

# Or use the wrapper
skills/Morning Brief/run-brief.sh

Behavior

QMD Integration

When running /brief in Claude Code (not via launchd), the skill should:

  1. Pre-query QMD before gathering standard context:

```bash

qmd query "stale commitments promises pending follow-ups"

qmd query "deal pipeline revenue opportunities"

qmd query "relationship concerns tensions blockers"

```

  1. Incorporate results into the Strategic Leverage and Priority Actions sections
  1. Keep index fresh: Run qmd embed weekly or when new sources are added

This allows the brief to surface important items from archived data, old project notes, and historical conversations - not just the last 7 days of inbox.

Architecture Note

The brief uses a summary-first approach:

Raw data (DMs, transcripts) is still stored and available for other skills, but the brief only reads pre-processed summaries to reduce token usage and improve signal-to-noise.

Data Sources Status

| Source | Path | Status |

|--------|------|--------|

| EOD Report | 0 - Daily Briefs/End of Day/ | Active (carryover) |

| Telegram Daily Summary | Inbox/Telegram/Daily Summary/ | Active (primary Telegram source) |

| Telegram Raw DMs | Inbox/Telegram/DMs/ | Removed from brief (summaries only) |

| Granola Summaries | Inbox/Granola/Summaries/ | Active (primary Granola source) |

| Granola Raw Transcripts | Inbox/Granola/{call}/ | Removed from brief (summaries only) |

| Calendar | Inbox/Calendar/ | Active (7 days ahead, CRM-matched) |

| Gmail | Inbox/Gmail/ | Active (synced before brief, actionable only) |

| Slack | Inbox/Slack/ | Pending ingestion |

| Linear | Inbox/Linear/ | Pending ingestion |

| Notion | Inbox/Notion/ | Pending ingestion |

Calendar Integration

The brief reads calendar data for today + next 7 days from Inbox/Calendar/{date}.md. This allows:

Calendar data is synced automatically at 7:45am via calendar-sync launchd agent.

Call Prep Integration

The brief generates inline call prep for each meeting based on call type:

| Call Type | Prep Format |

|-----------|-------------|

| Client Discovery | Full profile table (Org, Size, Request, Tried, Maturity, Play) + 6 tailored discovery questions |

| Cofounder/Internal | Prep bullets with topics and decisions |

| Networking | Context + goals to explore |

| Other | Brief prep note or skip |

Client Discovery Call Prep Includes:

  1. Company Profile Table
  1. AI Maturity Assessment
  1. Play Strategy
  1. Tailored Discovery Questions

This replaces the need for separate /call-prep for most discovery calls — the morning brief front-loads all prep.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.