mirrord-ci
Skill này làm gì
Skill này chỉ cách chạy mirrord trong tích hợp liên tục để các bài kiểm thử tự động có thể kết nối tới một cụm Kubernetes staging. Nó dành cho các nhóm muốn kiểm thử đầu cuối với dịch vụ thật.
Khi nào nên dùng
- ✓Khi bạn muốn các bài kiểm thử tự động chạy trên cụm staging trong CI.
- ✓Khi một quy trình GitHub Actions hoặc GitLab CI cần thiết lập mirrord.
- ✓Khi mirrord ci start bị lỗi và bạn cần trợ giúp xử lý sự cố.
Liên kết skill
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-ci/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể viết một quy trình GitHub Actions chạy các bài kiểm thử tích hợp của tôi qua mirrord trên cụm staging của chúng tôi không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết các bước CI để khởi động một phiên mirrord, chạy các bài kiểm thử và dừng phiên. Nó cũng dùng một hướng dẫn xử lý sự cố cho các lỗi CI thường gặp.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có cài mirrord từ một script không rõ nguồn không?
Không. Skill ghi rằng nên dùng image đáng tin cậy hoặc một cách cài đặt đã được phê duyệt, không dùng script chưa được xác minh.
Những hệ thống CI nào được hỗ trợ?
Skill có ví dụ cho GitHub Actions và GitLab CI.
Có bao gồm phần xử lý sự cố không?
Có. Skill có hướng dẫn xử lý sự cố cho các vấn đề mirrord thường gặp trong CI.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14876
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
mirrord-chaos
5.4kGiúp agent của bạn thêm độ trễ hoặc lỗi kết nối vào phiên thử nghiệm của lập trình viên, để xem ứng dụng xử lý thế nào khi dịch vụ chậm hoặc lỗi.
mirrord-config
5.4kGiúp agent của bạn viết, kiểm tra và sửa file mirrord.json, file điều khiển cách ứng dụng cục bộ kết nối tới môi trường Kubernetes.
mirrord-db-branching
5.4kGiúp agent của bạn thiết lập nhánh cơ sở dữ liệu mirrord, để lập trình viên làm việc trên một bản sao cô lập mà không ảnh hưởng đến cả nhóm.
mirrord-header-propagation
5.4kGiúp agent của bạn làm cho ứng dụng truyền một thẻ định tuyến qua mọi lệnh gọi dịch vụ và tin nhắn hàng đợi, để yêu cầu của một lập trình viên đến đúng phiên của họ.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.