跳到正文
TakoAPI
返回技能列表

glab-cli

由 portavion 提供

Git & GitHub
2.5k下载量由 clawskills.sh 提供
8星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Interact with GitLab using the `glab` CLI.

描述

该技能的功能

Wraps the `glab` CLI to interact with GitLab repositories, merge requests, CI/CD pipelines, issues, and releases. Works with gitlab.com and self-hosted instances. Supports direct API access via REST and GraphQL for operations beyond the built-in subcommands.

Combines merge request management, CI/CD inspection, and raw API access in one tool, removing the need to switch between the terminal and the GitLab web UI.

何时使用

  • Reviewing and merging open MRs from the terminal
  • Checking pipeline status after pushing a branch
  • Tracing failed CI job logs in real time
  • Creating issues with labels without opening a browser
  • Querying GitLab API endpoints with custom field filters

示例工作流

输入

User asks: Why is my pipeline failing on the lint job?

智能体
  1. 1

    Run glab ci status to confirm the pipeline is failing

  2. 2

    Run glab ci view to inspect individual job statuses

  3. 3

    Run glab ci trace lint to stream the lint job logs

  4. 4

    Identify the error in the log output

  5. 5

    Run glab ci retry after the fix is pushed

输出

Returns the lint error causing the failure and confirms the pipeline is retried

前置要求

  • glab CLI installed
  • GitLab account (gitlab.com or self-hosted instance)

安装

clawhub install portavion/glab-cli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接