Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计通过

gitlab-ciGitLab CI 工具

Agent Skill

用于围绕 GitLab 项目、Merge Request、Issue、分支、流水线和代码审查流程提供辅助能力。它适合让 Agent 查询项目状态、整理提交差异、辅助检查合并请求或汇总 CI 结果。使用时需要确认项目权限、访问 token 和目标分支范围;涉及合并、推送、改工单或触发流水线时,应先预览影响并核对团队流程。

总安装

1,224

周安装

50

GitHub Stars

341

下载量

392
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gitlab-ci(GitLab CI 工具)
来源仓库:https://github.com/teachingai/full-stack-skills
仓库路径:skills/gitlab-ci
安装命令:
npx skills add https://github.com/teachingai/full-stack-skills --skill gitlab-ci
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/teachingai/full-stack-skills --skill gitlab-ci

简介

用于围绕 GitLab 项目、Merge Request、Issue 和流水线提供辅助能力。

  • 适合查询项目状态、整理提交差异或汇总 CI 结果。
  • 使用时确认项目权限、访问 token 和目标分支范围。
  • 安装命令:npx skills add https://github.com/teachingai/full-stack-skills --skill gitlab-ci。
  • 涉及合并、推送或改工单时应预览影响并核对团队流程。

SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • Write or debug GitLab CI pipelines (.gitlab-ci.yml)
  • Configure GitLab Runner, stages, jobs, and artifacts
  • Set up CI/CD variables, secrets, and environments
  • Integrate testing, building, and deployment automation
  • Use needs for complex dependency graphs between jobs

How to use this skill

Workflow

  1. Define stages — declare the pipeline execution order
  2. Write jobs — assign each job to a stage with scripts and rules
  3. Configure artifacts and cache — pass build outputs between jobs
  4. Set up environments — define deployment targets with rules

Quick Start Example

# .gitlab-ci.yml
stages:
  - test
  - build
  - deploy

variables:
  NODE_VERSION: "20"

test:
  stage: test
  image: node:${NODE_VERSION}
  cache:
    key: ${CI_COMMIT_REF_SLUG}
    paths:
      - node_modules/
  script:
    - npm ci
    - npm test
  artifacts:
    when: on_failure
    paths:
      - test-reports/
    expire_in: 7 days

build:
  stage: build
  image: node:${NODE_VERSION}
  needs: [test]
  script:
    - npm ci
    - npm run build
  artifacts:
    paths:
      - dist/

deploy_production:
  stage: deploy
  needs: [build]
  environment:
    name: production
    url: https://myapp.example.com
  script:
    - ./scripts/deploy.sh
  rules:
    - if: $CI_COMMIT_BRANCH == "main"

Key Concepts

FeaturePurpose
stagesDefine execution order
needsCreate DAG dependencies (skip stage waiting)
artifactsPass files between jobs
cacheSpeed up repeated installs
rulesControl when jobs run
environmentTrack deployment targets

Best Practices

  • Use stages to define clear build order; jobs within a stage run in parallel
  • Store sensitive values in CI/CD Variables (Settings > CI/CD > Variables) — never hardcode in YAML
  • Use needs to create complex dependency graphs and avoid unnecessary waiting
  • Preserve logs and artifacts on failure with artifacts: when: on_failure
  • Use rules instead of deprecated only/except for conditional job execution

Troubleshooting

  • Job stuck pending: Check runner tags match and runners are available
  • Artifact not found: Verify the producing job completed and artifact paths are correct
  • Cache not restoring: Ensure cache key is consistent; check runner cache configuration
  • Pipeline not triggered: Verify rules conditions match the event (push, merge request, etc.)

Keywords

gitlab ci, gitlab-ci, pipeline, runner, ci/cd, artifacts, cache, environments, deployment automation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

32.26%
按下载量换算126

OpenCode

23.02%
按下载量换算90

Antigravity

16.76%
按下载量换算66

Codex

12.53%
按下载量换算49

Gemini CLI

8.17%
按下载量换算32

trae

3.59%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills