CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
This is the documentation repository for WunderGraph Cosmo - a Full Lifecycle GraphQL API Management Solution for managing Federated Graphs at scale. The documentation is built using Mintlify and written in MDX format.
Development Commands
Prerequisites
Local Development
The development server will start and you can preview changes locally. Run this from the docs-website/ directory (where docs.json is).
Troubleshooting
If the development server isn’t running properly:
Architecture & Key Concepts
Cosmo Components
- CLI (wgc) - Command-line interface for managing the platform
- Control Plane - Central management system with Platform API and Node API
- Router - GraphQL Federation router that handles request routing and response aggregation
- Studio - Web interface for management, monitoring, and analytics
Important Concepts
- Federated Graph: Unified GraphQL schema composed of multiple subgraphs
- Subgraph: Individual GraphQL service that contributes to a federated graph
- Monograph: Single GraphQL service without federation
- Namespaces: Environment isolation for graphs (dev, staging, prod)
- Feature Flags & Feature Subgraphs: Toggle-able subgraph replacements for incremental rollout
- Schema Contracts: Filtered graph versions using @tag directives
- **Cosmo Streams / EDFS: Connects to event streaming systems like Kafka, NATS, and Redis to power event-driven, federated operations through real-time subscriptions.
Documentation Structure
Key Files
docs.json - Mintlify configuration (navigation, theme, integrations)
style.css - Custom styling
- MDX files throughout - Documentation content
Writing Guidelines
Tone and Style
- Write as reference documentation, not as an answer to a question. State facts directly.
- Avoid em dashes. Use periods or restructure the sentence instead.
- Avoid filler and hedging (“simply”, “just”, “easily”, “of course”, “it should be noted that”).
- Do not over-explain. One clear sentence beats three cautious ones.
- Prefer short, declarative sentences. If a sentence has more than one comma-separated clause, consider splitting it.
- Use structured lists when presenting multiple distinct items. Do not pack them into a single paragraph.
- Do not sound like an LLM. No “This powerful feature allows you to…” or “In other words…”. Describe what things do, not how impressive they are.
- Use MDX format for all documentation
- Place images in the appropriate
images/ subdirectory
- Follow the existing navigation structure in
docs.json
- Include code examples where appropriate
- Link between related documentation pages
Frontmatter
Keep frontmatter sparse. Every content page should include:
Snippets under snippets/ do not need page frontmatter.
Do not use dateModified. Last-modified dates come from Mintlify’s git-backed timestamps (metadata.timestamp in docs.json). Authors do not bump a date field. Set timestamp: false on a page only when a last-modified line would be misleading (redirect stubs, empty shells).
Opt-in fields (omit by default):
tag — sidebar badge. Allowed values only: New, Beta, Deprecated. Apply only when true. Do not tag overview hubs or entire sections by default. Use tag only; do not also set Mintlify’s deprecated: true.
sidebarTitle — short nav label. Use Overview on section index/hub pages whose title is the full section name. Use a shortened label when the page title is too long for the sidebar. Keep the full title for the H1 and SEO. Do not add sidebarTitle on leaf pages with short titles.
noindex: true — exclude from search engines, sitemaps, site search, and AI context. Page stays in navigation. Use for redirect stubs and pages that should not be indexed.
searchable: false — exclude from in-product search and AI context only. Page remains externally indexable and in the sitemap. Rare. Prefer noindex: true for redirect stubs; do not set both.
Common Tasks
Adding a New Page
- Create an MDX file in the appropriate directory
- Add the page to navigation in
docs.json
- Test locally with
mintlify dev
Updating Navigation
Edit the navigation array in docs.json to modify the sidebar structure.
Adding Images
- Place images in
images/[topic]/
- Reference in MDX:

Deployment
Changes are automatically deployed when merged to the main branch. Pull requests generate preview deployments for review.Last modified on July 27, 2026