๐Ÿ“Š Data OS

Data OS โ€” Your Business Intelligence Layer

The second layer of your AIOS. Once your Context OS tells Claude who you are and what you're doing, Data OS tells it where things actually stand โ€” live funnel numbers, revenue, clicks, bookings โ€” piped in automatically every morning from every platform you run.

๐Ÿ“ฝ Workshop recording
~25 min read
Builds on Setup & Context OS
Practical implementation session
Section 01

What Is Data OS โ€” and Why Does It Matter?

Context OS gives your AI a static picture of your business โ€” who you are, your strategy, your goals. Data OS makes it live. It's the layer that connects your real business data โ€” all of it, from all your platforms โ€” into a single local database that your AIOS can query in real time.

Without it, your AI is a smart advisor with no current information. With it, your AI walks into every session knowing your numbers: where your funnel is today, whether this month is tracking better than last month, what's working and what's not. That's when it becomes genuinely useful as an analytical partner.

๐Ÿ’ก
The moment it clicked: "I thought business data just had to be an absolute mess. It's in spreadsheets, in platforms, in analytics tools โ€” everywhere except one place. When I realized I could just connect all of this and have a single source of truth running locally on my machine, that was one of the biggest unlocks I've had."

The goal isn't to look at raw data. The goal is a single question answered every morning: "Am I green for the month?" Is this month tracking better than last month across every metric that matters? Everything else is in service of that answer.

Section 02

Step One: Map Your Funnel

Before you connect a single API, sketch your business funnel top to bottom. Every stage of your funnel has data โ€” and that data lives somewhere. Identify what the stages are, what you measure at each one, and which platform holds that data.

This is the planning session you need to do before building. Here's the typical shape for an agency or service business:

๐Ÿ“ฃ
Top of Funnel โ€” Impressions & Reach
Content views, ad impressions, organic reach. How many eyeballs are you getting?
YouTube API ยท Google Ads ยท LinkedIn
โ†“
๐Ÿ”—
Clicks & Intent
Link clicks from content to landing pages. Who showed enough interest to click through?
Bitly API
โ†“
๐ŸŒ
Website Visitors
Traffic to landing pages, conversion pages, your site. Where are they going and what are they doing?
Google Analytics
โ†“
๐Ÿ“…
Bookings & Leads
Discovery calls booked, leads captured. The moment intent converts to a real conversation.
Calendly ยท CRM
โ†“
๐Ÿ’ฐ
Revenue
Closed deals, recurring revenue, total intake. The bottom line the whole funnel is serving.
Stripe ยท Google Sheets (P&L)
๐Ÿ—‚
Your funnel will look different. If you run ads instead of content, your top of funnel is ad impressions from Google or Meta. If you do outreach, you need your Instantly campaign data or a manual tracking sheet. If you have a KPI sheet, that's a data source too. Map your actual funnel โ€” not the example one.
Section 03

Local Database First โ€” Not Cloud

The instinct is to reach for Supabase, Airtable, or another cloud database. Resist it. Start with a local SQLite database โ€” it runs directly on your machine, requires zero extra accounts, and is lightning fast to query. You can upgrade to cloud storage later once you know what you actually need.

Upgrade path
Supabase โ€” Cloud Database
  • Access from anywhere โ€” not tied to one machine.
  • Team sharing: multiple people can query the same database.
  • Requires: account setup, API key, schema design, connection string config.
  • More friction to get started โ€” another hurdle for beginners.
  • Worth it later, once you need multi-machine access or team sharing.
โš™๏ธ
You don't need to know SQL. Ask Claude Code to plan the database schema based on your funnel. Tell it what metrics you need to track, and it will figure out the optimal table structure and how they relate to each other. Use /create-plan for this โ€” it forces Claude to consider how the schema connects to the rest of your workspace.
Section 04

API Connectors โ€” Hooking Into Your Platforms

Most platforms you already use have APIs. Getting connected means: getting an API key from each platform's developer settings, storing it in your .env file, and then asking Claude Code to write a script that pulls the data you need.

๐Ÿ“Š
Google Analytics
Website traffic, page views, conversion data, session behavior. Extensive depth available.
API
๐Ÿ”—
Bitly
Click tracking for all your links. Total clicks per link โ€” use snapshots to get daily deltas.
API
๐Ÿ’ณ
Stripe
Revenue, charges, subscriptions, MRR. Dozens of API endpoints โ€” Claude picks the right ones.
API
๐Ÿ“…
Calendly
Bookings data โ€” calls scheduled, show rates, cancellations. Your conversion from visit to call.
API
โ–ถ๏ธ
YouTube
Views, watch time, subscriber data per video and channel. Returns totals โ€” snapshot for deltas.
API
๐Ÿ“‹
Google Sheets
P&L, KPI trackers, manual data your team maintains. A bridge to any data that doesn't have an API.
Sheets API
๐Ÿ“ฃ
Google Ads
Ad spend, impressions, clicks, conversion data. Track ROAS alongside organic funnel metrics.
API
๐Ÿ”
Other Platforms
LinkedIn, Instantly, your CRM, your email platform. If it has an API, Claude can connect it.
Ask Claude
๐Ÿง 
Notion
Project data, CRM records, content calendars. Pull structured data from your Notion workspace.
API
๐Ÿ”‘
API key security: Every key goes into your .env file. This file never gets pushed to GitHub โ€” it stays local on your machine. Use read-only API scopes wherever possible; you're collecting data, not writing it. Ask Claude Code: "How can we make sure this isn't pulling in sensitive data I don't want stored locally?" โ€” it will help you scope down permissions correctly.
Section 05

The Snapshot Pattern โ€” Why Totals Aren't Enough

Here's the catch with most APIs: they return the current total, not a day-by-day breakdown. YouTube tells you a video has 47,200 views โ€” not how many it got yesterday. Bitly tells you a link has 1,340 clicks โ€” not the delta from the day before. To get day-over-day trends, you need to take daily snapshots and calculate the difference yourself.

1
API returns total
YouTube says 47,200 views. Bitly says 1,340 clicks. These are cumulative totals at this moment in time.
2
Daily snapshot saved
Cron job runs at 6 AM. Records today's total for every metric into the local database with a timestamp.
3
Delta calculated
Today's total minus yesterday's total = views gained today. Now you have real daily performance data.
4
Month-to-date emerges
After 30 days, sum the deltas. Compare this month's total to last month's. "Am I green for the month?"
โณ
The warm-up period is real. You need about 7โ€“8 days before you have useful daily data. You need 30+ days before month-over-month comparisons are meaningful. Start the clock immediately โ€” every day you delay is a day of data you don't have. Don't wait until the rest of your system is perfect. Start snapshotting now.
Section 06

The Cron Schedule โ€” Automated, Every Morning

Everything runs on a cron schedule โ€” scheduled tasks that fire automatically at a given time each day. You set these up once and they run without you. Your data is collected, audited, and summarized before you've opened your laptop.

Daily cron schedule โ€” example
06:00 AM
Data collection
Scripts pull from all APIs โ€” YouTube, Google Analytics, Bitly, Stripe, Calendly, Google Sheets. Takes snapshots and writes every metric to the local database with today's timestamp.
06:30 AM
Data audit
An AI agent reviews everything collected. Checks for holes, inconsistencies, and errors. Fixes issues on the spot. Generates a report of what ran, what broke, and suggestions for improving the system.
07:00 AM
Daily brief
Report assembled from the fresh data and delivered โ€” via Telegram, email, or to a file in the workspace. You wake up with your business numbers already in front of you.
โš™๏ธ
How to set up a cron job: Ask Claude Code โ€” "I want to set up a cron job at 6 AM that runs my data collection script." It will create the script, configure the cron entry, and walk you through testing it. You do not need to know cron syntax. Thursday workshops cover recurring tasks and cron in detail.
Section 07

The Data Audit โ€” Trust but Verify

Your data collection will occasionally break. APIs change. Network calls fail. Rate limits hit. If you don't audit, you won't know your data is bad until you're making decisions based on it. The data audit is a 6:30 AM AI agent that checks everything that just ran and reports back.

โš ๏ธ
"If your data isn't accurate, it's useless." An AI that's confident and wrong is worse than one that doesn't have data at all. The audit is not optional โ€” it's what makes everything else trustworthy.
1
Check every data source
Did each API connector run successfully? Are there any gaps in today's data? Are the numbers in expected ranges or do any look suspiciously off?
2
Identify holes and errors
Flag any metric that didn't collect, any connector that returned an error, any value that looks like an outlier or data anomaly.
3
Fix issues on the spot
If it can retry failed connectors or correct minor data issues automatically, it does. Simple fixes happen without you โ€” edge cases get flagged for your attention.
4
Leave a report and suggestions
Generate a report of what ran, what broke, and what could be improved. After 7 days of reports, use /create-plan to analyze patterns and make systematic improvements.
Section 08

Mission Control Dashboard

The payoff. Once data is flowing, ask Claude Code to build you an HTML dashboard that visualizes everything โ€” your full funnel, month-to-date vs last month, all key metrics at a glance. Open it in a browser every morning. One screen. Full picture.

You customize it entirely through conversation. Tell Claude what you want to see, in what order, at what level of detail. It rebuilds the dashboard to match. No code required.

Mission Control โ€” Month to Date
April 2026 ยท Updated 06:32 AM
Views MTD
184k
โ†‘ 12% vs last month
Link Clicks
3,240
โ†‘ 8% vs last month
Bookings
47
โ†“ 3% vs last month
Revenue MTD
$42k
โ†‘ 18% vs last month
Example only โ€” yours shows your real data from your real platforms
โœ“
The only question that matters: "Am I green for the month?" If this month is tracking better than last month across the metrics that count โ€” revenue, bookings, top-of-funnel โ€” life is good. This dashboard gives you that answer in under 10 seconds, every morning.

Building the dashboard also forces good data hygiene โ€” it requires you to confirm you're capturing the right metrics in the right structure. If something looks wrong in the dashboard, you know to fix the collection script.

Section 09

/create-plan + /implement โ€” Why This Workflow Beats Plan Mode

When you're building Data OS โ€” database schema, API connectors, cron scripts, the dashboard โ€” use /create-plan followed by /implement in a fresh agent, rather than relying on Claude's native plan mode alone. Here's why it matters.

Step 1
/create-plan [what you want]
More thorough than native plan mode โ€” asks you clarifying questions, considers the full workspace (not just the current session), and thinks about how the change affects everything else. Creates a detailed plan document in plans/ with dated filename.
/create-plan set up Stripe API connector + snapshot table
Step 2
/implement in a fresh agent
Open a new Claude Code instance, run /prime first (maximum context, fresh brainpower), then pass the implement command pointing at the plan file. Fresh start = full token space dedicated entirely to execution.
/implement plans/2026-04-25-stripe-connector.md
  • Prevents workspace drift: /create-plan forces consideration of how the change affects the rest of the workspace. Without it, features can drift โ€” each one unaware of what else has been built.
  • Fresh agent = maximum power: If you use the same Claude session from planning through implementation, you're burning token space on the planning conversation. Fresh instance + /prime = full context window dedicated to doing the work.
  • Plans are reusable: A well-written plan in plans/ can be reviewed, shared, modified, and re-implemented. You have a record of intent, not just code.
  • Documentation built in: Add a documentation step to your implement command โ€” whenever something major is implemented, Claude creates associated documentation automatically.
Security

API Key Security โ€” Non-Negotiable

  • All keys go in .env โ€” never anywhere else. Your .env file stays local on your machine. It is in your .gitignore. It never goes to GitHub. Ever.
  • Use read-only scopes. You're collecting data, not writing to platforms. Every API you set up should have the minimum permissions needed โ€” typically read-only. Check each platform's developer settings for scope options.
  • Don't store sensitive customer data locally. Your Data OS is for your business metrics โ€” funnel data, revenue, performance. It is not a CRM of customer PII. Keep those boundaries clear, especially when setting up for clients.
  • Ask Claude to audit the scope. Before finalizing any API connection: "How can we make sure this isn't pulling in any sensitive data I don't want stored locally?" Claude will walk you through scoping it correctly.
Key Takeaways

What to Remember

Takeaway 01
Map your funnel before touching an API
You can't build the right data collection without knowing what you're trying to measure. Sketch your funnel โ€” top to bottom โ€” and identify where each metric lives before writing a single line of code.
Takeaway 02
Start local, upgrade later
SQLite on your machine. Zero friction, lightning fast, works offline. Supabase is the upgrade path for team access โ€” not the starting point. Don't create friction that delays getting started.
Takeaway 03
APIs give totals โ€” you need to calculate deltas
YouTube views, Bitly clicks, Stripe revenue โ€” most APIs return a running total. Take daily snapshots and calculate the delta yourself. Start snapshotting immediately โ€” the warm-up period is real.
Takeaway 04
The audit is not optional
If your data collection breaks silently and you don't know, you'll make decisions on bad data. The 6:30 AM audit catches errors, fixes them, and tells you how to improve. Bad data = useless AIOS.
Takeaway 05
The one question the dashboard answers
"Am I green for the month?" This month vs last month across your key metrics. Design your dashboard around this question. Everything else is noise until you can answer this one clearly.
Takeaway 06
Use /create-plan + fresh agent to build
Build Data OS components with /create-plan (thorough, workspace-aware) then /implement in a fresh primed agent (maximum token space). Prevents drift. Creates a record of intent. Builds in documentation.
Build It

Your Data OS Setup Sequence

  • Sketch your funnel today. Draw it on paper or in a doc โ€” top of funnel to revenue, every stage, every metric, every platform. This is the plan your API scripts will follow.
  • Add data sources to current-data.md manually first. Before any automation, fill in today's numbers by hand. This gives Claude a baseline to work from, and tells you exactly what you're going to automate.
  • Set up your first API connector โ€” pick the easiest one. Bitly is a good starting point: simple API, clear use case, direct value. Use /create-plan + /implement. Get one working before adding more.
  • Set up the cron job immediately. Even if you only have one data source connected, start the daily snapshot schedule now. Every day you wait is a day of data you don't have.
  • Add the data audit at 6:30 AM. Right after collection. It catches problems before you start your day.
  • Build the dashboard once you have 7+ days of data. Ask Claude: "Build me an HTML mission control dashboard that shows month-to-date vs last month for my key funnel metrics." Customize from there.
Continue Learning

Related Modules