Repository navigation
Skill manager: install a skill once, fan it out to every provider's skills directory - #367
Merged
currentbits merged 9 commits intoAug 17, 2026
Conversation
… Kimi threads started from the planboard do not know the task
… Memory: use the existing embeddings for dedup and contradict
… Spec-driven threads: gated requirements/design/tasks artifac
….sync Shared surface only, so the main-process and renderer halves can land in parallel. Implementations follow. Co-Authored-By: Claude Opus 5 <[email protected]>
Main-process half of #343. One row per skill name (project copies stay separate), add/remove hit every active target, syncSkills copies whole skill dirs to fill drift. Traversal guard unchanged.
Renderer half of #343. A skill is one row, not one-per-provider: drop the target picker, add/remove by name, surface installedIn/missingFrom plus context cost, and add a section Sync that fans missing copies out.
…into coder/skill-manager-install-once-fan-out-to-ev-91ca5c
A marketplace-installed dir whose name our rule rejects made resolveSkillDir throw and took the whole fan-out with it. Skip those in sync and list them as drift-free, so the Sync button never promises a copy it cannot make. Co-Authored-By: Claude Opus 5 <[email protected]>
Found by running the lister against the real ~/.claude/skills, which is 28 symlinks into ~/.agents/skills: dirent.isDirectory() is false for those, so every skill read as Claude-less and Sync would have copied ~130k of content over a deliberate symlink farm. Count symlinked entries, and dereference on copy so a relative link never lands at a depth where it cannot resolve. Co-Authored-By: Claude Opus 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
currentbits
deleted the
coder/skill-manager-install-once-fan-out-to-ev-91ca5c
branch
October 3, 2026 16:07
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.
Closes #343.
SKILL.md has become a de-facto cross-agent standard, but every provider reads it from its own directory. Installing a skill meant hand-copying it five times, and nothing told you when the copies had drifted apart. This makes Solenta the place a skill is installed once.
What changed
Fan-out install.
skills.addloses itstargetfield and writes into every active provider dir. A target counts as active only when that CLI's config dir exists, so we never create skill directories for a CLI that isn't installed.skills.removenow takes just a name and clears every copy — the confirm copy says so, since it's a wider action than it used to be.One row per skill.
skills.listused to return a row per directory; it now merges copies into a single row carryinginstalledIn,missingFrom(drift), andbytes. Project skills under<project>/.claude/skillsstay separate read-only rows.skills.sync(). Copies each skill's whole directory —references/andexamples/included — into the targets missing it. Idempotent.Context cost. Each row shows
~N tokensderived from SKILL.md size. Only SKILL.md counts: reference files are read on demand and never enter context.Verified provider dirs on a real machine rather than guessed — notably OpenCode is
~/.config/opencode/skills, not~/.opencode/skills.Two defects the green test suite did not catch
Both found by running the lister against real skill directories instead of fixtures.
Symlinked skills were invisible.
~/.claude/skillshere is 28 symlinks into~/.agents/skills, anddirent.isDirectory()returns false for a symlink. Every skill read as absent from Claude, so Sync would have copied ~130k of content over a deliberate symlink farm. The scan now accepts symlinked entries, andcpSyncdereferences — copying a link verbatim leaves a relative target that only resolves at the source's depth, so it would silently dangle at~/.config/opencode/skills(one level deeper than~/.claude/skills).One odd directory name aborted the whole sync. A marketplace-installed dir whose name fails the
[a-z0-9-]+rule maderesolveSkillDirthrow and took the entire fan-out with it. Those are now skipped, and listed as drift-free so Sync never advertises a copy it cannot make.Verification
npm run test:electron— 1011/1012. The one failure iswireClient × webBridge over a real socket, a pre-existing failure on main.npm run test:renderer— 842/842.npm run typecheck— clean.Against the real directories: 31 skills, all present in claude+agents, all genuinely missing from codex/grok/opencode/kimi. ~131k tokens if every skill were invoked, with
design-taste-frontendalone at ~21.8k.Not included
The "skills not used recently" nudge from the issue. It needs per-skill invocation tracking across five CLIs that don't report it — separate work from the fan-out, and worth its own issue once this lands.
How it was built
The main-process and renderer halves were implemented in parallel by two Grok workers against a shared contract (
src/shared/ipc.ts) committed first, then merged and reviewed here. The two fixes above were applied after the workers finished.