Skip to content

extras: install an extra from a remote source (hub → project for rules, docs, scripts, prompts) #434

Open

Description

@runkids

Problem

Split from #239 (§2–§5). Everything #239 asks to distribute from a hub besides skills — shared scripts, docs/knowledge-base modules, base prompts, IDE rules — can already be expressed as an extra, but an extra's source is a local path only. internal/install never touches extras; when the source directory is missing, sync just records SourceMissing and skips. So a team hub can publish skills and agents that downstream projects install, but not rules/commands/docs/scripts.

This is the single change that unlocks the hub → project path for resource types 2–5 of #239 without adding a resources: wrapper or a scalar hub: key (which would conflict with the existing HubConfig mapping).

Evidence (v0.25.0, aeaea40e)

Proposal

Let an extra be installed from the same source syntax skills use, e.g.

skillshare install owner/ai-hub/targets/cursor/rules --kind extra --as cursor-rules -p
  • Reuse internal/install (sparse checkout → Contents API → clone, lock entry with commit) and write the files under the effective extras dir
  • Record the remote source on the ExtraConfig entry so update and the project manifest can restore it (ResourceEntry.kind already exists in the Go struct)
  • Keep extras sync modes unchanged; this only adds the acquisition step

Design decisions needed

Not in scope

  • resources: / scalar hub: config wrapper
  • project-bindings.yaml profiles or overlay merging (user-domain config, skillshare does not read it)
  • Rendering MCP templates with plaintext secrets

Activity

  1. added
    feature
    on Oct 6, 2026
  2. salmonumbrella commented on Oct 25, 2026

    @salmonumbrella
    Contributor

    I’ve put the broader hub-and-spoke design into a specification for review, with a narrated explainer in the existing #239 comment.

    For this issue, I would keep remote extra acquisition independently useful: fetch into the managed source, retain remote provenance and revision information, then use the existing extras sync behavior. The spec identifies the current source boundaries; it does not turn #434 into a federation PR or reuse the existing hub: search configuration.

    @runkids implementation of the broader model is on hold pending your explicit design approval. No product code has changed. The proposed federation protocol, resource boundaries, recovery behavior and acceptance fixtures are in the linked review packet.

  3. added
    extras
    on Nov 2, 2026
  4. salmonumbrella commented on Nov 13, 2026

    @salmonumbrella
    Contributor

    I'd like to propose a concrete shape for this, kept separate from #239 as
    you asked. skillshare install example-org/ai-hub/targets/cursor/rules --kind extra --name cursor-rules fetches the directory into the managed
    extras source, records remote: on the extra's config entry and the full
    commit in metadata (and in skills.lock.json in a project), and stops.
    sync extras delivers it as today. It does not touch hub:.

    Four choices I'd want your call on: the field name remote; --name
    rather than --as, because --as already means the target filename in
    extras commands; fetching extras with Git only, so the audited files and the
    pinned commit are the same revision; and blocking when the audit cannot run,
    not only when it finds something.

    I can write this up as a proposal in proposals/ first. I understand
    implementation is normally yours; a pull request from me would be a
    reference unless you say otherwise.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    extrasfeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions