Skip to content
FramesField
SKILL.md Developer / Local Tooling SKILL.md
Verified Nov 29, 2026

C2PA Content Credentials and Metadata Skill

How to install this SKILL.md

Install into .claude/skills/, .cursor/skills/, or .agents/skills/ below when shipping commercial AI campaigns for agency clients, regulated brands, or platforms requiring transparent C2PA provenance metadata.

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to inspect, verify, and embed C2PA Content Credentials on AI-generated image and video deliverables using the official open-source c2patool (contentauth/c2patool)—preventing accidental provenance stripping during post-production.

Compatible agent hosts
Claude Code Cursor Codex
Target tool: c2patool (Content Authenticity) · License: MIT
  1. STEP 01
    Install c2patool & this SKILL.md

    Install the open-source CLI (brew install c2patool or cargo install c2patool), then run the 1-line raw skill command below.

  2. STEP 02
    Inspect raw & edited deliverables

    Ask your agent to audit C2PA manifests on generated PNGs/MP4s before and after FFmpeg/Resolve editing.

  3. STEP 03
    Sign final studio masters cleanly

    Attach valid parent ingredient manifests and ES256 studio certificates so client deliverables carry verifiable origin history.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (SKILL.md) ↓
Claude Code (.claude/skills/) bash
Installs the C2PA verification and signing protocol into .claude/skills/c2pa-provenance-audit/SKILL.md.
mkdir -p .claude/skills/c2pa-provenance-audit
curl -fsSL https://framesfield.com/raw/skills/c2pa-provenance-and-metadata-audit-skill -o .claude/skills/c2pa-provenance-audit/SKILL.md

2. Inspect or download the full SKILL.md file

This is the exact raw file served at /raw/skills/c2pa-provenance-and-metadata-audit-skill.

C2PA Content Credentials and Metadata Skill SKILL.md
---
name: c2pa-provenance-audit
description: Inspect, audit, and sign C2PA Content Credentials manifests on AI-generated images and MP4 video deliverables using the official contentauth c2patool CLI without accidentally stripping provenance metadata during post-production.
---

# C2PA Content Credentials & Provenance Audit Protocol

Whenever auditing media provenance or preparing client-facing AI deliverables that require verifiable C2PA Content Credentials, follow these exact rules:

## 1. Verify `c2patool` Availability First
Check local installation before running manifest commands:
```bash
which c2patool && c2patool -V
```
If missing, instruct the user to install via `brew install c2patool` (macOS) or `cargo install c2patool` / GitHub Releases (`contentauth/c2patool`).

## 2. Inspect Existing Content Credentials (Read-Only)
- **Summary JSON report:**
  ```bash
  c2patool asset.png
  ```
- **Detailed JUMBF box inspection:**
  ```bash
  c2patool asset.mp4 -d
  ```
- **External sidecar verification:**
  ```bash
  c2patool asset.mp4 --external-manifest asset.c2pa
  ```
Report cleanly: active claim generator (the vendor tool or model that signed the file), `digitalSourceType` (`trainedAlgorithmicMedia`), signing certificate status, and any `validation_status` errors (such as hash mismatches caused by post-hoc re-encoding).

## 3. Re-Encoding Stripping Warning (FFmpeg & Editors)
FFmpeg transcoding, `sharp` WebP conversion, and most social re-encoders **strip or invalidate embedded C2PA JUMBF manifests** because pixel hashes change. Always:
1. Archive the untouched raw vendor outputs (`./raw_vendor/`) with intact original C2PA manifests.
2. After final FFmpeg/Resolve conform, sign the finished delivery master referencing the original raw file as `-p <parent_asset>` (or list ingredients inside `manifest.json`) rather than claiming a broken hash is valid.

## 4. Production Signing vs. Test Certificate Guard
- Signing command:
  ```bash
  c2patool final_master.mp4 -m studio_manifest.json -p raw_source.mp4 -o final_master_signed.mp4
  ```
- **NEVER ship client deliverables signed with `c2patool`'s built-in development test certificates.** Explicitly verify that `private_key` and `sign_cert` point to a real trusted X.509 certificate chain (`alg: "es256"` + valid `ta_url` RFC 3161 timestamp authority) and keep private keys out of Git.

3. Test it right away (sample prompt & result)

Sample prompt / input
"Audit C2PA credentials on ./raw_vendor/vendor_shot01.mp4 and ./exports/final_cut.mp4, and tell me if our FFmpeg export stripped provenance."
What happens when it runs
- Runs `c2patool ./raw_vendor/vendor_shot01.mp4` -> confirms a valid vendor C2PA manifest (`trainedAlgorithmicMedia`).
- Runs `c2patool ./exports/final_cut.mp4` -> detects stripped manifest after FFmpeg conform.
- Generates a clean `studio_manifest.json` template linking `raw_vendor/vendor_shot01.mp4` as a parent ingredient and prompts for production ES256 signing credentials before delivery.

What you need & known limits

Requirements

  • Official c2patool CLI (brew install c2patool or cargo install c2patool from github.com/contentauth/c2patool)
  • Production X.509 signing certificate & private key for non-test commercial signing

Watch out for

  • C2PA cryptographic manifests are distinct from invisible pixel/audio watermarks like Google SynthID—c2patool inspects C2PA metadata, not SynthID
  • Do not distribute production assets signed with c2patool's untrusted built-in development test certificate
  • Never assume a vendor output carries a C2PA manifest—inspect each raw file; OpenAI does not state on the pages we checked whether GPT-Image-2.6 outputs include one

Frequently Asked Questions

Why did the C2PA badge on my AI-generated still or vendor video clip disappear after running FFmpeg?
C2PA embeds a cryptographic hash tied to exact file bytes. Any re-encode, crop, color grade, or WebP conversion alters those bytes and strips or breaks the original JUMBF box—requiring a fresh studio-signed manifest referencing the raw files as parent ingredients.
Does c2patool remove or detect Google's SynthID watermark?
No. SynthID is an imperceptible signal embedded directly into image pixels and audio waveforms, whereas C2PA is structured cryptographic file metadata. c2patool strictly inspects and signs C2PA manifests.
Use this page in AI tools or notes
raw .md