dmaf

dmaf is a skill for Claude Code, Codex from yhyatt/DMAF. It costs 118 tokens per session (826 once invoked), scanned A, original, MIT.

A setup and operations guide for DMAF, a system that watches WhatsApp groups, recognizes selected people in photos and videos, and backs up matching media to Google Photos. It runs the processing pipeline on Google Cloud after initial setup.

In plain words
What is it for?
Use it to configure the WhatsApp-to-Google-Photos backup pipeline, set up Google Cloud storage and permissions, manage recognized people, and operate the scheduled processing jobs.
Why use it?
It removes the need to manually find, filter, and upload relevant group media. It also avoids processing the same file twice by recording processed files.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; built for openclaw.

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.

agentmods
npx agentmods add skills/yhyatt/dmaf/openclaw-skill
Any agent
npx skills add yhyatt/DMAF --skill openclaw-skill
Clone the repo
git clone --depth 1 https://github.com/yhyatt/DMAF

Made for: Claude Code, Codex.

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 dmaf

README.md
[![agentmods](https://agentmods.dev/badge/skills/yhyatt/dmaf/openclaw-skill.svg)](https://agentmods.dev/skills/yhyatt/dmaf/openclaw-skill)
Your own site
<a href="https://agentmods.dev/skills/yhyatt/dmaf/openclaw-skill"><img src="https://agentmods.dev/badge/skills/yhyatt/dmaf/openclaw-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 826 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00118 $0.00826
Opus 5 $0.00059 $0.00413
Sonnet 5 $0.00024 $0.00165
Haiku 4.5 $0.00012 $0.00083

Measured 5d ago against content hash 8879ba6c3dba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dmaf 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/dmaf-sync.sh), 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.

deploy/openclaw-skill/SKILL.md · 75 lines

How it starts

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

DMAF Skill

DMAF watches WhatsApp groups, recognizes faces you care about in photos and videos, and backs them up to Google Photos automatically. Setup requires an agent. After that: zero LLM tokens — the pipeline runs on a system cron + Cloud Run with no AI calls. This skill covers setup (one-time) and day-to-day operations.

Architecture

WhatsApp groups → OpenClaw (auto-download) → GCS bucket → Cloud Run Job → Google Photos
                  ~/.openclaw/media/inbound/   every 30m    hourly

Key facts:

  • Dedup: Firestore; same file never processed twice (key = sha256(gs://uri))
  • Videos: Sampled at 1–2fps, early exit on first match, full clip uploaded
  • Config: YAML stored in Secret Manager (dmaf-config); update with gcloud secrets versions add
  • Known people: GCS bucket (gs://your-project-known-people/); one subdir per person

Phase 1 — First-Time Setup

Read references/setup.md for the full step-by-step guide.

Summary of what you'll create:

  1. GCP project + required APIs
  2. Service account dmaf-runner with IAM roles
  3. Two GCS buckets: media staging + known people
  4. Google Photos OAuth token → Secret Manager
  5. Config YAML → Secret Manager
  6. Cloud Build + Cloud Run job
  7. Cloud Scheduler (hourly trigger)
  8. Firestore composite indexes
  9. OpenClaw media sync (system cron)

Ask the user for their GCP project ID before starting. All other values can be derived from that.

Phase 2 — Day-to-Day Operations

Read references/ops.md for full operational commands.

Common tasks:

Task Command summary
Trigger manual scan gcloud run jobs execute dmaf-scan --region=us-central1 --async
Check scan logs gcloud logging read 'resource.labels.job_name="dmaf-scan"' --limit=30 --freshness=1h
Add a person Upload photos to gs://your-project-known-people/NAME/, then trigger scan
Update config Edit config YAML, gcloud secrets versions add dmaf-config --data-file=config.yaml
Force sync now bash ~/.openclaw/workspace/scripts/dmaf-sync.sh
Check sync log tail -30 /tmp/dmaf-sync.log

Read the full file on GitHub · 75 lines

Files

What ships with it

3 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. 5d ago First seen · 75 lines · 0 tokens per session scan A 8879ba6c3dba

Subscribe to this mod's changes

dmaf is a skill published in the GitHub repository yhyatt/DMAF (2 stars, last pushed 6mo ago), licensed MIT. It adds 118 tokens to every session and 826 once invoked, about $0.0006 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.