Build an AI store
An AI store is a sofcat repository whose items are skills, plugins and config files for coding agents. A device’s manifest decides which ones every user gets and which ones they can add from the self-service app. Everything in it is a zip item: sofcat places files and renders templates, and runs no installer.
sofcat-harness-example is a complete store with one item of each kind. Fork it, or read it beside these pages. Its values are made up.
| To ship | Read |
|---|---|
| A skill for Claude Code or Codex | Skills |
| A plugin, and the marketplace catalog that lists it | Plugins and marketplaces |
| A tool’s machine-wide config file | Config files |
The paths on these pages are examples. Check each tool’s documentation for the directories it reads before you copy one.
The repository
Section titled “The repository”A store is an ordinary sofcat repository with a placements.yaml at its
root. The example keeps its sources like this:
placements.yaml where items land, and the files sofcat renders beside themtemplates/ one template per rendered fileitems/<item>.yaml a package-info file without an installer block, with the placements the item goes toitem-trees/<item>/ the tree the item places, its files at the rootmanifests/ which items are managed and which are optionalconditions/ the fact script the config templates needitems/ and item-trees/ are inputs. The build turns them into the zips,
packages-info/ and catalogs/ a device reads.
Build and publish
Section titled “Build and publish”makecatalogs build builds the whole repository from the source directory:
makecatalogs build . -o public --location-prefix packages/harnessIt packs each item’s tree for every placement the item lists, writes its
package-info file with the installer block filled in, copies
placements.yaml, templates/, manifests/ and conditions/, compiles the
catalogs and runs makecatalogs -check on the result. A device fetches
placements.yaml and templates/ too. public is wiped and rebuilt on
every run; see Building a repository.
-check renders every template without a device. It needs a value for each
fact your own scripts provide, under check_facts in placements.yaml
(check_facts). Run the build in CI on every
change and publish the output directory to any static host. The example
publishes to GitHub Pages from its
workflow.
Write roots
Section titled “Write roots”sofcat writes only under its write roots, and a stock build has one: its own
directory. A store that writes to /etc/codex or
/Library/Application Support/ClaudeCode needs those roots added, either in
the brand’s write-roots.yaml at build time or by managed policy:
darwin: - /Library/Application Support/Acme - /Library/Application Support/ClaudeCode - /etc/codexwindows: - ${ProgramData}\Acme - ${ProgramData}\ClaudeCodewindows_user: - ${USERPROFILE}\.agentsA placement outside every root fails with placement_refused. See
Write roots.
A store that ships nothing but zip items can be a
zip-only build, which has no code for
the msi, exe, ps1, msix and nupkg installers.
Point a device at it
Section titled “Point a device at it”url: https://repo.example.com/url_packages: https://repo.example.com/manifest: site_defaultcatalogs: - harnessThe manifest sorts the items:
name: site_defaultcatalogs: - harnessmanaged_installs: - example-skill - codex-modelsoptional_installs: - example-pluginEvery device gets a managed item and keeps it. An optional item shows in the
self-service app until a user adds it. Templates see the difference as
.Managed, which is how a marketplace catalog enables a managed plugin by
default and only offers an optional one.