Repository navigation
Description
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)
internal/config/config.go:302-309—ExtraConfig{name, source, file, targets};sourceis resolved as a local directoryinternal/config/project.go:331-336—EffectiveExtrasSource=<project-dir>/extrasinternal/sync/extras_run.go:51-56— missing source →SourceMissing, no fetchinternal/install/source.go:94-103— install source types exist (local, GitHub, Git HTTPS, Git SSH) but are only wired to skills and agentsinternal/config/config.go:287-290—hub:is already{default, hubs[]}(search index), so [Feature] AIShare: centralized AI resource hub beyond skills (scripts, docs, prompts, IDE/MCP configs) with selective downstream sync #239'shub: <url>cannot be reused
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
ExtraConfigentry soupdateand the project manifest can restore it (ResourceEntry.kindalready exists in the Go struct) - Keep
extrassync modes unchanged; this only adds the acquisition step
Design decisions needed
- Install location and gitignore handling for a fetched extra in project mode
- Whether
auditscans executable files inside fetched extras ([Feature] AIShare: centralized AI resource hub beyond skills (scripts, docs, prompts, IDE/MCP configs) with selective downstream sync #239 asks not to weaken guardrails; audit currently only covers skill and agent kinds) - Whether
skillshare installwith no arguments (manifest reinstall) also restores extras - Related: the GitHub Contents API fallback writes files with
0644(internal/install/github_download.go:175), which loses the exec bit for scripts — tracked separately
Not in scope
resources:/ scalarhub:config wrapperproject-bindings.yamlprofiles or overlay merging (user-domain config, skillshare does not read it)- Rendering MCP templates with plaintext secrets
Activity
salmonumbrella commentedon Oct 25, 2026
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.
salmonumbrella commentedon Nov 13, 2026
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-rulesfetches the directory into the managedextras source, records
remote:on the extra's config entry and the fullcommit in metadata (and in
skills.lock.jsonin a project), and stops.sync extrasdelivers it as today. It does not touchhub:.Four choices I'd want your call on: the field name
remote;--namerather than
--as, because--asalready means the target filename inextras 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 understandimplementation is normally yours; a pull request from me would be a
reference unless you say otherwise.