gitlab-ci
Skill by siva01c
Authors and debugs GitLab CI/CD pipelines in .gitlab-ci.yml, using a Drupal project as the example. It covers stages, rules, test jobs, Semgrep SAST, composer caching and drush deployment. It is for developers who run Drupal projects on GitLab.
Install gitlab-ci
Built from the published package, never by AI.
git clone --depth 1 https://github.com/siva01c/claude-plugins /tmp/claude-plugins && mkdir -p ~/.claude/skills && cp -r /tmp/claude-plugins/cicd-tools/skills/gitlab-ci ~/.claude/skills/gitlab-ciRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/siva01c/claude-plugins /tmp/claude-plugins && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-plugins/cicd-tools/skills/gitlab-ci ~/.gemini/antigravity-cli/skills/gitlab-ciAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through writing and debugging GitLab CI/CD pipelines defined in .gitlab-ci.yml. It uses a Drupal project as the working example, with a validate, test, build and deploy flow. It shows how to set up stages, default settings, composer caching keyed on composer.lock, and rules that control when jobs run.
The skill includes Drupal test jobs for phpcs, phpstan and phpunit, with a MariaDB service for tests. It adds a Semgrep SAST job that writes SARIF and GitLab security reports. It also shows a production deploy that runs drush deploy over SSH behind a manual gate. A troubleshooting table covers common problems such as jobs that never appear and runs that fire twice per merge request. It is aimed at developers who maintain Drupal sites on GitLab.
Written from the project's SKILL.md and checked against it.
What it can do
- Pipeline anatomySets up stages, default settings, variables and composer caching in .gitlab-ci.yml.
- RulesExplains how rules: controls when jobs run, with common conditions and a manual gate.
- Drupal test jobsShows phpcs, phpstan and phpunit jobs with a MariaDB service for Drupal tests.
- Semgrep SASTRuns Semgrep with SARIF output and GitLab SAST reports for the merge request widget.
- Drush deploymentDeploys to production over SSH with drush deploy, tracked as a GitLab environment.
- Reuse with include and needsSplits large configs with include and builds job graphs with needs.
- TroubleshootingLists common symptoms such as stuck jobs, cache misses and masked variable failures with fixes.
What you need
- A GitLab project with a .gitlab-ci.yml file
- GitLab runners to execute jobs
- A Drupal project using composer
- An SSH private key stored as a CI/CD variable for deployment
Try asking
- Add a CI pipeline for this Drupal project with phpcs and phpunit
- Why is my GitLab CI job not running on merge requests?
- Set up a manual production deploy with drush from a GitLab pipeline
Good to know
- Semgrep rule files must be copied from the security-tools semgrep skill into the project.
- Older Semgrep versions take one output format per run, so the scan must run twice.
- Cache is described as best-effort storage between pipelines.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cicd-tools/skills/gitlab-ci/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to gitlab-ci
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
gitlab-ci: common questions
Does this skill work with GitLab CI for Drupal?
Yes. The skill uses a Drupal project as its working example, with jobs for phpcs, phpstan, phpunit and drush deployment.
What is the difference between cache and artifacts in GitLab CI?
The skill says cache is best-effort storage between pipelines, used for composer or npm caches. Artifacts pass build results between jobs in the same pipeline and can be downloaded from the UI.
How do I stop a pipeline from running twice per merge request push?
The troubleshooting section says this happens when branch and merge request pipelines are both enabled. It suggests using workflow: rules: to keep one.
How do I install gitlab-ci?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is gitlab-ci free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is gitlab-ci safe to use?
It scores 49 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to gitlab-ci?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
