// AI-READY DOCUMENTATION SPECIFICATION
Introducing
MICROSERVICE.md
MICROSERVICE.md™ is a lightweight, AI-ready documentation specification for microservice systems, created by Koesion.
→ Try it freeMicroservice documentation is broken.
Docs rot immediately.
Your OpenAPI spec drifts from reality the moment the first PR merges.
Every team invents their own format.
Runbooks in Notion, contracts in Confluence, specs in git — no single source of truth.
AI agents are flying blind.
LLMs can't build on a service they know nothing about. README files don't cut it.
Onboarding is painful.
New engineers spend days mapping dependencies that should be obvious.
What is MICROSERVICE.md™?
MICROSERVICE.md™ is a structured documentation file — one per service — that becomes the canonical source of truth for your microservice.
You fill it once through a guided wizard. From it, we generate every artifact your team, your tools, and your AI agents need.
The structure of a MICROSERVICE.md™ file
Every MICROSERVICE.md™ file is divided into six sections. Together they form a complete, machine-readable portrait of your service — and edits to the file sync back into the wizard, diagrams, and every generated artifact.
01 — IDENTITY
Who is this service?
Name, mission statement, bounded context, ownership — plus a responsibilities list derived from everything below. This section answers the most fundamental question: what is this service responsible for and who owns it?
02 — INTERFACES
How does it communicate?
REST endpoints, GraphQL schema, gRPC proto, published events, and consumed events. This section drives the generated OpenAPI, AsyncAPI, GraphQL and gRPC contracts.
03 — DATA & DEPENDENCIES
What does it own and rely on?
Datastores the service owns, synchronous dependencies — internal services or cloud providers — with criticality, endpoints and resilience patterns, and the async events it consumes.
04 — OPERATIONS
How does it behave in production?
SLOs, security model (authn/authz, PII handling, scopes, secret store), and deployment configuration. This section powers the generated runbook, deployment profile and canvas.
05 — OBSERVABILITY
How do you know it's healthy?
Log format, key metrics, distributed tracing, dashboards, and alerts. The last piece the AI context pack needs to help diagnose incidents.
06 — ARCHITECTURE PATTERNS
What patterns does it participate in?
DDD aggregates with entities, value objects and invariants, API gateways, backend-for-frontend clients, CQRS pairs, sagas, and materialized views — rendered in the canvas and hexagonal views.
One wizard. A complete bundle.
Six core artifacts in every export, plus a contract file for every interface you declare.
Generated when declared
And inside the app, the same file drives interactive views: a live C4 container diagram, a hexagonal architecture view with your adapters and cloud services, and a topology map of every service you've documented.
Who it's for
Dev teams
Building or maintaining microservices who want docs that stay current without manual effort.
Platform engineers
Who need a consistent documentation specification across every service in the org.
AI-first teams
Using LLMs and coding agents that need rich, structured context to generate correct code.
Ready to document your first microservice?
Free during beta. No credit card required.
→ Get started free