mirrord-ci
O que ela faz
Esta skill mostra como rodar o mirrord dentro de integração contínua, para que testes automatizados alcancem um cluster Kubernetes de staging. Ela é para equipes que querem testes de ponta a ponta com serviços reais.
Quando usar
- ✓Quando você quer que seus testes automatizados rodem contra um cluster de staging no CI.
- ✓Quando um fluxo do GitHub Actions ou do GitLab CI precisa ter o mirrord configurado.
- ✓Quando o mirrord ci start está falhando e você precisa de ajuda para solucionar o problema.
Link da skill
https://github.com/metalbear-co/mirrord/blob/main/mirrord/mcp/corpus/skills/mirrord-ci/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode escrever um workflow do GitHub Actions que rode meus testes de integração pelo mirrord contra o nosso cluster de staging?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente escreve etapas de CI que iniciam uma sessão do mirrord, rodam os testes e encerram a sessão. Ele também usa um guia de solução de problemas para os erros comuns de CI.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ele vai instalar o mirrord a partir de um script qualquer?
Não. A skill diz para usar uma imagem confiável ou um método de instalação aprovado, e não um script não verificado.
Quais sistemas de CI são cobertos?
A skill traz exemplos para o GitHub Actions e para o GitLab CI.
Inclui solução de problemas?
Sim. A skill inclui um guia de solução de problemas para os erros comuns do mirrord em CI.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 5,4 mil
- Posição no ranking
- #14876
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
mirrord-chaos
5,4 milAjuda seu agente a adicionar atrasos ou erros de conexão a uma sessão de teste do desenvolvedor, para ver como um app lida com um serviço lento ou com falhas.
mirrord-config
5,4 milAjuda seu agente a escrever, verificar e corrigir o arquivo mirrord.json, que controla como seu app local se conecta a um ambiente Kubernetes.
mirrord-db-branching
5,4 milAjuda seu agente a configurar branches de banco de dados no mirrord, para que um desenvolvedor trabalhe em uma cópia isolada do banco sem afetar a equipe.
mirrord-header-propagation
5,4 milAjuda seu agente a fazer o app repassar uma etiqueta de roteamento por todas as chamadas de serviço e mensagens de fila, para que as requisições cheguem à sessão certa.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.