gitlab-automation – skill Agent & Tự động hóa cho agent AI
Tự động hóa quản lý dự án GitLab, issues, merge requests, pipelines, branches và thao tác người dùng qua Rube MCP (Composio). Luôn tìm công cụ trước để lấy schema hiện tại.
Cài skill gitlab-automation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/gitlab-automation-435f5.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /gitlab-automation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/gitlab-automation-435f5.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $gitlab-automation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/gitlab-automation-435f5.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /gitlab-automation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/gitlab-automation-435f5.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /gitlab-automation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
GitLab Automation via Rube MCP
Automate GitLab operations including project management, issue tracking, merge request workflows, CI/CD pipeline monitoring, branch management, and user administration through Composio's GitLab toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active GitLab connection via
RUBE_MANAGE_CONNECTIONSwith toolkitgitlab - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. The endpoint alone does not authorize GitLab access. Authenticate the MCP client and connect the intended GitLab account through the returned supported authorization flow.
1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
2. Call RUBE_MANAGE_CONNECTIONS with toolkit gitlab
3. If connection is not ACTIVE, follow the returned auth link to complete GitLab OAuth
4. Confirm connection status shows ACTIVE before running any workflows
Confirm the GitLab instance, account and project before acting. Listing does not authorize issue/project/branch creation, user changes or merge actions; use the user-approved target and operation. Preserve protections, preview destructive changes, and reconcile an uncertain write outcome before retrying. Never send tokens or private repository contents to unrelated services.
Core Workflows
1. Manage Issues
When to use: User wants to create, update, list, or search issues in a GitLab project
Tool sequence:
1. GITLAB_GET_PROJECTS - Find the target project and get its ID [Prerequisite]
2. GITLAB_LIST_PROJECT_ISSUES - List and filter issues for a project [Required]
3. GITLAB_CREATE_PROJECT_ISSUE - Create a new issue [Required for create]
4. GITLAB_UPDATE_PROJECT_ISSUE - Update an existing issue (title, labels, state, assignees) [Required for update]
5. GITLAB_LIST_PROJECT_USERS - Find user IDs for assignment [Optional]
Key parameters:
id: Project ID (integer) or URL-encoded path (e.g.,"my-group/my-project")title: Issue title (required for creation)description: Issue body text (max 1,048,576 characters)labels: Comma-separated label names (e.g.,"bug,critical")add_labels/remove_labels: Add or remove labels without replacing allstate: Filter by"all","opened", or"closed"state_event:"close"or"reopen"to change issue stateassignee_ids: Array of user IDs; use[0]to unassign allissue_iid: Internal issue ID within the project (required for updates)milestone: Filter by milestone titlesearch: Search in title and descriptionscope:"created_by_me","assigned_to_me", or"all"page/per_page: Pagination (default per_page: 20)
Pitfalls:
idaccepts either integer project ID or URL-encoded path; wrong IDs yield 4xx errorsissue_iidis the project-internal ID (shown as #42), different from the global issue ID- Labels in
labelsfield replace ALL existing labels; useadd_labels/remove_labelsfor incremental changes - Setting
assignee_idsto empty array does NOT unassign; use[0]instead updated_atfield requires administrator or project/group owner rights
2. Manage Merge Requests
When to use: User wants to list, filter, or review merge requests in a project
Tool sequence:
1. GITLAB_GET_PROJECT - Get project details and verify access [Prerequisite]
2. GITLAB_GET_PROJECT_MERGE_REQUESTS - List and filter merge requests [Required]
3. GITLAB_GET_REPOSITORY_BRANCHES - Verify source/target branches [Optional]
4. GITLAB_LIST_ALL_PROJECT_MEMBERS - Find reviewers/assignees [Optional]
Key parameters:
id: Project ID or URL-encoded pathstate:"opened","closed","locked","merged", or"all"scope:"created_by_me"(default),"assigned_to_me", or"all"source_branch/target_branch: Filter by branch namesauthor_id/author_username: Filter by MR authorassignee_id: Filter by assignee (useNonefor unassigned,Anyfor assigned)reviewer_id/reviewer_username: Filter by reviewerlabels: Comma-separated label filtersearch: Search in title and descriptionwip:"yes"for draft MRs,"no"for non-draftorder_by:"created_at"(default),"title","merged_at","updated_at"view:"simple"for minimal fieldsiids[]: Filter by specific MR internal IDs
Pitfalls:
- Default
scopeis"created_by_me"which limits results; use"all"for complete listings author_idandauthor_usernameare mutually exclusivereviewer_idandreviewer_usernameare mutually exclusiveapprovedfilter requires themr_approved_filterfeature flag (disabled by default)- Large MR histories can be noisy; use filters and moderate
per_pagevalues
3. Manage Projects and Repositories
When to use: User wants to list projects, create new projects, or manage branches
Tool sequence:
1. GITLAB_GET_PROJECTS - List all accessible projects with filters [Required]
2. GITLAB_GET_PROJECT - Get detailed info for a specific project [Optional]
3. GITLAB_LIST_USER_PROJECTS - List projects owned by a specific user [Optional]
4. GITLAB_CREATE_PROJECT - Create a new project [Required for create]
5. GITLAB_GET_REPOSITORY_BRANCHES - List branches in a project [Required for branch ops]
6. GITLAB_CREATE_REPOSITORY_BRANCH - Create a new branch [Optional]
7. GITLAB_GET_REPOSITORY_BRANCH - Get details of a specific branch [Optional]
8. GITLAB_LIST_REPOSITORY_COMMITS - View commit history [Optional]
9. GITLAB_GET_PROJECT_LANGUAGES - Get language breakdown [Optional]
Key parameters:
name/path: Project name and URL-friendly path (both required for creation)visibility:"private","internal", or"public"namespace_id: Group or user ID for project placementsearch: Case-insensitive substring search for projectsmembership:trueto limit to projects user is a member ofowned:trueto limit to user-owned projectsproject_id: Project ID for branch operationsbranch_name: Name for new branchref: Source branch or commit SHA for new branch creationorder_by:"id","name","path","created_at","updated_at","star_count","last_activity_at"
Pitfalls:
GITLAB_GET_PROJECTSpagination is required for complete coverage; stopping at first page misses projects- Some responses place items under
data.details; parse the actual returned list structure - Most follow-up calls depend on correct
project_id; verify withGITLAB_GET_PROJECTfirst - Invalid
branch_name/ref/shacauses client errors; verify branch existence viaGITLAB_GET_REPOSITORY_BRANCHESfirst - Both
nameandpathare required forGITLAB_CREATE_PROJECT
4. Monitor CI/CD Pipelines
When to use: User wants to check pipeline status, list jobs, or monitor CI/CD runs
Tool sequence:
1. GITLAB_GET_PROJECT - Verify project access [Prerequisite]
2. GITLAB_LIST_PROJECT_PIPELINES - List pipelines with filters [Required]
3. GITLAB_GET_SINGLE_PIPELINE - Get detailed info for a specific pipeline [Optional]
4. GITLAB_LIST_PIPELINE_JOBS - List jobs within a pipeline [Optional]
Key parameters:
id: Project ID or URL-encoded pathstatus: Filter by"created","waiting_for_resource","preparing","pending","running","success","failed","canceled","skipped","manual","scheduled"scope:"running","pending","finished","branches","tags"ref: Branch or tag namesha: Specific commit SHAsource: Pipeline source (use"parent_pipeline"for child pipelines)order_by:"id"(default),"status","ref","updated_at","user_id"created_after/created_before: ISO 8601 date filterspipeline_id: Specific pipeline ID for job listinginclude_retried:trueto include retried jobs (defaultfalse)
Pitfalls:
- Large pipeline histories can be noisy; use
status,ref, and date filters to narrow results - Use moderate
per_pagevalues to keep output manageable - Pipeline job
scopeaccepts single status string or array of statuses yaml_errors: truereturns only pipelines with invalid configurations
5. Manage Users and Members
When to use: User wants to find users, list project members, or check user status
Tool sequence:
1. GITLAB_GET_USERS - Search and list GitLab users [Required]
2. GITLAB_GET_USER - Get details for a specific user by ID [Optional]
3. GITLAB_GET_USERS_ID_STATUS - Get user status message and availability [Optional]
4. GITLAB_LIST_ALL_PROJECT_MEMBERS - List all project members (direct + inherited) [Required for member listing]
5. GITLAB_LIST_PROJECT_USERS - List project users with search filter [Optional]
Key parameters:
search: Search by name, username, or public emailusername: Get specific user by usern
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- gitops-workflow – Hướng dẫn đầy đủ triển khai quy trình GitOps với ArgoCD và Flux để tự động triển khai…
- global-chat-agent-discovery – Khám phá và so sánh MCP server và AI agent bằng thư mục đa giao thức và MCP server của…
- gmail-automation – Tích hợp Gmail nhẹ với xác thực OAuth độc lập. Không cần MCP server.
- go-playwright – Năng lực chuyên gia để tự động hóa trình duyệt mạnh mẽ, kín đáo và hiệu quả bằng…
- go-rod-master – Hướng dẫn toàn diện về tự động hóa trình duyệt và thu thập dữ liệu web với go-rod…
- goal-loop – Soạn thảo và giải thích các prompt goal-loop bền bỉ cho công việc agent chạy dài, với…
- google-calendar-automation – Lập kế hoạch và thực hiện các quy trình Google Calendar đã được ủy quyền qua tích hợp đã…
- google-docs-automation – Đọc và chỉnh sửa Google Docs qua connector đã xác thực hoặc tích hợp API đã được rà…