📰 ThumbGate Daily Technical Discoveries & News Engine
This skill automates the daily harvesting, synthesis, UTM attribution, and multi-channel publication of ThumbGate engineering discoveries and release news.
🎯 Architecture & Operating Principles
- Daily Cadence (9:00 AM EST): Runs once per calendar day. Avoids spam while establishing consistent technical authority.
- Dual Scheduling Redundancy:
- Primary: macOS crontab (
0 9 * * * /bin/bash scripts/thumbgate-daily-discoveries-publish.sh ...) - Fallback: macOS LaunchAgent (
~/Library/LaunchAgents/com.thumbgate.daily-publish.plist) - Note: GitHub Actions
schedule:is strictly limited tocodeql.ymlper repo hygiene tests.
- Full UTM Attribution & Tracked Redirects:
- All outbound links to
thumbgate.aimust usebuildUTMLinkfromscripts/social-analytics/utm.js. - Outbound pro/checkout links must route through
/go/pro(serveTrackedLinkRedirectinsrc/api/server.js) to capture first-party funnel telemetry.
- Multi-Surface Staging & Sync:
- Staged locally at
docs/marketing/daily-discoveries/YYYY-MM-DD-<slug>.md. - Synchronized to the CEO's Obsidian Vault at
~/Documents/Igor/Research/Daily-Discoveries/. - Logged idempotently to
.thumbgate/daily-discoveries-ledger.jsonl. - Dispatches to Dev.to / Zernio if API keys are configured.
🛠️ CLI Commands & Usage
# Preview today's technical discovery without making mutations or network calls
node scripts/thumbgate-daily-discoveries-publish.js --dry-run
# Output structured JSON report
node scripts/thumbgate-daily-discoveries-publish.js --json
# Force publish/restage today's discovery even if already logged in ledger
node scripts/thumbgate-daily-discoveries-publish.js --force
# Shell wrapper (used by crontab / launchd)
./scripts/thumbgate-daily-discoveries-publish.sh
# Run test suite
node --test tests/thumbgate-daily-discoveries-publish.test.js
📋 Pre-Flight Verification Checklist
- [ ] Verify
node --test tests/thumbgate-daily-discoveries-publish.test.jspasses. - [ ] Verify outbound links contain valid UTM parameters (
utm_source=daily_discoveries,utm_campaign=daily_technical_discoveries). - [ ] Verify
launchctl list | grep thumbgatereports exit code 0. - [ ] Verify
crontab -l | grep thumbgatecontains the 9:00 AM daily trigger. - [ ] Check
.thumbgate/daily-discoveries-ledger.jsonlfor recent execution receipts.