← Connections
X

X Posts

Your tweets archived in markdown.

What it does

An IFTTT applet logs your tweets to a Google Sheet, and a sync script writes them to monthly markdown files in your repo. This feeds into your identity profile, letting Patina understand your public interests, opinions, and how you communicate.

Used by

/sync-twitter /sync /sync-identity

Setup

1

Create an IFTTT applet

Since X's API is restrictive, Patina uses IFTTT as a bridge. Create a free IFTTT account if you don't have one.

  1. Go to ifttt.com/create
  2. For the trigger ("If This"), choose X / Twitter and select "New tweet by you"
  3. For the action ("Then That"), choose Google Sheets and select "Add row to spreadsheet"
  4. Name the spreadsheet something like "My Tweets"
  5. Turn on the applet

IFTTT will now log every tweet you post to a Google Sheet automatically.

2

Publish the sheet as CSV

  1. Open your Google Sheet (IFTTT creates it in your Google Drive)
  2. Go to File → Share → Publish to web
  3. Select the sheet tab and choose CSV format
  4. Click Publish and copy the URL
3

Add the URL to your environment

$ echo "TWITTER_SHEET_URL=https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/pub?output=csv" >> .env
4

Run your first sync

$ bash scripts/sync-twitter.sh

This fetches the CSV, groups tweets by month, and creates files in twitter/YYYY-MM.md.

How it works

The sync script downloads your published Google Sheet as CSV, parses each row (date, handle, text, link), groups them by month, and writes markdown files to the twitter/ directory. Each sync is incremental — existing tweets aren't duplicated. The /sync-all skill includes Twitter sync automatically.