---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "C2PA Content Credentials and Metadata Skill"
description: "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."
canonical: "https://framesfield.com/skills/c2pa-provenance-and-metadata-audit-skill"
---

# C2PA Content Credentials and Metadata Skill

> 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.

- **Canonical URL:** https://framesfield.com/skills/c2pa-provenance-and-metadata-audit-skill
- **Raw Payload URL:** https://framesfield.com/raw/skills/c2pa-provenance-and-metadata-audit-skill
- **Asset Type:** SKILL.md
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** c2patool (Content Authenticity)
- **License:** MIT
- **Last Verified:** 2026-11-29
- **Source Reference:** https://github.com/contentauth/c2patool

## Setup & Install

```bash
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

```

## Copyable Asset (SKILL.md)

````markdown
---
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.
````

## Example Input

```text
"Audit C2PA credentials on ./raw_vendor/vendor_shot01.mp4 and ./exports/final_cut.mp4, and tell me if our FFmpeg export stripped provenance."
```

## Expected Output

```text
- 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.
```

## 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

## Known Limits

- 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

## Implementation Notes

## Learn full provenance & licensing policy

Read our complete breakdown of SynthID, C2PA Content Credentials, and commercial API rights across all tracked models in [Guide 04: Visual AI Models, Commercial Rights & Provenance Guide](/guides/q4-video-model-changelog-digest) and pair with [Skill 26: AI Licensing and Brand Compliance Subagent](/skills/licensing-and-brand-compliance-agent).
