ci-cd-and-automation
Qué hace
Este sistema automatiza la configuración de los procesos que revisan tu código. Garantiza que solo llegue al producto final código de calidad, probándolo todo antes.
Cuándo usarla
- ✓Al empezar un proyecto nuevo y configurar sus comprobaciones.
- ✓Cuando quieras añadir o cambiar pruebas automáticas.
- ✓Para configurar cómo se publicará el código para su uso.
Link de la skill
https://github.com/addyosmani/agent-skills/blob/main/skills/ci-cd-and-automation/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Configura un proceso de pruebas automáticas para mi proyecto.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Funciona definiendo una serie de comprobaciones (como pruebas de código, de funcionamiento y de seguridad) que el código debe superar antes de considerarse listo. Si algo falla, el sistema te avisa para que lo corrijas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
CI/CD and Automation
Overview
Automate quality gates so that no change reaches production without passing tests, lint, type checking, and build. CI/CD is the enforcement mechanism for every other skill — it catches what humans and agents miss, and it does so consistently on every single change.
Shift Left: Catch problems as early in the pipeline as possible. A bug caught in linting costs minutes; the same bug caught in production costs hours. Move checks upstream — static analysis before tests, tests before staging, staging before production.
Faster is Safer: Smaller batches and more frequent releases reduce risk, not increase it. A deployment with 3 changes is easier to debug than one with 30. Frequent releases build confidence in the release process itself.
When to Use
- Setting up a new project's CI pipeline
- Adding or modifying automated checks
- Configuring deployment pipelines
- When a change should trigger automated verification
- Debugging CI failures
The Quality Gate Pipeline
Every change goes through these gates before merge:
Pull Request Opened
│
▼
┌─────────────────┐
│ LINT CHECK │ eslint, prettier
│ ↓ pass │
│ TYPE CHECK │ tsc --noEmit
│ ↓ pass │
│ UNIT TESTS │ jest/vitest
│ ↓ pass │
│ BUILD │ npm run build
│ ↓ pass │
│ INTEGRATION │ API/DB tests
│ ↓ pass │
│ E2E (optional) │ Playwright/Cypress
│ ↓ pass │
│ SECURITY AUDIT │ npm audit
│ ↓ pass │
│ BUNDLE SIZE │ bundlesize check
└─────────────────┘
│
▼
Ready for review
No gate can be skipped. If lint fails, fix lint — don't disable the rule. If a test fails, fix the code — don't skip the test.
GitHub Actions Configuration
Basic CI Pipeline
# .github/workflows/ci.yml
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type check
run: npx tsc --noEmit
- name: Test
run: npm test -- --coverage
- name: Build
run: npm run build
- name: Security audit
run: npm audit --audit-level=high
With Database Integration Tests
integration:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: testdb
POSTGRES_USER: ci_user
POSTGRES_PASSWORD: ${{ secrets.CI_DB_PASSWORD }}
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Run migrations
run: npx prisma migrate deploy
env:
DATABASE_URL: postgresql://ci_user:${{ secrets.CI_DB_PASSWORD }}@localhost:5432/testdb
- name: Integration tests
run: npm run test:integration
env:
DATABASE_URL: postgresql://ci_user:${{ secrets.CI_DB_PASSWORD }}@localhost:5432/testdb
Note: Even for CI-only test databases, use GitHub Secrets for credentials rather than hardcoding values. This builds good habits and prevents accidental reuse of test credentials in other contexts.
E2E Tests
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Build
run: npm run build
- name: Run E2E tests
run: npx playwright test
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
Feeding CI Failures Back to Agents
The power of CI with AI agents is the feedback loop. When CI fails:
CI fails
│
▼
Copy the failure output
│
▼
Feed it to the agent:
"The CI pipeline failed with this error:
[paste specific error]
…
Preguntas frecuentes
¿Qué son las "puertas de calidad" (quality gates)?
Son barreras de calidad. Cada "puerta" es una comprobación que el código debe superar para poder avanzar, como las pruebas de código o de funcionamiento.
¿Por qué "más rápido es más seguro"?
Publicar cambios pequeños con frecuencia es más seguro. Es más fácil encontrar y corregir un problema en una actualización pequeña que en una grande, lo que reduce los riesgos.
¿Qué es "Shift Left"?
Significa encontrar los problemas lo antes posible en el proceso. Corregir un error al principio cuesta menos tiempo y esfuerzo que corregirlo cuando el producto ya está terminado o en uso.
Detalles
Descripción original del autor
Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.
repo: addyosmani/agent-skills
Popularidad
- Estrellas en GitHub
- 107 mil
- Posición en el ranking
- #763
- Licencia
- MIT
- Actualizada
- 13/10/2026
Comentarios
- …
Más skills de este repositorio
api-and-interface-design
107 milAyuda a diseñar APIs e interfaces bien definidas. Es útil al planificar cómo se comunicarán las distintas partes de un software.
browser-testing-with-devtools
107 milAyuda a tu agente a probar código en navegadores reales. Es útil para comprobar cómo funciona en su entorno de uso, detectando errores y problemas de rendimiento.
code-review-and-quality
107 milRealiza revisiones de código detalladas desde varios frentes. Es útil antes de fusionar nuevos cambios para garantizar la calidad y evitar problemas futuros.
code-simplification
107 milSimplifica el código para que sea más fácil de entender y mantener. Es útil cuando el código funciona pero es demasiado complejo, ayudando a mejorar su claridad.
Skills parecidas
knowledge-automation
394 milAyuda a tu agente a configurar una tarea recurrente que añade contenido nuevo a tu bóveda de Knowledge según un horario, y después comprueba que la tarea funciona.
knowledge-source-ingest
394 milAyuda a tu agente a mantener al día una bóveda de Knowledge con elementos nuevos de canales de chat, fuentes o buzones, sin volver a añadir lo que ya tiene.
benchmark
280 milAyuda a tu agente a medir la velocidad y el rendimiento del código. Es útil para asegurar que todo vaya rápido y encontrar problemas de lentitud.