Repository navigation
fix(project): gitignore install metadata in project mode - #760
Merged
Merged
Conversation
Since v0.19.12 the docs say a project's skills/.metadata.json is gitignored, but no code ever wrote that rule, so `git add .skillshare` picked it up (#759). The file records this machine's installs (hashes, timestamps) for folders that are themselves ignored; teammates already share config.yaml and skills.lock.json, so committing it only adds noise and merge conflicts. ReconcileProjectSkills runs after every project install (CLI, search, dashboard, move, trash), so it now adds the rule for the skills and agents sources, at the path ProjectGitignoreTarget computes. Projects initialized earlier and custom sources get it on their next install. AdoptMovedProjectSkills is untouched, so `sync -p` still leaves .gitignore alone (#547). Global mode keeps committing its metadata. The docs that list the project .gitignore contents now name the metadata files, and project-skills explains the one-time `git rm --cached` for projects that already committed it. Closes #759
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
runkids
added a commit
that referenced
this pull request
Nov 11, 2026
The docs still showed the old `{"skills": [{"name", ...}]}` layout, which
no current release writes; the file is `{"version", "entries", ...}`
keyed by path. Readers comparing the docs with their own file had no way
to tell what `audit_accepted` or `target_overrides` are for.
tracked-repositories also said project mode records `tracked: true` in
`.skillshare/.metadata.json` so teammates get it, but that path does not
exist and project mode gitignores the metadata files (#760); the flag
lives in `.skillshare/config.yaml`.
The example `type` is `github-subdir` because a subdir install records
that, and the field table omits `into`, which nothing writes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
Closes #759
Summary
Since v0.19.12 the docs have said a project's
skills/.metadata.jsonis gitignored. No code ever wrote that rule, sogit add .skillsharepicked the file up. It records this machine's installs (hashes and timestamps) for skill folders that are themselves ignored. Teammates already shareconfig.yamlandskills.lock.json, so committing the metadata only adds noise and merge conflicts.config.ReconcileProjectSkillsruns after every project install: CLI, search, dashboard, move and trash. It now adds<prefix>/.metadata.jsonfor the skills source and the agents source, at the pathProjectGitignoreTargetcomputes.sources.skillsandsources.agentspaths get it too.AdoptMovedProjectSkillsdoes not get the new step, sosync -pstill leaves.gitignoreunchanged (sync -prewrites the project config when a record is stale but nothing moved #547)..gitignorecontains now name the metadata files, in English and all four locales.project-skillsalso explains the one-timegit rm --cached .skillshare/skills/.metadata.jsonfor projects that already committed the file.Tests
TestReconcileProjectSkills_IgnoresMetadataFiles: covers the default layout with both skills and agents, starting from a.gitignorethat has no rule.TestReconcileProjectSkills_IgnoresCustomSourceMetadata: covers a skills source under the project root, outside.skillshare/.TestInstallProject_GitignoresMetadata: runs the issue's own steps,init -ptheninstall -p, and asserts with realgit check-ignore.git check-ignore: exit status 1).Checks run
make checkin the devcontainer: passed, on base5f51f956.python3 scripts/ai-context.py check: ok.Not covered
install -pwith no source when every declared skill is already present calls no reconcile, so it does not add the rule. The rule arrives on the next install, update or move. Covering this would mean changing when config replay reconciles, which is beyond this fix.git rm --cached. The docs now say so.Checklist
make check) — for code changes