check-skill-provenance-stamps-before-archiving-knowledge-entries skill
check-skill-provenance-stamps-before-archiving-knowledge-entries is a Claude Code skill that checks source_refs and UUIDs before archiving knowledge entries, stopping removal if an active skill depends on one.
MIT ★ 539 updated 2026-10-29
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a claude-codeWhat check-skill-provenance-stamps-before-archiving-knowledge-entries does
This skill runs before you archive an entry in the knowledge base. The agent compares source_refs inside .opencode/skills/generated/*/SKILL.md against the entries on your archive list, and stops when an active skill still depends on one of them.
Why it matters: archiving a source entry leaves a stale marker behind, and the generated skill quietly drops out of injection. The check is a grep for the entry UUID across generated skills. A reviewer then confirms nothing depends on it.
The skill carries written steps and a delegation line of the form SKILLS: file:.opencode/skills/generated/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.md. opencode-swarm's generator built it from a single knowledge entry, so the .opencode/skills/generated/ path is baked into the procedure: point it at your own tree first, otherwise the grep comes back empty for the wrong reason.
What it helps with
- confirm a knowledge entry is safe to archive
- find every generated skill that references an entry UUID
- match source_refs in SKILL.md against the archive list
- hand an agent the skill path in a SKILLS line
- explain to a reviewer why an entry has to stay active
Example prompts for the agent
- Check the provenance stamps before archiving entry f80f0942-3236-4b5d-9b98-a23578676f27.
- Grep
.opencode/skills/generated/*/SKILL.mdand tell me which skills depend on this entry. - Is it safe to archive this entry while an active skill still references it?
How to install check-skill-provenance-stamps-before-archiving-knowledge-entries
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a claude-code2Manually: put the files in place
~/.claude/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a codex2Manually: put the files in place
.agents/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a cursor2Manually: put the files in place
.cursor/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install ZaxbyHub/opencode-swarm .opencode/skills/generated/check-skill-provenance-stamps-before-archiving-knowledge-entries2Manually: put the files in place
.github/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.md1Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a gemini-cli2Platform CLI
gemini skills install https://github.com/ZaxbyHub/opencode-swarm --path .opencode/skills/generated/check-skill-provenance-stamps-before-archiving-knowledge-entriesManually: put the files in place
.devin/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about check-skill-provenance-stamps-before-archiving-knowledge-entries
How do I install check-skill-provenance-stamps-before-archiving-knowledge-entries in Claude Code?
Run npx skills add ZaxbyHub/opencode-swarm --skill check-skill-provenance-stamps-before-archiving-knowledge-entries -a claude-code. The skill file lands at ~/.claude/skills/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.md.
What does check-skill-provenance-stamps-before-archiving-knowledge-entries do?
It has the agent check generated skills' source_refs against the entries you plan to archive, and hold off when an active skill still depends on one of them.
What happens if I archive a source entry anyway?
A stale marker appears and the generated skill is silently excluded from injection, so the agent stops seeing it. Checking the UUID beforehand is what avoids that.
Source text
SKILL.md · MIT
--- name: check-skill-provenance-stamps-before-archiving-knowledge-entries description: check skill provenance stamps before archiving knowledge entries metadata: generated_from_knowledge: '["f80f0942-3236-4b5d-9b98-a23578676f27"]' source_knowledge_ids: '["f80f0942-3236-4b5d-9b98-a23578676f27"]' generated_at: "2026-07-14T05:31:49.340Z" confidence: "0.60" status: active version: "1" skill_origin: generated --- <!-- generated by opencode-swarm skill-generator. Do not edit by hand; edits will be preserved on regeneration only with controlled update mode. --> # check skill provenance stamps before archiving knowledge entries ## Trigger - (no explicit trigger metadata; cluster derived from category/tags) ## Required Procedure - check skill provenance stamps before archiving knowledge entries - verify .opencode/skills/generated/*/SKILL.md source_refs against entries being archived ## Forbidden Shortcuts - (none recorded) ## Delegation Template When delegating a task affected by this skill, include: ``` SKILLS: file:.opencode/skills/generated/check-skill-provenance-stamps-before-archiving-knowledge-entries/SKILL.md ``` ## Reviewer Checks - grep generated skills for the entry UUID being archived - confirm no active skill depends on entry before archive ## Source Knowledge IDs - f80f0942-3236-4b5d-9b98-a23578676f27 — Before archiving knowledge entries, verify they are not source entries for active generated skills — archiving source entries triggers stale markers that silently exclude skills from injection.
© ZaxbyHub · MIT · ZaxbyHub/opencode-swarm