Skip to content

codev update: refresh unedited shipped skills; bootstrap-docs runs the installed skill by name #1811

Closed

Description

@amrmelsayed

Problem

codev update never refreshes a shipped skill that is already installed. Both adopt and update call copySkills(..., { skipExisting: true }), so an existing skill folder is never touched. Only missing skills are added.

So a project keeps the skill text it was adopted with, and fixes to shipped skills never reach it. A concrete case from Spec 1797: a project adopted before the bootstrap release has an update-arch-docs skill with no bootstrap mode, and codev update won't bring it. Because of this, codev bootstrap-docs has to paste the packaged skill into its prompt instead of running the project's installed skill by name.

Proposal

Refresh unedited skills on codev update. A skill counts as unedited when its content matches a version codev has shipped. The package carries a history of shipped skill hashes, generated from git history, and a test fails if the current skeleton version is missing from it. Then:

  • Identical to the package's version: up to date, nothing to do.
  • Matches an earlier shipped version: replaced with the package's version and reported as updated.
  • Anything else: treated as edited by the user. The new version is written beside it as SKILL.md.codev-new and added to update's merge session, on every update. This is the same behaviour CLAUDE.md and AGENTS.md have today (owner ruling).
  • A symlinked or non-directory skill path: left alone and reported.

Then codev bootstrap-docs runs the installed skill by name. It does this when the project's copy of update-arch-docs for the launching harness is identical to the package's version. Otherwise it falls back to inlining the packaged skill, as it does on the prompt-file path for harnesses that don't load skills.

Delivered in PR #1808 (Spec 1797), at the owner's request, so bootstrap works end to end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/scaffold

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions