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/.
npx skills add https://github.com/medusajs/medusa --skill writing-docs
Skill for writing and updating MDX documentation across the book, resources, ui, user-guide, and cloud projects under www/apps/.
> CRITICAL: Violating these will corrupt the documentation or break CI.
@ignore-tagged items — any option, method, or parameter with @ignore in its TSDoc must be skipped entirelywww/apps/resources/references/ — auto-generated, will be overwrittenwww/apps/ui/specs/components/ — auto-generated, will be overwrittenwww/apps/api-reference/ — managed by a separate processyarn prep or yarn lint:content — these run automatically after your session<!-- TODO: add screenshot --> instead> Load at least one reference file before writing any content.
| Task | Load |
|------|------|
| Deciding if a change needs docs | reference/when-to-document.md |
| Writing any MDX content | reference/mdx-patterns.md |
| Writing for the book project | reference/book-style.md |
| Writing for the resources project | reference/resources-style.md |
| Writing for the user-guide project | reference/user-guide-style.md |
| Writing for the cloud project | reference/cloud-style.md |
| Checking prose quality | reference/vale-rules.md |
| Project | Content path | Sidebar file |
|---------|-------------|--------------|
| book | www/apps/book/app/ | www/apps/book/sidebar.mjs |
| resources | www/apps/resources/app/ | www/apps/resources/sidebars/*.mjs |
| ui | www/apps/ui/app/, www/apps/ui/specs/examples/ | www/apps/ui/sidebar.mjs |
| user-guide | www/apps/user-guide/app/ | www/apps/user-guide/sidebar.mjs |
| cloud | www/apps/cloud/app/ | www/apps/cloud/sidebar.mjs |
export const metadata = {
title: `Page Title`,
}
# {metadata.title}
Content here.
For book pages that use chapter numbering, the title uses ${pageNumber}:
export const metadata = {
title: `${pageNumber} Chapter Title`,
}
[text](!docs!/learn/path) → book
[text](!resources!/path) → resources
[text](!user-guide!/path) → user-guide
@ignore in its TSDoc — skip these entirelyreferences/ or specs/components/ directorieswe, us, let's, our in prose (use "you" or imperative)e.g., — write for example instead—) — rewrite sentence to avoid them${pageNumber} from book page titles<img> or bare HTML instead of MDX componentsreference/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
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementing any feature or bugfix, before writing implementation code
Use when you have a spec or requirements for a multi-step task, before touching code
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Use when writing or improving README files. Not all READMEs are the same — provides templates and guidance matched to your audience and project type.
| Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Official Opentrons Protocol API for OT-2 and Flex robots. Use when writing protocols specifically for Opentrons hardware with full access to Protocol API v2 features. Best for production Opentrons protocols, official API compatibility. For multi-vendor automation or broader equipment control use pylabrobot.
Take medusajs/writing-docs from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.