Writes and updates Medusa documentation MDX files for the book, resources, ui, user-guide, and cloud projects. Use when making documentation changes based on code diffs, adding new pages, updating existing content, or updating component examples. ALWAYS load this skill before modifying any MDX file in www/apps/. Use when this capability is needed.
[text](!docs!/learn/path) → book
[text](!resources!/path) → resources
[text](!user-guide!/path) → user-guide
Common Mistakes
Adding a new option, method, or parameter without a version note
Documenting any option, method, or parameter tagged with @ignore in its TSDoc — skip these entirely
Touching references/ or specs/components/ directories
Using we, us, let's, our in prose (use "you" or imperative)
Using "Medusa API" to mean the backend — use "Medusa backend" instead
Writing "Medusa Cloud" — use "Medusa" (noun form) or "Cloud" (location/service)
Using e.g., — write for example instead
Using em dashes (—) — rewrite sentence to avoid them
Using passive voice ("is created", "can be configured") — write active ("you can configure", "call X to create")
Writing code lines longer than 64 characters
Forgetting to add a new page to the sidebar file
Removing ${pageNumber} from book page titles
Using <img> or bare HTML instead of MDX components
Documenting internal implementation details (only public APIs)
Reference Files
reference/when-to-document.md - Decision tree: does this change need docs?
reference/mdx-patterns.md - MDX syntax, code blocks, components
reference/book-style.md - book-specific structure and conventions
reference/resources-style.md - resources-specific structure and conventions
reference/user-guide-style.md - user-guide writing style and conventions
reference/cloud-style.md - cloud-specific structure and conventions
reference/vale-rules.md - Vale + lint rules to follow in prose
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: writing-docs3description: Writes and updates Medusa documentation MDX files for the book, resources, ui, user-guide, and cloud projects. Use when making documentation changes based on code diffs, adding new pages, updating existing content, or updating component examples. ALWAYS load this skill before modifying any MDX file in www/apps/. Use when this capability is needed.4---56# Writing Medusa Documentation78Skill for writing and updating MDX documentation across the `book`, `resources`, `ui`, `user-guide`, and `cloud` projects under `www/apps/`.910## Constraints1112> **CRITICAL:** Violating these will corrupt the documentation or break CI.1314- **Never document `@ignore`-tagged items** — any option, method, or parameter with `@ignore` in its TSDoc must be skipped entirely15- **Never touch `www/apps/resources/references/`** — auto-generated, will be overwritten16- **Never touch `www/apps/ui/specs/components/`** — auto-generated, will be overwritten17- **Never touch `www/apps/api-reference/`** — managed by a separate process18- **Never run `yarn prep` or `yarn lint:content`** — these run automatically after your session19- **Never invent Cloudinary screenshot URLs** in user-guide — leave `<!-- TODO: add screenshot -->` instead2021## Load Reference Files When Needed2223> **Load at least one reference file before writing any content.**2425| Task | Load |26|------|------|27| Deciding if a change needs docs | `reference/when-to-document.md` |28| Writing any MDX content | `reference/mdx-patterns.md` |29| Writing for the **book** project | `reference/book-style.md` |30| Writing for the **resources** project | `reference/resources-style.md` |31| Writing for the **user-guide** project | `reference/user-guide-style.md` |32| Writing for the **cloud** project | `reference/cloud-style.md` |33| Checking prose quality | `reference/vale-rules.md` |3435## Quick Reference3637### Project paths and writable directories3839| Project | Content path | Sidebar file |40|---------|-------------|--------------|41| book | `www/apps/book/app/` | `www/apps/book/sidebar.mjs` |42| resources | `www/apps/resources/app/` | `www/apps/resources/sidebars/*.mjs` |43| ui | `www/apps/ui/app/`, `www/apps/ui/specs/examples/` | `www/apps/ui/sidebar.mjs` |44| user-guide | `www/apps/user-guide/app/` | `www/apps/user-guide/sidebar.mjs` |45| cloud | `www/apps/cloud/app/` | `www/apps/cloud/sidebar.mjs` |4647### MDX file minimum structure4849```mdx50export const metadata = {51 title: `Page Title`,52}5354# {metadata.title}5556Content here.57```5859For book pages that use chapter numbering, the title uses `${pageNumber}`:6061```mdx62export const metadata = {63 title: `${pageNumber} Chapter Title`,64}65```6667### Cross-project links6869```mdx70[text](!docs!/learn/path) → book71[text](!resources!/path) → resources72[text](!user-guide!/path) → user-guide73```7475## Common Mistakes7677- [ ] Adding a new option, method, or parameter without a version note78- [ ] Documenting any option, method, or parameter tagged with `@ignore` in its TSDoc — skip these entirely79- [ ] Touching `references/` or `specs/components/` directories80- [ ] Using `we`, `us`, `let's`, `our` in prose (use "you" or imperative)81- [ ] Using "Medusa API" to mean the backend — use "Medusa backend" instead82- [ ] Writing "Medusa Cloud" — use "Medusa" (noun form) or "Cloud" (location/service)83- [ ] Using `e.g.,` — write `for example` instead84- [ ] Using em dashes (`—`) — rewrite sentence to avoid them85- [ ] Using passive voice ("is created", "can be configured") — write active ("you can configure", "call X to create")86- [ ] Writing code lines longer than 64 characters87- [ ] Forgetting to add a new page to the sidebar file88- [ ] Removing `${pageNumber}` from book page titles89- [ ] Using `<img>` or bare HTML instead of MDX components90- [ ] Documenting internal implementation details (only public APIs)9192## Reference Files9394```95reference/when-to-document.md - Decision tree: does this change need docs?96reference/mdx-patterns.md - MDX syntax, code blocks, components97reference/book-style.md - book-specific structure and conventions98reference/resources-style.md - resources-specific structure and conventions99reference/user-guide-style.md - user-guide writing style and conventions100reference/cloud-style.md - cloud-specific structure and conventions101reference/vale-rules.md - Vale + lint rules to follow in prose102```103104---105> Converted and distributed by [TomeVault](https://tomevault.io/claim/medusajs) — claim your Tome and manage your conversions.106<!-- tomevault:4.0:skill_md:2026-04-16 -->
Run npx skillmds@latest add tomevault-io/writing-docs in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Writes and updates Medusa documentation MDX files for the book, resources, ui, user-guide, and cloud projects. Use when making documentation changes based on code diffs, adding new pages, updating existing content, or updating component examples. ALWAYS load this skill before modifying any MDX file in www/apps/. Use when this capability is needed. It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.