Skills:validate

From kagenti/kagenti · View interactive version

Skills:validate is an AI agent skill from the GitHub repository kagenti/kagenti. Validate skill files meet the standard format and naming conventions

How to use this skill

Skill file

Validate Skill

When to Use

Validation Checks

Required

Command Format (Required)

Recommended

Sandbox vs Management Classification

Skills operate on either sandbox (safe) or management (requires approval) targets:

| Type | Target | Auto-approve? | Command format |

|------|--------|---------------|----------------|

| Sandbox | Local Kind cluster, custom HyperShift hosted cluster | YES | Single commands, one per step |

| Management | Management cluster, AWS resources, git push, destructive ops | NO | Can chain commands (user approves anyway) |

Sandbox skills (auto-approved)

Commands target localtest.me, KUBECONFIG=~/clusters/hcp/rossoctl-hypershift-custom-*, or Kind clusters.

IMPORTANT: Run each command separately — not chained with &&. Chained or multiline commands break Claude Code's auto-approve pattern matching.

## GOOD (each command runs separately, matches auto-approve patterns)

Check pod status:

kubectl get pods -n rossoctl-system


Check logs:

kubectl logs -n rossoctl-system deployment/mlflow


## BAD (chained commands won't match auto-approve patterns)

kubectl get pods -n rossoctl-system && kubectl logs -n rossoctl-system deployment/mlflow

Management skills (require approval)

Commands target management clusters, AWS APIs, or perform destructive operations. These can use any command format since the user must approve each one.

How to Validate

Single Skill

# Check frontmatter
head -5 .claude/skills/<skill>/SKILL.md

# Check name matches directory
DIR_NAME=$(basename $(dirname .claude/skills/<skill>/SKILL.md))
SKILL_NAME=$(grep '^name:' .claude/skills/<skill>/SKILL.md | sed 's/name: //')
[ "$DIR_NAME" = "$SKILL_NAME" ] && echo "OK" || echo "MISMATCH: dir=$DIR_NAME name=$SKILL_NAME"

All Skills

# Check all frontmatter name-vs-directory
for f in .claude/skills/*/SKILL.md; do
  dir=$(basename $(dirname "$f"))
  name=$(grep '^name:' "$f" | sed 's/name: //' | tr -d ' ')
  [ "$dir" = "$name" ] || echo "MISMATCH: $dir != $name"
done

Check Command Format (sandbox skills)

# Find chained commands in sandbox skills (potential auto-approve issues)
grep -n ' && ' .claude/skills/k8s:*/SKILL.md .claude/skills/rossoctl:*/SKILL.md .claude/skills/kind:*/SKILL.md .claude/skills/local:*/SKILL.md .claude/skills/tdd:*/SKILL.md .claude/skills/rca:*/SKILL.md

Check Mermaid Diagram Presence

for f in .claude/skills/*/SKILL.md; do
  dir=$(basename $(dirname "$f"))
  case "$dir" in git|k8s|auth|openshift|local|kind|helm|meta|genai|repo|testing) continue ;; esac
  if ! grep -q '```mermaid' "$f"; then
    echo "MISSING DIAGRAM: $dir"
  fi
done

Verify settings.json Coverage

For each command in a sandbox skill, verify it matches a pattern in .claude/settings.json:

| Command prefix | settings.json pattern |

|----------------|----------------------|

| kubectl get | Bash(kubectl get:*) |

| kubectl describe | Bash(kubectl describe:*) |

| kubectl logs | Bash(kubectl logs:*) |

| helm list | Bash(helm list:*) |

| KUBECONFIG=~/clusters/hcp/... kubectl | Bash(KUBECONFIG=*/clusters/hcp/rossoctl-hypershift-custom-*/auth/kubeconfig kubectl:*) |

| uv run pytest | Bash(uv run pytest:*) |

If a command is NOT covered, add the pattern to .claude/settings.json in the allow array.

Task Tracking

When validating multiple skills:

TaskCreate: "rossoctl | skills | <category> | Verify | Validate <skill-name>"

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.