Skip to content

docs: document the toolkit curation format and add an authoring skill - #1125

Merged
teallarson merged 1 commit into
mainfrom
teal/gro-278-document-the-toolkit-curation-format-file-kinds-frontmatter
Aug 13, 2026
Merged

docs: document the toolkit curation format and add an authoring skill#1125
teallarson merged 1 commit into
mainfrom
teal/gro-278-document-the-toolkit-curation-format-file-kinds-frontmatter

Conversation

@teallarson

@teallarson teallarson commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Closes GRO-278. Follow-up from @sdserranog's review of #1112: curation/ had no format reference, only examples.

What's here

  • toolkit-docs-generator/CURATION.md — the reference. File kinds, every frontmatter key, slot-order tables, the authoritative-directory rule, and each failure message with its trigger.
  • .claude/skills/curate-toolkit-docs/ — the procedure for adding or editing curation.
  • validate-curation CLI — compiles a curation tree with the same code generation uses, so authors can check their work without Engine credentials. It can't verify tool: targets, which need the live tool list; the command says so.

Documented, not changed

Writing the tables surfaced places where behavior contradicts naming. All left as-is, all now written down:

  • position is a slot name, not a spatial relation — description + after renders above the summary.
  • Some accepted combinations render nowhere (replace on several locations; parameters/secrets/output at toolkit level).
  • Filenames don't order anything; the renderer sorts by priority. Every existing file has a 001- prefix, so this misleads.
  • type: section renders as a callout — all 26 existing ones sit in boxes.
  • imports/ and pages/ reach the JSON but nothing in the app reads them.

Happy to file tickets if we'd rather fix any of these.

Note

compileCurationDirectory is extracted from MarkdownCurationSource.loadData so validation can report every broken toolkit instead of dying on the first. loadData still throws on the first error, so generation is unchanged.

Verification

Typecheck, lint, and 834 tests pass. validate-curation is clean across all 75 toolkit directories, and each failure path was exercised by hand. Docs and tooling only — no rendered-page changes.

🤖 Generated with Claude Code

Follow-up from Sergio's review of #1112, which gave hand-authored toolkit
prose a home in curation/ but documented the format only by example.

Adds toolkit-docs-generator/CURATION.md as the format reference: the three
file kinds, every frontmatter key with allowed values and effect, a
slot-order table for toolkit-level chunks and a per-location table for
tool-level ones, the authoritative-directory rule, and every failure
message.

Reading the renderers to build those tables turned up behavior the naming
contradicts, now stated explicitly:

- `position` is a slot name, not a spatial relation. All four toolkit-level
  header/description slots render above the generated summary.
- Several accepted combinations render nowhere — `replace` on description,
  auth, and custom_section; parameters/secrets/output at toolkit level.
- Filenames don't set display order. The renderer re-sorts each slot by
  priority, then header, then body, ignoring array order.
- `type: section` renders as a default callout, since the renderer has no
  case for it.
- imports/ and pages/ reach the JSON but nothing in the app reads them.

Adds .claude/skills/curate-toolkit-docs/ as the procedure an author or
agent follows to add curation and verify it.

Adds a `validate-curation` CLI command so that verification is possible
without Engine credentials: it compiles the directory with the same code
generation uses and reports per toolkit. To report every broken toolkit
instead of dying on the first, the directory walk moves into
`compileCurationDirectory`, which returns a result-or-error per toolkit;
MarkdownCurationSource consumes it and still throws on the first error, so
generation behavior is unchanged.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 12, 2026 7:57pm

Request Review

@teallarson

Copy link
Copy Markdown
Contributor Author

@BugBot review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 1ad3c01. Configure here.

@teallarson
teallarson marked this pull request as ready for review August 12, 2026 20:11

@sdserranog sdserranog left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! 🚢

@teallarson
teallarson merged commit d207e7f into main Aug 13, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants