Architecture overview

Four layers, top-to-bottom. The knowledge layer is the source of truth. Execution and intelligence layers read and write against it. The live data layer serves browser dashboards and bypasses Notion CORS.

Stratum operational architecture — four layers Layer 1 Knowledge: Notion workspace with seven teamspaces. Layer 2 Execution: stratum-cli running on Mac launchd schedules, doing Notion read and write. Layer 3 Intelligence: three shared Claude Code plugins (SC-operations, SC-messaging-quality, SC-notion-ops) and two personal plugins (PL-venture-studio, overnight-design-scan), invoked on demand from a Claude session. Layer 4 Live data: sc-standup-worker, sc-engine.fly.dev, sc-registry-api, and sc-email-tracker-worker, serving JSON to the static HTML dashboards. Arrows show the flow of data between layers; dashed arrows indicate read-only access. Layer 1 · Knowledge Notion — canonical content, 7 teamspaces Intelligence & Synthesis signals · insights · T1-T4 Pipeline & GTM leads · facilities · phrases Strategy positioning · monetization Operations tracker · sprints · WQ Product & Tech PRDs · specs · decisions Back Office HR · legal · funding Layer 2 · Execution stratum-cli — Node.js, scheduled via Mac launchd Lead Pipeline --lead-* · --facility-enrich Outreach & Engagement --poi-batch · --compose · --sync Daily Run Orchestrator --daily-run · 11 steps Ops & Dashboard Gen --ops-* · --pipeline-data Layer 3 · Intelligence Claude Code plugins — on-demand skills inside a Claude session SC-operations 15 skills · ops & governance SC-messaging-quality 3 skills · phrase registry SC-notion-ops 2 skills · workspace quality PL-venture-studio personal · venture docs overnight-design-scan personal · design audit Layer 4 · Live Data Cloudflare Workers + Fly.io APIs — serving JSON to static HTML dashboards sc-standup-worker Notion proxy · /ops-pulse · drafts sc-engine.fly.dev outreach pipeline live data sc-registry-api phrase & evidence registry · 15 endpoints sc-email-tracker-worker opens · clicks · pixel + redirect
  • Knowledge
    Notion workspace — canonical content lives here. Skill logic lives in plugin files, not in Notion.
  • Execution
    stratum-cli — the only thing that writes to Notion on a schedule. Runs nightly and on demand.
  • Intelligence
    Claude Code plugins — reasoning skills invoked from a Claude session, read-on-demand.
  • Live data
    Workers + APIs — serve live JSON to dashboards because Notion API is CORS-blocked from the browser.

Plugin index

Active plugins distributed via claude-team-config for the SC-* set, and patrick-local for personal plugins. Skills inside each plugin are invoked with /<skill> in a Claude session.

SC-operations

SHARED · OPS & GOVERNANCE · 15 SKILLS

Operational intelligence over the Notion Operations Tracker, governance docs, and milestone gates.

  • /blocker-sweepWeekly sweep of blocked tasks; finds systemic patterns and chain blocks
  • /compliance-gateMilestone readiness rollup across Legal, DMP, Security Posture, contracts
  • /daily-standupMorning prep: in-progress, blockers, overnight completions, recent movement
  • /initiative-reviewTop-down review of an initiative; hierarchy, orphans, critical path, rollup
  • /kb-applyApply approved KB refresh proposals back to questions.json
  • /kb-refreshDetect drift between knowledge builder and canonical Notion source pages
  • /milestone-reviewSurface Pending/Blocked milestones, task work, time since last movement
  • /nightly-ops-sweepRuns daily-ops-sweep.sh to scan git + Claude sessions → Tracker items
  • /ops-hygiene-sweepsDatabase hygiene, data quality, milestone/goal tracking conventions
  • /ops-sweepNightly session sweep: today's commits + modified files → Tracker items
  • /ops-triageTriage protocol for blocked/complex/multi-stakeholder work; pulls Notion state
  • /progress-reportDay N report from Tracker + git + pipeline (grade, snapshot, metrics)
  • /protocol-auditGovernance doc staleness, fragmentation, drift-from-reality scan
  • /sprint-closeClose a 2-week sprint; review completion, slippage, carry-over discipline
  • /stale-citation-alertEvidence Registry hygiene sweep for stale citations and missing dates

SC-messaging-quality

SHARED · PHRASE REGISTRY · 3 SKILLS

Copy and phrase quality — keeps the cross-project phrase and evidence registries healthy.

  • /auditLight-pass cross-project phrase registry audit; field gaps, missing registries
  • /evidence-hygieneEvidence Registry hygiene: completeness, persona fit, dedup, authority alignment
  • /hygieneFull phrase registry hygiene: re-rate, strip channel labels, deprecation review

SC-notion-ops

SHARED · WORKSPACE QUALITY

Notion page formatting and workspace quality enforcement.

  • /formatNotion page formatting standards and scaffolding
  • /wq-checkAudit a page against WQ standards and fix issues

PL-venture-studio

PERSONAL · VENTURE INCUBATION

Personal plugin (not shared with the team). Venture incubation docs and craft.

  • /buildGenerate venture BUILD doc set
  • /craftRefine and polish venture documentation

overnight-design-scan

PERSONAL · PORTFOLIO MONITORING

Personal plugin. Overnight design quality monitoring across the venture portfolio.

  • scanSweep portfolio dashboards for design quality regressions

CLI command index

stratum-cli is a Node.js CLI living at stratum-cli/. All operational intelligence and Notion write-back happens here. Commands are grouped by domain.

Lead pipeline

CLI · LEADS & FACILITIES

Import, triage, and enrich leads + behavioral health facilities.

  • --lead-importImport LinkedIn/CSV connections into Lead Gen DB
  • --lead-triageMap roles to P:/R:/A: prefixes, set Track
  • --lead-enrichWeb-enrich lead profile via Firecrawl
  • --facility-enrichEnrich BH facility records (ICP tier, specialties)

Outreach

CLI · COMPOSE & SEQUENCE

Generate per-prospect briefs, compose drafts, advance cadence.

  • --poi-batchGenerate Point-of-Interest briefs for prospects
  • --compose-outreachThree-layer prompt → Gmail draft (no template DB)
  • --sequence-advanceAdvance Day 1→4→10→Nurture cadence

Engagement

CLI · TRACKING & SYNC

Pull open/click events from the tracker worker; report pipeline state.

  • --engagement-syncPull tracker events → patch Lead Gen + Outreach Events
  • --pipeline-statusReport lead funnel + engagement distribution

Daily ops & dashboards

CLI · ORCHESTRATION & DATA

Orchestrate the whole pipeline, sweep ops tracker, generate dashboard JSON.

  • --daily-runFull 11-step pipeline orchestration (cron-friendly)
  • --ops-tracker-hygieneC1–C8 flag sweeps on Operations Tracker
  • --ops-dashboard-dataGenerate ops/data.json for the Operations Dashboard
  • --pipeline-dashboard-dataGenerate pipeline/data.json for the Pipeline Dashboard

Workers & APIs

Live data layer. Required because the Notion API is CORS-blocked from the browser — every dashboard data fetch goes through one of these.

sc-standup-worker

CLOUDFLARE WORKER · NOTION PROXY

Notion proxy for browser dashboards. Lives in internal-dashboards/standup-worker/.

  • GET /Active + done tasks (118 items)
  • GET /ops-pulseLive health pulse counts
  • POST /synopsisDaily synopsis generation
  • GET /draftsList queued drafts
  • POST /drafts/sendSend a queued draft
  • POST /drafts/discardDiscard a queued draft

sc-engine.fly.dev

FLY.IO API · OUTREACH PIPELINE

Live outreach pipeline data. Backs the Pipeline Dashboard (/api/dashboard/pipeline-data, ~1055 leads).

sc-registry-api

CUSTOM DOMAIN · REGISTRY

15-endpoint Registry API at sc-registry-api.stratumcollective.co. Backs the Phrase & Evidence Registry SPA. CORS open, no proxy needed.

sc-email-tracker-worker

CLOUDFLARE WORKER · OPENS & CLICKS

Email tracking pixel + link redirector. Records open/click events to Cloudflare D1. Auto-deploys via GitHub Actions on push to main. Polled by --engagement-sync.

Daily-run pipeline

--daily-run orchestrates 11 steps. It runs nightly at 3:00 AM under launchd, and can also be invoked manually. The terminal step auto-commits and pushes data files so Cloudflare Pages picks up the refresh on next deploy.

  1. 01lead-triage
  2. 02lead-enrich
  3. 03facility-enrich
  4. 04poi-batch
  5. 05engagement-sync
  6. 06sequence-advance
  7. 07compose-outreach
  8. 08uis-scan
  9. 09ops-dashboard-data
  10. 10pipeline-dashboard-data
  11. 11push-dashboard-data

Schedule

Scheduled tasks run via Mac launchd: nightly ops sweep (2:00 AM), daily-run (3:00 AM), ops hygiene (4:00 AM), weekly KB refresh and UIS synthesize (Mon 8:04 / 9:00 AM), hourly Cloudflare tunnel health-check, and monthly dependency freshness sweep. Full schedule with descriptions: Automation Schedule.