operator-audit

Solid

Run the full Kubernetes Operator audit (CRD + reconcile + capability) on the current repo

AI & Automation 30,275 stars 4191 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
79
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /operator-audit Run the full audit on a Kubernetes Operator repository: 1. Validate every CRD YAML against operator-pattern best practices 2. Lint every Go controller's reconcile function for anti-patterns 3. Score the operator against OperatorHub Capability Levels (1-5) 4. Output a markdown report with pass/fail per check and concrete next steps ## Usage ``` /operator-audit /operator-audit --operator-dir ./my-operator /operator-audit --crd-dir ./config/crd --controller-dir ./controllers ``` ## Implementation ```bash SKILL=engineering/kubernetes-operator/skills/kubernetes-operator DIR="${OPERATOR_DIR:-.}" echo "## CRD validation" python "$SKILL/scripts/crd_validator.py" --crd "$DIR/config/crd" || true echo "" echo "## Reconcile lint" python "$SKILL/scripts/reconcile_lint.py" --controller "$DIR/controllers" || python "$SKILL/scripts/reconcile_lint.py" --controller "$DIR/internal/controller" || true echo "" echo "## Capability audit" python "$SKILL/scripts/operator_capability_audit.py" --operator-dir "$DIR" ``` ## Output A markdown report with: - **CRD findings** per file: FAIL / WARN / PASS for each check - **Reconcile findings**: line-numbered anti-patterns - **Current capability level** + concrete advancement steps ## Pre-conditions - Run from a Kubernetes Operator repository - Go controllers expected at `controllers/` or `internal/controller/` - CRDs expected at `config/crd/` (kubebuilder layout) - `kubernetes-operator` skill installed ## Post-conditions -...

Details

Author
alirezarezvani
Repository
alirezarezvani/claude-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category