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.
curl -O https://raw.githubusercontent.com/Ramilito/kubectl.nvim/main/.claude/agents/keymappings.mdgit clone --depth 1 https://github.com/Ramilito/kubectl.nvimWrote 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.
[](https://agentmods.dev/agents/ramilito/kubectl.nvim/keymappings)<a href="https://agentmods.dev/agents/ramilito/kubectl.nvim/keymappings"><img src="https://agentmods.dev/badge/agents/ramilito/kubectl.nvim/keymappings.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00028 | $0.00734 |
| Opus 5 | $0.00014 | $0.00367 |
| Sonnet 5 | $0.00006 | $0.00147 |
| Haiku 4.5 | $0.00003 | $0.00073 |
Grade A, and why
keymappings 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.
How it starts
The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Keymappings Guidance
ALWAYS use this subagent for ANY task involving:
- Adding new keybindings to a view or resource
- Modifying existing keybindings
- Understanding how keybindings work in this codebase
File Map
| File | Purpose |
|---|---|
lua/kubectl/mappings.lua |
Global mappings, map_if_plug_not_set(), register() |
lua/kubectl/resources/<name>/mappings.lua |
Resource-specific overrides |
lua/kubectl/views/<name>/mappings.lua |
View-specific overrides |
lua/kubectl/views/<name>/init.lua |
View definition with hints array |
Pattern: Adding a Keybinding
Step 1: Define the Plug mapping in mappings.lua
M.overrides = {
["<Plug>(kubectl.my_action)"] = {
desc = "short description", -- Used in help view
callback = function()
-- Implementation
end,
},
}
Step 2: Register the key in M.register()
M.register = function()
mappings.map_if_plug_not_set("n", "gX", "<Plug>(kubectl.my_action)")
end
Step 3: Add hint in view's init.lua
M.definition = {
hints = {
{ key = "<Plug>(kubectl.my_action)", desc = "my action" },
},
}
Key Rules
- Always use
<Plug>(kubectl.*)format - Never map raw keys directly in overrides - Use
mappings.map_if_plug_not_set()- Respects user customizations - Hints reference
<Plug>keys - System resolves to actual keys automatically - Short descriptions -
descin overrides should be 2-4 words
Common Key Conventions
| Prefix | Purpose | Examples |
|---|---|---|
g |
Go/Get actions | gd describe, gy yaml, gl logs |
<C-> |
Views/Navigation | <C-n> namespace, <C-f> filter |
<cr> |
Select/Enter | Primary action |
1-6 |
Quick view switch | Deployments, Pods, etc. |
Example: Complete Mapping File
local mappings = require("kubectl.mappings")
local M = {}
M.overrides = {
["<Plug>(kubectl.my_action)"] = {
desc = "do something",
callback = function()
local view = require("kubectl.views.myview")
-- implementation
end,
},
}
M.register = function()
mappings.map_if_plug_not_set("n", "gX", "<Plug>(kubectl.my_action)")
end
return M
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.
- yesterday First seen · 102 lines · 28 tokens per session scan A 8c5b83f3edff
keymappings 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 734 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.
Other agents, from other repositories
launch-captain
Go-to-market and launch partner for positioning, GTM plans, launch checklists, competitor teardowns, and press/announcements. Use to position a product, plan a launch, or analyse a competitor.
golang-code-writer
Always use this agent when you need to write, generate, or create new Go code, including functions, structs, interfaces, methods, or complete packages. Examples: Context: User needs help implementing a new feature in their Go application. user: 'I need to write a function that validates email addresses using regex'…
unit-test-writer
Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…
spring-boot-engineer
Use this agent when building enterprise Spring Boot 3+ applications requiring microservices architecture, cloud-native deployment, or reactive programming patterns.
Geoprocessing Specialist
ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.
python-developer
Write clean, efficient Python code following PEP standards. Specializes in Django/FastAPI web development, data processing, and automation. Use PROACTIVELY for Python-specific projects and performance optimization.