On this page
Decision 030 · Pointer-based marketplace — symlink plugin assemblies, no tracked dist
Replaces the generate-and-track distribution model with pointers: the source tree IS the installable surface for Claude Code, and the only real transformation (opencode) runs at install time instead of being committed.
- Provenance: owner ruling 2026-08-03 (backlog decision-2), after a DAG review of the distribution machinery, verification against current plugin docs, and a live proof-of-concept install. Formalized here per backlog task-1 (milestone m-0). The README-placement ruling in §Decision 4 was added by the owner 2026-08-03 when work started.
- Raised by: backlog decision-2; executed by tasks 2–4 (with 7 and 9 downstream).
Context
The distribution machinery had grown far heavier than what it distributes: ~733 lines of
generators (gen_marketplace.py, gen_standalone.py, gen_opencode.py) producing 530
tracked files under dist/, each lane wrapped in a drift guard, plus a filtered-assembly
publish workflow — all to ship 38 primitives whose bodies already live once in
primitives-core/. Every change pays the build/check/regen tax; every reviewer reads
generated diffs; the eval loop has two trees that claim to be the product.
A verification pass against the current plugin docs plus a live PoC established the facts that make the machinery unnecessary for Claude Code:
- A marketplace's
sourcefield accepts relative paths into the marketplace repo. - Symlinks inside a plugin dir are dereferenced at install — confirmed live for
skills/,agents/, andhooks/dirs pointing anywhere within the marketplace repo. - Symlinks pointing outside the marketplace repo are silently skipped (a failure mode to lint for, not a blocker).
- An installed plugin cannot reference paths outside its own root — dereferencing at install is what makes the assembly self-contained.
The opencode lane is different in kind: its translation (stricter name regex, agent frontmatter remap, config fragment) is genuinely irreducible. But irreducible transformation does not require tracked output.
Decision
One repo serves both runtimes; nothing generated is tracked.
plugins/<id>/become thin symlink assemblies. Each plugin dir holds a hand-authored.claude-plugin/plugin.json(plushooks.jsonwhere the plugin ships hooks); itsskills/,agents/, andhooks/entries are symlinks intoprimitives-core/. Multi-homing a primitive into another plugin = one more symlink. Thebundles/source dir dissolves — a bundle's README is hand-authored directly atplugins/<id>/README.md(it describes the composition, which lives there)..claude-plugin/marketplace.jsonmoves to the repo root, hand-maintained, listing every plugin by relativesourcepath. Claude Code installs natively from the repo — no build step.- The opencode lane generates at install time.
gen_opencode.py+translation.yamlstay as the one irreducible translation step, but run by the installer/consumer;dist/opencode/is no longer tracked. - READMEs travel with their skill (owner ruling, 2026-08-03). The
primitives-core/standalone-readmes/side-tree dissolves: a standalone skill's README lives atprimitives-core/skills/<id>/README.md, next to theSKILL.mdit documents. The standalone plugin's root README is one more symlink to it — same mechanism as everything else. - A symlink lint replaces the drift-guard class. Every symlink under
plugins/must resolve inside the repo (the silent-skip failure mode above), checked inmake ci. The roster (primitives-core.yaml) slims to a provenance manifest (origin/upstream/targets/disposition) — ADR 0015 enforcement continues against it. - Two repos only if a tripwire fires. Split the repo when: shared-body primitives become the minority, an external consumer needs an independent release cadence, or the translation layer outgrows declarative config. Until then, one repo.
Relation to prior ADRs
- Supersedes ADR 0008's dist-lane design (its Decisions 1–3:
dist/<target>/tracked lanes, the filtered lift-and-assemble publish payload, the roster-enum residency incheck_roster.py). 0008's Decision 4 —flow.yaml+check_flow.pyas the standing structural guard — remains in force; task-7 revisits its scope after the restructure. 0008 is markedSuperseded-by-0017with a callout naming the surviving part. - Amends ADR 0016, does not supersede it: the 15-plugin lineup stands unchanged; only
its implementation surface moves (its Affects list —
plugins.yaml,skill-catalog.yaml,bundles/, the generators — is retired by task-3). - ADR 0007's governance (dev integrates, main publishes) is untouched here. What publishing means under a pointer-based repo is an open decision — see below.
Linked open decisions
- Publish model (task-5): with no dist to assemble,
maincould become a plain merge gate ofdev, or consumers could install straight fromdev. Undecided; the current publish machinery stays as-is until task-5 rules. evals/+harness/extraction (task-6): whether the workbench leaves the repo changes what a consumer clone weighs, which feeds task-5.
Sequencing
Execution order (backlog, milestone m-0): task-2 (build plugins/ symlink assemblies +
root marketplace.json + symlink lint, dist output byte-identical) → task-3 (retire
dist/, generators, drift guards, plugins.yaml, skill-catalog.yaml; slim the roster)
→ task-4 (opencode install-time generation). The dist/generator/publish machinery stays
fully operational until each retirement lands green.
Consequences
make cilosesbuild/build-checkand gains the symlink lint; PRs stop carrying generated diffs; the regen-tax on every primitive edit disappears.- The eval loop benchmarks one unambiguous source tree.
- Hand-authored per-plugin metadata (
plugin.json, rootmarketplace.json) replaces generated metadata — small, reviewable files; the lint keeps the assembly honest. - Symlinks become load-bearing in the tracked tree: contributors on filesystems or tooling that mangle symlinks (e.g. Windows without developer mode) will need care; acceptable for this repo's audience, revisit only if a tripwire-adjacent consumer appears.
standalone-readmes/andbundles/disappear as top-level concepts;flow.yamlnodes flip accordingly (task-2/3), and flow enforcement itself may shrink after (task-7).- If the symlink-dereference install behavior ever regresses upstream, the marketplace breaks loudly at install — the PoC is the reference; re-verify before task-2 merges.
Affects
plugins/ (new home, symlink assemblies) · root .claude-plugin/marketplace.json ·
primitives-core/ (READMEs move into skill dirs; standalone-readmes/ dissolves) ·
bundles/ (dissolves into plugins/<id>/README.md) · dist/ + gen_marketplace.py +
gen_standalone.py + plugins.yaml + skill-catalog.yaml + their guards (retired,
task-3) · gen_opencode.py + translation.yaml (kept, run at install time, task-4) ·
primitives-core.yaml (slims to provenance manifest) · Makefile + tests/ ·
flow.yaml / docs/FLOW.md · .github/workflows/publish.yml (pending task-5) ·
ADR 0008 (status) · ADR 0016 (implementation surface).