Project mode: skills: section in config.yaml is silently stripped, no committable way to share project skills
Summary
The project setup docs say that skills: in config.yaml is how you declare which remote skills a project needs, and that teammates can run skillshare install -p to install them. In practice, the skills: section gets silently stripped the moment any skillshare command runs, and nothing committable replaces it.
What the docs say
The project setup guide describes this workflow:
- Install remote skills with
skillshare install <source> -p - Skills are "Recorded in
.skillshare/config.yamlunderskills:" (Step 3) - Commit
.skillshare/: ".skillshare/config.yamlβΓΆβΓ§βΓ targets and remote skill list" (Step 5) - New team member clones and runs
skillshare install -pwhich "reads.skillshare/config.yamland installs all listed remote skills automatically"
The full config example shows:
targets:
- claude
- cursor
skills:
- name: pdf
source: anthropic/skills/pdf
Reading this, you'd reasonably assume: put your skills in config.yaml, commit it, teammates run skillshare install -p, done.
What actually happens
Test 1: skills: in config.yaml
mkdir test-project && cd test-project
git init
skillshare init -p --targets copilot
# Add skills to config as the docs suggest
cat > .skillshare/config.yaml << 'EOF'
targets:
- copilot
skills:
- name: next-best-practices
source: vercel-labs/next-skills/next-best-practices
audit:
block_threshold: CRITICAL
EOF
# Run ANY command, even just status
skillshare status -p
cat .skillshare/config.yaml
# skills: section is gone. Only targets + audit remain.
Test 2: manually created registry.yaml
# Create registry.yaml (what the migration code is supposed to produce)
cat > .skillshare/registry.yaml << 'EOF'
skills:
- name: next-best-practices
source: vercel-labs/next-skills/next-best-practices
EOF
skillshare install -p --force
# Skills install fine, but registry.yaml is deleted afterwards.
Root cause
We dug through the source code. Three separate mechanisms destroy the skill list:
-
migrateProjectSkillsToRegistry()ininternal/config/project.go: runs on everyLoadProject()call, stripsskills:from config.yaml. TheProjectConfigstruct no longer has aSkillsfield, so the data can never round-trip back into config. -
migrateRegistryEntries()ininternal/install/metadata_migrate.go: readsregistry.yamland merges entries into.metadata.json. -
cleanupOldRegistry()ininternal/install/metadata_migrate.go: unconditionally deletesregistry.yaml:func cleanupOldRegistry(dir string) { os.Remove(filepath.Join(dir, "registry.yaml")) }
So the chain is: skills: in config gets stripped, written to registry.yaml, merged into .metadata.json, then registry.yaml is deleted. The only thing left standing is .metadata.json.
Why .metadata.json doesn't work for this
.metadata.json is the only surviving record, but:
- Skillshare auto-adds
skills/.metadata.jsonto the managed.gitignoreblock - It contains
installed_attimestamps, commit hashes, and file hashes that change on every install, so even if you un-gitignore it, you'd get constant noise in diffs
The result
There is no committable file that says "this project needs these skills". The workflow the docs describe (declare skills in config, commit, teammates install from config) breaks silently because the config gets stripped before anyone else can use it.
Current workaround
List manual skillshare install <source> -p commands in the project README.
For reference, the project setup docs describe life without skillshare as: "Read the README to find which skills to install... Manually copy or install each skill... Hope you didn't miss anything."
Environment
- skillshare v0.19.11
- Windows 11 + PowerShell 7
- Confirmed by reading the Go source directly
Suggested fix
Stop stripping skills: from project config.yaml. The documentation already describes it as the declarative source of truth, so the code should treat it that way.
Thanks for the incredibly thorough write-up β the root-cause trace was spot-on.
Fixed in v0.19.12.
What changed:
ProjectConfignow has aSkillsfield βskills:in config.yaml survivesLoadProject()βSave()round-trips- Removed
migrateProjectSkillsToRegistry()β the migration that was strippingskills:and funneling it throughregistry.yamlβ.metadata.jsonβ deletion skillshare install <source> -pautomatically adds the skill toconfig.yamlskillshare install -p(no args) reads fromconfig.yamlskills:, not.metadata.json.metadata.jsonremains for runtime tracking (hashes, timestamps) β gitignored as before
The workflow described in the docs now works as intended:
# .skillshare/config.yaml β commit this
targets:
- copilot
skills:
- name: next-best-practices
source: vercel-labs/next-skills/next-best-practices
# teammate clones and runs:
skillshare install -p && skillshare sync
No problem, glad it helped, and I don't mind the odd bug hunt. Thanks for the quick fix, really liking the project.