gitlab
管理 GitLab 合併請求和問題
GitLab 專案需要單獨的 CLI 命令來處理合併請求、議題和管道線。此技能可快速存取所有 GitLab 操作的 glab 命令。直接從 Claude 自動化您的 GitLab 工作流程。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“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
安全审计
安全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.
风险因素
⚙️ 外部命令 (35)
🌐 网络访问 (1)
质量评分
你能构建什么
監控 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