---
name: operator-design-audit
description: Audit Kubernetes operator API design and implementation correctness, including reconciliation, finalizers, watches, conditions, tests, packaging, and webhooks. Use for an operator design or best-practices review.
metadata:
version: "1.0.0"
---
# Operator design audit
Review API contracts and implementation against the Kubebuilder book and Operator Framework guidance. For each finding, identify a reachable failure scenario, the violated contract, and the smallest correction. Inspect behavior at the repository's pinned framework version.
This skill owns 54 `K*` checks in chapters 1-8. Probes target Go/controller-runtime, Kubebuilder, and Operator SDK. For other frameworks, apply equivalent lifecycle and API contracts and explain framework-specific applicability.
## Workflow
1. Read [chapter execution](../../references/chapter-workflow.md) for scope, authorization, and artifacts. Record the repository snapshot, framework/version, managed CRDs, install modes, and lifecycle responsibilities in `scope.md`. Run `python3 scripts/inventory.py /absolute/repo`.
2. Run `python3 scripts/chapter.py plan --track design`. Chapter 1 establishes the API contract. Review chapters 2-8 as applicable, loading each with `python3 scripts/chapter.py context N`.
3. Save `chapters/chNN.md` and `chapters/chNN.json` for every selected chapter. Validate each with `python3 scripts/chapter.py validate N chapters/chNN.json`. Trace source and manifests and record evidence for every assigned check.
4. Resolve chapter handoffs and contradictory evidence and deduplicate findings by location and root cause. Produce `audit.md` and `audit.json` using the [report contract](../../references/report-format.md). A complete design audit contains exactly the 54 design check IDs and uses `scope.mode: "full"`.
5. Run `python3 scripts/validate_report.py --track design audit.json`. Completion requires supported dispositions for all selected checks and findings with a location, scenario, remediation, and verification criterion.
For a chapter or subset, use targeted scope from the chapter workflow. In a combined audit, return this track's artifacts with unresolved handoffs and snapshot identity to the coordinator.
## Chapter references
| Chapter | Focus | Checks |
| --- | --- | --- |
| 1 | [API design and CRD schema](../../references/kb/ch01.md) | `K01-*` |
| 2 | [Reconciler implementation](../../references/kb/ch02.md) | `K02-*` |
| 3 | [Finalizers and ownership](../../references/kb/ch03.md) | `K03-*` |
| 4 | [Watches and predicates](../../references/kb/ch04.md) | `K04-*` |
| 5 | [Conditions, metrics, and probes](../../references/kb/ch05.md) | `K05-*` |
| 6 | [Testing and envtest](../../references/kb/ch06.md) | `K06-*` |
| 7 | [OLM packaging](../../references/kb/ch07.md) | `K07-*` |
| 8 | [Webhooks and conversion](../../references/kb/ch08.md) | `K08-*` |
Read [sources and provenance](../../references/sources.md) when verifying a cited or version-sensitive claim.
— ‹guest · 2026-12-03› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.