Production-grade platform engineering handbook — Kubernetes, Terraform, Flux CD, GitHub Actions, AWS, and more.
67
84%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Status: Stable
Reference implementations for OpenAPI 3.1 specifications with shared components, security schemes, and response definitions.
| Example | Type | Description |
|---|---|---|
| openapi-spec/openapi.yaml | OpenAPI 3.1 | Orders API — create, read, list orders with auth, pagination, error schemas |
# Validate the spec with Redocly (recommended)
npx @redocly/cli lint openapi-spec/openapi.yaml
# Preview rendered documentation in browser
npx @redocly/cli preview-docs openapi-spec/openapi.yaml
# Generate HTML docs
npx @redocly/cli build-docs openapi-spec/openapi.yaml -o docs/
# Validate with Spectral (alternative linter)
npx @stoplight/spectral-cli lint openapi-spec/openapi.yaml| Section | What it shows |
|---|---|
info | Version, contact, license metadata |
servers | Environment URLs (production, staging) |
security | Bearer token and API key schemes |
paths | POST /orders, GET /orders/{id}, GET /orders with pagination |
components/schemas | Order, CreateOrderRequest, ErrorResponse, PaginatedResponse — reused across paths |
components/responses | Shared 400, 401, 404, 500 responses referenced by $ref |
components/parameters | Shared page, limit, sort pagination parameters |
# Define once in components
components:
responses:
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorResponse"
# Reference everywhere
paths:
/orders/{id}:
get:
responses:
"404":
$ref: "#/components/responses/NotFound"components:
schemas:
PaginatedOrders:
type: object
required: [data, total, page, limit]
properties:
data:
type: array
items:
$ref: "#/components/schemas/Order"
total:
type: integer
page:
type: integer
limit:
type: integercomponents:
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: JWT# .github/workflows/docs.yml
- name: Lint OpenAPI spec
run: npx @redocly/cli lint openapi-spec/openapi.yaml --fail-on-warningsoperationId, summary, and tags$ref for reusable types — no inline duplicationcomponents/responsescomponents/securitySchemes and referenced in securityrequired fields listed explicitly on all request body schemas@redocly/cli lint with zero errors/platform-skills:document — generate docstrings, OpenAPI spec, doc site, or getting started guide.claude-plugin
.github
commands
docs
examples
agent-self-improve
argocd
awesome-docs
aws
cloudfront
functions
lambda-edge
functions
azure
compliance
conventional-commits
datadog
llm-observability
demo
documentation
dora
dynatrace
fluxcd
github-actions
composite-actions
configure-cloud
db-migrate
docker-build-push
k8s-deploy
notify-slack
pr-comment
release-tag
security-scan
setup-env
setup-terraform
terraform-plan
helm
web-service
templates
kubernetes
kyverno
mcp
observability
openshift
pr-review
ownership
runtime-security
supply-chain
terraform
references
scripts
skills
platform-skills
tests