skills/devops-skills/gitlab-ci/SKILL.md
Provides comprehensive guidance for GitLab CI/CD including pipeline configuration, runners, artifacts, environments, and deployment automation. Use when the user asks about GitLab CI, needs to create pipelines, configure runners, or automate builds and deployments.
npx skillsauth add teachingai/agent-skills gitlab-ciInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
.gitlab-ci.yml)needs for complex dependency graphs between jobs# .gitlab-ci.yml
stages:
- test
- build
- deploy
variables:
NODE_VERSION: "20"
test:
stage: test
image: node:${NODE_VERSION}
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
script:
- npm ci
- npm test
artifacts:
when: on_failure
paths:
- test-reports/
expire_in: 7 days
build:
stage: build
image: node:${NODE_VERSION}
needs: [test]
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
deploy_production:
stage: deploy
needs: [build]
environment:
name: production
url: https://myapp.example.com
script:
- ./scripts/deploy.sh
rules:
- if: $CI_COMMIT_BRANCH == "main"
| Feature | Purpose |
|---------|---------|
| stages | Define execution order |
| needs | Create DAG dependencies (skip stage waiting) |
| artifacts | Pass files between jobs |
| cache | Speed up repeated installs |
| rules | Control when jobs run |
| environment | Track deployment targets |
stages to define clear build order; jobs within a stage run in parallelneeds to create complex dependency graphs and avoid unnecessary waitingartifacts: when: on_failurerules instead of deprecated only/except for conditional job executionrules conditions match the event (push, merge request, etc.)gitlab ci, gitlab-ci, pipeline, runner, ci/cd, artifacts, cache, environments, deployment automation
development
Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.
tools
Provides comprehensive guidance for Flask framework including routing, templates, forms, database integration, extensions, and deployment. Use when the user asks about Flask, needs to create web applications, implement routes, or build Python web services.
development
Provides comprehensive guidance for FastAPI framework including routing, request validation, dependency injection, async operations, OpenAPI documentation, and database integration. Use when the user asks about FastAPI, needs to create REST APIs, or build high-performance Python web services.
development
Provides comprehensive guidance for Django framework including models, views, templates, forms, admin, REST framework, and deployment. Use when the user asks about Django, needs to create web applications, implement models and views, or build Django REST APIs.