Skip to main content

API Documentation — Agent Guide

Document-driven API design for the ScalePad AMM v2 API. This directory contains the canonical API design docs, endpoint references, and an agent suite for automating documentation workflows.

Scope

Changes from agents working here should stay within:

  • docs/api/ — design guidelines, domain docs, and open questions
  • apps/api-docs/ — Docusaurus site and sidebars.ts

Do not modify backend source code, OpenAPI generation, or frontend consumers from this context.

Key Files

FilePurpose
docs/api/design-guidelines.mdSource of truth for all API design decisions
docs/api/open-questions.mdPending design decisions
docs/api/index.mdAPI reference landing page and domain index
apps/api-docs/sidebars.tsSidebar navigation configuration
services/amm/agent-web-api/openapi.jsonLive OpenAPI specification (read-only from this context)

Documentation Agents

A full agent suite lives in .ai/agents/. Start with these:

  • .ai/agents/README.md — agent inventory, invocation examples, and how to add new agents
  • .ai/agents/WORKFLOWS.md — day-to-day workflows: design-only, write, review, audit, ship

Quick reference

I want to...Agent
Design endpoints for a new featuredoc-designer
Write docs from an approved designdoc-writer
Review docs for guideline compliancedoc-reviewer
Fix broken links or review findingsdoc-fixer
Update the sidebarsidebar-syncer
Check if docs are stale vs the OpenAPI specopenapi-doc-syncer
Clean up a fully implemented proposalproposal-cleaner
Full feature → reviewed docsdesign-and-document
Audit all docs against the live specdoc-audit
Feature → docs → committed PRdoc-ship

Directory Structure

docs/api/
├── design-guidelines.md ← design rules (embedding, DTOs, response shapes, etc.)
├── open-questions.md ← unresolved design decisions
├── index.md ← API reference landing page
├── {domain}/ ← per-domain endpoint docs (apps/, users/, devices/, etc.)
│ ├── index.md ← domain overview
│ └── {endpoint}.md ← individual endpoint doc
└── .ai/agents/ ← agent definitions and playbooks