Skip to Content
BricoleDocs

Template catalog configuration

Set discovery metadata, proof inputs and provenance for a template people can copy.

An official template lives at templates/<name>/. Its template.json describes the source a person or agent can copy. Its artifact configuration controls the runtime permissions and files of the published app. A standalone app only needs a catalog entry if you distribute it as a template.

Catalog fields

FieldMeaning
nameRequired. Match the directory name using lowercase letters or digits in hyphen-separated words. The command name list is reserved.
title, descriptionRequired nonempty display strings. Describe the starting app and when to copy it.
versionRequired Semantic Version such as 0.1.0. The creator independently records the Git commit it copied.
licenseRequired SPDX identifier. The catalog accepts MIT or Apache-2.0.
defaultRequired boolean. Default entries appear first when listing. Optional entries can also be copied by name.
tags.kindExactly one of document, app, prototype, slides, site, example.
tags.primitiveRequired array of distinct entries from comments, element-comments, people, database, live, mcp-tools, server, public-site. The gate compares the database, live, MCP and server tags with the declarations in bricole.json.
tags.useRequired array of distinct entries from engineering, design, operations, household. Empty arrays are valid for either list facet. Only kind, primitive and use are accepted inside tags.
kindOptional nonempty legacy display string carried into the index. Set tags.kind for classification.
bindingsOptional string array copied into the index. Declare the runtime bindings in bricole.json.

Place a readable SKILL.md inside the folder and give the workspace a build script. A template-local tsconfig.base.json, if supplied, must match the root copy apart from whole-line comments. The catalog generates the index entry’s path, manifest and skill from the directory name. Run bun run catalog to regenerate templates/index.json and bun run catalog:check to compare it with the manifests.

Seed data and verification

FieldConsumer and behavior
vocabularyArray of template-specific words. The principle gate and proof use these alongside the directory name to keep app concepts in the template.
proof.toolOptional name of a read tool that the proof calls through MCP after publishing, then tests through the page relay.
proof.seed and seed.pathTogether name the write tool and the template-relative JSON file whose contents become its arguments in a disposable proof. Use fictional records a visitor can subsequently read.
proof.visitVisitor GET path beginning with /. Defaults to /. A non-root path needs a seeded record the proof can find there.

bun run proof --complete builds and publishes the template to a disposable local host, checks its entry and preview, and exercises the declared tool and visitor paths. The template creation guide walks through registration.

Descriptive metadata and provenance

Shipped templates also use entry (usually SKILL.md), requires (prerequisites), mcp and tools (descriptions of the app’s MCP capabilities), and seed.fictional and seed.load (what the example data is and how to load it). These fields inform readers. The catalog locates the skill at <folder>/SKILL.md, and the publisher reads actual tool declarations from bricole.json.

In provenance, shipped templates identify their origin using repository and path, with explanatory text in note or derivedFrom. When the creator copies a template it additionally writes copiedFrom.repository, copiedFrom.ref and copiedFrom.commit into the copy. A subsequent copy gets its own resolved commit. Metadata stays with the source unless your build deliberately includes it in the published bundle.