kubectl.nvim: Agent for Claude Code

.claude/agents/architecture.md

architecture is an agent for Claude Code from Ramilito/kubectl.nvim. It costs 28 tokens per session (1,974 once invoked), scanned A, original, Apache-2.0.

An architecture reference for kubectl.nvim, a Neovim plugin for working with Kubernetes. It describes the system's layers, boundaries, and dependency rules.

In plain words
What is it for?
Use it when planning changes, tracing how components communicate, or checking whether a design follows the plugin's structure.
Why use it?
It gives developers a shared map of how the Lua and Rust parts are separated, reducing the risk of putting code in the wrong layer or creating invalid dependencies.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is Ramilito/kubectl.nvim's own configuration. It tells Claude Code how to work on kubectl.nvim itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kubectl.nvim configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Ramilito/kubectl.nvim. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Ramilito/kubectl.nvim/main/.claude/agents/architecture.md
Clone the repo
git clone --depth 1 https://github.com/Ramilito/kubectl.nvim

Made for: Claude Code.

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 architecture

README.md
[![agentmods](https://agentmods.dev/badge/agents/ramilito/kubectl.nvim/architecture.svg)](https://agentmods.dev/agents/ramilito/kubectl.nvim/architecture)
Your own site
<a href="https://agentmods.dev/agents/ramilito/kubectl.nvim/architecture"><img src="https://agentmods.dev/badge/agents/ramilito/kubectl.nvim/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,974 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00028 $0.01974
Opus 5 $0.00014 $0.00987
Sonnet 5 $0.00006 $0.00395
Haiku 4.5 $0.00003 $0.00197

Measured yesterday against content hash 54c1853eb94d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

architecture 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 yesterday.

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.

.claude/agents/architecture.md · 255 lines

How it starts

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

Architecture Contract

Architecture contract for kubectl.nvim. Defines expected structure, layer boundaries, and dependency rules.

System Layers

+-------------------------------------------------------------+
|                         Neovim                               |
+---------------------------------+---------------------------+
                              | Lua API
+---------------------------------v---------------------------+
|                      Lua Layer                              |
|  +---------+ +----------+ +-------+ +---------+ +---------+ |
|  |  Core   | | Resources| | Views | | Actions | |  Client | |
|  +----+----+ +----+-----+ +---+---+ +----+----+ +----+----+ |
+-------+----------+------------+----------+----------+-------+
        |          |            |          |          |
        +----------+------------+----------+----------+
                              | FFI (luv async)
+---------------------------------v---------------------------+
|                      Rust Layer                             |
|  +---------+ +------------+ +-----+ +-----+ +------+ +-----+|
|  |   Lib   | | Processors | | DAO | | CMD | |  UI  | |Store||
|  +----+----+ +-----+------+ +--+--+ +--+--+ +--+---+ +--+--+|
+-------+------------+----------+------+-------+--------+-----+
        |            |          |      |       |        |
        +------------+----------+------+-------+--------+
                              | C FFI
+---------------------------------v---------------------------+
|                       Go Layer                              |
|             +--------------+ +--------------+               |
|             |   Describe   | |    Drain     |               |
|             +--------------+ +--------------+               |
+-------------------------------------------------------------+

Lua Layer (lua/kubectl/)

Sub-layers

Layer Path Responsibility
Core *.lua (root) Plugin entry, config, state, mappings
Resources resources/ Kubernetes resource definitions and views
Views views/ UI components (filter, namespace, portforward)
Actions actions/ Operations on resources (delete, edit, apply)
Utils utils/ Shared utilities (formatting, events, tables)
Client client/ Rust FFI bridge

Read the full file on GitHub · 255 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. yesterday First seen · 255 lines · 28 tokens per session scan A 54c1853eb94d

Subscribe to this mod's changes

architecture is an agent published in the GitHub repository Ramilito/kubectl.nvim (537 stars, last pushed 22d ago), licensed Apache-2.0. It adds 28 tokens to every session and 1,974 once invoked, about $0.0001 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-04.