Tooluck logoTooluck
SKILL.md

gitlab-ci

Agent skill fromBagelHole/DevOps-Security-Agent-Skills

Configure GitLab CI/CD pipelines and runners for automated building, testing, and deployment. Create .gitlab-ci.yml configurations, manage runners, and implement DevOps workflows. Use when working with GitLab repositories or self-hosted GitLab instances.

How to install gitlab-ci

install gitlab-ci
# install the DevOps-Security-Agent-Skills pack with the skills CLI
npx skills add BagelHole/DevOps-Security-Agent-Skills

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

devops/ci-cd/gitlab-ci/

# into

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

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

devops/ci-cd/gitlab-ci/SKILL.md

MITFull file
1# GitLab CI/CD
2
3Automate your software delivery pipeline with GitLab's integrated CI/CD system.
4
5## When to Use This Skill
6
7Use this skill when:
8- Setting up CI/CD pipelines in GitLab
9- Configuring GitLab runners (shared or self-hosted)
10- Creating multi-stage deployment pipelines
11- Implementing GitLab Auto DevOps
12- Managing CI/CD variables and secrets
13
14## Prerequisites
15
16- GitLab repository (gitlab.com or self-hosted)
17- Basic understanding of YAML
18- For self-hosted runners: Linux server or Kubernetes cluster
19
20## Pipeline Configuration
21
22Create `.gitlab-ci.yml` in repository root:
23
24```yaml
25stages:
26 - build
27 - test
28 - deploy
29
30variables:
31 NODE_VERSION: "20"
32
33build:
34 stage: build
35 image: node:${NODE_VERSION}
36 script:
37 - npm ci
38 - npm run build
39 artifacts:
40 paths:
41 - dist/
42 expire_in: 1 hour
43
44test:
45 stage: test
46 image: node:${NODE_VERSION}
47 script:
48 - npm ci
49 - npm test
50 coverage: '/Coverage: \d+\.\d+%/'
51
52deploy:
53 stage: deploy
54 script:
55 - ./deploy.sh
56 environment:
57 name: production
58 url: https://example.com
59 only:
60 - main
61```
62
63## Job Configuration
64
65### Rules-Based Execution
66
67```yaml
68deploy:
69 script: ./deploy.sh
70 rules:
71 - if: $CI_COMMIT_BRANCH == "main"
72 when: manual
73 - if: $CI_PIPELINE_SOURCE == "merge_request_event"
74 when: never
75 - when: on_success
76```
77
78### Parallel Jobs
79
80```yaml
81test:
82 stage: test
83 parallel: 3
84 script:
85 - npm test -- --shard=$CI_NODE_INDEX/$CI_NODE_TOTAL
86```
87
88### Matrix Builds
89…

Excerpt shown under the repository's MIT license.

More skills in DevOps-Security-Agent-Skills

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