Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计通过

gitlab-labelGitLab label 开发

Agent Skill

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

总安装

2,072

周安装

83

GitHub Stars

1

下载量

671
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

用于围绕 GitLab 项目、合并请求、Issue、分支和流水线提供辅助能力。

  • 适合查询项目状态、整理提交差异、检查合并请求或汇总 CI 结果。
  • 通过命令行安装并配置访问 token 后,支持对标签等资源的读写操作。
  • 涉及合并、推送或改工单时,应先预览影响并核对团队流程。
  • gitlab-label 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Label Skill

Label management operations for GitLab using the glab CLI.

Quick Reference

OperationCommandRisk
List labelsglab label list-
Create labelglab label create <name>⚠️

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

When to Use This Skill

ALWAYS use when:

  • User wants to manage project labels
  • User mentions "label", "tag" (for categorization), "category"
  • User wants to organize issues or MRs

NEVER use when:

  • User wants to apply labels to issues/MRs (use gitlab-issue or gitlab-mr)
  • User wants to manage git tags (use git commands or gitlab-release)

Available Commands

List Labels

glab label list [options]

Options:

FlagDescription
-P, --per-page=<n>Results per page
--allGet all labels

Examples:

# List all project labels
glab label list

# List with more results
glab label list --per-page=100

Create Label

glab label create <name> [options]

Options:

FlagDescription
-c, --color=<color>Label color (hex format, e.g., #ff0000)
-d, --description=<desc>Label description

Examples:

# Create label with default color
glab label create "needs-review"

# Create label with color
glab label create "bug" -c "#ff0000"

# Create label with color and description
glab label create "priority::high" \
  -c "#dc3545" \
  -d "High priority items requiring immediate attention"

# Create scoped label
glab label create "status::in-progress" \
  -c "#ffc107" \
  -d "Work in progress"

Common Label Patterns

Priority Labels

glab label create "priority::critical" -c "#dc3545" -d "Must fix immediately"
glab label create "priority::high" -c "#fd7e14" -d "Fix in current sprint"
glab label create "priority::medium" -c "#ffc107" -d "Fix soon"
glab label create "priority::low" -c "#28a745" -d "Nice to have"

Type Labels

glab label create "type::bug" -c "#d73a4a" -d "Something isn't working"
glab label create "type::feature" -c "#0366d6" -d "New feature request"
glab label create "type::docs" -c "#0075ca" -d "Documentation"
glab label create "type::refactor" -c "#6f42c1" -d "Code refactoring"

Status Labels

glab label create "status::backlog" -c "#6c757d" -d "In backlog"
glab label create "status::ready" -c "#17a2b8" -d "Ready to start"
glab label create "status::in-progress" -c "#ffc107" -d "Work in progress"
glab label create "status::review" -c "#007bff" -d "In review"
glab label create "status::done" -c "#28a745" -d "Completed"

Workflow Labels

glab label create "needs-review" -c "#d876e3" -d "Needs code review"
glab label create "needs-design" -c "#fbca04" -d "Needs design input"
glab label create "blocked" -c "#b60205" -d "Blocked by external dependency"
glab label create "help-wanted" -c "#008672" -d "Looking for contributors"

GitLab Scoped Labels

GitLab supports scoped labels using the :: separator:

priority::high
status::in-progress
type::bug

Only one label per scope can be applied to an issue/MR, making them mutually exclusive.

Common Workflows

Workflow 1: Set Up New Project Labels

# Create priority labels
glab label create "priority::critical" -c "#dc3545"
glab label create "priority::high" -c "#fd7e14"
glab label create "priority::medium" -c "#ffc107"
glab label create "priority::low" -c "#28a745"

# Create type labels
glab label create "type::bug" -c "#d73a4a"
glab label create "type::feature" -c "#0366d6"
glab label create "type::docs" -c "#0075ca"

Workflow 2: Apply Labels to Issues

# List available labels
glab label list

# Create issue with labels
glab issue create -t "Fix login bug" -l "type::bug,priority::high"

# Update issue labels
glab issue update 42 -l "status::in-progress"

Color Reference

Common colors for labels:

ColorHexUse For
Red#dc3545Bugs, critical, blocked
Orange#fd7e14High priority, warning
Yellow#ffc107Medium priority, in-progress
Green#28a745Done, low priority, good first issue
Blue#007bffFeatures, info, review
Purple#6f42c1Refactor, enhancement
Gray#6c757dBacklog, wontfix

Troubleshooting

IssueCauseSolution
Authentication failedInvalid/expired tokenRun glab auth login
Label already existsDuplicate nameUse different name or update existing
Invalid colorWrong formatUse hex format: #RRGGBB
Permission deniedNot maintainerNeed maintainer+ role

Related Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.08%
按下载量换算222

Claude

32.7%
按下载量换算219

Cursor

19.85%
按下载量换算133

Gemini CLI

8.97%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills