技能 gitlab
🦊

gitlab

安全 ⚙️ 外部命令🌐 网络访问

管理 GitLab 合併請求和問題

GitLab 專案需要單獨的 CLI 命令來處理合併請求、議題和管道線。此技能可快速存取所有 GitLab 操作的 glab 命令。直接從 Claude 自動化您的 GitLab 工作流程。

支持: Claude Codex Code(CC)
📊 69 充足
1

下载技能 ZIP

2

在 Claude 中上传

前往 设置 → 功能 → 技能 → 上传技能

3

开启并开始使用

测试它

正在使用“gitlab”。 Show me all open merge requests

预期结果:

  • !8 Feature: Add user authentication - Created by @alice, Assignee: @bob
  • !7 Fix: Memory leak in worker - Created by @charlie, Assignee: @me
  • !6 Update documentation - Created by @me, Assignee: unassigned
  • Use 'glab mr view <id> --comments' to see full discussion

正在使用“gitlab”。 Check pipeline status

预期结果:

  • Pipeline #1234 - running (2/3 jobs passing)
  • Job 1: build - SUCCESS
  • Job 2: test - RUNNING
  • Job 3: deploy - PENDING
  • Use 'glab ci trace' to view detailed logs

正在使用“gitlab”。 Create a new issue

预期结果:

  • Created issue #42: Payment module timeout bug
  • Assigned to: @developer
  • Labels: bug, high-priority
  • Use 'glab issue view 42' to add more details

安全审计

安全
v5 • 1/17/2026

Pure documentation skill containing only prompt guidelines and glab command references. Static findings are false positives: SHA-256 hashes flagged as weak crypto (SHA-256 is secure), 'sudo' in package installation docs flagged as privilege escalation (legitimate apt install command), content hashes flagged as C2 keywords (standard Git metadata), backtick notation flagged as shell execution (standard markdown documentation), and git remote detection flagged as reconnaissance (legitimate GitLab detection). No executable code or security risks present.

2
已扫描文件
248
分析行数
2
发现项
5
审计总数
审计者: claude 查看审计历史 →

质量评分

38
架构
100
可维护性
85
内容
20
社区
100
安全
91
规范符合性

你能构建什么

監控 CI/CD 管道線

檢查管道線狀態、檢視日誌,以及在終端機中重試失敗的建置

審查合併請求

具有完整評論上下文地列出、檢視、檢出和核准合併請求

追蹤 GitLab 議題

建立議題、追蹤指派,以及從指令列管理議題討論

试试这些提示

列出開啟的合併請求
Show me all open merge requests for this repository
建立合併請求
Create a merge request with title 'Feature: Add user authentication' and description 'This PR adds OAuth login functionality'
檢查管道線狀態
What is the current CI/CD pipeline status? Show me the latest build logs
管理議題
Create a new issue for the bug we found in the payment module, then list all issues assigned to me

最佳实践

  • Always verify glab authentication with 'glab auth status' before operations
  • Use '--comments' flag when viewing MRs or issues for complete context
  • Check 'glab ci status' before running new pipelines to avoid duplicate builds

避免

  • Running glab commands without first confirming authentication
  • Creating merge requests without checking for uncommitted local changes
  • Using pipeline commands on non-GitLab repositories

常见问题

如何安裝 glab CLI?
Install via Homebrew (brew install glab), apt (sudo apt install glab), or download from GitHub releases.
這適用於自我託管的 GitLab 嗎?
Yes. Configure your GitLab instance with 'glab config set gitlab.com your-gitlab-url'.
glab 需要什麼權限?
glab requires a GitLab API token with appropriate scopes like read_api or api depending on operations.
我的資料會傳送給第三方嗎?
glab communicates directly with your configured GitLab instance only. No external services involved.
為什麼命令無法運作?
Common issues: not authenticated (run glab auth status), wrong directory, or glab not installed.
這與 git CLI 有何不同?
git handles version control locally. glab provides GitLab-specific MRs, issues, and pipelines.

开发者详情

文件结构

📄 SKILL.md