CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.Overview
This is the Kit Developer Documentation site at https://developers.kit.com/, built with Mintlify. Content is written in MDX (Markdown + JSX). Changes merged tomain are automatically deployed by Mintlify.
Git Workflow
Always create a new branch for changes — never commit directly tomain. Merging to main triggers an automatic deployment to https://developers.kit.com/.
Mintlify Reference
Mintlify provides LLM-friendly documentation:Local Development
Architecture
docs.json — The central config file controlling all navigation, theming, fonts, API settings, and metadata. All new pages must be registered here under navigation.tabs to appear in the sidebar.
Content areas:
welcome.mdx— Landing pagekit-app-store/— Kit App Store integration docs (OAuth, app config, versioning, best practices)plugins/— Plugin development docs including component library, content blocks, media sources, automation nodesapi-reference/— API v4 (current, powered byapi-reference/v4.jsonOpenAPI spec) and v3 (legacy, individual MDX files)changelog.mdx— Public developer changelog using Mintlify<Update>componentssnippets/— Reusable code examples
api-reference/v4.json — OpenAPI 3.0 spec for current API. API reference pages are auto-generated from this file; endpoint pages don’t need hand-authored MDX.
Changelog Entries
The changelog uses Mintlify’s<Update> component format. When adding entries manually, follow this structure from .github/prompts/changelog.md:
"API", "Kit App Store", "Plugins", "Webhooks", "SDK", "Authentication", "Documentation", "Forms", "Automation", "Commerce", "Analytics"
There is also an automated changelog pipeline via .github/workflows/process-shipped-message.yml that generates entries from Slack using OpenAI.
Adding New Pages
- Create the
.mdxfile in the appropriate directory. - Register the page path in
docs.jsonunder the correct tab/group innavigation.tabs.
API Documentation
API v4 is spec-driven — updateapi-reference/v4.json to add/modify endpoints. API v3 pages are hand-authored MDX in api-reference/v3/.