Skilllibrary provenance-audit

Audit a skill or artifact's origin chain: where it came from, who authored it, what license applies, what modifications were made, and what trust level to assign. Use when evaluating external skills for adoption, auditing existing skills for license compliance, or establishing trust levels before execution. Do not use when creating new skills from scratch (provenance is 'authored here') or for trusted internal sources.

install
source · Clone the upstream repo
git clone https://github.com/merceralex397-collab/skilllibrary
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/merceralex397-collab/skilllibrary "$T" && mkdir -p ~/.claude/skills && cp -r "$T/01-package-scaffolding/provenance-audit" ~/.claude/skills/merceralex397-collab-skilllibrary-provenance-audit && rm -rf "$T"
manifest: 01-package-scaffolding/provenance-audit/SKILL.md
source content

Provenance Audit

Audits a skill's origin chain and assigns a trust level.

Procedure

1. Identify origin type

Origin TypeDescriptionDefault Trust
authored
Created in this repoHigh
forked
Copied from external, modifiedMedium
imported
Copied from external, unmodifiedMedium
generated
AI-generated from requirementsLow
unknown
Origin unclearUntrusted

2. Extract provenance metadata

From SKILL.md frontmatter:

name
,
source
,
license
.

From git history:

# First commit of skill
git log --follow --format="%H %an %ad %s" -- SKILL.md | tail -1
# All modifications
git log --follow --oneline -- SKILL.md

3. Verify source claims

If

source
claims external origin:

# Fetch and compare original
curl -s "<original-raw-url>" > /tmp/original.md
diff SKILL.md /tmp/original.md
# If different → forked (not imported)

4. Check license compatibility

LicenseCategoryAction
Apache-2.0, MIT, BSD-*PermissiveOK for any use
GPL-3.0, AGPL-3.0CopyleftCheck derivative work implications
(none)UnknownDo not adopt — flag for manual review

5. Assign trust level

OriginLicense OKSource VerifiedMods ReviewedTrust
authoredN/AN/AN/AHIGH
forkedYESYESYESHIGH
forkedYESYESNOMEDIUM
importedYESYESN/AMEDIUM
generatedN/AN/AYESMEDIUM
unknown***UNTRUSTED

6. Document provenance in skill

Add provenance section to SKILL.md:

# Provenance
- Origin: [type] from [URL or "this repo"]
- License: [SPDX]
- Modifications: [list or "none"]
- Last audit: [ISO date]
- Trust level: [HIGH|MEDIUM|LOW|UNTRUSTED]

Output contract

# Provenance Audit: [skill-name]

## Origin
- Type: [authored|forked|imported|generated|unknown]
- Source: [URL or "this repo"]
- License: [SPDX]

## Trust Assessment
- License: [PASS|WARN|FAIL]
- Source verified: [YES|NO|UNABLE]
- Modifications reviewed: [YES|NO|N/A]
- Overall trust: [HIGH|MEDIUM|LOW|UNTRUSTED]

## Recommendation
[Action to take]

Failure handling

  • Cannot reach source URL: Mark "source unverified", lower trust level
  • License unclear: Flag for manual review, do not auto-adopt
  • Conflicting provenance claims: Report conflict, require manual resolution
  • Skill has no frontmatter: Treat as unknown origin, untrusted

References