Not loaded · from founder-os
Gathers overnight data from Gmail, Google Calendar, Notion, Slack, and Google Drive into a consolidated morning briefing. Handles multi-source data gathering with configurable time windows and graceful degradation.
Claude Code won't load this skill
It ships in founder-os at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Gather overnight data from five sources -- Gmail, Google Calendar, Notion, Slack, and Google Drive -- into a single structured dataset for priority synthesis and briefing assembly. Operate as an orchestrator that directly calls gws CLI and MCP tools rather than delegating to agent teams. Reuse domain knowledge from established plugins: P02 Daily Briefing Generator for email prioritization and calendar scoring, P19 Slack Digest Engine for message noise filtering and signal scoring, and P18 Google Drive Brain for file search and relevance ranking. This skill handles data collection and normalization only -- priority ranking, cross-source correlation, and final briefing formatting belong to the priority-synthesis skill and command layer respectively.
Calculate the overnight window before initiating any source queries. All five sources use the same cutoff timestamp to ensure consistent time boundaries across the briefing.
Set the default overnight window to 12 hours back from the current time. When the current time is 7:00 AM, the window covers from 7:00 PM the previous evening through the present moment.
Accept a --since flag to override the default. Parse the following formats:
| Format | Example | Resolution |
|---|---|---|
| Hours suffix | 8h, 24h | Current time minus N hours |
| ISO datetime | 2026-03-04T22:00:00 | Exact cutoff timestamp |
When the --since value is unparseable, fall back to the 12-hour default and append a warning: "Could not parse --since value '[input]', using default 12-hour window."
Store the resolved cutoff as an ISO 8601 datetime. Pass this timestamp to every source query. Record both the cutoff datetime and the window duration in the output metadata for downstream consumption.
Process sources in the following fixed order. Complete each source before starting the next. Record timing and status for every source regardless of outcome.
Scan unread emails received within the overnight window. Construct a Gmail search query using is:unread after:{cutoff_date} where cutoff_date is the overnight window cutoff formatted as YYYY/MM/DD.
Apply P02's email-prioritization patterns to classify each unread email using the Eisenhower matrix (Q1: Urgent and Important, Q2: Important, Q3: Urgent, Q4: Neither). Use sender tier classification, subject keyword signals, action-required flag detection, and recency weighting as defined in P02's email-prioritization skill.
Collapse threads to a single entry using the latest message per thread. Extract up to 10 highlights ordered by quadrant then sender tier then recency.
For each highlight, extract: sender (display name and email), subject (truncated at 80 characters), summary (100 characters max), quadrant assignment, action needed (boolean with action phrase), and recency (relative timestamp).
Return:
email_count: Total unread emails in the overnight window.highlights: List of up to 10 structured highlight records.unread_total: Total unread count across all time (not just the window).status: "available", "unavailable", or "partial".When gws CLI is unavailable for Gmail, set status to "unavailable", all counts to 0, highlights to an empty list, and continue to the next source.
Fetch all events for today (start of day 00:00 to end of day 23:59 in the user's local timezone).
Filter out events matching any of these criteria:
Classify each remaining event by meeting type using this priority order (first match wins):
Score importance on a 1-5 scale using four weighted factors:
For each event, extract: title, start time, duration in minutes, attendee count, meeting type, and importance score.
Return:
meeting_count: Number of qualifying events.events: List of structured event records sorted by start time.status: "available", "unavailable", or "partial".Search for task databases in the user's Notion workspace. Identify databases containing both a Status property and a Date property (Due Date, Deadline, or similar). Use the same auto-discovery algorithm as P05 Weekly Review Compiler -- search all accessible databases and qualify by the presence of completion-like status values.
Query discovered databases for tasks matching either condition:
Additionally, search for tasks where Status changed to "Done" or "Completed" within the overnight window to surface overnight completions.
For each task, extract: task title, current status, due date, project or parent database name, and priority property if available.
Return:
task_count: Total tasks due today plus overdue.items: List of structured task records.overdue: Count of overdue items specifically.status: "available", "unavailable", or "partial".If Slack MCP is available, scan channels for unread messages posted within the overnight window. List joined channels and filter to configured channels if a channel list is specified, otherwise scan all joined channels.
Apply P19's noise filtering pipeline in order: channel management messages, automated bot messages, social and off-topic content, repeated and duplicate messages, link dumps without context, low-signal acknowledgments. Discard messages matching any noise category unless they contain a direct @mention of the current user.
For surviving messages, compute P19's 4-factor signal score: message type (0-40) + engagement (0-25) + recency (0-20) + channel importance (-5 to +15). Surface only messages scoring P1 (75-100) or P2 (50-74), plus all direct @mentions regardless of score.
For each surfaced message, extract: channel name, sender display name, message preview (truncated at 100 characters), signal score, and is_mention boolean.
Return:
slack_highlights: Count of surfaced messages.items: List of structured message records.status: "available" or "unavailable".If Slack MCP is unavailable, return status "unavailable", slack_highlights as 0, items as an empty list. Do not log a warning or error -- optional source unavailability is normal.
If Google gws CLI is available for Drive, search for files modified after the overnight window cutoff. Construct a Drive search query filtering by modifiedTime > '{cutoff_iso}'.
Filter results:
For each qualifying file, extract: file name, file type (Docs/Sheets/Slides/PDF/other), last modifier name, modified timestamp, and shared-with list.
Return:
drive_updates: Count of qualifying file updates.items: List of structured file records.status: "available" or "unavailable".If Google gws CLI is unavailable for Drive, return status "unavailable", drive_updates as 0, items as an empty list. Do not log a warning or error.
Track the status of each source throughout the gathering pipeline. Assign one of three statuses per source:
| Status | Meaning |
|---|---|
| available | MCP server connected, data retrieved successfully |
| unavailable | gws CLI unavailable or authentication not configured or connection failed |
| partial | MCP server connected but returned incomplete data (timeout, rate limit, API error) |
Required sources (Gmail, Calendar, Notion): Log a warning when any required source returns "unavailable" but continue the pipeline. Include the warning in the output metadata so the command layer can surface it to the user.
Optional sources (Slack, Drive): Silently set counts to 0 and status to "unavailable". Do not log warnings. Omit the corresponding section entirely from the final briefing -- do not render an empty section or a "Slack unavailable" placeholder.
Compile a sources_used list containing only sources with status "available" or "partial". Use this list for Notion DB metadata when logging the briefing.
Determine the briefing tier based on the number of available required sources:
| Available Required Sources | Briefing Tier | Behavior |
|---|---|---|
| 3 (Gmail + Calendar + Notion) | Full briefing | Include all available optional sources |
| 2 of 3 required | Partial briefing | Proceed with warning identifying the missing required source |
| 1 of 3 required | Minimal briefing | Proceed with prominent warning, recommend configuring missing sources |
| 0 required | Abort | Return actionable error listing which MCP servers to configure with package names |
The abort error message must include specific MCP server package names:
gws CLI (Gmail)gws CLI (Calendar)@modelcontextprotocol/server-notionNever error or abort due to optional source unavailability. A briefing with zero optional sources and all three required sources is a full briefing.
Produce a structured gathered_data object consumed by the priority-synthesis skill. Maintain this exact shape regardless of which sources are available -- unavailable sources return zero counts and empty lists.
gathered_data:
overnight_window:
since: [ISO 8601 cutoff datetime]
hours: [window duration as number]
sources:
gmail: [available | unavailable | partial]
calendar: [available | unavailable | partial]
notion: [available | unavailable | partial]
slack: [available | unavailable | partial]
drive: [available | unavailable | partial]
sources_used: [list of source names with status available or partial]
briefing_tier: [full | partial | minimal]
email:
count: [N]
highlights: [list of highlight records]
unread_total: [N]
calendar:
count: [N]
events: [list of event records]
tasks:
count: [N]
items: [list of task records]
overdue: [N]
slack:
highlights: [N]
items: [list of message records]
drive:
updates: [N]
items: [list of file records]
Pass this object directly to the priority-synthesis skill without modification. The priority-synthesis skill consumes the gathered data, applies cross-source correlation and priority ranking, and produces the formatted briefing.
Populate the Company relation when the briefing is dominated by one client's emails/meetings. After gathering data from all sources, examine email sender domains and calendar meeting attendees. If 50% or more of the summarized items (email highlights + calendar events) relate to a single client, search the "[FOS] Companies" database (fall back to "Founder OS HQ - Companies") by domain match from email addresses or meeting attendee domains. If a matching Company is found, include its page ID in the output so the command layer can set the Company relation on the Briefings row.
For detailed per-source query construction patterns, extraction field specifications, filtering rules, and edge case handling, consult:
${CLAUDE_PLUGIN_ROOT}/skills/morning/morning-briefing/references/source-patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
97 skills in this plugin
/action-extractionAction ExtractionConverts meeting transcripts, email threads, and documents into structured Notion tasks. Activates when the user pastes text and wants action items extracted, asks 'what tasks are in this?', or needs to parse any content for to-dos, assignments, and commitments. Handles verb detection, owner inference, deadline parsing, and duplicate checking against HQ Tasks./activity-loggingActivity LoggingCreates and manages activity records in the CRM Communications database with AI-generated summaries. Activates when the user wants to log an email or meeting to CRM, record a client interaction, or asks 'save this to the client record.' Handles idempotent operations, deduplication, and AI summarization./answer-synthesisnpx claudepluginhub thecloudtips/founder-os --plugin founder-osOther plugins' skills for the same job