---
name: mdx-notes
description: Write or edit notes in elaborat.ing as MDX, with the app's built-in components (callouts, cards, columns, alerts, badges, charts, embedded drawings and diagrams) or custom components saved in the project. Use when creating or changing a note in an elaborat.ing project.
---
# MDX notes
The user's instructions win over this skill when they differ.
## Files
- New notes are `.mdx`: Markdown (with tables, task lists and frontmatter)
plus components. Keep an existing `.md` note as plain Markdown unless the
user asks to convert it.
- Read before you write: `read_file` returns the content and its `version`.
Save with `write_file`, passing that version as `base_version` (leave it out
for a new file). If the result is a conflict, someone changed the file
first: read it again, merge your change in and save again.
- Save files that belong together, such as a note and the component file it
imports, in one `save_files` call.
- Use `show_file` when the user wants to see the note.
## Built-in components
No import needed. Leave a blank line before and after a block component.
- `Text`: tone is info, warn
or error.
- `` with `` and ``.
- `` with ``, ``, ``,
`` and ``.
- ``: two columns side by side on wide screens.
- `New`: default, secondary or outline.
- `