Skip to content

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.

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 them
templates/ one template per rendered file
items/<item>.yaml a package-info file without an installer block, with the
placements the item goes to
item-trees/<item>/ the tree the item places, its files at the root
manifests/ which items are managed and which are optional
conditions/ the fact script the config templates need

items/ and item-trees/ are inputs. The build turns them into the zips, packages-info/ and catalogs/ a device reads.

makecatalogs build builds the whole repository from the source directory:

Terminal window
makecatalogs build . -o public --location-prefix packages/harness

It 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.

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/codex
windows:
- ${ProgramData}\Acme
- ${ProgramData}\ClaudeCode
windows_user:
- ${USERPROFILE}\.agents

A 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.

config.yaml
url: https://repo.example.com/
url_packages: https://repo.example.com/
manifest: site_default
catalogs:
- harness

The manifest sorts the items:

name: site_default
catalogs:
- harness
managed_installs:
- example-skill
- codex-models
optional_installs:
- example-plugin

Every 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.