generating-ovn-topology

generating-ovn-topology is a skill for Claude Code, Codex from wangke19/gemini-ai-helpers. It costs 33 tokens per session (5,402 once invoked), scanned A, original, Apache-2.0.

A tool that finds a running OVN-Kubernetes cluster and turns its network structure into a Mermaid diagram. OVN-Kubernetes is the networking system used by many Kubernetes and OpenShift clusters.

In plain words
What is it for?
Use it to discover a cluster, inspect its network topology, and display the result as a diagram.
Why use it?
It makes switches, routers, ports, addresses, and connections easier to understand than raw cluster data.

Skill for Claude CodeCodex

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

Good fit Use it to discover a cluster, inspect its network topology, and display the result as a diagram.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wangke19/gemini-ai-helpers/generating-ovn-topology
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 wangke19/gemini-ai-helpers --skill generating-ovn-topology
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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 generating-ovn-topology

README.md
[![agentmods](https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/generating-ovn-topology/github.svg)](https://agentmods.dev/skills/wangke19/gemini-ai-helpers/generating-ovn-topology)
Your own site
<a href="https://agentmods.dev/skills/wangke19/gemini-ai-helpers/generating-ovn-topology"><img src="https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/generating-ovn-topology/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generating-ovn-topology

Your own site · 80×15
<a href="https://agentmods.dev/skills/wangke19/gemini-ai-helpers/generating-ovn-topology"><img src="https://agentmods.dev/badge/skills/wangke19/gemini-ai-helpers/generating-ovn-topology.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,402 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. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.00033 $0.05402
Opus 5 $0.00016 $0.02701
Sonnet 5 $0.00007 $0.01080
Haiku 4.5 $0.00003 $0.00540

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

Security

Grade A, and why

generating-ovn-topology 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 8d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/analyze_placement.py, scripts/check_permissions.py, scripts/collect_ovn_data.py, …), 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.

extensions/openshift/skills/generating-ovn-topology/SKILL.md · 403 lines

How it starts

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

Quick Start - OVN Topology Generation

IMMEDIATE ACTIONS (follow these steps in order):

  1. Detect Cluster: Find the OVN-Kubernetes cluster kubeconfig

    Run: scripts/detect-cluster.sh 2>/dev/null

    The script discovers OVN-Kubernetes clusters:

    • Scans all kubeconfig files: current KUBECONFIG env, ~/.kube/kind-config, ~/ovn.conf, ~/.kube/config
    • Tests ALL contexts in each kubeconfig (not just current-context)
    • Returns parseable list to stdout: index|kubeconfig|cluster_name|node_count|namespace
    • Diagnostics go to stderr
    • Exit code: 0=success, 1=no clusters found

    How to handle the output:

    The script returns pipe-delimited lines to stdout, one per cluster found, e.g.:

    1|/home/user/.kube/kind-config|kind-ovn|3|ovn-kubernetes
    2|/home/user/.kube/config|prod-cluster|12|openshift-ovn-kubernetes
    

    Decision logic:

    • If one cluster found → automatically use it (extract kubeconfig path from column 2)
    • If multiple clusters found → show the list to user and ask them to choose by number
    • After selection, extract the kubeconfig path from column 2 of the chosen line
    • Store the selected kubeconfig path in variable KC for use in subsequent steps

    Example output format parsing:

    • Column 1: Index number (for user selection)
    • Column 2: Kubeconfig file path (this is what you need for $KC)
    • Column 3: Cluster display name
    • Column 4: Number of nodes
    • Column 5: OVN namespace name

    Important: Parse the output using standard text processing. The exact implementation is up to you - use whatever approach works best (awk, Python, inline parsing, etc.).

  2. Check Permissions: Verify user's Kubernetes access level and inform about write permissions

    Run: scripts/check_permissions.py "$KC"

    The script returns:

    • Exit 0: Read-only access or user confirmed → proceed
    • Exit 1: Error or user cancelled → stop
    • Exit 2: Write permissions detected → AI must ask user for confirmation

    When exit code 2 is returned:

    1. Parse the stdout to get the list of write permissions
    2. Display the permissions clearly to the user using a formatted message
    3. Explain that:
      • This skill performs ONLY read-only operations
      • No cluster modifications will be made
      • The warning is for transparency about their access level
      • List read-only operations: kubectl get, kubectl exec (ovn-nbctl list), local file writes
      • List forbidden operations: kubectl create/delete/patch, ovn-nbctl modifications
    4. Ask the user explicitly: "You have cluster admin permissions. This command will only perform read-only operations. Do you want to proceed?"
    5. If user says yes → continue, if no → stop

    Example of proper user communication:

    ⚠️  WARNING: Write Permissions Detected
    
    Your kubeconfig has cluster admin permissions:
      • Delete pods, deployments, services
      • Create and modify resources
      • Full cluster access
    
    📋 IMPORTANT:
    This command will ONLY perform read-only operations:
      ✅ kubectl get (pods, nodes)
      ✅ kubectl exec (to run read-only ovn-nbctl list commands)
      ✅ Local file writes (topology diagram)
    
    Operations that will NEVER be performed:
      ❌ kubectl create/delete/patch/apply
      ❌ ovn-nbctl modifications
      ❌ Any cluster state changes
    
    Do you want to proceed with read-only topology generation?
    

    Security Note: This step ensures informed consent. The user must be explicitly aware that their cluster admin credentials are accessible to the AI agent (acting on their behalf), even though only read-only operations will be performed. This transparency is critical for security and trust.

  3. Check Output File: Ask user if ovn-topology-diagram.md exists:

    • (1) Overwrite, (2) Custom path, (3) Timestamp, (4) Cancel
  4. Create Private Temp Directory: Create a private temporary directory using mkdtemp and use it for all temporary files.

Read the full file on GitHub · 403 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 403 lines · 33 tokens per session scan E d56a442710e3

Subscribe to this mod's changes

generating-ovn-topology is a skill published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 5,402 once invoked, about $0.0002 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.