Examples
The examples/ directory in the
repo holds runnable sources, each a small but valid mind source with its own
README.md and a test that melds it so it cannot rot. This page maps each use
case, consumer and maintainer, to the example that demonstrates it.
Every example is a directory inside the mind repo, not its own git repo, so copy
it out and init a repo before melding (each README shows the exact commands):
cp -r examples/<name> /tmp/<name>-demo
cd /tmp/<name>-demo && git init -q && git add -A && git commit -qm init
mind meld /tmp/<name>-demo
mind probe
Example catalog
| Example | Shows | Key spec |
|---|---|---|
| starter | Convention discovery: a repo with no mind.toml, items found by skills/<n>/SKILL.md, agents/<n>.md, rules/<n>.md | discovery.md |
| tooling | The tool kind plus path tokens {{self}}, {{tools:name}}, {{path:ref}} | tooling.md |
| hooks | Source [[hooks]]: build/install tooling at meld, tear down at unmeld, with the disclosure prompt | install-hooks.md |
| explicit | Authoritative [[items]] inventory: export control, custom path/link, per-item install/uninstall hooks | discovery.md |
| monorepo | [source].roots: convention discovery rooted at per-package subtrees | discovery.md |
| namespacing | A prefix plus {{ns:name}} reference tokens that survive a rename | namespacing.md |
| super-source | [discover].sources: a curated registry that melds other repos, optionally namespaced or auto-installed | discovery.md |
| marketplace-plugin | A Claude .claude-plugin/plugin.json: skills and agents mapped to items, unsupported components reported | marketplace.md |
| marketplace-catalog | A Claude .claude-plugin/marketplace.json: a catalog of in-repo plugins, each a namespaced sub-source | marketplace.md |
| policy | An enterprise managed policy: trusted-source allowlist, require-pinned, lobe lock | policy.md |
Consumer use cases
You are installing and managing tooling that other people authored.
- Install an item from a source. Meld a repo, then learn an item. See the
Quickstart and the starter
example (
mind meld,mind learn). - Browse and search what is available.
mind probeopens an interactive browser, or prints a listing when piped. See Commands. - Resolve a name collision between two sources. Namespace one on install with
mind meld <repo> --namespace <prefix>, so its items install as<prefix>:<name>. See namespacing and Troubleshooting. - Pull from a curated registry. Meld a super-source to register a whole chain
of repos at once;
meld --recursiveoffers every nested source for install. See super-source. - Meld a Claude plugin or marketplace. A repo with a
.claude-plugin/plugin.jsonor.claude-plugin/marketplace.jsonmelds with no re-packaging; its skills and agents show up as items. See Claude plugin marketplaces and the marketplace-plugin / marketplace-catalog examples. - Install into more than one agent home. Configure
lobesin~/.mind/config.toml. See Configuration. - Stay up to date.
mind syncrefreshes every source;mind upgradeupgrades installed items and reports deltas first. See Commands. - Run under an enterprise policy. A fixed-path managed policy restricts a client to trusted sources and locks related settings. See policy.
Maintainer use cases
You are authoring a source repo for others to meld.
- Ship items with zero config. Use the convention layout; no
mind.tomlneeded. See Source layout and starter. - Declare an explicit inventory, or control what is exported. List items with
[[items]]to turn convention off, set custompath/link, and omit files you do not want offered. See explicit. - Lay out a monorepo or subtree. Point
[source].rootsat the package subtrees, or use[discover]kind globs for layouts roots cannot express. See monorepo. - Share helper tooling across items. Ship a
toolitem and reference it with{{tools:name}}/{{path:ref}}, or bundle a script with one skill and address it with{{self}}. See tooling and Source layout. - Build or install tooling at meld. Declare a source
[[hooks]]install entry (and an uninstall entry for teardown). See Install hooks and hooks. - Run a host side effect per item. Declare per-item
install/uninstallhooks (or[[items.hooks]]). See explicit. - Make intra-source references survive a prefix. Write sibling references as
{{ns:name}}tokens. See namespacing and Authoring a source. - Curate other repos into a registry. List them in
[discover].sources; a bare list keeps your own convention items too. See super-source. - Validate and scaffold before publishing.
mind init-sourcescaffolds amind.tomland reports references;mind reviewvalidates a source. See Authoring a source.