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
clone the repo, copy the example out, and init a repo before melding (each
README shows the exact commands):
git clone --depth 1 https://github.com/jaemk/mind /tmp/mind-repo
cp -r /tmp/mind-repo/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 |
| hello | The repo-root mind.toml’s [source].roots scanning examples/hello; what mind meld jaemk/mind offers | 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 |
| discover | [discover] kind globs with per-kind include/exclude lists, for layouts roots cannot express | 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 |
| marketplace-curator | A repo that is both a Claude marketplace and a mind curator: [discover].sources composes with the plugin manifest instead of suppressing it | marketplace.md |
| policy | An enterprise managed policy: trusted-source allowlist, require-pinned, lobe lock | policy.md |
| drift | Item drift end to end: recall/introspect flag an out-of-date item, upgrade re-links it | lifecycle.md |
| multi-lobe | Linking one item into more than one agent home (lobe) via config lobes | storage.md |
| absorb | Claiming an unmanaged lobe item into a version-controlled source with absorb | absorb.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 and multi-lobe. - Stay up to date.
mind syncrefreshes every source;mind upgradeupgrades installed items and reports deltas first. See Commands and drift. - Claim an unmanaged lobe item into a managed source.
mind absorbmoves a file you placed in a lobe by hand into a source you own and installs it as a managed item. See absorb and the absorb example. - 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 and discover. - 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; for a repo that is both a Claude marketplace and a curator, see marketplace-curator. - Validate and scaffold before publishing.
mind init-sourcescaffolds amind.tomland reports references;mind reviewvalidates a source. See Authoring a source.