/aaif-events:aaif-backupfrom AAIF Community Events Toolkit
Creates versioned local backups of AAIF ops data (Google Sheets, Drive files, or local files) before risky edits. Snapshots are immutable and timestamped for full history.
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.
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.
Snapshot irreplaceable data to local, versioned files before risky edits (a bulk clean, a schema change, a column move). Every run writes a new immutable file — nothing is ever overwritten — so the backup folder is a full version history you can diff or restore from.
Prereq: the gws CLI must be installed and authenticated (aaif-check-setup confirms it) for
Drive targets. Local-file backups need no auth.
scripts/backup.py)# default — back up the AAIF Community Intake Ops sheet (exported to .xlsx)
python3 <skill-root>/scripts/backup.py
# back up any Drive file by id (native Docs/Sheets/Slides -> .docx/.xlsx/.pptx)
python3 <skill-root>/scripts/backup.py <driveFileId>
# back up a local file (copied verbatim)
python3 <skill-root>/scripts/backup.py ./path/to/file.xlsx
# write snapshots somewhere other than the data folder's backups/
python3 <skill-root>/scripts/backup.py --dest /some/dir
<dest>/<slug>/<UTC-timestamp>.<ext>
e.g. backups/aaif-community-intake-ops/2026-07-03T142530Z.xlsx
<dest> defaults to backups/ in the toolkit's data folder: the repo
root in a checkout, ~/Library/Application Support/AAIF in an installed
plugin, which survives plugin updates (Claude keeps one install folder per
version). Never the session folder, which from Goose or Claude Desktop is
the operator's own, often synced, folder. The script prints the snapshot's
full path; tell the user. backups/ is git-ignored, so the binary
snapshots never enter the repo — and the script verifies that at run time: it
refuses to start if the destination is committable (not git-ignored, or
already holding tracked files) inside any repo. A --dest outside every repo
is always fine..xlsx, a Doc to
.docx, Slides to .pptx; already-binary Drive files and local files are copied as-is.There is no automated restore — it is a deliberate, eyes-open step.
backups/<slug>/. Filenames are UTC
timestamps, so the listing is the version history in order.bash gws drive files update --params '{"fileId":"<ID>"}' \ --upload <file> --upload-content-type <mime>
For the Intake Ops sheet, prefer copying values back over replacing the
file, so the role-tab formulas and conditional formats stay intact.aaif-clean-data apply or any bulk sheet edit. That is
the whole point of the skill.--dest
outside every repo is always fine. This is a guard, not a nuisance: the
snapshots are binary copies of real applicant data.ARRAYFORMULA columns; an .xlsx re-upload lands literals over them.1cWkjCI5AGK9RX_fs23P5jRA4I2nixgnHuapvwHseZ5o),
the one source of applicant data that cannot be regenerated.python3 <skill-root>/scripts/test_backup.py
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-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./aaif-clean-dataNormalize and fix data quality in the AAIF Community Intake Ops sheet — canonicalize LinkedIn URLs, fix name/city casing & whitespace, derive each person's city from the form's free-text answer (City > Extracted, capital when only a country is given), flag bad/missing emails and duplicates, and surface broken rows in bright red. Reports & proposes by default; only writes on explicit approval. Use when asked to clean up / normalize / fix the intake data.Other plugins' skills for the same job