Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

gitlab-ciGitLab CI 工具

Agent Skill

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

总安装

2,274

周安装

92

GitHub Stars

1

下载量

714
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/grandcamel/gitlab-assistant-skills --skill gitlab-ci

简介

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

  • 适合查询项目状态、整理提交差异、检查合并请求或汇总 CI 结果。
  • 通过 npx skills add 从 GitHub 仓库安装并使用。
  • 使用时需确认项目权限、访问 token 和目标分支范围。
  • 涉及合并、推送或触发流水线时应先预览影响并核对团队流程。

SKILL.md

CI/CD Pipeline Skill

CI/CD pipeline operations for GitLab using the glab CLI.

Quick Reference

OperationCommandRisk
View statusglab ci status-
View pipelineglab ci view-
List pipelinesglab ci list-
Run pipelineglab ci run⚠️
Get pipeline JSONglab ci get-
Retry jobglab ci retry <job-id>⚠️
Trace jobglab ci trace <job-id>-
Download artifactsglab ci artifact-
Lint CI configglab ci lint-
Delete pipelineglab ci delete <id>⚠️⚠️

Risk Legend: - Safe | ⚠️ Caution | ⚠️⚠️ Warning | ⚠️⚠️⚠️ Danger

When to Use This Skill

ALWAYS use when:

  • User wants to check pipeline/build status
  • User mentions "CI", "CD", "pipeline", "build", "job", "deploy"
  • User wants to trigger or retry builds
  • User wants to view job logs

NEVER use when:

  • User wants to manage CI/CD variables (use gitlab-variable instead)
  • User wants to manage schedules (use gitlab-schedule skill)

Available Commands

View Pipeline Status

glab ci status [options]

Options:

FlagDescription
-b, --branch=<branch>Check status for specific branch
-l, --liveShow status in real-time (updates automatically)
-c, --compactShow compact view

Examples:

# View current branch pipeline status
glab ci status

# View status for specific branch
glab ci status --branch=main

# Watch status live (updates in real-time)
glab ci status --live

# Compact view
glab ci status --compact

Interactive Pipeline View

glab ci view [options]

Options:

FlagDescription
-b, --branch=<branch>View pipeline for specific branch/tag
-p, --pipeline-id=<id>View specific pipeline by ID
-w, --webOpen pipeline in browser

Keyboard shortcuts in view mode:

KeyAction
Esc or qClose logs or return to pipeline
Ctrl+R or Ctrl+PRun, retry, or play a job
Tab / Arrow keysNavigate
EnterConfirm selection
Ctrl+DCancel job / Quit view

Examples:

# Interactive view for current branch
glab ci view

# View specific branch pipeline
glab ci view --branch=feature/new

# View specific pipeline ID
glab ci view --pipeline-id=12345

# Open in browser
glab ci view --web

List Pipelines

glab ci list [options]

Options:

FlagDescription
-b, --branch=<branch>Filter by branch
--status=<status>Filter by status: running, pending, success, failed, canceled, skipped
--allList all pipelines (not just default page)
-P, --per-page=<n>Items per page

Examples:

# List recent pipelines
glab ci list

# List pipelines for branch
glab ci list --branch=main

# List failed pipelines
glab ci list --status=failed

# List all running pipelines
glab ci list --status=running --all

Run/Trigger Pipeline

glab ci run [options]

Options:

FlagDescription
-b, --branch=<ref>Branch or tag to run pipeline on
--variables=<vars>CI variables as key=value pairs (comma-separated)

Examples:

# Run pipeline for current branch
glab ci run

# Run pipeline for specific branch
glab ci run --branch=main

# Run with CI variables
glab ci run --variables="DEPLOY_ENV=staging,DEBUG=true"

# Run for a tag
glab ci run --branch=v1.2.3

Get Pipeline JSON

glab ci get [options]

Get JSON representation of a pipeline.

Options:

FlagDescription
-b, --branch=<branch>Get pipeline for specific branch
-p, --pipeline-id=<id>Get specific pipeline by ID

Examples:

# Get current branch pipeline
glab ci get

# Get specific pipeline
glab ci get --pipeline-id=12345

# Pipe to jq for processing
glab ci get | jq '.status'

Retry Job

glab ci retry <job-id>

Retry a failed CI job.

Examples:

# Retry specific job
glab ci retry 456789

Trace Job Logs

glab ci trace <job-id> [options]

View job logs in real-time.

Examples:

# Trace job output
glab ci trace 456789

Download Artifacts

glab ci artifact [options]

Download artifacts from the last pipeline.

Options:

FlagDescription
-b, --branch=<branch>Download from specific branch
-j, --job=<job-name>Download from specific job
-p, --path=<path>Download to specific path

Examples:

# Download all artifacts from last pipeline
glab ci artifact

# Download from specific job
glab ci artifact --job=build

# Download to specific directory
glab ci artifact --path=./artifacts/

Lint CI Configuration

glab ci lint [file]

Validate.gitlab-ci.yml file.

Examples:

# Lint default .gitlab-ci.yml
glab ci lint

# Lint specific file
glab ci lint path/to/.gitlab-ci.yml

Delete Pipeline

glab ci delete <pipeline-id>

Warning: This permanently deletes the pipeline and its jobs.

Common Workflows

Workflow 1: Check and Fix Failed Pipeline

# 1. Check current status
glab ci status

# 2. View failed pipeline interactively
glab ci view

# 3. Find failed job and view logs (in interactive view)
# Press arrow keys to select job, Enter to view logs

# 4. Retry the failed job
glab ci retry <job-id>

# 5. Watch the retry
glab ci status --live

Workflow 2: Trigger Deployment

# 1. Ensure tests pass
glab ci status --branch=main

# 2. Trigger deployment pipeline with variables
glab ci run --branch=main --variables="DEPLOY_ENV=production"

# 3. Monitor deployment
glab ci status --live

Workflow 3: Debug CI Configuration

# 1. Lint your CI config
glab ci lint

# 2. If valid, run a test pipeline
glab ci run

# 3. Watch the results
glab ci view

Workflow 4: Download Build Artifacts

# 1. Check pipeline succeeded
glab ci status --branch=release

# 2. Download artifacts from build job
glab ci artifact --branch=release --job=build --path=./dist/

Pipeline Status Reference

StatusMeaning
runningPipeline is currently executing
pendingPipeline is waiting to run
successAll jobs passed
failedOne or more jobs failed
canceledPipeline was manually canceled
skippedPipeline was skipped
manualWaiting for manual trigger
scheduledScheduled to run later

Troubleshooting

IssueCauseSolution
Authentication failedInvalid/expired tokenRun glab auth login
Pipeline not foundNo pipeline for branchCheck branch name or run glab ci run
Job stuck pendingNo runners availableCheck runner configuration
Lint failsInvalid YAML syntaxFix syntax errors in.gitlab-ci.yml
Cannot retryJob not in retryable stateWait for current run or cancel first

Related Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.86%
按下载量换算249

Claude

31.27%
按下载量换算223

Cursor

17.59%
按下载量换算126

Gemini CLI

9.99%
按下载量换算71

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills