agentleFS
rock3rrock3r/skill-provenance/skills/skill-provenance/SKILL.md

skill-provenance

Skill2 starsChanged 6 months agoApache-2.0View on GitHub

Use when creating or updating a skill-source.json provenance sidecar for a new, copied, or modified skill, checking whether upstream sources have changed, or folding external guidance into a local skill.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. snapsynapse/turnfile★ 9same name
    2. starshard-ai/skill-provenance★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 10 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use skill-source.json for durable provenance: source material, attribution, licenses, pinned versions, and cheap update-check hints.

    line 20
  2. Very specific:

    If you need the sidecar format, read references/skill-source-json.md.

    line 27
  3. Distinctive:

    Run the report-only checker from the repository or project that contains the skills:

    line 28
  4. Distinctive:

    Treat the report as a triage signal, not as an update decision.

    line 40
  5. Very specific:

    If you fold in new material, update skill-source.json:

    line 52
  6. Very specific:

    add a sources entry for every new upstream or supporting reference.

    line 53
  7. Distinctive:

    keep canonical repository or documentation URLs as provenance.

    line 54
  8. Very specific:

    use localCheckoutHint only as an optional inspection aid, not as provenance.

    line 55
  9. Very specific:

    add or revise top-level attribution whenever external material exists.

    line 56
  10. Distinctive:

    keep reconstruction-only evidence out of the JSON.

    line 57
  11. Distinctive:

    Run validation before finalizing:

    line 58
  12. Distinctive:

    If the checker has changed, run its tests:

    line 65
  13. Very specific:

    Read references/skill-source-json.md for the full contract and references/skill-source.schema.json for a JSON Schema representation.

    line 73
  14. Very specific:

    use the source skill's metadata.version frontmatter field (agentskills.io spec) — the checker reads this directly and falls back to a …

    line 95
  15. Very specific:

    When the upstream skill has metadata.author in its frontmatter, the checker includes it as upstreamAuthor in the report row — use it to …

    line 100
  16. Distinctive:

    Do not treat a local checkout path as provenance.

    line 105
  17. Very specific:

    Do not place attribution inside a source entry.

    line 106
  18. Distinctive:

    Do not let transitive sources disappear.

    line 108
  19. Very specific:

    Do not include gitEvidence, commit subjects, review notes, diagnostics, or confidence labels in skill-source.json.

    line 110
  20. Distinctive:

    Do not let the checker modify files, create branches, commit, push, open pull requests, or publish anything.

    line 111
  21. Distinctive:

    Do not accept source material that conflicts with the target skill's environment or audience.

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Update Skills

Core rule

Skill source metadata travels with the skill. When you update a skill from upstream material, or fold in new guidance, examples, scripts, references, or policy from another source, update that skill's skill-source.json in the same change.

Use skill-source.json for durable provenance: source material, attribution, licenses, pinned versions, and cheap update-check hints. Do not use it for reconstruction notes, review opinions, confidence labels, or temporary diagnostics.

Workflow

  • Inspect the skill and its skill-source.json sidecar.
  • If you need the sidecar format, read references/skill-source-json.md.
  • Run the report-only checker from the repository or project that contains the skills:
python3 SKILL_PATH/scripts/check_skill_updates.py --skills-root SKILLS_ROOT

Example when this skill is installed at .agents/skills/skill-provenance:

python3 .agents/skills/skill-provenance/scripts/check_skill_updates.py --skills-root .agents/skills
  • Treat the report as a triage signal, not as an update decision.
    • up-to-date means a commit-pinned, frontmatter-pinned, or fetch-date source matches the latest cheap signal.
    • candidate means the source appears to have changed and needs manual upstream diff review.
    • local-original means original local material, not an upstream update candidate.
    • skipped means the source is intentionally manual, uncheckable, or pinned by a non-comparable signal.
    • unknown means the check could not reach a conclusion. Causes include: GitHub and local checkout fallback both failed (retry if transient); a date-only fetchedAt cannot disambiguate a same-day upstream change (use a full ISO timestamp to resolve); or a local checkout fallback found the latest commit but could not determine its date (switch to gitCommit versionSource or provide network access).
    • error means the sidecar violates the required shape and should be fixed before update decisions.
  • For each candidate update, inspect the source material directly. Never import upstream guidance wholesale just because the cheap checker reported a newer version.
  • If you fold in new material, update skill-source.json:
    • add a sources entry for every new upstream or supporting reference;
    • keep canonical repository or documentation URLs as provenance;
    • use localCheckoutHint only as an optional inspection aid, not as provenance;
    • add or revise top-level attribution whenever external material exists;
    • keep reconstruction-only evidence out of the JSON.
  • Run validation before finalizing:
python3 -m json.tool SKILL_PATH/skill-source.json
python3 SKILL_PATH/scripts/check_skill_updates.py --skills-root SKILLS_ROOT --validate-only

If the checker has changed, run its tests:

python3 SKILL_PATH/scripts/test_check_skill_updates.py

skill-source.json essentials

Read references/skill-source-json.md for the full contract and references/skill-source.schema.json for a JSON Schema representation.

Required top-level fields:

  • schemaVersion: currently 1.
  • skill: the directory name of the skill this sidecar describes.
  • sources: non-empty array of source entries.
  • attribution: required when any source has role upstream-source or supporting-reference.

Required source fields:

  • type: one of upstream-skill, upstream-reference, local-original-content.
  • role: one of upstream-source, supporting-reference, original-content.
  • label: short human-readable source name.
  • version: pinned source version.
  • versionSource: one of frontmatter, gitCommit, fetchDate.
  • fetchedAt: ISO date or timestamp for when the source was inspected.
  • license: source license or unknown.

Recommended version choice:

  1. use the source skill's metadata.version frontmatter field (agentskills.io spec) — the checker reads this directly and falls back to a top-level version: key;
  2. otherwise use the git commit hash that was fetched or inspected;
  3. otherwise use the ISO fetch date.

When the upstream skill has metadata.author in its frontmatter, the checker includes it as upstreamAuthor in the report row — use it to write the top-level attribution field.

Gotchas

  • Do not treat a local checkout path as provenance. Record the canonical upstream URL instead.
  • Do not place attribution inside a source entry. It is a required top-level field alongside skill and schemaVersion, not a per-source field.
  • Do not let transitive sources disappear. If a derivative source itself came from another source, and you closely adapt that material, record both sources.
  • Do not include gitEvidence, commit subjects, review notes, diagnostics, or confidence labels in skill-source.json.
  • Do not let the checker modify files, create branches, commit, push, open pull requests, or publish anything.
  • Do not accept source material that conflicts with the target skill's environment or audience; adapt deliberately.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.