Repository navigation
Closed
Labels
Description
Context
A growing set of tools now ship their own skills as part of install/setup — writing canonical files to ~/.agents/skills/<name>/ (the shared "agents" convention, tracked via ~/.agents/.skill-lock.json) and placing symlinks in each detected AI agent's target dir (~/.claude/skills/, ~/.continue/skills/, ~/.codex/skills/, etc.).
Confirmed examples in the wild:
| Tool | Install | Ships |
|---|---|---|
firecrawl/cli |
npx -y firecrawl-cli@latest init |
12 skills (sources: firecrawl/cli, firecrawl/skills) |
googleworkspace/cli (gws) |
brew install googleworkspace-cli, then npx skills add https://github.com/googleworkspace/cli |
100+ skills |
obra/superpowers-marketplace |
Claude Code plugin marketplace | multi-skill bundle |
backnotprop/plannotator |
Claude Code plugin marketplace | multi-skill bundle |
Different install mechanisms (npx postinstall, npx skills add, Claude Code plugins), same end state: canonical files in ~/.agents/skills/, symlinks in agent target dirs, entries in ~/.agents/.skill-lock.json.
Conflict with skillshare
Skillshare's model: ~/.config/skillshare/skills/ is source of truth, target dirs are synced copies, "never edit targets directly." Bundled skills break this:
- They write straight to
~/.agents/skills/+ agent target dirs, bypassing skillshare source skillshare auditflags them as local/unmanaged- Adding
exclude: firecrawl*silences audit but then only the subset of agents the installer detected gets the skills (firecrawl wrote to Claude + Continue only, missed Codex/Gemini/Pi which skillshare does manage) - If the user moves them into skillshare source manually, a future
<tool> setup skills(or re-install) silently overwrites the target-dir symlinks, drifting from source
Proposed: skillshare adopt
skillshare adopt "firecrawl*" --source-repos "firecrawl/cli,firecrawl/skills"
skillshare adopt "gws-*" --source-repos "googleworkspace/cli"Would:
- Detect matching skills in
~/.agents/skills/(or target dirs) not already in skillshare source - Move canonical files into
~/.config/skillshare/skills/ - Clean broken symlinks across all agent target dirs (including unmanaged ones like
~/.continue/skills/) - Prune matching entries from
~/.agents/.skill-lock.jsonbysource/sourceUrlprefix - Run
skillshare sync
Questions
- Does this fit inside Add plugin support as a first-class resource type #133's plugin-support scope, or warrant a separate lighter command focused on the
~/.agents/skills/convention specifically? - Is there an idiomatic skillshare way to claim target-local skills today that I'm missing?
collectlooked close but I wasn't sure whether it handles the lock-file pruning piece or cross-agent symlink cleanup. - Would
skillshare doctor --suggest-adopt(detecting these and offering to absorb them) be a lighter alternative to a dedicated command?
Reacted by Willie
Activity
alessandrocornacchia commentedon Apr 15, 2026
Also popular marketplaces such as https://skills.sh use
npx skills addinstaller.Agree with @runkids
runkids commentedon Apr 15, 2026
@salmonumbrella Great proposal as always — thanks for the research and examples.
I want to make sure I understand the core problem before committing to a solution. Today you can already do:
This pulls everything from
~/.agents/skills/into skillshare's source and syncs to all targets. After that, you'd useskillshare install/skillshare updategoing forward instead ofnpx skills add.Does this cover your use case, or is there a specific gap I'm missing? For example:
Want to make sure I build the right thing here.
salmonumbrella commentedon Apr 15, 2026
For example—Superpowers. To install:
/plugin marketplace add obra/superpowers-marketplace/plugin install superpowers@superpowers-marketplaceNow we're installed for Claude Code. We want to use Superpowers in Codex, and voila, Skillshare
collect+syncworks!BUT
One week goes by, and Superpowers pushes an update. Our source is truth is Claude Code's marketplace because we used it to install the plugin. Now the
SKILL.mdfiles are new, there's a new.pyfile for something added to the Superpowers repo. Since the update was automatic and I'm unaware of changes. I continue calling the plugin, which is now outdated, because my system looks at Skillshare as the source of truth.There needs to be some kind of automatic(?) collection process that keeps plugins, and perhaps CLI skills in sync with Skillshare. If someone installs a plugin on Claude Code, or if they install a plugin on Codex, or whatever harness they use for the entry-point, future updates collect into Skillshare.
salmonumbrella commentedon May 21, 2026
@runkids what do you think?
hhh2210 commentedon May 21, 2026
Adding a concrete local case that may help distinguish this from a simple
collect universalflow.I hit a duplicate-skill recurrence after #144 / #145 was already fixed and merged. The original duplicate path through
~/.codex/skillsis still fixed: my Codex target ismode: copy,skillshare sync --dry-run --jsonreportsupdated: 0andpruned: 0, and there is no nested.agents/skillsleak under~/.codex/skills.The new recurrence comes from another discovered root. Codex Desktop on my machine also scans
~/.agents/skills, while skillshare uses that directory as theopencode/ universal-style target. That leaves entries like:The Codex skill picker then shows both logical skills:
So the issue is not only target-local bundled skills drifting away from skillshare source. There is also a target ownership problem when one runtime scans multiple personal skill roots that skillshare treats as separate targets. Repeated local fixes with excludes are brittle because each new runtime/root combination can reintroduce the same logical skill through a different path.
A smarter direction might be for skillshare to model shared roots like
~/.agents/skillsas externally discoverable by more than one tool, then warn or plan syncs accordingly. For example,doctorcould detect that Codex-visible roots include both thecodextarget and theopencode/universal target, and suggest one authoritative route for overlapping source skills instead of treating both targets independently.This is why
collect universal --force && sync --forcedoes not fully cover the case: the files are already under skillshare management and sync is clean, but the runtime discovery surface still contains two managed projections of the same source skill.feat(doctor): warn on shared paths and cross-target discovery
TIR44 commentedon May 31, 2026
I did a current-main audit for the Codex/universal duplicate-root part of this issue.
What I found:
internal/config/targets.yamlalready models Codex primary global path as~/.codex/skillsandalso_scans.global: ["~/.agents/skills"].cmd/skillshare/doctor_shared_paths.goalready checks both same-target-path collisions and cross-target discovery overlaps.codex+universalconfigured in global mode reports across_target_discoverywarning indoctor --json:codex (...) also scans .../.agents/skills ← universal.make test-unitpasses locally. Running rawgo test ./...is not the right integration command because integration tests requireSKILLSHARE_TEST_BINARY; the reposcripts/test.shhandles that by buildingbin/skillsharefirst.Given that, I think the narrow next step for #135 is not a full
adoptimplementation yet. A small, maintainable PR could add actionable remediation suggestions to the existing doctor warnings, for example:That keeps collect/sync semantics and #133 plugin support out of scope while making the current diagnostic directly usable for the Codex + universal duplicate-root case.
feat(adopt): add `skillshare adopt` to claim CLI-bundled ~/.agents sk…
feat(adopt): add web dashboard UI for adopt
docs(adopt): document the adopt command
docs(changelog): add adopt to 0.20.0
4 remaining items
feat(adopt): add `skillshare adopt` to claim CLI-bundled ~/.agents sk…
feat(adopt): add web dashboard UI for adopt
docs(adopt): document the adopt command
docs(changelog): add adopt to 0.20.0
hhh2210 commentedon Sep 18, 2026
Following up on my earlier cross-root report here with a fresh reproduction and a Codex-only workaround. #177 and #180 already added useful overlap diagnostics; the remaining gap is the effective runtime catalog, not missing
also_scansmetadata.On macOS with Skillshare v0.20.29 and Codex CLI 0.155.0:
codexuses~/.codex/skillsin copy mode; another configured target writes symlinks to~/.agents/skills.skillshare doctor --jsoncorrectly warns aboutcross_target_discovery, but its separateduplicate_skillscheck reports “No duplicate skills”. These checks currently answer different questions.skills/listreturned 207 enabled entries / 124 distinct names. After reviewing same-name variants and disabling redundant paths in Codex's own config, it returned 124 enabled entries, every original name still represented, and no duplicate enabled names. No skill files were deleted or modified.A smaller synthetic reproduction isolates two independent sources of duplication:
Sync
gemandarchiveto a copy target and a merge target, excluding the flattenedarchive__*entries. When Codex discovers both output roots, it still sees fourgementries: two source locations times two projections. Excluding the flattened child does not remove the child from the synchronized parent directory. I reproduced this with disposable targets and Codex's process-localskills/extraRoots/set, then verified that three path-specific disable overrides reduced the enabled count to one while all files remained present.This suggests a distinction between where Skillshare writes and everything each runtime discovers. A target filter controls the former; it cannot guarantee runtime-level exclusion when another writer or a recursively discovered parent exposes the same skill. Archive/reference directories are relevant even when every target's sync state is healthy.
I would avoid unconditional name-based deduplication inside
sync:SKILL.mdfiles may break a parent skill's references.A possible next design step is an opt-in runtime catalog report / remediation plan, building on the existing overlap checks: enumerate candidates across the runtime's roots, distinguish canonical-path aliases, equivalent copies and conflicting variants, show the proposed retained path, and preserve consumer-specific filters. Any generated runtime overrides would need clear ownership, a dry run, and stale-override handling; silently rewriting consumer config during ordinary sync seems too strong a default.
For now, Codex supports a narrower workaround in its own
config.toml:Use the exact path reported by Codex (symlinks may resolve into the shared source), retain one reviewed entry, restart/reload Codex and verify its enabled catalog. This leaves other consumers and the skill files intact. It also does not imply that the total skills-context warning must disappear: the remaining unique catalog may still exceed its budget.
OpenAI's documented per-path setting.
Would a runtime-aware report/plan be the right next step beyond the current topology warnings? Draft RFC #284 now includes a runnable opt-in prototype:
skillshare dedup codexpreviews identical user skill groups, and--applybacks up Codex config, writes path-specific disables through the native API, and verifies the resulting catalog. Differing variants and protected scopes are left for manual review. Ordinary sync remains unchanged. Offline four-entry and real Codex apply/idempotence checks passed; the PR describes the exact scope and remaining limits.fix(doctor): suggest removing the scanning target for discovery overlap
fix(targets): realign also_scans with each tool's official docs
refactor(targets): detect tools and overlaps independently of the def…
fix(targets): point the codex target at ~/.agents/skills
fix(targets): move goose and openhands to .agents/skills
docs(i18n): translate the project path cleanup section for ja, ko, zh…
runkids commentedon Oct 4, 2026
Thanks everyone — this thread has grown to cover several distinct problems, now addressed through different workflows:
~/.agents/skills, and fresh initialization uses the shareduniversaltarget rather than writing the same skills into both Codex-visible roots. Project sync also cleans up Skillshare-managed leftovers from moved default paths. Existing global configs keep their explicitly recorded paths, so they still need configuration review.skillshare target NAME --skills=false, while retaining its agents, MCP and instruction management. This removes managed links, but preserves local skills and copy-mode copies; those copies may still require manual cleanup.For ordinary skills installed through
npx skills, the existing migration workflow remains available. This does not implement the proposedadoptcommand, external lock-file pruning, or cleanup of unmanaged agent directories.As discussed in #284, the preferred approach is to prevent redundant managed projections at the source rather than add a Codex-specific deduplication command. That draft remains a reference proposal, not a prerequisite for closing this issue. This does not imply arbitrary same-name skills or nested reference copies are automatically deduplicated.
I’d like to close the original adopt proposal as superseded by these workflows. If a specific problem remains after using the current setup, please open a focused issue with the configuration and reproduction steps so it can be evaluated separately.
salmonumbrella commentedon Oct 4, 2026
Thanks @runkids!