aaif-backup

aaif-backup is a skill for Claude Code from aaif/community-events. It costs 71 tokens per session (1,069 once invoked), scanned A, original, MIT.

A tool for making timestamped, versioned local copies of important AAIF operations data or another named file. AAIF is the Agentic AI Foundation, an organisation that runs AI-agent community events.

In plain words
What is it for?
Backing up the Community Intake Ops sheet by default, or creating an immutable local snapshot of a specified Google Drive or local file.
Why use it?
A backup preserves earlier data before a risky edit, cleanup, schema change, or column move. The stored snapshots keep a history that can be consulted if something goes wrong.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the aaif-events plugin — 20 skills shipped together

Good fit Backing up the Community Intake Ops sheet by default, or creating an immutable local snapshot of a specified Google Drive or local file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aaif/community-events/aaif-backup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aaif/community-events --skill aaif-backup
Clone the repo
git clone --depth 1 https://github.com/aaif/community-events

Made for: Claude Code.

Or install aaif-events, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aaif-backup

README.md
[![agentmods](https://agentmods.dev/badge/skills/aaif/community-events/aaif-backup/github.svg)](https://agentmods.dev/skills/aaif/community-events/aaif-backup)
Your own site
<a href="https://agentmods.dev/skills/aaif/community-events/aaif-backup"><img src="https://agentmods.dev/badge/skills/aaif/community-events/aaif-backup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aaif-backup

Your own site · 80×15
<a href="https://agentmods.dev/skills/aaif/community-events/aaif-backup"><img src="https://agentmods.dev/badge/skills/aaif/community-events/aaif-backup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01069
Opus 5 $0.00036 $0.00535
Sonnet 5 $0.00014 $0.00214
Haiku 4.5 $0.00007 $0.00107

Measured 8d ago against content hash c16d3f04e1d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

aaif-backup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/backup.py, scripts/test_backup.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/aaif-backup/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Backup AAIF Ops Data

Tooling rule — gws + Python only. Every read, edit, and write of a Drive file goes through the gws CLI, driven from Python. Prefer native Google formats: edit application/vnd.google-apps.* files with the Docs/Sheets/ Slides API. Drop to byte-level OOXML surgery on the .docx/.pptx/.xlsx zip 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 for unoconv and any desktop office suite. To see a file, render it through the API instead — a slide via aaif_events.slides_export.render_slide_png, a doc via gws drive files copy to a Google Doc → gws drive files export to 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 (gws-cli-access memory) for Drive targets. Local-file backups need no auth.

Usage (engine: scripts/backup.py)

# default — back up the AAIF Community Intake Ops sheet (exported to .xlsx)
python3 ${CLAUDE_SKILL_DIR}/scripts/backup.py

# back up any Drive file by id (native Docs/Sheets/Slides -> .docx/.xlsx/.pptx)
python3 ${CLAUDE_SKILL_DIR}/scripts/backup.py <driveFileId>

# back up a local file (copied verbatim)
python3 ${CLAUDE_SKILL_DIR}/scripts/backup.py ./path/to/file.xlsx

# write snapshots somewhere other than ./backups
python3 ${CLAUDE_SKILL_DIR}/scripts/backup.py --dest /some/dir

Read the full file on GitHub · 81 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 81 lines · 71 tokens per session scan A c16d3f04e1d7

Subscribe to this mod's changes

aaif-backup is a skill published in the GitHub repository aaif/community-events (9 stars, last pushed 2d ago), licensed MIT. It adds 71 tokens to every session and 1,069 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.