mirrord-ci
यह क्या करती है
यह स्किल दिखाती है कि continuous integration के भीतर mirrord कैसे चलाएँ, ताकि स्वचालित टेस्ट staging Kubernetes क्लस्टर तक पहुँच सकें। यह उन टीमों के लिए है जो असली सेवाओं के खिलाफ़ end-to-end टेस्ट चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि आपके स्वचालित टेस्ट CI में staging क्लस्टर पर चलें।
- ✓जब किसी GitHub Actions या GitLab CI वर्कफ़्लो में mirrord सेट करना हो।
- ✓जब mirrord ci start विफल हो रहा हो और आपको समस्या-निवारण में मदद चाहिए।
Skill का लिंक
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-ci/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप GitHub Actions का वर्कफ़्लो लिख सकते हैं, जो हमारे staging क्लस्टर के खिलाफ़ mirrord के ज़रिए मेरे integration टेस्ट चलाए?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट ऐसे CI चरण लिखता है जो mirrord सेशन शुरू करें, टेस्ट चलाएँ और सेशन बंद करें। आम 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
mirrord-chaos
5.4kयह आपके एजेंट को डेवलपर के टेस्ट सेशन में देरी या कनेक्शन त्रुटियाँ जोड़ने देती है, ताकि देखा जा सके कि ऐप धीमी या विफल सेवा से कैसे निपटती है।
mirrord-config
5.4kयह आपके एजेंट को mirrord.json फ़ाइल लिखने, जाँचने और ठीक करने देती है, जो तय करती है कि आपका लोकल ऐप Kubernetes वातावरण से कैसे जुड़े।
mirrord-db-branching
5.4kयह आपके एजेंट को mirrord डेटाबेस ब्रांच सेट करने देती है, ताकि डेवलपर टीम को प्रभावित किए बिना डेटाबेस की अलग कॉपी पर काम कर सके।
mirrord-header-propagation
5.4kयह आपके एजेंट को ऐप में ऐसा बदलाव करने देती है कि हर सेवा कॉल और queue संदेश में रूटिंग टैग आगे जाए, ताकि एक डेवलपर के अनुरोध उसके सेशन तक पहुँचें।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।