Topic-Docs YAML Authoring
Use this skill when adding or editing topic-docs YAML.
Primary reference
- Read
topic-docs/README.mdfirst.
Source of truth for edge cases
If anything is unclear or conflicting, follow code validation/build behavior in:
app/src/data/topicDocs/schema.tsapp/scripts/topic-docs-build/attributeResolution.ts
Authoring workflow
- Identify the target table file in
topic-docs/<topic>/<tableName>.yaml. - Apply the field and combination rules from
topic-docs/README.md. - For
refandvaluesRef, ensure pointers use<tableName>.<attributeKey>and targets exist. - Keep docs human-readable (
label/description) unlessformat: ignoreis intentional. - Verify changes from
app/:bun run topic-docs-build- Optional:
bun run topic-docs-coverage-check -- --table <tableName>
Required checks
- No invalid combinations (
refwithvalues,valuesRefwithvalues, etc.). valuesAddonly used withreforvaluesRef.format: ignoredoes not define values.- Chapter references point to real chapter IDs.
Output expectations
- Keep YAML minimal and explicit.
- Prefer reuse (
ref/valuesRef) over copy-pasting large repeated enums.