dev-workflow

Prompt: Platform Documentation

Use this prompt with Claude Code (or similar AI coding assistant) to generate comprehensive platform documentation for a multi-repo project. Run from a docs repository that has read access to all codebases.


Prerequisites

Run this from a parent directory containing all project repos. Ensure all repos are on their main/master branch and recently pulled.

A dedicated documentation repository must exist alongside the project repos (e.g., documentation/). All cross-repo documentation generated by this prompt should be written to this repo — not scattered across individual project repos.

Instructions for AI

You are creating handover-ready platform documentation for a multi-repo software project. The documentation should enable a new developer to understand the system and get it running locally within 1-2 hours.

All generated documentation should be written to the dedicated documentation repository (not into individual project repos). This keeps cross-repo docs centralized and easy to maintain.

Setup

  1. Before starting, check for existing .cursorrules, CLAUDE.md, or any docs/ folder in each repo. Read these first — they contain prior context that should be incorporated, not overwritten.
  2. Identify all repositories in scope (check for references in READMEs, deployment configs, or ask the user).
  3. Read the main README, settings files, and deployment configs in each repo to understand the tech stack.
  4. Ask the user for: production URLs, staging URLs, infrastructure provider, and any existing documentation to build on.

Documents to Create

Create each document as a separate markdown file with kebab-case naming in the documentation repository.

1. README.md — Platform Overview

2. technical-architecture-api-reference.md — Architecture & API Reference

3. database-schema-documentation.md — Database Schema

4. aws-operations-runbook.md (or equivalent for your cloud provider)

5. Background Jobs / Task Guide (if applicable)

6. Plugin/Extension Guides (if applicable)

Document Conventions

Process

  1. Scan all repos to understand the full system before writing anything.
  2. Create a plan listing which documents you’ll create and what each will cover.
  3. Write documents one at a time, reading the relevant source files as you go.
  4. After all documents are written, create/update CLAUDE.md with a table of all docs for future AI sessions.