Skip to content

Project: skills/.metadata.json not gitignored #759

Closed

Description

@Snurppa

Tried to initialize skillshare v0.28.2 into new repo with skillshare init -p and then installing couple of skills.

I think there is bug in .gitignore it generates: the .skillshare/skills/.metadata.json would get commited!

❯ git add -n .skillshare
add '.skillshare/.gitignore'
add '.skillshare/config.yaml'
add '.skillshare/skills.lock.json'
add '.skillshare/skills/.metadata.json'

the .skillshare/skills/* are properly ignored.

This docs page also states that it should be .gitignored:

<project-root>/
├── .skillshare/
│   ├── config.yaml              # Targets + settings (incl. extras)
│   ├── skills.lock.json         # Commit each remote skill is pinned to (auto-managed, commit it)
│   ├── skills/.metadata.json     # Runtime metadata (hashes, timestamps — auto-managed, gitignored)
│   ├── .gitignore               # Ignores logs/, trash/, backups/, and cloned remote/tracked skill dirs
...

Regression? Idk didn't bother running compute on this.

Feels like basic use case that should be covered by a test...

I don't want to commit the .metadata.json to my colleagues...

Activity

  1. self-assigned this
    on Nov 3, 2026
  2. added
    bug
    on Nov 3, 2026
  3. runkids commented on Nov 3, 2026

    @runkids
    Owner

    Thanks for the report, and for checking the docs. You're right: this is a bug, and it has been there since the docs started calling the file gitignored (v0.19.12). It isn't a recent regression. The docs were updated, but no code ever added the ignore rule.

    The fix is in #760:

    • After every project install, skillshare now adds skills/.metadata.json (and agents/.metadata.json) to the project's .gitignore. Existing projects get the rule on their next install -p. Projects that use a custom skills or agents source get it at the matching path.
    • Global mode is unchanged. Its metadata is still meant to be committed and synced.
    • There's now an integration test for your exact steps: init -p, then install -p, then git check-ignore.

    One thing to know: a gitignore rule doesn't untrack a file Git already tracks. If the file was committed before the fix, run this once:

    git rm --cached .skillshare/skills/.metadata.json
    

    Your colleagues only need config.yaml and skills.lock.json to get the same skills. Running skillshare install -p rebuilds the metadata locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions