agentleFS
ArangoGutierrezArangoGutierrez/claude-toolkit/.claude/skills/k8s-review/SKILL.md

k8s-review

Skill4 starsChanged 3 months agoMITView on GitHub

Kubernetes-specific code review — YAML correctness, Helm charts, API best practices, RBAC least-privilege. Triggered by "review Kubernetes manifests", "review Helm chart", "RBAC audit", or /k8s-review

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When invoked by the pr-review dispatcher, the reviewer reads references/k8s-review-checklist.md, reviews ONLY the changed lines in the PR …

    line 47
  2. Distinctive:

    Don't flag YAML style that yamllint/CI already handles

    line 66
  3. Distinctive:

    Don't redesign charts or the API surface during review — flag within the existing pattern

    line 67
  4. Distinctive:

    Verify apiVersion deprecations against the target cluster version, not just the newest

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

K8s Review

Systematic Kubernetes review across manifests, Helm charts, and RBAC. Flags correctness, security, and best-practice issues — not style that yamllint/CI already handles.

Process

  1. Static analysis (guarded — each tool runs only if installed):

    changed=$(git diff --name-only --diff-filter=d HEAD~1 -- '*.yaml' '*.yml')
    # Validate changed manifests against the K8s schema, or dry-run against a live cluster
    for f in $changed; do
      command -v kubeconform >/dev/null && kubeconform -strict -summary "$f"
      command -v kubectl     >/dev/null && kubectl apply --dry-run=server -f "$f"  # needs a cluster context
    done
    # Helm charts — lint and render with default AND each values-*.yaml in the PR
    command -v helm >/dev/null && helm lint ./chart && helm template ./chart
    command -v helm >/dev/null && for v in ./chart/values-*.yaml; do [ -e "$v" ] || continue; helm template ./chart -f "$v"; done
    # Extra static checks when available
    command -v kube-linter >/dev/null && kube-linter lint $changed
  2. Walk checklist (see references/k8s-review-checklist.md):
    • YAML correctness, Helm correctness, K8s API best practices, RBAC least-privilege
  3. Report findings:
    • file:line for each issue (NEW-file / RIGHT-side line number)
    • Category: correctness / security / best-practice
    • Severity: must-fix / should-fix / consider
    • Reason: which checklist item flagged it, plus a suggested fix

Dispatched mode (pr-review integration)

When invoked by the pr-review dispatcher, the reviewer reads references/k8s-review-checklist.md, reviews ONLY the changed lines in the PR diff, and returns a findings list. Each finding has:

  • file — repo-relative path
  • line — NEW-file (RIGHT-side) line number
  • description — 1–2 sentences
  • category — correctness / security / best-practice
  • severity — must-fix / should-fix / consider
  • reason — which checklist item flagged it

Findings are returned as data. Take NO external action of any kind in dispatched mode — no posting, commenting, submitting, or writing outside the returned findings payload.

Scope

Changed files only unless explicitly asked for a full-tree review.

Gotchas

  • Don't flag YAML style that yamllint/CI already handles
  • Don't redesign charts or the API surface during review — flag within the existing pattern
  • Respect existing chart conventions (naming, structure, values layout)
  • Verify apiVersion deprecations against the target cluster version, not just the newest

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.