gitlab-ci
Skill5 starsChanged 6 months agoMITView on GitHub
Expected Output: A complete .gitlab-ci.yml with: - stages: [lint, test, build, deploy-staging, deploy-production] - DAG needs: so build starts as soon as test finishes, not waiting for all of test stage - Docker image tagged with $CI_COMMIT_SHORT_SHA for immutability - environment: production with when: manual and protected branch rules - cache: keyed on $CI_COMMIT_REF_SLUG for pip dependencies
4 other projects use a version of this.
Adopted by
Most recently taken up by
- addxai/enterprise-harness-engineeringtheir own version, first seen Apr 17, 2026
- inbharatai/claude-skillstheir own version, first seen Mar 14, 2026
- jcsaaddupuy/badrobotstheir own version, first seen Feb 26, 2026
- grandcamel/GitLab-Assistant-Skillstheir own version, first seen Jan 26, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- addxai/enterprise-harness-engineering★ 44same name
- inbharatai/claude-skills★ 37same name
- grandcamel/GitLab-Assistant-Skills★ 4same name
- jcsaaddupuy/badrobots★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- fastapiSkill
- rustSkill
- backend-codeSkill
- frontend-codeSkill
- javascript-codeSkill
- java-codeSkill
- python-codeSkill
- codeSkill
- crash-analysisSkill
- memory-debugSkill
- network-debugSkill
- performance-debugSkill
- debugSkill
- argo-cdSkill
- dockerSkill
- github-actionsSkill
- jenkinsSkill
- kubernetesSkill
- devopsSkill
- terraformSkill
- nextjsSkill
- react-nativeSkill
- api-design-planSkill
- architecture-planSkill
- database-planSkill
- security-planSkill
- planSkill
- e2e-testSkill
- integration-testSkill
- testSkill
- tddSkill
- unit-testSkill
- smart-contractsSkill
The file
Files
GitLab CI/CD Skill
Skill, CI/CD, GitLab, Pipelines
Context
Use this skill when designing or debugging GitLab CI/CD pipelines. This covers .gitlab-ci.yml configuration, GitLab Runners, pipeline stages, DAG (Directed Acyclic Graph) pipelines, merge request pipelines, include/extends patterns, and environment-based deployments. The AI will act as a specialist in GitLab CI idioms and best practices.
Variables
{{pipeline_trigger}}: What triggers the pipeline (e.g.,merge_request_event,push to main,schedule,manual).{{pipeline_goal}}: What the pipeline accomplishes (e.g., lint, test, build Docker image, deploy to Kubernetes).{{tech_stack}}: Language/framework/tooling (e.g., Python 3.11, Docker, Helm, AWS).{{runner_type}}: Runner executor type (e.g.,docker,shell,kubernetes, GitLab-hosted SaaS runner).{{environment}}: Target deployment environment (e.g.,productionon GKE,stagingon a VPS).
Prompt
Adopt the persona of a Senior GitLab CI/CD Engineer. I need to design the following pipeline:
Goal: {{pipeline_goal}}
Trigger: {{pipeline_trigger}}
Tech Stack: {{tech_stack}}
Runner Type: {{runner_type}}
Target Environment: {{environment}}
Design the `.gitlab-ci.yml` configuration adhering to these standards:
1. **Pipeline Structure:** Define clear `stages`. Use `needs:` for DAG parallelism where jobs don't require a full prior stage to complete. Prefer `extends:` and `!reference` over copy-pasting job templates.
2. **Security:** Use CI/CD Variables (masked and protected) for all secrets. Use `environment:` with protected branches for production. Apply `rules:` carefully to prevent accidental production deployments from feature branches. Never echo secrets in logs.
3. **Efficiency:** Use `cache:` with a keyed strategy (e.g., `$CI_COMMIT_REF_SLUG`) to share dependencies across stages. Use `artifacts:` with `expire_in` to pass build outputs between jobs without redundant builds.
4. **Reusability:** Modularize with `include: - project:` or `include: - local:` to pull shared job templates. Use `trigger:` for multi-project pipelines if applicable.
5. **Merge Request Workflows:** Include a `rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event"` block for MR-only jobs like linting and short tests.
6. **Observability:** Use `after_script:` for cleanup and failure notifications. Tag jobs with appropriate `tags:` to route them to the correct runner.
Provide the full `.gitlab-ci.yml` with comments on every structural and security decision.Example Usage
Input:
Adopt the persona of a Senior GitLab CI/CD Engineer. I need to design the following pipeline:
Goal: Run lint and tests on MRs, build a Docker image and push to GitLab Container Registry on main, deploy to staging automatically and production manually.
Trigger: merge_request_event and push to main
Tech Stack: Python 3.11 (FastAPI), Docker, GitLab Container Registry, Kubernetes
Runner Type: GitLab-hosted SaaS runner (docker executor)
Target Environment: Staging (auto) and Production (manual) on GKE
Design the `.gitlab-ci.yml` configuration adhering to these standards:
[...rest of prompt...]Expected Output:
A complete .gitlab-ci.yml with:
stages: [lint, test, build, deploy-staging, deploy-production]- DAG
needs:sobuildstarts as soon astestfinishes, not waiting for all ofteststage - Docker image tagged with
$CI_COMMIT_SHORT_SHAfor immutability environment: productionwithwhen: manualand protected branch rulescache:keyed on$CI_COMMIT_REF_SLUGfor pip dependencies
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

