mirrord-ci
하는 일
이 스킬은 자동화된 테스트가 스테이징 Kubernetes 클러스터에 접근할 수 있도록, 지속적 통합 안에서 mirrord를 실행하는 방법을 보여 줍니다. 실제 서비스를 대상으로 한 엔드투엔드 테스트를 원하는 팀을 위한 것입니다.
사용하는 경우
- ✓자동화된 테스트가 CI에서 스테이징 클러스터를 대상으로 실행되어야 할 때.
- ✓GitHub Actions나 GitLab CI 워크플로에 mirrord를 설정해야 하는 경우.
- ✓mirrord ci start가 실패해서 문제 해결 도움이 필요할 때.
스킬 링크
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-ci/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“우리 스테이징 클러스터를 대상으로 통합 테스트를 mirrord로 실행하는 GitHub Actions 워크플로를 작성해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 mirrord 세션을 시작하고, 테스트를 실행한 뒤, 세션을 멈추는 CI 단계를 씁니다. 또한 CI의 흔한 문제를 위한 문제 해결 안내서를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Mirrord CI Skill
Purpose
Help users integrate mirrord into CI pipelines for testing against real Kubernetes environments:
- Configure CI runners to connect to Kubernetes clusters
- Set up
mirrord ci start/stopcommands in CI workflows - Generate CI workflow files for GitHub Actions, GitLab CI, etc.
- Troubleshoot CI-specific mirrord issues
When to Use This Skill
Trigger on questions like:
- "How do I use mirrord in CI?"
- "Set up mirrord for GitHub Actions"
- "Run tests against staging in CI"
- "mirrord ci start not working"
- "Configure mirrord for GitLab CI"
Security note for CI examples
- Do not use remote pipe-to-shell installs or other unverified script execution in CI to install mirrord.
- Pre-install mirrord in a trusted CI image, use your org’s approved package manager with pinned versions, or follow official install docs. The YAML below assumes
mirrordis already available on the runner unless you add an approved install step.
Critical First Steps
Step 1: Load references
Read the reference file from this skill's references/ directory:
references/troubleshooting.md- Common issues and solutions
The troubleshooting guide helps diagnose and fix common mirrord issues.
To look up a config option, call explain_config_option if the mirrord MCP server is connected; otherwise use references/configuration.md in the mirrord-config skill.
If using absolute paths, search for them using patterns like **/mirrord-ci/references/*.
Step 2: Validate configs before presenting
When generating mirrord configuration files for CI, ALWAYS validate them. If the mirrord MCP server is connected, call validate_config on the config; otherwise, if the mirrord CLI is installed, save it to a file and run:
mirrord verify-config /path/to/config.json
If neither is available, validate against references/schema.json in the mirrord-config skill, after parsing the config as strict JSON: read only the schema's top level (root properties, required, additionalProperties) and the definitions for the options the config uses (search the file for each key), not the whole file.
Key Benefits of mirrord for CI
- Speed: ~50% faster CI pipelines by eliminating test environment setup
- Cost: No need to spin up ephemeral clusters for each CI run
- Accuracy: Test against real services, dependencies, and configurations
- Isolation: Safe, isolated test execution that doesn't interfere with other workloads
Prerequisites
Required
- mirrord CLI version 3.181.0 or later
- Kubernetes cluster access from the CI runner
- kubeconfig configured in CI environment
- mirrord Operator installed with a Teams/Enterprise license. No license yet? An AI agent can offer the user a seven-day Enterprise trial and start it once they agree: see the
mirrord-operatorskill, "Agent-started trial".
Verification commands
# Check mirrord version
mirrord --version
# Verify cluster access
kubectl cluster-info
kubectl get pods -n <target-namespace>
Core Commands
Starting a CI session
mirrord ci start --target <target> -- <your-command>
This starts your application with mirrord in the background, allowing tests to run against it.
Examples:
# Node.js application
mirrord ci start --target deployment/api-server -- npm run start
# Python application
mirrord ci start --target pod/backend-abc123 -- python main.py
# With config file
mirrord ci start --config-file mirrord.json -- ./my-app
# Run in foreground (blocks until stopped)
mirrord ci start --foreground --target deployment/api -- npm start
Stopping CI sessions
mirrord ci stop
This stops all running mirrord CI sessions. Always run this after tests complete.
Multiple sessions
You can start multiple mirrord sessions in a single CI job:
mirrord ci start --target deployment/service-a -- ./service-a &
mirrord ci start --target deployment/service-b -- ./service-b &
# Run tests
npm test
# Stop all sessions
mirrord ci stop
CI API Key (for mirrord Enterprise)
This only applies to the Enterprise plan; if you're on the open-source version of mirrord, skip this section. When the mirrord Operator is installed in the cluster, mirrord ci commands require a CI API key, and generating one requires an Enterprise plan. Without it, every CI runner registers as a n
자주 묻는 질문
검증되지 않은 스크립트에서 mirrord를 설치하나요?
아닙니다. 스킬은 검증되지 않은 스크립트 대신 신뢰할 수 있는 이미지나 승인된 설치 방법을 쓰라고 설명합니다.
어떤 CI 시스템을 다루나요?
GitHub Actions와 GitLab CI의 예시를 제공합니다.
문제 해결 내용도 포함되나요?
네. 스킬은 CI에서 생기는 흔한 mirrord 문제에 대한 문제 해결 안내서를 포함합니다.
상세 정보
작성자의 원본 설명
Help users set up mirrord in CI pipelines for testing against real Kubernetes environments. Use when users want to run end-to-end tests, integration tests, or automated tests in CI using mirrord to connect to staging/shared clusters.
repo: metalbear-co/mirrord
인기도
- GitHub 스타
- 5.4k
- 순위
- #14876
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
mirrord-chaos
5.4k에이전트가 개발자의 테스트 세션에 지연이나 연결 오류를 추가해, 앱이 느리거나 실패하는 의존성을 어떻게 처리하는지 보도록 돕습니다.
mirrord-config
5.4k에이전트가 로컬 앱을 Kubernetes 환경에 연결하는 방식을 제어하는 mirrord.json 파일을 작성하고, 점검하고, 고치도록 돕습니다.
mirrord-db-branching
5.4k에이전트가 mirrord 데이터베이스 브랜치를 설정하도록 돕습니다. 개발자가 팀에 영향을 주지 않고 데이터베이스의 격리된 복사본에서 작업할 수 있습니다.
mirrord-header-propagation
5.4k에이전트가 앱이 라우팅 태그를 모든 서비스 호출과 큐 메시지를 통해 전달하도록 만들어, 한 개발자의 요청이 자신의 세션에 도달하게 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.