writing-docs

द्वारा medusajs

Writes and updates Medusa documentation MDX files for the book, resources, ui, user-guide, and cloud projects. Use when making documentation changes based on…

npx skills add https://github.com/medusajs/medusa --skill writing-docs

Writing Medusa Documentation

Skill for writing and updating MDX documentation across the book, resources, ui, user-guide, and cloud projects under www/apps/.

Constraints

CRITICAL: Violating these will corrupt the documentation or break CI.

  • Never document @ignore-tagged items — any option, method, or parameter with @ignore in its TSDoc must be skipped entirely
  • Never touch www/apps/resources/references/ — auto-generated, will be overwritten
  • Never touch www/apps/ui/specs/components/ — auto-generated, will be overwritten
  • Never touch www/apps/api-reference/ — managed by a separate process
  • Never run yarn prep or yarn lint:content — these run automatically after your session
  • Never invent Cloudinary screenshot URLs in user-guide — leave <!-- TODO: add screenshot --> instead

Load Reference Files When Needed

Load at least one reference file before writing any content.

TaskLoad
Deciding if a change needs docsreference/when-to-document.md
Writing any MDX contentreference/mdx-patterns.md
Writing for the book projectreference/book-style.md
Writing for the resources projectreference/resources-style.md
Writing for the user-guide projectreference/user-guide-style.md
Writing for the cloud projectreference/cloud-style.md
Checking prose qualityreference/vale-rules.md

Quick Reference

Project paths and writable directories

ProjectContent pathSidebar file
bookwww/apps/book/app/www/apps/book/sidebar.mjs
resourceswww/apps/resources/app/www/apps/resources/sidebars/*.mjs
uiwww/apps/ui/app/, www/apps/ui/specs/examples/www/apps/ui/sidebar.mjs
user-guidewww/apps/user-guide/app/www/apps/user-guide/sidebar.mjs
cloudwww/apps/cloud/app/www/apps/cloud/sidebar.mjs

MDX file minimum structure

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`,
}

Cross-project links

[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

medusajs की और Skills

mcloud-variables
medusajs
क्लाउड वातावरण के लिए पर्यावरण चरों को सूचीबद्ध करने और प्राप्त करने हेतु mcloud variables कमांड निष्पादित करें। पर्यावरण चरों का निरीक्षण, पठन या निर्यात करते समय उपयोग करें।
official
building-storefronts
medusajs
SDK-प्रथम फ्रंटएंड एकीकरण, Medusa स्टोरफ्रंट के लिए React Query पैटर्न और महत्वपूर्ण API कॉलिंग नियमों के साथ। सभी API अनुरोधों के लिए हमेशा Medusa JS SDK का उपयोग करें—कभी भी सामान्य fetch() का उपयोग न करें, क्योंकि इसमें आवश्यक हेडर (स्टोर रूट के लिए प्रकाशनीय API कुंजी, एडमिन रूट के लिए प्रमाणीकरण) का अभाव होता है। SDK विधियों में सादे जावास्क्रिप्ट ऑब्जेक्ट पास करें; बॉडी पैरामीटर पर कभी भी JSON.stringify() का
official
building-admin-dashboard-customizations
medusajs
मेडुसा एडमिन डैशबोर्ड के लिए एडमिन SDK और मेडुसा UI घटकों का उपयोग करके कस्टम UI एक्सटेंशन। किसी भी एडमिन UI कार्य (योजना, कार्यान्वयन, अन्वेषण) के लिए पहले इस स्किल को लोड करें; MCP सर्वर केवल API संदर्भ प्रदान करते हैं, डिज़ाइन पैटर्न या डेटा लोडिंग रणनीतियाँ नहीं। महत्वपूर्ण: सभी API अनुरोधों के लिए हमेशा मेडुसा JS SDK का उपयोग करें (कभी भी सामान्य fetch का नहीं); डिस्प्ले क्वेरी को
official
learning-medusa
medusajs
इंटरैक्टिव चरण-दर-चरण मेडुसा डेवलपमेंट बूटकैंप जहां आप आर्किटेक्चर पैटर्न सीखते हुए एक ब्रांड्स फीचर बनाते हैं। तीन प्रगतिशील पाठ (कुल 2-3 घंटे) जिनमें मॉड्यूल, वर्कफ़्लो, एपीआई रूट्स, मॉड्यूल लिंक्स, वर्कफ़्लो हुक्स और एडमिन यूआई कस्टमाइज़ेशन शामिल हैं। प्रत्येक प्रमुख घटक के बाद चेकपॉइंट सत्यापन आगे बढ़ने से पहले अवधारणात्मक सम
official
db-migrate
medusajs
लंबित Medusa डेटाबेस माइग्रेशन निष्पादित करें और परिणाम रिपोर्ट करें। आपके Medusa डेटाबेस पर सभी लंबित माइग्रेशन लागू करने के लिए Bash के माध्यम से npx medusa db:migrate चलाता है। लागू किए गए माइग्रेशन की संख्या, सामने आई किसी भी त्रुटि और सफलता की पुष्टि सहित माइग्रेशन परिणाम रिपोर्ट करता है। मानक npm/npx सेटअप वाले Medusa प्रोजेक्ट्स के लिए डिज़ाइन किया गया है।
official
mcloud-environments
medusajs
mcloud environments कमांड को निष्पादित करके क्लाउड वातावरणों को सूचीबद्ध करना, प्राप्त करना, बनाना, हटाना, पुनः तैनात करना या बिल्ड ट्रिगर करना। वातावरण जीवनचक्र प्रबंधित करते समय उपयोग करें,…
official
db-generate
medusajs
एक ही कमांड से Medusa मॉड्यूल के लिए डेटाबेस माइग्रेशन जनरेट करें। निर्दिष्ट Medusa मॉड्यूल के लिए माइग्रेशन फ़ाइलें बनाने हेतु npx medusa db:generate CLI कमांड को रैप करता है। मॉड्यूल का नाम एक आर्गुमेंट के रूप में स्वीकार करता है और माइग्रेशन फ़ाइल का स्थान, त्रुटियाँ, तथा अगले कदमों की रिपोर्ट करता है। जनरेशन के बाद माइग्रेशन लागू करने के लिए स्वचालित रूप से npx medusa db:migrate चलाने का सुझाव देता है।
official
mcloud-deployments
medusajs
mcloud deployments कमांड निष्पादित करें ताकि डिप्लॉयमेंट सूचीबद्ध किए जा सकें, डिप्लॉयमेंट विवरण प्राप्त किए जा सकें, और बिल्ड लॉग लाए जा सकें। डिप्लॉयमेंट सूचीबद्ध करते समय, डिप्लॉयमेंट की जाँच करते समय उपयोग करें…
official