gitlab-ci-patterns

Create and optimize GitLab CI/CD pipelines with multi-stage templates and caching.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill gitlab-ci-patterns-leonardoteodoroo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitlab-ci-patterns
Source: https://github.com/leonardoteodoroo/amino-advanced/tree/main/.agent/skills/gitlab-ci-patterns
Command: npx skills add https://github.com/leonardoteodoroo/amino-advanced --skill gitlab-ci-patterns-leonardoteodoroo

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

GitLab CI/CD pipelines often become complex and hard to maintain; this Skill provides patterns to structure, cache, secure, and deploy pipelines at scale.

Core Features & Use Cases

  • Multi-stage templates: reusable pipeline structures across projects.
  • Caching strategies: efficient dependency caching to speed up jobs.
  • Environment deployments: staging/production deployment patterns and gates.
  • Security scanning: integrate SAST and dependency checks.
  • Dynamic pipelines: generate and trigger child pipelines for complex workflows.

Quick Start

Add the gitlab-ci-patterns templates to your GitLab project and start replacing ad-hoc CI with these patterns.

Frequently Asked Questions about gitlab-ci-patterns

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

FAQPage Schema
How do I optimize GitLab CI/CD pipelines with caching strategies?

To optimize GitLab CI/CD pipelines with caching strategies, you implement dependency caching patterns that store and reuse downloaded packages between jobs. This speeds up pipeline execution by avoiding redundant downloads during multi-stage workflows.

What is the best way to structure multi-stage GitLab CI templates?

The best way to structure multi-stage GitLab CI templates is by defining reusable YAML pipeline structures. This standardizes workflows across projects, making complex pipelines significantly easier to maintain and scale.

Does GitLab CI support environment-specific deployments and gating for staging and production?

Yes, GitLab CI supports environment-specific deployments and gating for staging and production. You configure environment gates within your YAML pipeline to control and secure progressive deployments across different target stages.

Can I integrate SAST security scanning into a GitLab CI pipeline?

Yes, you can integrate SAST security scanning into a GitLab CI pipeline. The setup involves adding specific scanning jobs to your YAML configuration to automatically run dependency checks and static application security testing.

How do I generate dynamic child pipelines for complex GitLab CI workflows?

You generate dynamic child pipelines for complex GitLab CI workflows by creating templates that produce and trigger child pipelines. This architecture separates large configurations into manageable, specialized workflow files.

How do I use kubectl or Terraform deployments within GitLab CI?

You use kubectl or Terraform deployments within GitLab CI by integrating their commands directly into your deployment stages. The pipeline YAML structures environment-specific deployments to execute these infrastructure tools automatically.