k8s-yaml-validator

k8s-yaml-validator is a skill for Claude Code, Codex from pantheon-org/tekhne. It costs 57 tokens per session (3,302 once invoked), scanned A, original, MIT.

A validation workflow for Kubernetes YAML files, which describe resources running in a Kubernetes cluster. It checks syntax, expected fields, cluster restrictions, and some runtime concerns.

In plain words
What is it for?
It is for checking Kubernetes manifests, testing changes with dry runs, and working with unfamiliar Custom Resource Definitions (CRDs), which add custom resource types to Kubernetes.
Why use it?
It helps catch invalid configuration before applying it to a cluster and makes confusing kubectl errors easier to investigate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for checking Kubernetes manifests, testing changes with dry runs, and working with unfamiliar Custom Resource Definitions (CRDs), which add custom resource types to Kubernetes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pantheon-org/tekhne/yaml-validator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pantheon-org/tekhne --skill yaml-validator
Clone the repo
git clone --depth 1 https://github.com/pantheon-org/tekhne

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-yaml-validator

README.md
[![agentmods](https://agentmods.dev/badge/skills/pantheon-org/tekhne/yaml-validator.svg)](https://agentmods.dev/skills/pantheon-org/tekhne/yaml-validator)
Your own site
<a href="https://agentmods.dev/skills/pantheon-org/tekhne/yaml-validator"><img src="https://agentmods.dev/badge/skills/pantheon-org/tekhne/yaml-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.03302
Opus 5 $0.00028 $0.01651
Sonnet 5 $0.00011 $0.00660
Haiku 4.5 $0.00006 $0.00330

Measured 4d ago against content hash cba0cd1cf02d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

k8s-yaml-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/detect_crd_wrapper.sh, scripts/detect_crd.py, scripts/setup_tools.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/infrastructure/k8s/yaml-validator/SKILL.md · 407 lines

How it starts

The opening of the file, as written. The whole thing — 407 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kubernetes YAML Validator

Validation Mindset

Mental Model: Validation is a layered funnel—syntax → schema → cluster constraints → runtime behavior. Each layer catches different classes of errors.

Decision Framework:

  1. Syntax first: Fix YAML structure before schema issues (broken YAML can't be validated)
  2. Schema second: Verify API compliance before cluster-specific checks
  3. Cluster third: Test against real constraints (RBAC, quotas, admission webhooks)
  4. Runtime last: Consider how the resource behaves in production

When to use this skill:

  • Before applying any YAML to a cluster (development, staging, production)
  • When debugging mysterious kubectl apply failures
  • During CI/CD pipeline execution (catch errors early)
  • When working with unfamiliar CRDs (validation guides learning)
  • After generating YAML with k8s-yaml-generator

Validation philosophy: Report all issues, prioritize by severity, suggest fixes but never apply them automatically.

Overview

This skill provides a comprehensive validation workflow for Kubernetes YAML resources, combining syntax linting, schema validation, cluster dry-run testing, and intelligent CRD documentation lookup. Validate any Kubernetes manifest with confidence before applying it to the cluster.

IMPORTANT — REPORT-ONLY: Do NOT modify files, use the Edit tool, or offer to apply fixes. Generate a comprehensive validation report with suggested fixes shown as before/after code blocks, then let the user decide what to do next.

Validation Workflow

Follow this sequential validation workflow. Each stage catches different types of issues:

Stage 0: Pre-Validation Setup (Resource Count Check)

Before running any validation tools, check the file complexity:

  1. Count the number of resources by counting --- document separators or parsing the file
  2. If the file contains 3 or more resources, immediately load references/validation_workflow.md:
    Read references/validation_workflow.md
    
  3. Note the resource count for the validation report summary

Read the full file on GitHub · 407 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 407 lines · 57 tokens per session scan A cba0cd1cf02d

Subscribe to this mod's changes

k8s-yaml-validator is a skill published in the GitHub repository pantheon-org/tekhne (10 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 3,302 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

comet-github-ci-triage

A workflow for diagnosing failed GitHub Actions checks on a Comet pull request. GitHub Actions runs automated builds and tests; a pull request is a proposed code change waiting to be reviewed and merged.

rpamis/comet · 72 tokens

ci-auto-fix

Diagnoses a failed CI check, classifies it with an explicit verdict (code-bug | workflow-bug | dep-bug | env-bug | flaky | unsure), confidence-gates the fix (>=90 auto, 80-89 ask, <80 escalate), applies it, pushes, and iteratively verifies until CI passes — reverting the last commit if a brand-new failure appears.…

mthines/agent-skills · 154 tokens

fix-ci-until-green

Drive a failing GitHub Actions run to green in as few CI runs as possible, with a bounded fix-critique-commit-push-recheck loop that batches every evidenced fix into each push. Use when the user supplies a GitHub Actions run URL or run ID and wants the failure fixed, or asks to "make CI green", "fix the failing…

jim60105/copilot-prompt · 134 tokens

gh-fix-ci

Diagnoses failing or setup-stuck GitHub Actions checks on a PR, identifies root cause, and proposes or applies targeted fixes. Triggers when the user asks to fix CI, diagnose failing checks, fix a failing workflow, address GitHub Actions errors, get a green build, or continue PR queue work without waiting on unrelated…

shipshitdev/skills · 103 tokens

ci-failure-triage

Diagnose failed CI runs, build logs, test output, deployment checks, or pipeline summaries and produce a root-cause hypothesis, reproduction path, likely owner, fix plan, and escalation guidance. Use when Codex needs to triage broken builds, flaky tests, failed checks, or release-blocking automation failures.

ClarentCinematics/Codex-Skills-for-Enterprise · 70 tokens

gh-fix-ci

Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use gh to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.

KarhouTam/agent-skills · 72 tokens