<h1 align="center">
<a href="https://prompts.chat">
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
This skill enables working with C2PA (Coalition for Content Provenance and Authenticity) metadata in media files using the c2patool command-line utility.
The c2patool binary must be installed and available in the system PATH. If not installed, guide the user to:
c2patool -VBasic inspection - Display manifest JSON:
c2patool <file>
Detailed report - Show complete C2PA manifest structure:
c2patool <file> -d
File information - High-level summary:
c2patool <file> --info
When inspecting manifests:
Create signed file with manifest:
c2patool <source_file> -m <manifest.json> -o <output_file>
Sign with parent file relationship:
c2patool <source_file> -m <manifest.json> -p <parent_file> -o <output_file>
Generate external sidecar manifest:
c2patool <source_file> -s -m <manifest.json> -o <output_file>
When creating manifests, use this JSON structure:
{
"claim_generator": "application_name/version",
"title": "Content Title",
"assertions": [
{
"label": "c2pa.actions",
"data": {
"actions": [
{
"action": "c2pa.created"
}
]
}
},
{
"label": "c2pa.creative-work",
"data": {
"author": [
{
"name": "Creator Name"
}
]
}
}
],
"ingredients": [],
"signature": {
"alg": "es256",
"sign_cert": "path/to/cert.pem",
"private_key": "path/to/private.key"
}
}
Common assertion types:
c2pa.actions - Document editing historyc2pa.creative-work - Author and copyright informationc2pa.hash.data - Content integrity hashesc2pa.training-mining - AI training usage permissions--force/-f - Overwrite existing output files--config/-c - Provide manifest definition as inline JSON string--signer-path - Use custom signing executable (for HSM/KMS)--detailed/-d - Show detailed manifest structure--info - Display high-level file informationC2PA supports:
# Check if file has C2PA metadata
c2patool image.jpg
# Get detailed provenance report
c2patool image.jpg -d | jq .
c2patool original.jpg -m manifest.json -o signed.jpgc2patool signed.jpg --infoc2patool original.jpg -m create_manifest.json -o v1.jpgc2patool v1.jpg -m edit_manifest.json -p v1.jpg -o v2.jpgc2patool v2.jpg -dc2patool command not found, verify installation and PATH--force to overwrite existing files-d flag for manifest issuesUse this skill when the user: