Development v1.0.0

gitlab-manager-gitlab-manager

Manage GitLab repositories, merge requests, and issues via API. Use for tasks like creating repos, reviewing code in...

Gitlab Manager 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

Manage GitLab repositories, merge requests, and issues via API. Use for tasks like creating repos, reviewing code in MRs, or tracking issues.

使用场景

This skill allows interaction with GitLab.com via the API.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/gitlab-manager-gitlab-manager
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 18 kB
SKILL.md text/markdown
---
name: gitlab-manager
description: Manage GitLab repositories, merge requests, and issues via API. Use for tasks like creating repos, reviewing code in MRs, or tracking issues.
---

# GitLab Manager

This skill allows interaction with GitLab.com via the API.

## Prerequisites

- **GITLAB_TOKEN**: A Personal Access Token with `api` scope must be set in the environment.

## Usage

Use the provided Node.js script to interact with GitLab.

### Script Location
`scripts/gitlab_api.js`

### Commands

#### 1. Create Repository
Create a new project in GitLab.
```bash
./scripts/gitlab_api.js create_repo "<name>" "<description>" "<visibility>"
# Visibility: private (default), public, internal
```

#### 2. List Merge Requests
List MRs for a specific project.
```bash
./scripts/gitlab_api.js list_mrs "<project_path>" "[state]"
# Project path: e.g., "jorgermp/my-repo" (will be URL encoded automatically)
# State: opened (default), closed, merged, all
```

#### 3. Comment on Merge Request
Add a comment (note) to a specific MR. Useful for code review.
```bash
./scripts/gitlab_api.js comment_mr "<project_path>" <mr_iid> "<comment_body>"
```

#### 4. Create Issue
Open a new issue.
```bash
./scripts/gitlab_api.js create_issue "<project_path>" "<title>" "<description>"
```

## Examples

**Create a private repo:**
```bash
GITLAB_TOKEN=... ./scripts/gitlab_api.js create_repo "new-tool" "A cool new tool" "private"
```

**Review an MR:**
```bash
# First list to find ID
GITLAB_TOKEN=... ./scripts/gitlab_api.js list_mrs "jorgermp/my-tool" "opened"
# Then comment
GITLAB_TOKEN=... ./scripts/gitlab_api.js comment_mr "jorgermp/my-tool" 1 "Great work, but check indentation."
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。