mirrord-quickstart
它能做什么
这项技能引导新用户安装 mirrord,并将第一个本地会话连接到 Kubernetes 目标。它适用于初次接触 mirrord、希望完成第一次可用设置的人。
适用场景
- ✓当你第一次接触 mirrord,想要首次安装它时。
- ✓当你第一次连接 Kubernetes 集群的 mirrord 会话失败时。
- ✓当你想确认集群是否满足 mirrord 的要求时。
技能链接
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-quickstart/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我是 mirrord 新手。请帮我检查集群要求,协助安装,并运行我的第一个会话。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查你的 kubectl 访问权限和集群版本,帮你用认可的方法安装 mirrord,然后运行第一个会话并确认连接。它会一步一步进行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Mirrord Quickstart Skill
Purpose
Help new users get mirrord running quickly:
- Check system requirements
- Install mirrord (CLI, VS Code, or IntelliJ)
- Connect to their first Kubernetes target
- Verify the connection works
Go one step at a time — don't overwhelm a new user with all options at once, and when they first connect, explain what just happened.
Critical First Steps
Step 1: Detect user's environment Ask or detect:
- Operating system (macOS, Linux, Windows)
- Preferred workflow (CLI, VS Code, IntelliJ)
- Do they have kubectl configured?
Step 2: Verify requirements
# Check kubectl access
kubectl cluster-info
kubectl get pods -A | head -5
If kubectl fails, help them configure it first.
Cluster requirements: Kubernetes 1.22 or later, with nodes on Linux kernel 5.4+ and a containerd, CRI-O, or Docker runtime. Some features need a newer Kubernetes version (for example, the agent as an ephemeral container needs 1.23); point users at Cluster Requirements if a specific feature fails on an older cluster.
Installation Paths
CLI (recommended for getting started)
Do not run remote install scripts that pipe a network download into a shell interpreter. Use only methods your organization approves.
Official guide: Follow mirrord installation documentation for supported options (package managers, pinned release binaries with checksum verification, etc.).
Summary for the agent:
- macOS / Linux: Point the user to the official docs for Homebrew, apt, or pinned binary install steps — do not invent or paste one-liners that fetch and execute remote scripts.
- Windows: Point the user to the official docs for supported installers.
Security: Prefer package managers or manually verified binaries from official release artifacts. Never execute installation by piping downloaded content into a shell.
Verify installation:
mirrord --version
VS Code Extension
- Open VS Code Extensions (Cmd/Ctrl+Shift+X)
- Search "mirrord"
- Install "mirrord" by MetalBear
- Look for mirrord icon in status bar
IntelliJ Plugin
- Open Settings → Plugins → Marketplace
- Search "mirrord"
- Install and restart IDE
- Find mirrord in navigation toolbar
First Session
CLI approach
# List available targets
mirrord ls
# Run a local process with mirrord
mirrord exec --target pod/<pod-name> -- <your-command>
# Example: Node.js app
mirrord exec --target pod/api-server-7c8d9 -- node app.js
# Example: Python app
mirrord exec --target pod/backend-abc123 -- python main.py
If mirrord ls returns no targets, check that the kubeconfig context points at the right cluster (kubectl config current-context) and list pods in the expected namespace (kubectl get pods -n <namespace>).
IDE approach
- Enable mirrord (click status bar icon / toolbar button)
- Select target pod when prompted
- Run/debug your application normally
- mirrord intercepts and connects automatically
Verification
After running, verify the connection:
- Check logs - mirrord's startup progress (agent started, connected to the target) prints before your app's own output:
mirrord exec --target pod/<pod-name> -- <your-command>
- Test environment - Remote env vars should be available locally:
mirrord exec --target pod/<pod-name> -- env | grep -i database
- Test network - Send a request to the remote service; it should reach the local process (check the local process's output):
curl http://<remote-service-url>
What's Next
Once the first session works, point users to:
mirrord ui— launches a local dashboard showing every active session on the machine, with a live event stream (HTTP requests, file operations, DNS, outgoing connections). See Local UI.mirrord up— for debugging several microservices together from onemirrord-up.yaml(compose-style). Point to the mirrord-up skill.- Browser extension — routes requests made from Chrome to the local process, for testing an HTTP-filtered session from a browser instead of
curl. See Debugging from Browser. - mirrord for Teams features (DB branc
常见问题
mirrord 对集群有什么要求?
技能列出 Kubernetes 1.22 或更高版本,并且 Linux 节点的内核需为 5.4 或更新。
我可以改用 VS Code 或 IntelliJ 吗?
可以。技能涵盖通过 CLI、VS Code 或 IntelliJ 安装。
如果 kubectl 无法使用怎么办?
技能说明,应先修复 kubectl 访问,因为 mirrord 需要它才能连接集群。
详情
作者的原始描述
Guide users from zero to their first working mirrord session — check system requirements, install mirrord via CLI, VS Code, or IntelliJ, run a first session against a Kubernetes target, and verify the connection. Use when a user is new to mirrord, wants to install it, needs help running their first session, or wants to debug or test a local process against their Kubernetes cluster.
repo: metalbear-co/mirrord
热度
- GitHub 星标
- 5.4k
- 排名
- #14884
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
mirrord-chaos
5.4k帮你的智能体在开发者的测试会话中加入延迟或连接错误,观察应用如何应对缓慢或失败的依赖服务。
mirrord-ci
5.4k帮你的智能体在 CI 流水线中设置 mirrord,使自动化测试能够针对真实的 Kubernetes 环境运行。
mirrord-config
5.4k帮你的智能体编写、检查和修复 mirrord.json 文件,该文件控制本地应用如何连接 Kubernetes 环境。
mirrord-db-branching
5.4k帮你的智能体设置 mirrord 数据库分支,让开发者在独立的数据库副本上工作,不影响团队。