Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Example sources

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

ExampleShowsKey spec
starterConvention discovery: a repo with no mind.toml, items found by skills/<n>/SKILL.md, agents/<n>.md, rules/<n>.md, commands/<n>.md, workflows/<n>.jsdiscovery.md
helloThe repo-root mind.toml’s [source].roots scanning examples/hello; what mind meld jaemk/mind offersdiscovery.md
toolingThe tool and resource kinds plus path tokens {{self}}, {{tools:name}}, {{resources:name}}, {{path:ref}}tooling.md, resources.md
hooksSource [[hooks]]: build/install tooling at meld, tear down at unmeld, with the disclosure promptinstall-hooks.md
explicitAuthoritative [[items]] inventory: export control, custom path/link, per-item install/uninstall hooksdiscovery.md
monorepo[source].roots: convention discovery rooted at per-package subtreesdiscovery.md
discover[discover] kind globs with per-kind include/exclude lists, for layouts roots cannot expressdiscovery.md
namespacingA prefix plus {{ns:name}} reference tokens that survive a renamenamespacing.md
super-source[discover].sources: a curated registry that melds other repos, optionally namespaced or auto-installed, plus mind curate reconciling it after the list changesdiscovery.md, curate.md
marketplace-pluginA Claude .claude-plugin/plugin.json: skills, agents, commands, and workflows mapped to items, unsupported components reported, a workflows component-path override ignoredmarketplace.md
marketplace-catalogA Claude .claude-plugin/marketplace.json: a catalog of in-repo plugins, each a namespaced sub-sourcemarketplace.md
marketplace-curatorA repo that is both a Claude marketplace and a mind curator: [discover].sources composes with the plugin manifest instead of suppressing itmarketplace.md
policyAn enterprise managed policy: trusted-source allowlist, require-pinned, lobe lockpolicy.md
driftItem drift end to end: recall/introspect flag an out-of-date item, upgrade re-links itlifecycle.md
multi-lobeLinking one item into more than one agent home (lobe) via config lobesstorage.md
absorbClaiming an unmanaged lobe item into a version-controlled source with absorbabsorb.md

Which example for which task

taskexampleguide
install from a plain repostarterFind and install items
resolve a name collisionnamespacingFix name collisions
follow a curated listsuper-sourceFollow a curated collection
meld a Claude plugin or marketplacemarketplace-plugin, marketplace-catalogClaude plugins and marketplaces
link into more than one agent homemulti-lobeUse more than one agent
see drift and upgradedriftKeep everything up to date
adopt a hand-placed itemabsorbAdopt items you placed by hand
run under a managed policypolicyManaged policy
export only some filesexplicitThe mind.toml file
lay out a monorepomonorepo, discoverThe mind.toml file
share a script between skillstoolingShare helper scripts
share a data file between skillstoolingShare data files
build tooling at meldhooksRun setup with hooks
curate other repossuper-source, marketplace-curatorCurate other repos