Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .ai-sessions/session-20261111-1113-buffer-pattern.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Session Summary: Buffer Social Post Pattern

**Date**: 2026-11-11
**Duration**: ~15 minutes (same conversation as the December setup)
**Conversation Turns**: 1 (Mason connected the Buffer MCP and asked for the posting pattern and a skill update)
**Estimated Cost**: low (one 95-post listing, five channel reads)
**Model**: Claude Fable 5.1

## Key Actions

- Read every sent Buffer post from Jul 15 to Nov 11 2026 (95 posts, 5 channels). Meetup posts follow a fixed two-round pattern: an announcement 3 to 7 days out via the queue, and a "TONIGHT" post the meetup morning at custom times, same card image, tag "Monthly Meetup", long copy on Facebook/LinkedIn/Mastodon and a 280-character cut on X/Bluesky, link `http://pytexas.org/meetup`.
- Wrote `references/buffer-posts.md` (channels, rounds, timing, copy template, procedure, draft-first consent gate) and added Step 12 to SKILL.md; the Todoist report moved to Step 13.
- Folded in the pending corrections that never reached main: Gmail account check alongside Drive's, MKE named and now joining the network, fan-out lag and the `?type=upcoming` page note.
- Drafted December's long and short copy in the scratchpad; nothing created in Buffer.

## Prompt Inventory

| Prompt/Command | Action Taken | Outcome |
|---|---|---|
| "read prior months for posts and figure out the pattern... update the local skill" | list_posts + get_channel reads, reference and skill edits | Branch `buffer-social-posts`, PR to follow |

## Efficiency Insights

**What went well:**
- One `list_posts` page covered four months; the saved JSON parsed locally in one pass.

**What could improve:**
- The `list_posts` result overran the tool cap and had to be parsed from disk; filter by `tagIds` next time to keep it inline.

**Course corrections:**
- None.

## Process Improvements

- Buffer writes get the same consent gate as Discord: show all posts, drafts by default, schedule only on an explicit yes.

## Observations

- Buffer re-hosts image assets on its own S3 at create time, so a signed Canva export URL is enough as the image source.
- Posting goal on the X channel shows "AtRisk" with 0 of 2 posts this week.

## Suggested Skills for Next Session

- `meetup-update`: create December's ten Buffer posts once Mason approves the copy.
25 changes: 20 additions & 5 deletions .claude/skills/meetup-update/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ The Todoist subtasks and how this skill handles each:

1. **Update Meetup Website** - automated here: archive the held meetup, add the speaker to authors, update the homepage, open a PR
2. **Create Canva Card** - attempted via the Canva MCP; flagged with the design's edit link if editing fails
3. **Send Social Media Assets to Kassandra** - handled by posting to the Discord marketing channel webhook
3. **Send Social Media Assets to Kassandra** - handled by posting to the Discord marketing channel webhook, plus the Buffer posts in Step 12
4. **Create Discord Event** - automated via `scripts/create_discord_event.py`
5. **Create Network Event on Meetup** - manual by default: the skill hands Mason a paste block and he creates it in the pro dashboard (see `references/meetup-event.md`)
6. **Create Event on Non-network meetups (MKE)** - manual, flagged at the end
6. **Create Event on Non-network meetups (MKE)** - MKE Python Meetup is joining the pro network as of November 2026, so the network event should cover it; verify it like the other groups

Beyond the Todoist list, the skill also drafts the month's Mailchimp newsletter and creates the meetup-night materials in Drive: the month folder, the run of show doc, and the attendance and questions forms.

Expand Down Expand Up @@ -188,6 +188,7 @@ Never send the announcements with a `TBD` or an unpublished link in them, and ne

Create the month folder, run of show doc, and the attendance and questions forms in Google Drive.
Verify the Drive connector is on the PyTexas account before creating anything (see `references/drive-artifacts.md`); it can silently reconnect to a personal account, which looks like data loss.
The same goes for Gmail: Mason's Google accounts are separate MCP servers (the pytexas.org ones are labeled with that address), and a known thread id returning "Requested entity was not found" means the wrong account is selected.
Follow `references/drive-artifacts.md` for the folder layout, template locations, and copy procedure, and `references/run-of-show.md` for the fill-in content.
Build the run of show as markdown uploaded with conversion (not HTML), and copy both forms from the "Meetup Forms Template" folder.
Filling the run of show includes research (the local meetups table, current announcements, next month's teaser); follow the Research section of `references/run-of-show.md`.
Expand Down Expand Up @@ -221,11 +222,17 @@ If a webhook cannot be decrypted, flag that notification as a manual step instea

1. **Create Discord Event** in the PyTexas Discord - automated. Run `scripts/create_discord_event.py` with the month TOML and `--image <card.png>` under `sops exec-env`; procedure in `references/discord-event.md`.
2. **Create Network Event on Meetup** (meetup.com) - manual by default. Render the paste block in `references/meetup-event.md` (title, description, date and time, topics, card PNG path), put it in the handoff banner, and wait for Mason to create the event in the pro dashboard and send back its URL for `meetup_event_url`. Do not run `scripts/create_meetup_event.py` unless Mason asks for it that month; the API path cancels network propagation and its photo upload is not processed (2026-10-27).
3. **Create Event on Non-network meetups** (MKE) - manual, no known API path.
3. **Create Event on Non-network meetups** (MKE) - the MKE Python Meetup group, <https://www.meetup.com/mke-python-meetup/>. It sat outside the pro network through November 2026 (Mason created its copy by hand each month); it is being added to the network, after which the network event's fan-out should reach it. Verify it the same way as the other groups by reading its upcoming events page (`?type=upcoming`; the default events page only carries past events in its `__NEXT_DATA__`).

MKE and meetup.com are both manual; the skill supplies the exact text for each.
Network propagation can lag the dashboard publish by hours; the API fan-out creates hidden per-group copies that go live once the network record does. If a copy is missing on meetup night, Mason creates it by hand from the same paste block.

### Step 12: Report Against the Todoist Checklist
### Step 12: Schedule the Social Posts in Buffer

Two rounds of posts on all five Buffer channels: an announcement about a week before the meetup and a "TONIGHT" post the morning of.
Copy template, timing, modes, and the consent gate are in `references/buffer-posts.md`.
Show Mason all ten posts first. On his yes, posts due more than 72 hours out are scheduled directly and anything closer is saved as a draft for him to approve (his rule, 2026-11-11). The card image must be a durable URL: commit it under `docs/assets/images/cards/` and use the commit-pinned raw GitHub link.

### Step 13: Report Against the Todoist Checklist

Finish by reporting each "Schedule Monthly Meetup" subtask as done, drafted awaiting Mason's review, or still manual.
Do not check off subtasks in Todoist without Mason's confirmation; the website subtask in particular is not done until the PR merges and the headshot lands.
Expand All @@ -240,6 +247,13 @@ in the PyTexas Discord. Calculate the correct date for the upcoming month. For e

## Content Guidelines

### Never Name the Speaker's Employer in Promo Copy

Promotional copy written by the skill (social posts, the Canva card's role line, the newsletter intro, Discord and meetup.com descriptions, announcements) names the speaker and, where a role slot exists, their job title only. Never their company.
Speakers often do not want their words read as representing their employer.
The speaker's own bio, quoted verbatim on the site and in the run of show, may mention the company; that is their text, not ours.
Rule set by Mason on 2026-11-11 after a draft read "Microsoft's Kriti Faujdar".

### Talk Description on Homepage

Use only the first paragraph or a concise summary of the talk description on the homepage.
Expand Down Expand Up @@ -307,3 +321,4 @@ After drafting, remind Mason that Gmail rewrites bare URLs in API-created drafts
- **`references/meetup-event.md`** - meetup.com network event: the paste block Mason creates it from (default), plus the opt-in script path and why it is not the default
- **`references/local-meetups.md`** - How to get real event listings from meetup.com (WebFetch can't) using `scripts/scrape_local_meetups.py`
- **`references/announcements.md`** - Discord webhook announcements: `scripts/build_announcements.py` (TOML in, payloads out; templates live in the script) + `scripts/send_discord_announcement.py`, Canva card-image handling
- **`references/buffer-posts.md`** - The two-round social post pattern (announcement and day-of) across the five Buffer channels, copy template, timing, and the draft-first consent gate
59 changes: 59 additions & 0 deletions .claude/skills/meetup-update/references/buffer-posts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Social Posts via Buffer

The monthly meetup gets two rounds of social posts from the PyTexas Buffer account (organization "My Organization", account conference@pytexas.org, timezone America/Chicago), one round about a week out and one the morning of the meetup.
This file records the pattern read out of the August through November 2026 posts and how the skill reproduces it.
Buffer is a connected claude.ai MCP; call `get_account` first and `list_channels` for IDs rather than hardcoding them (this repo is public).

## Channels

All five channels get every meetup post: Facebook page "PyTexas Foundation", X "pytexas", Bluesky "pytexas.org", Mastodon "pytexas" (fosstodon.org), LinkedIn page "pytexas-foundation".

## The Two Rounds

| Round | When | Mode | Observed dates |
| --- | --- | --- | --- |
| Announcement | 3 to 7 days before the meetup | `addToQueue` (next free slot on each channel) | Aug 1 for Aug 4, Aug 26 for Sep 1, Sep 29 for Oct 6, Oct 30 for Nov 3 |
| Day-of | the meetup morning, roughly 8:00 to noon Central | `customScheduled` | Aug 4, Sep 1, Oct 6, Nov 3 |

Queue slots (Central) at the time of writing: X 10:19 and 12:15, Bluesky 10:30, Mastodon 11:30, LinkedIn 11:51, Facebook varies by weekday.
`addToQueue` fires at the next free slot, which is fine when the posts are made a few days out but wrong when the skill runs two or three weeks ahead. So the skill uses `customScheduled` for both rounds: the announcement round on the Tuesday one week before the meetup, the day-of round on the meetup date, each at 9:00 (Facebook), 9:19 (X), 10:30 (Bluesky), 11:30 (Mastodon), 11:51 (LinkedIn) Central. December 2026 was scheduled this way.

Every post:

- has the month's promo card as its single image asset (1600x900 PNG from the Canva deck). Buffer does **not** re-host an API-supplied image at create time; it keeps the URL and fetches it at publish, so a signed Canva export link (hours of life) would be dead by the due date. Commit the card to the repo as `docs/assets/images/cards/YYYY-MM.png` and use the commit-pinned raw URL `https://raw.githubusercontent.com/pytexas/meetup/<commit sha>/docs/assets/images/cards/YYYY-MM.png`, which survives branch deletion and squash merges. Verified 2026-11-11.
- carries the tag "Monthly Meetup" (Buffer tag id from `list_posts` output; August also carried "Training" for a talk that was a workshop)
- uses `schedulingType: automatic`

## Copy Template

Three parts, separated by blank lines:

1. **Hook.** One or two sentences from the abstract, trimmed, with `#PyTexas` and `#Python` worked in and one topic hashtag (`#ThreatModeling`, `#SoftwareEngineering`). The speaker's name appears when it reads naturally ("Nishanth Sirikonda reframes architecture as..."). Name only, never the employer (SKILL.md Content Guidelines).
2. **Call to action.** Announcement: `Join us <Mon D> @ 8p CST in our Discord to learn more!` Day-of: `Join us TONIGHT @ 8p CST in our Discord to learn more!`
3. **Link.** `http://pytexas.org/meetup` on its own line.

Two lengths:

- **Long** (Facebook, LinkedIn, Mastodon): the full hook.
- **Short** (X, Bluesky): the same hook cut to fit X's 280 characters including the link; Bluesky allows 300 but gets the X text so the two stay identical.

November 2026 long version, for reference:

```text
Security problems rarely begin as such. This #PyTexas talk introduces #ThreatModeling as a lightweight habit for #Python teams building AI, data, and cloud-connected systems, focused on collaboration patterns that help developers, security teams, and product stakeholders reason together.

Join us Nov 3 @ 8p CST in our Discord to learn more!
http://pytexas.org/meetup
```

## Procedure

1. `get_account` for the organization id and `currentTime`; `list_channels` for the five channel ids.
2. Write the long and short copy from the month TOML's `abstract` and `talk_title`; check the short version is 280 characters or fewer.
3. Commit the card PNG to `docs/assets/images/cards/YYYY-MM.png` on the month's branch, push, and use the commit-pinned raw URL as the image asset, with alt text "<Month> <Year> PyTexas Meetup promo card: <talk title> with <speaker>, <date> at 8pm Central in the PyTexas Discord".
4. Show Mason all ten posts (two rounds, five channels) with their mode and times.
5. **Only on Mason's explicit yes:** create them, applying the 72-hour rule he set on 2026-11-11: a post whose due time is more than 72 hours away goes straight to `scheduled` (someone will see it in Buffer before it fires); a post due within 72 hours is created with `saveToDraft: true` for him to approve in the UI. Both rounds use `customScheduled` with `dueAt`. Never `shareNow`.
6. Report the ten post ids. Edits go through `edit_post`; a wrong post is removed with `delete_post` before its due time.

Facebook posts need `metadata.facebook.type: "post"`.
`delete_post` removes a post from Buffer only; anything already published stays on the network, so the same consent rule as the Discord webhooks applies (SKILL.md Step 10).
1 change: 1 addition & 0 deletions .claude/skills/meetup-update/references/canva-cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ The workflow, verified end to end on the real deck on 2026-07-22:
7. If any step cannot complete cleanly, cancel the transaction and give Mason the design's edit URL plus the exact text to place; never leave a half-edited page.

The card layout slots: "Monthly Meetup" heading (fixed), talk title, date ("DD Month YYYY"), time ("8:00 - 9:00pm CST", fixed), "PyTexas Discord Server" (fixed), speaker name, speaker role line, circular headshot, RSVP URL (fixed).
The role line is the job title alone ("Senior Software Engineer", "Computer Science Student"), never "Title, Company"; see the employer rule in SKILL.md.

The name box is about 326px wide and wraps a name longer than roughly 18 characters onto the role line. For a long name, add `resize_element` (width 490) and `position_element` (left 995.4, same top) on the name element in the same transaction; that centers it on the 510px pill (used for "Chakra Pavan Kumar Kota", 2026-10-27). Always inspect the returned thumbnail for overlap before committing.
The headshot's public URL can be the raw GitHub URL of the committed image on main, e.g. `https://raw.githubusercontent.com/pytexas/meetup/main/docs/assets/images/<file>`.
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/meetup-update/references/newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Sections in order; only the meetup announcement changes month to month:
### Speaker Month (model: June 2026, campaign `065684fea1`)

- **Heading:** benefit-phrased, e.g. "Learn to become a better mentor at this month's Meetup"
- **Intro:** `Join us on M/D/YYYY at 8:00pm CST for our monthly PyTexas Meetup. <role/affiliation> <speaker name> joins us to <one-line topic hook>.`
- **Intro:** `Join us on M/D/YYYY at 8:00pm CST for our monthly PyTexas Meetup. <role> <speaker name> joins us to <one-line topic hook>.` Role is the job title only, never the employer (SKILL.md Content Guidelines).
- **Body:** the talk abstract, speaker's own words (first person is fine)
- **Closer:** `We'll see you in the Discord server for chat and the meetup!`

Expand Down
Binary file added docs/assets/images/cards/2026-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading