akin-ozer/cc-devops-skills/gitlab-ci-generator
Claude Code and agent skill by akin-ozer/cc-devops-skills
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Create, generate, or scaffold .gitlab-ci.yml pipelines, stages, and jobs.
Install
npx vskill@latest install akin-ozer/cc-devops-skills/gitlab-ci-generatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as akin-ozer/cc-devops-skills/gitlab-ci-generator.
GitLab CI/CD Pipeline Generator
Overview
Generate production-ready GitLab CI/CD pipeline configurations following current best practices, security standards, and naming conventions. All generated resources are automatically validated using the devops-skills:gitlab-ci-validator skill to ensure syntax correctness and compliance with best practices.
Trigger Phrases
Use this skill when the user asks for GitLab CI/CD generation requests such as:
- "Create a
.gitlab-ci.ymlfor..." - "Build a GitLab pipeline for Node/Python/Java..."
- "Add Docker build and deploy jobs in GitLab CI"
- "Set up GitLab parent-child or multi-project pipelines"
- "Include SAST/dependency scanning templates in GitLab CI"
Execution Model
Follow this deterministic flow in order:
- Classify request complexity (
targeted,lightweight, orfull). - Load only the required reference tier for that complexity.
- Output the matching response profile for the selected mode.
- For complete pipeline generation, start from the closest template and customize.
- Validate complete pipelines with strict Critical/High gates.
- Present output with validation status and template/version notes.
If tooling is unavailable, use the documented fallback branch and report it explicitly.
Mode Routing (Quick Decision)
| Request shape | Mode | Required references | Output profile | |
|---|---|---|---|---|
| Simple single-file pipeline with common jobs/stages and low risk | Lightweight | Tier 1 (+ Tier 2 only if needed) | Lightweight confirmation + compact final sections | |
Multi-environment deploy, advanced rules, includes/templates, security/compliance-sensitive workflow, or unclear/risky requirement | Full | Tier 1 + Tier 2 (Tier 3 only if needed) | Full confirmation + full final sections | |
| Review/Q&A/snippet/focused fix (not full file generation) | Targeted | Only directly relevant files | Concise targeted response (no full boilerplate) |
When uncertain on a complete-generation request, route to Full mode.
MANDATORY PRE-GENERATION STEPS
CRITICAL: Before generating any complete GitLab CI/CD pipeline, complete these steps.
Step 1: Classify Complexity (REQUIRED)
| Mode | Use When | Minimum Confirmation | |
|---|---|---|---|
| Targeted | Review/Q&A/snippet/focused fix where full pipeline generation is not requested | Concise targeted response | |
| Lightweight | Simple single-file pipeline, common stages/jobs, no advanced GitLab features, no sensitive deploy/security customization | Lightweight confirmation | |
| Full | Multi-environment deploys, includes/templates, advanced rules logic, security scanning customization, compliance-sensitive workflows, or any unclear/risky request | Full confirmation |
When uncertain on a complete-generation request, default to Full mode.
Step 2: Load References by Tier (REQUIRED)
Use an open/read action to load references based on the selected mode.
Targeted mode (review/Q&A/snippet/focused fix):
- Load only directly relevant references/templates for the scoped request.
- Do not enforce Full-generation Tier 1/Tier 2 checklist items.
Tier 1 (Required for complete pipeline generation in Lightweight and Full modes):
references/best-practices.md- baseline security, performance, namingreferences/common-patterns.md- starting pattern selection- Matching template from
assets/templates/:
- Docker pipelines ->
assets/templates/docker-build.yml - Kubernetes deployments ->
assets/templates/kubernetes-deploy.yml - Multi-project pipelines ->
assets/templates/multi-project.yml - Basic pipelines ->
assets/templates/basic-pipeline.yml
Tier 2 (Required for Full mode; optional for Lightweight mode):
references/gitlab-ci-reference.md- keyword/syntax edge casesreferences/security-guidelines.md- security-sensitive controls
Tier 3 (Conditional external docs lookup):
- Use only when local references do not cover requested features or version-specific behavior.
- Follow the lookup flow in "Handling GitLab CI/CD Documentation Lookup."
If a required local reference or template is unavailable:
- Report the exact missing path.
- Continue with available references and mark assumptions explicitly.
- Do not claim production-ready confidence until missing critical inputs are resolved.
Step 3: Confirm Understanding (EXPLICIT OUTPUT REQUIRED)
Lightweight Confirmation Mode
Use for simple requests only.
Required format:
Example:
Full Confirmation Mode
Use for complex or security-sensitive requests.
Required format:
Example:
Skipping confirmation is not allowed for complete pipeline generation.
Core Capabilities
1. Generate Basic CI/CD Pipelines
Create complete, production-ready .gitlab-ci.yml files with proper structure, security best practices, and efficient CI/CD patterns.
When to use:
- User requests: "Create a GitLab pipeline for...", "Build a CI/CD pipeline...", "Generate GitLab CI config..."
- Scenarios: CI/CD pipelines, automated testing, build automation, deployment pipelines
Process:
- Understand the user's requirements (what needs to be automated)
- Identify stages, jobs, dependencies, and artifacts
- Use
assets/templates/basic-pipeline.ymlas structural foundation - Reference
references/best-practices.mdfor implementation patterns - Reference
references/common-patterns.mdfor standard pipeline patterns - Generate the pipeline following these principles:
- Use semantic stage and job names
- Pin Docker images to specific versions (not :latest)
- Implement proper secrets management with masked variables
- Use caching for dependencies to improve performance
- Implement proper artifact handling with expiration
- Use
needskeyword for DAG optimization when appropriate - Add proper error handling with retry and allow_failure
- Use
rulesinstead of deprecated only/except - Set explicit `timeout` for all jobs (10-30 minutes typically)
- Add meaningful job descriptions in comments
- ALWAYS validate the generated pipeline using the devops-skills:gitlab-ci-validator skill
- If validation fails, fix the issues and re-validate
Example structure:
2. Generate Docker Build Pipelines
Create pipelines for building, testing, and pushing Docker images to container registries.
When to use:
- User requests: "Create a Docker build pipeline...", "Build and push Docker images..."
- Scenarios: Container builds, multi-stage Docker builds, registry pushes
Process:
- Understand the Docker build requirements (base images, registries, tags)
- Use
assets/templates/docker-build.ymlas foundation - Implement Docker-in-Docker or Kaniko for builds
- Configure registry authentication
- Implement image tagging strategy
- Add security scanning if needed
- ALWAYS validate using devops-skills:gitlab-ci-validator skill
Example:
3. Generate Kubernetes Deployment Pipelines
Create pipelines that deploy applications to Kubernetes clusters.
When to use:
- User requests: "Deploy to Kubernetes...", "Create K8s deployment pipeline..."
- Scenarios: Kubernetes deployments, Helm deployments, kubectl operations
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 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-generator/SKILL.md
Popularity
- Repository stars
- 294
- Repository forks
- 32
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 8 months ago.
Extension points
templateCustom templates for code generation
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-generator)