المهارات gitlab-ci-patterns
📦

gitlab-ci-patterns

آمن

Crear pipelines de GitLab CI/CD con flujos de trabajo multi-etapa

متاح أيضًا من: wshobson

La creación manual de pipelines de GitLab CI consume mucho tiempo y es propensa a errores. Esta skill proporciona patrones probados para flujos de trabajo multi-etapa, estrategias de caché y automatización de despliegues.

يدعم: Claude Codex Code(CC)
🥉 74 برونزي
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "gitlab-ci-patterns". Create a basic GitLab CI pipeline for a Python project

النتيجة المتوقعة:

Genera un .gitlab-ci.yml con stages para linting, testing y building, incluyendo configuración de pytest, reporting de cobertura y recolección de artefactos.

استخدام "gitlab-ci-patterns". Set up Kubernetes deployment from GitLab CI

النتيجة المتوقعة:

Produce jobs de deployment con configuración de kubectl, definiciones de environment, checks de estado de rollout y targeting apropiado de namespace para staging y production.

التدقيق الأمني

آمن
v1 • 2/25/2026

Static analyzer flagged 24 potential issues, all determined to be false positives. External command detections are markdown code block delimiters, not actual shell execution. URL references are documentation examples in YAML templates. No cryptographic code exists. This is a safe documentation skill with GitLab CI YAML examples.

1
الملفات التي تم فحصها
286
الأسطر التي تم تحليلها
0
النتائج
1
إجمالي عمليات التدقيق
لا توجد مشكلات أمنية
تم تدقيقه بواسطة: claude

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
50
المجتمع
100
الأمان
91
الامتثال للمواصفات

ماذا يمكنك بناءه

Ingeniero de DevOps configurando un nuevo proyecto

Establecer rápidamente un pipeline de CI/CD completo con etapas de testing, building y deployment siguiendo las mejores prácticas de GitLab.

Equipo de desarrollo migrando a GitLab

Convertir flujos de trabajo de CI existentes al formato GitLab CI con funcionalidad equivalente y estrategias de caché mejoradas.

Ingeniero de Plataforma construyendo plantillas

Crear plantillas y configuraciones de pipeline reutilizables para múltiples proyectos dentro de una organización.

جرّب هذه الموجهات

Configuración básica de pipeline
Create a GitLab CI pipeline for a Node.js project with build, test, and deploy stages. Include caching for node_modules and artifact collection for the dist folder.
Configuración de Docker Build
Generate a GitLab CI job that builds a Docker image, tags it with the commit SHA and latest, and pushes to the GitLab container registry.
Despliegue multi-entorno
Create GitLab CI jobs for deploying to staging and production environments. Staging should deploy automatically on develop branch, production requires manual approval on main branch.
Pipeline de Terraform
Design a complete Terraform pipeline with validation, planning, and apply stages. Include proper artifact handling for plans and manual approval for production changes.

أفضل الممارسات

  • Usar tags específicos de imagen en lugar de latest para asegurar builds reproducibles
  • Cachear dependencias apropiadamente para reducir el tiempo de ejecución del pipeline
  • Implementar gates de aprobación manual para despliegues de production

تجنب

  • Almacenar secrets directamente en .gitlab-ci.yml en lugar de usar variables CI/CD
  • Usar rutas de artefactos demasiado amplias que inflan el almacenamiento del pipeline
  • Omitir stages de test para acelerar pipelines, comprometiendo la calidad del código

الأسئلة المتكررة

¿Cómo almaceno de forma segura API keys y credenciales en GitLab CI?
Use GitLab CI/CD Variables in your project settings. Mark sensitive variables as protected and masked. Reference them in your pipeline using $VARIABLE_NAME syntax.
¿Cuál es la diferencia entre cache y artifacts en GitLab CI?
Cache speeds up jobs by reusing dependencies across pipelines. Artifacts pass build outputs between jobs within the same pipeline. Use cache for dependencies, artifacts for build outputs.
¿Cómo ejecuto un pipeline solo en ramas específicas?
Use the rules keyword or the older only/except keywords. Rules provide more flexibility with conditions like if: $CI_COMMIT_BRANCH == "main".
¿Puedo ejecutar múltiples jobs en paralelo en GitLab CI?
Yes, jobs in the same stage run in parallel. Define multiple jobs under the same stage to execute them concurrently, limited by your Runner availability.
¿Cómo creo un pipeline que se ejecute en un horario programado?
Configure Pipeline Schedules in GitLab project settings under CI/CD. Set the cron expression and target branch. Use $CI_PIPELINE_SOURCE to detect scheduled runs.
¿Qué son las plantillas de GitLab CI y cómo las uso?
Templates provide pre-configured jobs for common tasks like SAST scanning or dependency checking. Include them using the include keyword with template references.

تفاصيل المطور

المؤلف

sickn33

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md