bug: skill-author loses source provenance — research output not recorded in skill references #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/skill-writeaccepts research docs as prerequisites but never records them as sources. Skills built from/researchoutput have no provenance chain from upstream docs → research files → skill is silently broken.Steps to reproduce
/research agentskills.io plugins/kyberforge/docs/research/docs/agentskillsio/— produces topic files +sources.md/skill-writewith those research docs as inputRoot cause
Missing skill-write step —
skill-writehas no step/template instructing the agent to read the researchsources.mdand create sources.md files for the skill.Solution
Agreed approach from grill session (2026-06-26):
Convention:
references/sources.md+source_keysfrontmatterThe provenance chain mirrors the research skill's output format:
/researchwritessources.mdto plugin-level docs (e.g.plugins/<plugin>/docs/research/docs/<topic>/)/skill-authorreads those docs and records provenance in the new skillChanges to
skill-author:assets/templates/references/sources.md— new scaffold template mirroring the researchsources.mdformat exactly (slug → URL, Description, Contributing files, Status). One placeholder entry withFILL IN:values. Comment instructs: fill in after writing skill files, or delete if no research was provided.assets/templates/SKILL.md— addsource_keysas a commented-out optional field undermetadata, same treatment aslicenseandcompatibility.SKILL.md(skill-author itself) — new Step 5 in the "Creating a new skill" flow:sources.mdis in conversation context: filter toextractedentries, populatereferences/sources.mdwithContributing filespointing to skill files (not research topic files); addsource_keystoSKILL.mdmetadata and to eachreferences/*.mdfilereferences/sources.mdKey design decisions:
sources.mdis present in conversation context — skip silently otherwiseno content extractedentries;Contributing fileslists skill files, not research topic filessource_keysin SKILL.md andreferences/*.mdfrontmatter links back to slugs inreferences/sources.mdreferences/*.mdfiles also getsource_keysfrontmatter, mirroring research topic file formatskill-auditvalidation of the chain deferred to issue #8bug: skill-write loses source provenance — research output not recorded in SKILL.md frontmatterto bug: skill-author loses source provenance — research output not recorded in skill references