Skip to content

update fails for skills recorded with a per-skill source the parser cannot split (records from before #859) #862

Closed

Description

@runkids

Version: main at 769087b (also 0.30.5)

What happens

Before the fix for #859, install <repo> -s <skill> recorded a per-skill source joined with a single /. For GitLab and Bitbucket sources typed without .git, and for file:// sources, that string does not parse back into repository and subdirectory. The fix only changes what new installs record. A skill installed earlier keeps the old string in .metadata.json, and update fails for it, because the single-skill update paths parse the recorded source instead of using the recorded repo_url and subdir.

This corrects a note in #859, which said the machine that ran the install is not affected by update.

Steps to reproduce (file://, reproduced on main with a record in the old form)

mkdir -p /tmp/skills/x && printf -- '---\nname: x\ndescription: d\n---\n' > /tmp/skills/x/SKILL.md
git -C /tmp/skills init -q && git -C /tmp/skills add -A && git -C /tmp/skills commit -qm init

mkdir /tmp/proj && cd /tmp/proj && git init -q
skillshare init -p --targets claude
skillshare install file:///tmp/skills -s x -p     # 0.30.5 records source: file:///tmp/skills/x

echo more >> /tmp/skills/x/SKILL.md && git -C /tmp/skills commit -qam change
skillshare update -p --all
# ✗ Update    x · failed to clone repository: Could not read from remote repository.

The record still has what is needed:

"source": "file:///tmp/skills/x",
"repo_url": "file:///tmp/skills",
"subdir": "x"

Expected

update works for these records, and rewrites source (and the project config.yaml entry) into the form #859 introduced, so teammates can install it too.

Notes

  • Workaround today: run skillshare install <repo> -s <skill> --update once; it rewrites the record.
  • Places that parse the recorded source: cmd/skillshare/update_handlers.go (two call sites), cmd/skillshare/install.go, internal/server/handler_update.go, internal/install/local_changes.go, internal/install/install_config.go.
  • A teammate's config.yaml entry in the old form cannot be repaired from the string alone on GitLab and Bitbucket, because the same string can name a nested repository. Only a machine that has the install record can repair it.
  • When the source string of a pinned project skill changes, its lock pin is taken again.

Activity

  1. added
    bug
    on Nov 11, 2026
  2. added a commit that references this issue on Nov 12, 2026
    9f43310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions