Synchronises a project's skills with their upstreams. Not a blind copy — it is an intelligent diff that respects local changes.
A project's skills have three origins, and each is synchronised against its own upstream:
| Layer | Where it lives in state | Upstream |
|---|---|---|
| Core | skills/core/ |
Metaproject's skills/core/ |
| Imported | skills/ root and subdirectories other than
core/ and personal/ |
The external collection named in the Source column of the router's Imported section |
| Personal | skills/personal/ |
None — the project's own space, never synchronised |
Metaproject itself distributes only skills/core/. Domain
skills (a language reference, a deployment recipe, a publishing
pipeline) are not part of the framework: they are published and
maintained in their own collections, and a project imports the ones it
uses.
The core skills are the only files Metaproject distributes as copies.
(Until release 5.7 a second one, handoffs/readme.md,
restated the handoff mechanics; the standard has dropped it — see step
2.)
skills/core/, from
the framework zip or a clone of its repository.If an imported skill has no Source (an older state,
or a row added by hand), ask the user where it comes from. If it comes
from nowhere, it is a project-local skill: propose moving it to
skills/personal/ (and its row to the router's
Personal section).
For each layer, compare the project's files with their upstream.
skills/personal/ never participates.
| Category | Meaning | Action |
|---|---|---|
| New | Exists upstream but not in the project. | Core: copy to the project. Imported: propose it to the user, but do not copy it unasked — a project imports only the skills it uses. |
| Identical | Exists in both and the content is exactly the same. | Nothing. |
| Modified | Exists in both but the content differs. | Do not touch — will be reviewed with the user. |
| Local | Exists in the project but not upstream. | Do not touch. Report it: it may have been renamed or withdrawn upstream (see below). |
For imported skills, compare only against the collection the skill declares; a skill that is new in a collection the project does not use is not news for this project.
handoffs/readme.md. If the project
still has one, propose to the user removing it: since release 5.7 it is
not part of the standard. Remove it only if the user agrees; if not,
leave it as it is. The handoff mechanics are written in
setup.md only; the copy could drift from them, its name
clashed with the startup file, and it sorted after the handoffs.
A Modified imported skill that the project
extended. A common case: the project's copy is an older version
of the upstream skill, with local additions (notes, procedures specific
to the project). Propose to the user: take the upstream copy whole, and
move the local additions to a personal skill
(skills/personal/, with its router row). Before replacing
the copy, search the whole state for references into the old skill (a
section of it that setup.md or another skill points to): a
section that upstream dropped would otherwise disappear silently. Move
what those references need into the personal skill, and fix the
references.
Renamed or withdrawn upstream. A Local imported skill whose upstream no longer has it has usually been renamed or withdrawn. Look for a New skill in the same collection that plausibly replaces it (same subject, similar content) and propose the replacement to the user: import the new one, update the router row, and remove the old one only with the user's explicit agreement.
Present to the user what has been done and what remains pending. For example:
I've updated the core skill X. The collection Some Skills has a new skill, Y (what it does); shall I import it? Two imported skills differ from their upstream: A (a new section was added about such-and-such) and B (step 3 was reworded). And C no longer exists upstream; it seems to have been renamed to D. What would you like to do with each one?
If there is nothing new or modified, simply say that everything is up to date.
Once conflicts are resolved (if any), show the user the current state
of the router: which skills are active, and which are present in
skills/ but inactive. Ask whether to activate or deactivate
any. Every imported row must keep its Source.