gitlab-ci
Validation plugin that lints .gitlab-ci.yml on every conversation end using glab.
- CCM score
- 52 of 100
- GitHub stars
- 201
Own this plugin? Claim it
What it does
- Adds a lint hook that runs
glab ci lintagainst.gitlab-ci.ymlwhen a session or agent finishes - Covers five skills: pipeline configuration, job configuration, variables and secrets, artifacts and caching, and CI/CD best practices
- Guides stage ordering, workflow rules, DAG pipelines, includes, and secure handling of CI/CD variables and OIDC
- Designed for projects that need GitLab CI configuration checked automatically, with the glab CLI installed and authenticated
Validation and quality enforcement for GitLab CI/CD pipeline configurations using glab CLI.
Add marketplace
/plugin marketplace add TheBushidoCollective/hanRun it inside Claude Code once, then install the plugin below.
Install
/plugin install gitlab-ci@hanRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceGitLab CI - Artifacts & Caching
Configure artifacts and caching for efficient pipeline execution.
Artifacts
Basic Artifact Configuration
build:
script:
- npm run build
artifacts:
paths:
- dist/
expire_in: 1 week
Artifact Reports
test:
script:
- npm test -- --coverage
artifacts:
reports:
junit: junit.xml
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
Conditional Artifacts
build:
artifacts:
paths:
- dist/
when: on_success # on_success, on_failure, always
exclude:
- dist/**/*.map
Artifact Dependencies
build:
artifacts:
paths:
- dist/
test:
dependencies:
- build # Downloads build artifacts
script:
- npm test
deploy:
dependencies: [] # Skip all artifact downloads
script:
- ./deploy.sh
Caching
Basic Cache Configuration
default:
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .npm/
Cache Key Strategies
# Per-branch cache
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
# Lock file based cache
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
# Combined key
cache:
key:
prefix: ${CI_JOB_NAME}
files:
- package-lock.json
paths:
- node_modules/
Cache Policy
install:
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: push # Only upload cache
script:
- npm ci
test:
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: pull # Only download cache
script:
- npm test
Fallback Keys
cache:
key: ${CI_COMMIT_REF_SLUG}
fallback_keys:
- ${CI_DEFAULT_BRANCH}
- main
paths:
- node_modules/
Distributed Cache (S3)
Configure in GitLab Runner:
[runners.cache]
Type = "s3"
Shared = true
[runners.cache.s3]
ServerAddress = "s3.amazonaws.com"
BucketName = "gitlab-runner-cache"
BucketLocation = "us-east-1"
Artifacts vs Cache
| Feature | Artifacts | Cache |
|---|---|---|
| Purpose | Pass data between jobs | Speed up job execution |
| Storage | GitLab server | Runner local or S3 |
| Reliability | Guaranteed | Best effort |
| Expiration | Configurable | Configurable |
| Cross-pipeline | Yes (with dependencies) | Yes (with keys) |
Best Practices
- Use cache for dependencies (node_modules, vendor)
- Use artifacts for build outputs
- Set appropriate expiration times
- Use lock file-based cache keys
- Exclude source maps and unnecessary files
- Use
policy: pullfor jobs that only read cache
Readme
GitLab CI
Validation and quality enforcement for GitLab CI/CD pipeline configurations.
What This Plugin Provides
Validation Hooks
- GitLab CI Lint: Validates
.gitlab-ci.ymlsyntax usingglab ci lint
Skills
This plugin provides the following skills:
- Pipeline Configuration: Stages, workflow rules, DAG pipelines, includes
- Job Configuration: Scripts, environments, rules, parallel execution
- Variables & Secrets: CI/CD variables, secret management, OIDC
- Artifacts & Caching: Build artifacts, cache strategies, optimization
- CI/CD Best Practices: Pipeline optimization, security, organization
Installation
han plugin install gitlab-ci
Usage
Once installed, this plugin automatically validates your GitLab CI configuration:
- When you finish a conversation with Claude Code
- When Claude Code agents complete their work
Requirements
- glab CLI installed and authenticated
- GitLab project with
.gitlab-ci.yml
Details
- Marketplace
- TheBushidoCollective/han
- Source
- plugins/tools/gitlab-ci
- Category
- Tool
- Keywords
- gitlab, gitlab-ci, ci-cd, pipelines, devops, validation
- Listed since
- Apr 7, 2026
More from TheBushidoCollective/han
All 340Similar to gitlab-ci
More DevOps & Cloudjutsu-gitlab-ciPluginTheBushidoCollective/han201 starsValidation and quality enforcement for GitLab CI/CD pipeline configurations using glab CLI.
cicd-automationPluginwshobson/agents42.9K starsCI/CD pipeline configuration, GitHub Actions/GitLab CI workflow setup, and automated deployment pipeline orchestration
ansiblePluginTheBushidoCollective/han201 starsAnsible playbook validation and configuration management best practices
cicd-pipeline-setupSkillaj-geddes/useful-ai-prompts505 installsPipeline design guide covering GitHub Actions, GitLab CI, Jenkins, and CircleCI for test, build, and deploy workflows.
glabSkillhenricook/claude-glab-skill1.1K installsCommand-line workflows for GitLab merge requests, issues, CI/CD pipelines, and repositories via the official glab CLI.
cicd-pipeline-builderPluginglincker/claude-code-marketplace38 starsGenerate CI/CD pipelines for GitHub Actions, GitLab CI with best practices