Gitlab automation

From aAAaqwq/AGI-Super-Team · View interactive version

Gitlab automation is an AI agent skill from the GitHub repository aAAaqwq/AGI-Super-Team. Automate GitLab project management, issues, merge requests, pipelines, branches, and user operations via Rube MCP (Composio). Always search tools first for current schemas.

How to use this skill

Skill file

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

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  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

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

Common Patterns

ID Resolution

GitLab uses two identifier formats for projects:

Pagination

GitLab uses offset-based pagination:

URL-Encoded Paths

When using project paths as identifiers:

Known Pitfalls

ID Formats

Rate Limits

Parameter Quirks

Plan Restrictions

Quick Reference

| Task | Tool Slug | Key Params |

|------|-----------|------------|

| List projects | GITLAB_GET_PROJECTS | search, membership, visibility |

| Get project details | GITLAB_GET_PROJECT | id |

| User's projects | GITLAB_LIST_USER_PROJECTS | id, search, owned |

| Create project | GITLAB_CREATE_PROJECT | name, path, visibility |

| List issues | GITLAB_LIST_PROJECT_ISSUES | id, state, labels, search |

| Create issue | GITLAB_CREATE_PROJECT_ISSUE | id, title, description, labels |

| Update issue | GITLAB_UPDATE_PROJECT_ISSUE | id, issue_iid, state_event |

| List merge requests | GITLAB_GET_PROJECT_MERGE_REQUESTS | id, state, scope, labels |

| List branches | GITLAB_GET_REPOSITORY_BRANCHES | project_id, search |

| Get branch | GITLAB_GET_REPOSITORY_BRANCH | project_id, branch_name |

| Create branch | GITLAB_CREATE_REPOSITORY_BRANCH | project_id, branch_name, ref |

| List commits | GITLAB_LIST_REPOSITORY_COMMITS | project ID, branch ref |

| Project languages | GITLAB_GET_PROJECT_LANGUAGES | project ID |

| List pipelines | GITLAB_LIST_PROJECT_PIPELINES | id, status, ref |

| Get pipeline | GITLAB_GET_SINGLE_PIPELINE | project_id, pipeline_id |

| List pipeline jobs | GITLAB_LIST_PIPELINE_JOBS | id, pipeline_id, scope |

| Search users | GITLAB_GET_USERS | search, username, active |

| Get user | GITLAB_GET_USER | user ID |

| User status | GITLAB_GET_USERS_ID_STATUS | user ID |

| List project members | GITLAB_LIST_ALL_PROJECT_MEMBERS | id, query, state |

| List project users | GITLAB_LIST_PROJECT_USERS | id, search |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.