본문으로 건너뛰기
cccskills
무료GitHub에 공개

mirrord-quickstart

Set up mirrord and run a local application against a Kubernetes target. Follow installation and first-session steps for the CLI, VS Code, or IntelliJ, then verify logs, remote environment variables, and network connectivity.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

연동 도구DockerKubernetes
설치 방법 보기

이럴 때 유용합니다

  • Installing mirrord for the first time
  • Connecting a local app to a Kubernetes target
  • Starting a debug session in VS Code or IntelliJ
  • Troubleshooting first-session connection problems

포함된 파일(2)

  • SKILL.md5.6 KB
  • README.md1.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

  1. Open VS Code Extensions (Cmd/Ctrl+Shift+X)
  2. Search "mirrord"
  3. Install "mirrord" by MetalBear
  4. Look for mirrord icon in status bar

IntelliJ Plugin

  1. Open Settings → Plugins → Marketplace
  2. Search "mirrord"
  3. Install and restart IDE
  4. 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

  1. Enable mirrord (click status bar icon / toolbar button)
  2. Select target pod when prompted
  3. Run/debug your application normally
  4. mirrord intercepts and connects automatically

Verification

After running, verify the connection:

  1. 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>
  1. Test environment - Remote env vars should be available locally:
mirrord exec --target pod/<pod-name> -- env | grep -i database
  1. 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 one mirrord-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 branching, queue splitting, preview environments, concurrent steal on one target) need the Operator. On a cluster with no license, an AI agent can offer the user a seven-day Enterprise trial and start it once they agree: point to the mirrord-operator skill, "Agent-started trial".

Common First-Timer Issues

IssueSolution
"kubectl not found"Install kubectl and configure cluster access
"No pods found"Check namespace: kubectl get pods -n <namespace>
"Permission denied"Check RBAC permissions for your kubectl context
"Agent failed to start"Ensure the cluster runs Kubernetes 1.22+, with nodes on Linux kernel 5.4+ and a containerd, CRI-O, or Docker runtime

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Test how an app handles slow or failing dependencies by adding delays and connection errors to outgoing TCP connections in a mirrord session. Create reusable rules, manage them during development, and include them in CI tests.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Simulate slow database connections
  • Test retry behavior during connection timeouts
  • Run integration tests with failures in CI
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

Build CI workflows that use mirrord to test applications against services in a real Kubernetes cluster. Configure runner access, start and stop application sessions, validate configuration files, and troubleshoot connection, permission, and logging problems.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Run integration and end-to-end tests against staging
  • Create mirrord workflows for GitHub Actions or GitLab CI
  • Configure Kubernetes access from a CI runner
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

Create, edit, and check mirrord.json files that connect a local application to Kubernetes. The skill produces minimal configurations, validates their structure and allowed settings, and explains problems with environment variables, files, and network behavior.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Create a configuration for connecting a local app to Kubernetes
  • Find and fix errors in an existing mirrord.json
  • Adjust environment variables and network behavior
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

Create and validate mirrord.json settings for isolated database copies used in development and testing. Configure connection sources, copying scope, migrations, and authentication so experiments can run without affecting shared databases.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Preparing isolated databases for development and testing
  • Choosing which schemas and data to copy
  • Configuring connection sources and IAM authentication
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

Update application code so a developer’s mirrord session identifier travels across service calls, queues, and storage events. Reuse existing tracing tools where possible, then report which request flows carry the identifier and where it still disappears.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Route downstream requests to the same developer session
  • Preserve session identifiers across queue consumers
  • Carry session context through upload events
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

Configure mirrord to route selected Kafka messages to a local application. Generate Kubernetes resource files and matching message filters, check their consistency, and troubleshoot connection or splitting issues, including Kafka Streams and AWS MSK IAM setups.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Set up Kafka message splitting for local debugging
  • Filter messages by headers or payload fields
  • Configure Kafka Streams or AWS MSK IAM connections
metalbear-co/mirrord5.4천2026년 10월 23일 업데이트

metalbear-co의 스킬 모두 보기

이 스킬의 문제 신고