Tooluck logoTooluck
SKILL.md

gitlab-ci-patterns

Agent skill fromwshobson/agents

Build GitLab CI/CD pipelines with multi-stage workflows, caching, and distributed runners for scalable automation. Use when implementing GitLab CI/CD, optimizing pipeline performance, or setting up automated testing and deployment.

How to install gitlab-ci-patterns

install gitlab-ci-patterns
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/cicd-automation/skills/gitlab-ci-patterns/

# into

~/.claude/skills/gitlab-ci-patterns/ (all projects)

.claude/skills/gitlab-ci-patterns/ (one project)

plugins/cicd-automation/skills/gitlab-ci-patterns/SKILL.md

MITFull file
1# GitLab CI Patterns
2
3Comprehensive GitLab CI/CD pipeline patterns for automated testing, building, and deployment.
4
5## Purpose
6
7Create efficient GitLab CI pipelines with proper stage organization, caching, and deployment strategies.
8
9## When to Use
10
11- Automate GitLab-based CI/CD
12- Implement multi-stage pipelines
13- Configure GitLab Runners
14- Deploy to Kubernetes from GitLab
15- Implement GitOps workflows
16
17## Basic Pipeline Structure
18
19```yaml
20stages:
21 - build
22 - test
23 - deploy
24
25variables:
26 DOCKER_DRIVER: overlay2
27 DOCKER_TLS_CERTDIR: "/certs"
28
29build:
30 stage: build
31 image: node:20
32 script:
33 - npm ci
34 - npm run build
35 artifacts:
36 paths:
37 - dist/
38 expire_in: 1 hour
39 cache:
40 key: ${CI_COMMIT_REF_SLUG}
41 paths:
42 - node_modules/
43
44test:
45 stage: test
46 image: node:20
47 script:
48 - npm ci
49 - npm run lint
50 - npm test
51 coverage: '/Lines\s*:\s*(\d+\.\d+)%/'
52 artifacts:
53 reports:
54 coverage_report:
55 coverage_format: cobertura
56 path: coverage/cobertura-coverage.xml
57
58deploy:
59 stage: deploy
60 image: bitnami/kubectl:1.31
61 script:
62 - kubectl apply -f k8s/
63 - kubectl rollout status deployment/my-app
64 only:
65 - main
66 environment:
67 name: production
68 url: https://app.example.com
69```
70
71## Docker Build and Push
72
73```yaml
74build-docker:
75 stage: build
76 image: docker:24
77 services:
78 - docker:24-dind
79 before_script:
80 - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
81 script:
82…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates