name: tour-authoring
description: Create or review authored tours, fixtures, and examples for diagram-tours. Use when adding or editing *.tour.yaml, Markdown Mermaid examples, authoring docs, or test fixtures that should follow the repository's tour conventions.
Tour Authoring
Author tours that match the repo's real contract, not a generic YAML style.
Follow these rules
- Keep tours next to their diagrams when possible.
- Use stable Mermaid IDs.
- Write
4-8steps unless the fixture needs a narrower shape. - Keep each step focused on one component, one handoff, one phase, or one reset.
- Use
focus: []intentionally for overview or reset states. - Use
{{node_id}}references instead of hardcoding labels when text should track diagram labels.
Check before editing
docs/authoring-guide.mddocs/tour-spec-v1.md- sibling examples in
examples/ - related fixtures in
fixtures/
Validate common pitfalls
- missing root fields
- empty
steps - invalid or unknown focus IDs
- invalid text references
- Markdown fragments that do not point at the intended Mermaid block
Useful preview commands
diagram-tours ./examples/payment-flow/payment-flow.tour.yamldiagram-tours ./examples/payment-flow/payment-flow.mmdbun run dev ./examples/payment-flow/payment-flow.tour.yaml
Output
- State what the tour teaches.
- Mention any fixture-specific compromise.
- List the preview or validation commands that should be run.