# Lens

> Lens Kubernetes IDE. Use for K8s management.

- Skill: `majiayu000/lens` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/lens`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/lens/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/lens

---


# Lens Desktop

Lens is a graphical IDE for Kubernetes. 2025 adds **Lens Prism** (Agent Mode) to reason about cluster issues.

## When to Use

- **Visualization**: Accessing Prometheus metrics (built-in) alongside Pods.
- **Multi-Cluster**: Managing 10+ clusters with easy context switching.
- **Helm**: Visual Helm chart management (upgrade/rollback).

## Core Concepts

### Hotbar

Quick access to different clusters.

### Metrics Integration

Detects Prometheus automatically and adds graphs to Pod/Node views.

### Terminal

Opens a terminal with `kubectl` context pre-set to the active cluster.

## Best Practices (2025)

**Do**:

- **Use Lens Prism**: Ask "Why is this pod pending?" to get AI diagnosis.
- **Use Port Forwarding**: The UI manages port forwards visually.
- **Share Catalogs**: Sync cluster lists with team members.

**Don't**:

- **Don't ignore RBAC**: Lens respects your kubeconfig permissions.

## References

- [Lens Documentation](https://docs.k8slens.dev/)

