/aaif-events:aaif-syncfrom AAIF Community Events Toolkit
Orchestrates a multi-phase sync of the AAIF estate across Google Sheets, Drive, Slack, and Luma. Each phase measures, proposes, then writes only on approval.
Ships in AAIF Community Events Toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Paths in this skill are relative to this skill directory. Resolve <skill-root>
from the loaded SKILL.md; it is a placeholder, not an environment variable.
This is the only front door for an estate-wide sync. scripts/sync.py owns the
pipeline order; never recreate or reorder it in prose or another runner.
Tooling rule —
gws+ Python only. Every read, edit, and write of a Drive file goes through thegwsCLI, driven from Python. Prefer native Google formats: editapplication/vnd.google-apps.*files with the Docs/Sheets/ Slides API. Drop to byte-level OOXML surgery on the.docx/.pptx/.xlsxzip parts (embedded fonts and untouched parts survive) only when the file genuinely is a stored Office file. Never use LibreOffice /soffice— not to edit, not to convert, and not to render a "just checking it locally" preview: it substitutes local system fonts for the brand fonts and drops OOXML it doesn't understand, so its output and its renders both misrepresent the real file. Same forunoconvand any desktop office suite. To see a file, render it through the API instead — a slide viaaaif_events.slides_export.render_slide_png, a doc viagws drive files copyto a Google Doc →gws drive files exportto PDF → trash the copy. Never round-trip a native Doc through.docx— it strips native features like Tabs.
Seven phases, run in dependency order: a chapter's rows and CRM must hold the
right people before Drive access or Slack rooms follow. Each phase measures
(gather), then proposes (plan), then applies (execute) — and the first
run only reports.
| # | Phase | Subject | Engines live in |
|---|---|---|---|
| 1 | preflight | is the source sound? intake data + the decision queue | aaif-clean-data, aaif-triage-intake |
| 2 | chapters | does the chapter exist — on the sheet, in Drive, in Slack? | aaif-sync-chapters, aaif-sync-slack, aaif-audit-slack |
| 3 | organizers | who runs it, and can they reach their own things? | aaif-sync-organizers, aaif-sync-slack |
| 4 | events | is every chapter's page live, and is it still running events? | aaif-audit-slack, aaif-sync-chapters |
| 5 | speakers | what does the community talk about? | aaif-audit-slack |
| 6 | hosts | where does it meet? (no estate-wide engine yet) | — |
| 7 | workspace | what does an ordinary member see? — then the Slack audit as one page | aaif-audit-slack |
python3 <skill-root>/scripts/sync.py. With no flags it runs the
whole pipeline and writes nothing.--write crosses only open gates. Drive grants remain report-only; triage
remains human-only; Slack mutations also require explicit approval recorded
by --i-have-approval.--i-have-approval on the agent's own initiative.Exit codes are part of the interface: 0 means in sync, 2 means drift,
applied writes, a partial result, or a human gate, and 1 means failure.
Read WORKFLOW.md before running the pipeline. It defines phase order, stage order, the five gates, report interpretation, cached state, Ops Notes, verification, and cleanup. For scheduled runs, also read references/nightly.md.
WORKFLOW.md (opens in a new tab)references/nightly.md (opens in a new tab)scripts/install_ops_notes.py (opens in a new tab)scripts/nightly.py (opens in a new tab)scripts/render_report.py (opens in a new tab)scripts/sync.py (opens in a new tab)scripts/test_install_ops_notes.py (opens in a new tab)scripts/test_render_report.py (opens in a new tab)scripts/test_sync.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aaif/community-events --plugin aaif-events24 skills in this plugin
/aaif-announcement-postWrite the LinkedIn launch/announcement post for an AAIF event when RSVPs open. Use when asked to draft the announcement, launch post, or "RSVPs are open" post for an AAIF event./aaif-attendee-reminderWrite the pre-event reminder to people who RSVP'd to an AAIF event (sent ~1 week out and the morning of). Use when asked to draft the attendee reminder / "see you tomorrow" note for an AAIF event./aaif-audit-slackAudit the community Slack workspace and report it as one HTML page — whether every chapter has its public and organizer channels and the right people in them, which subject-matter rooms have gone quiet or overlap, and what the headline member count is actually made of. Use when asked about Slack coverage for chapters, whether organizers are in their channels, who is in an -organizers channel, workspace health, channel clutter, inactive channels or accounts, or the newcomer experience./aaif-backupTake a versioned local backup of critical AAIF ops data — the Community Intake Ops sheet by default, or any Drive file / local file you name. Snapshots are immutable and timestamped so you keep a full history. Use when asked to back up / snapshot the intake data (or another file) before a risky edit./aaif-carousel-copyWrite copy for a 6-slide LinkedIn carousel announcing an AAIF event. Use when asked to draft carousel slides/copy for an AAIF event (built from the LinkedIn Carousel template)./aaif-check-setupCheck that this computer is ready to run the AAIF toolkit — Python, the full plugin install, the gws Google Workspace tool and its Google sign-in, edit access to the Community Intake sheet, the Slack token, the Luma key, and Chrome for PDF reports — and explain in plain language how to fix anything missing. Read-only. Use when asked to check my setup, test whether the toolkit works, after installing it on a new computer, or when another AAIF skill fails because a tool, sign-in, token or key is missing.Other plugins' skills for the same job