akin-ozer/cc-devops-skills/gitlab-ci-validator
Claude Code and agent skill by akin-ozer/cc-devops-skills
- community
Checking that the SKILL.md file is still in the repository.
Validate, lint, audit, or fix .gitlab-ci.yml pipelines, stages, and jobs.
Install
npx vskill@latest install akin-ozer/cc-devops-skills/gitlab-ci-validatorSKILL.md
GitLab CI/CD Validator
Comprehensive toolkit for validating, linting, testing, and securing .gitlab-ci.yml configurations.
Trigger Phrases
Use this skill when requests include intent like:
- "Validate this
.gitlab-ci.yml" - "Why is this GitLab pipeline failing?"
- "Run a security review for our GitLab CI"
- "Check pipeline best practices"
- "Lint GitLab CI config before merge"
Setup And Prerequisites (Run First)
All commands below assume repository root as current working directory.
Use one canonical command path for orchestration:
Optional local execution tooling (for --test-only):
Quick Start Commands
Deterministic Validation Workflow
Follow these gates in order:
- Run Quick Start command
2(--syntax-only). - If syntax fails, stop and fix errors before continuing.
- Run Quick Start command
3(--best-practices) and apply relevant improvements. - Run Quick Start command
4(--security-only) and fix allcritical/highfindings before merge. - Optionally run Quick Start command
5(--test-only) for local execution checks. - Run Quick Start command
6(--strict) for final merge gate.
Required gates: syntax + security. Recommended gate: best practices. Optional gate: local execution test.
Rule Severity Rationale And Documentation Links
Severity Model
critical: Direct credential/secret exposure or high-confidence compromise path. Block merge.high: Exploitable unsafe behavior or strong security regression. Fix before merge.medium: Security hardening gap with realistic risk. Track and fix soon.low/suggestion: Optimization or maintainability improvement.
Rule Classes And Why They Matter
- Syntax rules (
yaml-syntax,job-stage-undefined,dependencies-undefined-job): prevent pipeline parse and dependency failures. - Best-practice rules (
cache-missing,artifact-no-expiration,dag-optimization): reduce runtime cost and improve pipeline throughput. - Security rules (
hardcoded-password,curl-pipe-bash,include-remote-unverified): reduce credential leaks and supply-chain risk.
References
- Local syntax reference:
devops-skills-plugin/skills/gitlab-ci-validator/docs/gitlab-ci-reference.md - Local best practices:
devops-skills-plugin/skills/gitlab-ci-validator/docs/best-practices.md - Local common issues:
devops-skills-plugin/skills/gitlab-ci-validator/docs/common-issues.md - GitLab CI YAML reference: https://docs.gitlab.com/ee/ci/yaml/
- GitLab CI/CD components: https://docs.gitlab.com/ee/ci/components/
- GitLab pipeline security guidance: https://docs.gitlab.com/ee/ci/pipelines/settings.html
Fallbacks For Tool Or Environment Constraints
- Missing
python3: - Behavior: validator cannot run.
- Fallback: install Python 3 and rerun.
- Missing
PyYAML: - Behavior:
python_wrapper.shauto-creates.venvand installspyyamlwhen possible. - Fallback in restricted/offline environments: pre-install
pyyamlfrom an internal mirror, then rerun. - Missing
gitlab-ci-local,node, ordocker: - Behavior:
--test-onlyreports warning/failure. - Fallback: skip local execution testing and continue with syntax/best-practice/security gates.
- No execute permission on scripts:
- Behavior: shell permission errors.
- Fallback: rerun the setup
chmodcommand from the Setup section.
Examples
Example 1: New Pipeline Validation
Example 2: Pre-Merge Hard Gate
Example 3: CI Integration
Individual Validators (Advanced)
Done Criteria
- Frontmatter
nameanddescriptionunchanged. - One canonical orchestrator path is used consistently.
- Setup and
chmodprerequisites appear before workflow/use examples. - Quick-start and workflow are non-duplicative (workflow references quick-start gates).
- Severity rationale and rule-to-doc references are explicit.
- Fallback behavior is documented for missing tools and constrained environments.
- Examples are executable from repository root.
Notes
- This skill validates configuration and static patterns; it does not execute production pipelines.
- Use
gitlab-ci-localor GitLab CI Lint for runtime behavior confirmation.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevops-skills-plugin/skills/gitlab-ci-validator/SKILL.md
Popularity
- Repository stars
- 279
- Repository forks
- 31
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/akin-ozer/cc-devops-skills/gitlab-ci-validator)