gitlab-ci-patterns

Generates GitLab CI/CD pipeline configurations with multi-stage workflows, caching, and Kubernetes deployment.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/Tgoldi/claude-skills --skill gitlab-ci-patterns-tgoldi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitlab-ci-patterns
Source: https://github.com/Tgoldi/claude-skills/tree/main/gitlab-ci-patterns
Command: npx skills add https://github.com/Tgoldi/claude-skills --skill gitlab-ci-patterns-tgoldi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Writing GitLab CI/CD pipelines from scratch is error-prone and time-consuming, especially when coordinating multi-stage builds, caching strategies, security scanning, and multi-environment Kubernetes deployments. ## Core Features & Use Cases - Multi-Stage Pipeline Templates: Pre-built patterns for build, test, and deploy stages with artifacts, coverage reports, and Docker image publishing to the GitLab Container Registry. - Deployment & Infrastructure Patterns: Ready-to-use configurations for Kubernetes deployments across staging and production environments, Terraform validate/plan/apply workflows, and dynamic child pipelines. - Optimization & Security: Caching strategies for dependencies, SAST/dependency/container scanning templates, and Trivy vulnerability scanning. - Use Case: You need to set up CI/CD for a Node.js app that builds a Docker image, runs tests with coverage reporting, and deploys to Kubernetes with a manual production gate—this Skill provides the complete .gitlab-ci.yml structure. ## Quick Start Ask the AI to create a GitLab CI pipeline that builds a Docker image, runs tests, and deploys to Kubernetes staging and production environments.

Frequently Asked Questions about gitlab-ci-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitLab CI/CD pipeline with multiple stages?

Define stages in the .gitlab-ci.yml file (e.g., build, test, deploy) and assign each job to a stage. Jobs in the same stage run in parallel, while stages execute sequentially, with artifacts passing build outputs between stages.

How to cache node_modules in GitLab CI pipelines?

Add a cache block to your job with a key like ${CI_COMMIT_REF_SLUG} and paths including node_modules/. Use policy pull-push so the cache is reused across pipeline runs and updated when dependencies change.

How do I deploy to Kubernetes from GitLab CI?

Use a kubectl image (e.g., bitnami/kubectl) in a deploy job, configure cluster access with KUBE_URL and KUBE_TOKEN CI/CD variables, then run kubectl apply and kubectl rollout status. Gate production with when: manual.

Does GitLab CI support security scanning for Docker images?

Yes, GitLab provides built-in templates for SAST, dependency scanning, and container scanning via include directives. You can also add a Trivy job to scan images for HIGH and CRITICAL vulnerabilities.

What are dynamic child pipelines in GitLab CI?

Dynamic child pipelines let a job generate a YAML file at runtime, save it as an artifact, and trigger a downstream pipeline from it using trigger:include:artifact. This enables pipeline logic that adapts to repository changes.