Skip to content

Feature: adopt/claim workflow for CLI-bundled skills (~/.agents convention) #135

Closed

Description

@salmonumbrella

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:

  1. They write straight to ~/.agents/skills/ + agent target dirs, bypassing skillshare source
  2. skillshare audit flags them as local/unmanaged
  3. 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)
  4. 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:

  1. Detect matching skills in ~/.agents/skills/ (or target dirs) not already in skillshare source
  2. Move canonical files into ~/.config/skillshare/skills/
  3. Clean broken symlinks across all agent target dirs (including unmanaged ones like ~/.continue/skills/)
  4. Prune matching entries from ~/.agents/.skill-lock.json by source / sourceUrl prefix
  5. Run skillshare sync

Questions

  1. 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?
  2. Is there an idiomatic skillshare way to claim target-local skills today that I'm missing? collect looked close but I wasn't sure whether it handles the lock-file pruning piece or cross-agent symlink cleanup.
  3. Would skillshare doctor --suggest-adopt (detecting these and offering to absorb them) be a lighter alternative to a dedicated command?

Activity

  1. added
    feature
    on Apr 15, 2026
  2. self-assigned this
    on Apr 15, 2026
  3. alessandrocornacchia commented on Apr 15, 2026

    @alessandrocornacchia

    Also popular marketplaces such as https://skills.sh use npx skills add installer.
    Agree with @runkids

  4. runkids commented on Apr 15, 2026

    @runkids
    Owner

    @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:

    skillshare target add universal
    skillshare collect universal --force
    skillshare sync --force

    This pulls everything from ~/.agents/skills/ into skillshare's source and syncs to all targets. After that, you'd use skillshare install / skillshare update going forward instead of npx skills add.

    Does this cover your use case, or is there a specific gap I'm missing? For example:

    • Is the issue that some tools bundle skill installation into their setup and you can't opt out?
    • Or is it more about wanting a single discoverable command instead of the 3-step flow above?

    Want to make sure I build the right thing here.

  5. salmonumbrella commented on Apr 15, 2026

    @salmonumbrella
    ContributorAuthor

    For example—Superpowers. To install:

    1. /plugin marketplace add obra/superpowers-marketplace
    2. /plugin install superpowers@superpowers-marketplace

    Now we're installed for Claude Code. We want to use Superpowers in Codex, and voila, Skillshare collect + sync works!

    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.md files are new, there's a new .py file 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.

  6. salmonumbrella commented on May 21, 2026

    @salmonumbrella
    ContributorAuthor

    @runkids what do you think?

  7. hhh2210 commented on May 21, 2026

    @hhh2210
    Contributor

    Adding a concrete local case that may help distinguish this from a simple collect universal flow.

    I hit a duplicate-skill recurrence after #144 / #145 was already fixed and merged. The original duplicate path through ~/.codex/skills is still fixed: my Codex target is mode: copy, skillshare sync --dry-run --json reports updated: 0 and pruned: 0, and there is no nested .agents/skills leak 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 the opencode / universal-style target. That leaves entries like:

    ~/.codex/skills/gstack__gstack-upgrade
    ~/.agents/skills/gstack__.agents__skills__gstack-upgrade -> ~/.config/skillshare/skills/gstack/.agents/skills/gstack-upgrade
    

    The Codex skill picker then shows both logical skills:

    Gstack Upgrade
    gstack-upgrade
    

    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/skills as externally discoverable by more than one tool, then warn or plan syncs accordingly. For example, doctor could detect that Codex-visible roots include both the codex target and the opencode/universal target, and suggest one authoritative route for overlapping source skills instead of treating both targets independently.

    This is why collect universal --force && sync --force does 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.

  8. TIR44 commented on May 31, 2026

    @TIR44
    Contributor

    I did a current-main audit for the Codex/universal duplicate-root part of this issue.

    What I found:

    • internal/config/targets.yaml already models Codex primary global path as ~/.codex/skills and also_scans.global: ["~/.agents/skills"].
    • cmd/skillshare/doctor_shared_paths.go already checks both same-target-path collisions and cross-target discovery overlaps.
    • A local repro with codex + universal configured in global mode reports a cross_target_discovery warning in doctor --json: codex (...) also scans .../.agents/skills ← universal.
    • make test-unit passes locally. Running raw go test ./... is not the right integration command because integration tests require SKILLSHARE_TEST_BINARY; the repo scripts/test.sh handles that by building bin/skillshare first.

    Given that, I think the narrow next step for #135 is not a full adopt implementation yet. A small, maintainable PR could add actionable remediation suggestions to the existing doctor warnings, for example:

    • text output: tell the user which target pair overlaps and suggest choosing one authoritative route;
    • JSON output: expose a stable suggestion/action field so UI/automation can surface the same guidance.

    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.

  9. 4 remaining items

  10. hhh2210 commented on Sep 18, 2026

    @hhh2210
    Contributor

    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_scans metadata.

    On macOS with Skillshare v0.20.29 and Codex CLI 0.155.0:

    • codex uses ~/.codex/skills in copy mode; another configured target writes symlinks to ~/.agents/skills.
    • skillshare doctor --json correctly warns about cross_target_discovery, but its separate duplicate_skills check reports “No duplicate skills”. These checks currently answer different questions.
    • Codex's skills/list returned 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:

    source/
      gem/SKILL.md                         # name: gem
      archive/SKILL.md                     # name: archive
      archive/references/originals/gem/SKILL.md  # name: gem, identical body
    

    Sync gem and archive to a copy target and a merge target, excluding the flattened archive__* entries. When Codex discovers both output roots, it still sees four gem entries: 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-local skills/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:

    • Same-name entries can contain different instructions, supporting files, invocation policy, or local fixes.
    • Removing a shared writer may affect another tool that still needs it.
    • Removing nested SKILL.md files may break a parent skill's references.
    • Switching copy targets to symlinks can collapse aliases of one canonical file in Codex, but does not merge two distinct source files with the same name.

    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:

    [[skills.config]]
    path = "/absolute/path/to/redundant/skill/SKILL.md"
    enabled = false

    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 codex previews identical user skill groups, and --apply backs 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.

  11. added
    awaiting-reply
    on Sep 19, 2026
  12. runkids commented on Oct 4, 2026

    @runkids
    Owner

    Thanks everyone — this thread has grown to cover several distinct problems, now addressed through different workflows:

    • Plugin installation and updates (v0.21.0): Native plugin management provides an alternative to collecting plugin skills as standalone copies. Plugins can be imported or added, kept intact, and managed through supported tools’ native installation and update workflows.
    • Duplicate Codex projections (v0.21.2): The built-in Codex skills path moved to ~/.agents/skills, and fresh initialization uses the shared universal target 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.
    • Overlapping targets (v0.21.15): A target can stop syncing skills with 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 proposed adopt command, 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.

  13. salmonumbrella commented on Oct 4, 2026

    @salmonumbrella
    ContributorAuthor

    Thanks @runkids!

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

Metadata

Metadata

Assignees

Labels

awaiting-replyfeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions