writing-docs

tarafından medusajs

Medusa dokümantasyon MDX dosyalarını book, resources, ui, user-guide ve cloud projeleri için yazar ve günceller. Şu temellere dayalı dokümantasyon değişiklikleri yaparken kullanın…

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 tarafından daha fazla skill

creating-agents-in-medusa
medusajs
Medusa projesinde dahili yönetim odaklı bir AI ajanı oluştururken kullanın. Bu ajanlar müşteriler tarafından değil, mağaza sahipleri ve mağaza operatörleri tarafından kullanılır. Kapsar…
mcloud-local
medusajs
Yerel makinede bir Cloud derlemesini yeniden üretmek için mcloud local build komutunu çalıştırın. İzlenen dala push yapmadan, derlemesi başarısız olan bir dağıtımda hata ayıklarken kullanın,…
reviewing-prs
medusajs
Medusa deposundaki GitHub pull request'lerini inceler. PR şablonu uyumluluğunu, katkı yönergelerini, kod kurallarını, güvenliği, performansı ve… kontrol eder.
writing-releases
medusajs
Medusa sürümleri için GitHub sürüm notlarını yerleşik stilde yazar. Bir commit ve PR listesinden taslak sürüm açıklaması oluştururken kullanın…
writing-tsdocs
medusajs
Medusa kod tabanındaki TypeScript kaynak dosyalarına TypeDoc (TSDoc) yorumları ekler ve günceller. HTTP türlerini, API rotalarını, UI bileşenlerini, veri modellerini, servisleri kapsar…
mcloud-variables
medusajs
mcloud değişkenleri komutlarını çalıştırarak bir Cloud ortamındaki ortam değişkenlerini listeleme ve alma işlemlerini gerçekleştirin. Ortam değişkenlerini inceleme, okuma veya dışa aktarma durumlarında kullanın…
mcloud-deployments
medusajs
mcloud dağıtım komutlarını çalıştırarak dağıtımları listele, dağıtım detaylarını al ve derleme günlüklerini getir. Dağıtımları listelerken, dağıtım durumunu kontrol ederken kullan.
building-storefronts
medusajs
Medusa mağaza ön yüzleri için SDK öncelikli ön uç entegrasyonu, React Query desenleri ve kritik API çağrı kuralları. Tüm API istekleri için her zaman Medusa JS SDK'sını kullanın—asla normal fetch() kullanmayın, çünkü gerekli başlıkları (mağaza rotaları için yayınlanabilir API anahtarı, admin rotaları için kimlik doğrulama) içermez. SDK yöntemlerine düz JavaScript nesneleri iletin; gövde parametrelerinde asla JSON.stringify() kullanmayın, çünkü SDK serileştirmeyi otomatik olarak halleder. GET istekleri için useQuery, POST/DELETE istekleri için useMutation kullanın,...