This file provides guidance to coding agents like Claude Code (claude.ai/code) and OpenCode when working with code in this repository.
This is the Recoup API documentation site built with Mintlify. It provides API reference documentation for the Recoup platform.
Always commit and push changes after completing a task. Follow these rules:
- After making changes, always commit with a descriptive message
- Push commits to the current feature branch
- NEVER push directly to
main- always use feature branches and PRs
Branch from main:
git checkout main && git pull origin main && git checkout -b <branch-name>docs/
├── docs.json # Mintlify configuration (navigation, branding, theme)
├── index.mdx # Homepage
├── quickstart.mdx # Getting started guide
├── development.mdx # Development setup guide
├── api-reference/ # API endpoint documentation
│ ├── introduction.mdx
│ ├── openapi.json # OpenAPI spec for API endpoints
│ └── [category]/ # Grouped API endpoints (tasks, artists, chat, etc.)
├── essentials/ # Core documentation pages
├── ai-tools/ # AI tool integration guides
├── logo/ # Brand logos (light.svg, dark.svg)
├── favicon.svg # Site favicon
├── images/ # Documentation images
└── snippets/ # Reusable MDX snippets
Mintlify docs are deployed automatically. To preview locally:
npx mintlify@latest devAll site configuration is in docs.json:
- name: Site name displayed in navigation
- colors: Brand colors (primary, light, dark)
- logo: Light and dark mode logo paths
- favicon: Favicon path
- navigation: Tab and page structure
- navbar: Top navigation links and buttons
- footer: Social links
Reference Recoup-Chat codebase for correct branding values:
- Primary color:
#345A5D(fromtailwind.config.tsprimaryGreen) - Support email:
agent@recoupable.com - App URL:
https://chat.recoupable.com - Website:
https://recoupable.com - Social URLs:
- X:
https://x.com/recoupai - GitHub:
https://github.com/recoupable-com - LinkedIn:
https://www.linkedin.com/company/recoupable
- X:
Documentation pages use MDX (Markdown + JSX). Key conventions:
- Use frontmatter for page metadata (title, description)
- Use Mintlify components for callouts, code blocks, and interactive elements
- Keep content concise and scannable
API endpoints are documented in api-reference/ with:
- OpenAPI spec in
openapi.jsonfor auto-generated endpoint docs - MDX pages in
api-reference/[category]/that reference the OpenAPI spec
CRITICAL: API reference MDX pages should be frontmatter-only. Do NOT add custom sections (Overview, Availability, etc.) — let Mintlify auto-generate everything from the OpenAPI spec. All descriptions, parameter docs, and response schemas belong in openapi.json.
---
title: 'List Items'
openapi: 'GET /api/items'
---This is the correct pattern. Nothing else should go in the file.
From Recoup-Chat/principles.md:
- DRY: Don't duplicate content across pages - use snippets
- Single Responsibility: One concept per page
- Clear Organization: Group related pages in directories
- Self-Documenting: Use clear titles and descriptions
- Comments: Explain 'why', not 'what'