Skip to content

Latest commit

Β 

History

History
111 lines (87 loc) Β· 5.65 KB

File metadata and controls

111 lines (87 loc) Β· 5.65 KB

AGENTS.md

Guidance for AI coding agents (Claude Code, Codex, Cursor, etc.) working in this repository. CLAUDE.md is a symlink to this file, so both resolve to the same content.

Project Overview

This is the Plane developer documentation site built with VitePress (Vue 3-based static site generator). It covers REST API reference, self-hosting guides, and developer tools documentation for the Plane project management platform.

Live site: https://developers.plane.so

Commands

pnpm install              # Install dependencies (use --frozen-lockfile in CI)
pnpm dev                  # Start dev server at http://localhost:5173
pnpm build                # Production build
pnpm preview              # Preview production build
pnpm check:format         # Check Prettier formatting
pnpm fix:format           # Auto-fix Prettier formatting
pnpm check:types          # Type-check the VitePress config and theme

CI checks on PRs (to master): Prettier formatting + VitePress build must pass.

Architecture

  • docs/ β€” All documentation content and VitePress config
    • docs/.vitepress/config.mts β€” Main VitePress config: navigation, sidebar structure, SEO, Algolia search, analytics. This is a large file that defines the entire site structure.
    • docs/.vitepress/theme/ β€” Custom theme (extends @voidzero-dev/vitepress-theme via extendConfig) with Vue components and global styles
    • docs/api-reference/ β€” REST API endpoint docs (180+ endpoints across 30+ resource categories)
    • docs/self-hosting/ β€” Deployment and configuration guides
    • docs/dev-tools/ β€” Webhooks, OAuth apps, agents, MCP server docs

Directory structure

docs/
  api-reference/        # REST API docs β€” 30+ resource categories (issues, cycles, modules, pages, etc.)
  dev-tools/            # Developer tooling guides
    agents/             # Agent development (overview, building, signals, best practices)
    build-plane-app/    # App development guide
    mcp-server.md       # MCP server setup
    mcp-server-claude-code.md  # MCP server with Claude Code
    plane-compose.md    # Plane Compose reference
    openapi-specification.md
    intro-webhooks.md
  self-hosting/         # Deployment and configuration guides
    methods/            # Docker, Kubernetes, Podman, Coolify, Portainer, one-click, airgapped
      install-methods-commercial/  # Commercial Docker Compose and Kubernetes
    govern/             # Auth, integrations, settings, SSL, DNS, env vars
      integrations/     # GitHub, GitLab, Slack, Sentry
      plane-ai/         # AI features configuration (configure-plane-ai, embedding models)
    manage/             # Backup/restore, Prime CLI, update Plane, logs, user management
    troubleshoot/       # CLI errors, installation, license, storage errors

Key Documentation Paths

  • self-hosting/methods/kubernetes.md β€” K8s deployment guide
  • self-hosting/methods/install-methods-commercial/ β€” Commercial Docker Compose and Kubernetes
  • self-hosting/govern/integrations/ β€” GitHub, GitLab, Slack, Sentry
  • self-hosting/govern/plane-ai/ β€” AI features configuration (configure-plane-ai.md, configure-embedding-model.md, aws-opensearch-embedding.md)
  • self-hosting/govern/environment-variables.md β€” All env var reference
  • self-hosting/govern/authentication.md β€” Auth setup (LDAP, OIDC, SAML, OAuth)
  • self-hosting/govern/reverse-proxy.md β€” Reverse proxy setup
  • self-hosting/manage/ β€” Instance management, backup/restore, Prime CLI
  • dev-tools/agents/ β€” Agent development docs
  • dev-tools/mcp-server.md and mcp-server-claude-code.md β€” MCP server docs

Custom Vue Components

Used directly in markdown files β€” defined in docs/.vitepress/theme/components/:

Component Usage
<ApiParam> API parameter with name, type, required badge, expandable details
<CodePanel> Multi-language code tabs (cURL, Python, JavaScript)
<ResponsePanel> Syntax-highlighted API response JSON
<Card> Feature card with icon, title, description
<CardGroup cols="N"> Responsive grid layout (2, 3, or 4 columns)

API Documentation Pattern

API endpoint pages follow a strict two-column layout pattern:

<div class="api-two-column">
<div class="api-left">
  <!-- Parameters using <ApiParam> -->
</div>
<div class="api-right">
  <!-- Code examples using <CodePanel> + <ResponsePanel> -->
</div>
</div>

Each endpoint page: one file per endpoint, includes path/body params, OAuth scopes, and code examples in cURL/Python/JavaScript.

Conventions

  • Frontmatter: Every markdown page needs title, description, and keywords fields
  • Images: Stored in docs/.vitepress/public/images/, referenced with absolute paths (/images/...)
  • Branch workflow: Branch from master, use fix/, feat/, docs/, update/ prefixes
  • Formatting: Prettier enforced β€” 120 char width, 2-space indent, semicolons, double quotes, ES5 trailing commas
  • Sidebar updates: When adding new pages, update the sidebar config in docs/.vitepress/config.mts

Important Notes

  • Not all features are documented immediately after release
  • API reference covers 30+ resource categories β€” check docs/api-reference/ for the full list
  • self-hosting/govern/plane-ai/ is the correct location for AI configuration (the former self-hosting/govern/plane-ai.md was split into a directory)