Appearance
0016: Review, approve and pin each skill copied from another project
Status: accepted
Date: 2026-12-05
PR: #38
Context
Tools such as skills copy a skill from another project into .agents/skills/. A copied skill steers agents in this repository, but other people write it, and its rules can differ from ours. Its files also name paths that only exist after an install, such as node_modules/@ui-sdk/vue/docs/llms.txt. Before this decision, nothing said how such a copy gets into the repository or how it changes later.
Options considered
- Restore the skill in each session from
skills-lock.jsonand commit only the lock file: each session would depend on GitHub. - Edit the copy to match the rules of this repository: each update would have to apply the edits again.
- Update a copy with
skills updatelike any dependency: a change to a copy would not get its own review. - Hold a copy to all the rules of
docs-check: in practice, that means edits to the copy. - Keep an unwanted file of a copy and forbid its use in our rules: the file would still be in the repository.
Decision
A skill or other file from another project goes in a folder in the vendored list of docs-map.yml. The copy stays as its source wrote it, but the human can drop a whole file from it. vendored_dropped in docs-map.yml lists each dropped file, and docs-check fails when one comes back.
Before anyone commits a copy, an agent reads every file in it. The agent reports what the copy lets an agent do, and where the copy clashes with the rules of this repository. The human then approves the copy by name, source and pinned commit, and the commit body records the approval.
Where a copy clashes with a rule of this repository, our rule wins. A page in knowledge/ for each copy names the rules that win. AGENTS.md does not import that page, because it loads in each session, as decision 0014 says. The README of each folder that uses the copy links the page in one line.
skills-lock.json pins the commit of each copy. An update is its own pull request, with the same review as a new copy.
docs-check and markdownlint skip the files in a vendored folder, and the README of its parent lists the folder in one line. The risk scan still scores a copied skill as an instruction, and it scores skills-lock.json as a dependency lock file. A path under node_modules/ names an installed file, so docs-check does not look for it in Git.
Consequences
Nothing from another project steers agents here until a human sees what it does and approves it. An outside skill cannot quietly loosen a rule that this repository enforces. A change to an outside skill shows as a diff in its own pull request, never in silence. A file that the human does not want stays out of the repository, also after an update.