mirrord-ci
Was er macht
Dieser Skill zeigt, wie mirrord in der kontinuierlichen Integration läuft, damit automatisierte Tests einen Staging-Kubernetes-Cluster erreichen. Er ist für Teams gedacht, die End-to-End-Tests gegen echte Dienste wollen.
Wann du ihn nutzt
- ✓Wenn deine automatisierten Tests in CI gegen einen Staging-Cluster laufen sollen.
- ✓Wenn ein GitHub-Actions- oder GitLab-CI-Workflow mirrord einrichten muss.
- ✓Wenn mirrord ci start fehlschlägt und du Hilfe bei der Fehlersuche brauchst.
Link zum Skill
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-ci/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kannst du einen GitHub-Actions-Workflow schreiben, der meine Integrationstests über mirrord gegen unseren Staging-Cluster laufen lässt?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent schreibt CI-Schritte, die eine mirrord-Sitzung starten, die Tests ausführen und die Sitzung beenden. Außerdem nutzt er einen Leitfaden zur Fehlersuche für typische CI-Probleme.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Installiert er mirrord aus einem zufälligen Skript?
Nein. Der Skill sagt, ein vertrauenswürdiges Image oder eine freigegebene Installationsmethode zu nutzen, nicht ein ungeprüftes Skript.
Welche CI-Systeme sind abgedeckt?
Der Skill nennt Beispiele für GitHub Actions und GitLab CI.
Gibt es eine Fehlersuche?
Ja. Der Skill enthält einen Leitfaden zur Fehlersuche bei typischen mirrord-Problemen in CI.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14876
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
mirrord-chaos
5.4kFügt für deinen Agenten in eine Entwickler-Testsitzung Verzögerungen oder Verbindungsfehler ein, um zu sehen, wie eine App mit langsamen Diensten umgeht.
mirrord-config
5.4kHilft deinem Agenten, die Datei mirrord.json zu schreiben, zu prüfen und zu reparieren, die steuert, wie deine lokale App sich mit einer Kubernetes-Umgebung verbindet.
mirrord-db-branching
5.4kHilft deinem Agenten, mirrord-Datenbank-Branches einzurichten, damit ein Entwickler an einer isolierten Kopie einer Datenbank arbeiten kann, ohne das Team zu stören.
mirrord-header-propagation
5.4kPasst für deinen Agenten eine App so an, dass ein Routing-Tag durch jeden Dienstaufruf und jede Warteschlangennachricht reist, bis zur richtigen Sitzung.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.