convention-eval
Runs all convention checks across the full codebase and produces a scored alignment report. Dispatched by the /align skill.
Review Go backend code for convention violations. Use after modifying files under components/backend/. Checks for panic usage, service account misuse, type assertion safety, error handling, token security, and file size.
$ 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 Go backend code for convention violations. Use after modifying files under components/backend/. Checks for panic usage, service account misuse, type assertion safety, error handling, token security, and file size.
name: backend-review description: > Review Go backend code for convention violations. Use after modifying files under components/backend/. Checks for panic usage, service account misuse, type assertion safety, error handling, token security, and file size. tools: - Read - Grep - Glob - Bash
Review backend Go code against documented conventions.
Load these files before running checks:
1. `specs/standards/backend/conventions.spec.md` 2. `specs/standards/backend/error-handling.spec.md` 3. `specs/standards/backend/k8s-client.spec.md`
grep -rn "panic(" components/backend/ --include="*.go" | grep -v "_test.go"Any match is a Blocker. Production code must return `fmt.Errorf` with context.
In `components/backend/handlers/`:
grep -rnE "DynamicClient\.|K8sClient\." components/backend/handlers/ --include="*.go" | grep -v "_test.go"
Cross-reference each match against the decision tree in `K8S_CLIENT_PATTERNS.md`.
grep -rnE 'Object\["[^"]+"\]\.\(' components/backend/ --include="*.go" | grep -v "_test.go"Must use `unstructured.NestedMap`, `unstructured.NestedString`, etc.
Look for empty error handling blocks:
rg -nUP 'if err != nil \{\s*\n\s*\}' --type go --glob '!*_test.go' components/backend/Also manually inspect `if err != nil` blocks for cases where the body only contains a comment (no actual handling).
grep -rn 'gin.H{"error":.*fmt\.Sprintf\|gin.H{"error":.*err\.' components/backend/handlers/ --include="*.go" | grep -v "_test.go"API responses should use generic messages. Detailed errors go to logs.
grep -rn 'log.*[Tt]oken\b\|log.*[Ss]ecret\b' components/backend/ --include="*.go" | grep -v "len(token)\|_test.go"
Use `len(token)` for logging, never the token value itself.
grep -rnP 'fmt.Errorf.*%v.*\berr\b' components/backend/ --include="*.go" | grep -v "_test.go"
Should use `%w` for error wrapping to preserve the error chain.
find components/backend/handlers/ -name "*.go" -not -name "*_test.go" -print0 | xargs -0 wc -l | sort -rn
Flag files exceeding 400 lines. Note: `sessions.go` is a known exception.
# Backend 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/8 checks passed]
Each finding includes: file:line, problem description, convention violated, suggested fix.
Kubernetes-native AI automation platform for intelligent agentic sessions
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 Kubernetes operator code for convention violations. Use after modifying files under components/operator/. Checks for…
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…