backend-review
Review Go backend code for convention violations. Use after modifying files under components/backend/. Checks for panic usage,…
Review Kubernetes operator code for convention violations. Use after modifying files under components/operator/. Checks for OwnerReferences, SecurityContext, reconciliation patterns, resource limits, and panic usage.
$ npx -y skills add ambient-code/platform --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Review Kubernetes operator code for convention violations. Use after modifying files under components/operator/. Checks for OwnerReferences, SecurityContext, reconciliation patterns, resource limits, and panic usage.
name: operator-review description: > Review Kubernetes operator code for convention violations. Use after modifying files under components/operator/. Checks for OwnerReferences, SecurityContext, reconciliation patterns, resource limits, and panic usage. tools: - Read - Grep - Glob - Bash
Review operator Go code against documented conventions.
Load these files before running checks:
1. `specs/standards/control-plane/conventions.spec.md` 2. `specs/standards/backend/k8s-client.spec.md` 3. `specs/standards/backend/error-handling.spec.md`
# Find client.Create calls (handles multi-line builder chains)
rg -U "\.Create\s*\(" components/operator/ --glob="*.go" -l
# Then for each file, check whether OwnerReferences is set before Create
rg "OwnerReferences|controllerutil\.SetControllerReference" components/operator/ --glob="*.go"For each `Create(` call in `components/operator/`, verify the created object's `metadata.OwnerReferences` is populated (or `controllerutil.SetControllerReference` is called) in the same function. See `DEVELOPMENT.md` for the required pattern.
# Find IsNotFound usages — verify they return nil, not an error rg -n "errors\.IsNotFound" components/operator/ --glob="*.go" -A 2 # Find status updates that set Failed but still return errors (bad pattern: should return nil) rg -U "status.*Failed|Failed.*status" components/operator/ --glob="*.go" -A 3 # Find Reconcile/reconcile functions for manual review of error return paths rg -n "^func.*[Rr]econcile" components/operator/ --glob="*.go"
grep -rn "SecurityContext" components/operator/ --include="*.go" | grep -v "_test.go"
Required: `AllowPrivilegeEscalation: false`, `Capabilities.Drop: ["ALL"]`
grep -rn "Resources\|Limits\|Requests" components/operator/ --include="*.go" | grep -v "_test.go"
Job containers should have resource requirements set.
grep -rn "panic(" components/operator/ --include="*.go" | grep -v "_test.go"Error paths must update the CR status to reflect the error.
# Find status update calls rg -n "status\.Update|Status\.Conditions|SetCondition|UpdateStatus" components/operator/ --glob="*.go" | grep -v "_test.go" # Find error returns in Reconcile functions without preceding status update (flag for manual review) rg -n "return.*ctrl\.Result|return.*err" components/operator/ --glob="*.go" | grep -v "_test.go"
For each error return path in `Reconcile`, verify a status update (setting condition to `Failed` or similar) occurs before returning.
grep -rn "context.TODO()" components/operator/ --include="*.go" | grep -v "_test.go"
Use proper context propagation from the reconciliation request.
# Operator Review ## Summary [1-2 sentence overview] ## Findings ### Blocker [Must fix — or "None"] ### Critical [Should fix — or "None"] ### Major [Important — or "None"] ### Minor [Nice-to-have — or "None"] ## Score [X/7 checks passed]
Each finding includes: file:line, problem description, convention violated, suggested fix.
Kubernetes-native AI automation platform for intelligent agentic sessions
Review Go backend code for convention violations. Use after modifying files under components/backend/. Checks for panic usage,…
Runs all convention checks across the full codebase and produces a scored alignment report. Dispatched by the /align skill.
Review frontend TypeScript/React code for convention violations. Use after modifying files under components/frontend/src/. Checks…
Review Python runner code for convention violations. Use after modifying files under components/runners/ambient-runner/. Checks…
Cross-cutting security review for code touching auth, RBAC, tokens, or container specs. Use before committing any code that…