Asset Sourcing & License Provenance Ledger Guard
Guarantee cryptographic asset integrity, eliminate copyright liabilities, and prevent unverified external CDN hotlinks across all shipping media.
Why This Skill Is Needed & Target State
AI-assisted generation frequently pulls third-party media or hallucinated assets without verification:
- Unverified CDN Hotlinks: Hotlinking external CDNs (
images.unsplash.com, cdn.jsdelivr.net) creates production failure risks if the remote link rots or changes.
- Copyright Contamination: Sourcing 3D models, textures, sound effects, or typography without explicit open license records risks copyright infringement.
- Asset Tampering & Drift: Binary media can be silently swapped or corrupted without Git noticing binary diff details.
The target state is cryptographic provenance: every asset has an immutable SHA-256 hash, an explicit open-source license (CC0, MIT, SIL OFL, Apache 2.0), and a structured entry in .anti-slop/asset-ledger.jsonl.
Invariant Rules
- Physical Provenance Ledger: Every local image, model, font, or audio file in project asset directories must possess an entry in
.anti-slop/asset-ledger.jsonl.
- Cryptographic SHA-256 Integrity: Computed file SHA-256 hashes must match the recorded ledger hash exactly.
- Approved Permissible License: Licenses must originate from the approved permissible catalog (
CC0, MIT, OFL-1.1, Apache-2.0, Public Domain, Hand-Authored).
- Zero Hotlink Dependencies: Production code must bundle assets locally or reference canonical immutable CDNs; unverified third-party hotlinks are flagged.
Asset Ledger Format (.anti-slop/asset-ledger.jsonl)
{"path": "models/hero.gltf", "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "source_url": "https://polyhaven.com/a/hero", "license": "CC0", "attribution": "Poly Haven"}
CLI Usage
# Scan asset directories against local ledger
bunx anti-slop-engineering asset-provenance --scan assets/
# Auto-record newly authored assets as Hand-Authored
bunx anti-slop-engineering asset-provenance --scan public/ --record-missing
# Validate custom ledger file with JSON output
bunx anti-slop-engineering asset-provenance --ledger .anti-slop/asset-ledger.jsonl --json --strict
1---2name: asset-provenance-guard3description: Enforce cryptographic SHA-256 asset integrity, explicit open-source license provenance (CC0, MIT, SIL OFL, Apache 2.0), and prevent unverified external CDN hotlinks in shipping builds.4license: MIT5metadata:6 source: https://skillmd.com/skills/immamdouhaboammar/asset-provenance-guard7 version: "1.7.0"8 parent: anti-slop-engineering9---1011# Asset Sourcing & License Provenance Ledger Guard1213> Guarantee cryptographic asset integrity, eliminate copyright liabilities, and prevent unverified external CDN hotlinks across all shipping media.1415## Why This Skill Is Needed & Target State1617AI-assisted generation frequently pulls third-party media or hallucinated assets without verification:181. **Unverified CDN Hotlinks**: Hotlinking external CDNs (`images.unsplash.com`, `cdn.jsdelivr.net`) creates production failure risks if the remote link rots or changes.192. **Copyright Contamination**: Sourcing 3D models, textures, sound effects, or typography without explicit open license records risks copyright infringement.203. **Asset Tampering & Drift**: Binary media can be silently swapped or corrupted without Git noticing binary diff details.2122The target state is cryptographic provenance: every asset has an immutable SHA-256 hash, an explicit open-source license (CC0, MIT, SIL OFL, Apache 2.0), and a structured entry in `.anti-slop/asset-ledger.jsonl`.2324## Invariant Rules25261. **Physical Provenance Ledger:** Every local image, model, font, or audio file in project asset directories must possess an entry in `.anti-slop/asset-ledger.jsonl`.272. **Cryptographic SHA-256 Integrity:** Computed file SHA-256 hashes must match the recorded ledger hash exactly.283. **Approved Permissible License:** Licenses must originate from the approved permissible catalog (`CC0`, `MIT`, `OFL-1.1`, `Apache-2.0`, `Public Domain`, `Hand-Authored`).294. **Zero Hotlink Dependencies:** Production code must bundle assets locally or reference canonical immutable CDNs; unverified third-party hotlinks are flagged.3031## Asset Ledger Format (`.anti-slop/asset-ledger.jsonl`)3233```json34{"path": "models/hero.gltf", "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "source_url": "https://polyhaven.com/a/hero", "license": "CC0", "attribution": "Poly Haven"}35```3637## CLI Usage3839```bash40# Scan asset directories against local ledger41bunx anti-slop-engineering asset-provenance --scan assets/4243# Auto-record newly authored assets as Hand-Authored44bunx anti-slop-engineering asset-provenance --scan public/ --record-missing4546# Validate custom ledger file with JSON output47bunx anti-slop-engineering asset-provenance --ledger .anti-slop/asset-ledger.jsonl --json --strict48```