Add an example or template
Each library item is one folder in examples/library/<slug>/. The card, the detail page, the thumbnail and the “Open in editor” link all come from that folder.
- Build the project with the CLI as
docs/agent-authoring.mddescribes:npm run build:cli, thencreateand smallapplybatches intoexamples/library/<slug>/project.json. Save each batch inops/, and use the title as the project name. - Apply the
suggestedOpsthe diagnostics give, untilvalidate --fail-on warningexits 0. - Render with
render --out, look at the drawings, and copy the best one todrawings/overview.png. - Write
meta.jsonwithslug,kind(templateorexample),title,description,level,tags,learn,orderandthumbnail. - Run
npm run docs:checkandnpm test, thennpm run docs:build.
The app bundles the project, so /open?template=<slug> works as soon as the app is rebuilt.