About mcp-gitlab-usage
A skill defining rules for using GitLab MCP tools in requirements, planning, issue execution, and delivery workflows. It emphasizes required planning steps, confirmation gates, project discovery, and stopping on hard errors.
Key features
- 01Required planning before GitLab requests
- 02Version checks for the GitLab skill
- 03Project discovery and confirmation gates
- 04Issue status synchronization rules
- 05Delivery reporting and error handling
Use cases
- 01Planning GitLab requirements and issues
- 02Creating issues after explicit confirmation
- 03Synchronizing issue status during execution
MCP support
Provides procedural guidance for invoking GitLab MCP tools, including required arguments, schema checks, and workflow gates.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ nextstage-brasil/ skills --skill mcp-gitlab-usageAfter installing, type/mcp-gitlab-usagein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
evals/evals.jsonreferences/flows.mdtool-catalog.mdDetails
From the project READMEMCP GitLab Usage
Binding rules for GitLab MCP tool invocation. Tool schemas and detailed flows live in references — read them before calling tools.
Harness discovery
See ../../ns-harness/references/harness-discovery.md. For GitLab product config (status labels, project ids), read {product_root}/docs/context/gitlab-sync-config.md when it exists.
FIRST ACTION (critical)
When the human asks for requirements, planning, or issues in GitLab:
- Your first action must be
start_execution_planningwith inferred arguments. Do not output planning text, RF suggestions, or issue descriptions before a tool response. - If MCP tools are unavailable: Say exactly that GitLab MCP is not available in this context. Do not output payloads that cannot be executed.
First access and version check
When connecting to a GitLab MCP server that exposes get_mcp_gitlab_skill:
- Call with
check_version: trueonly. - Compare server version to any local MCP skill copy if present.
- Call with
for_update: trueonly when missing or versions differ. - Do not pass
check_versionandfor_updatetogether.
Mandatory practices
- Always pass
arguments— never call tools with empty required fields. - Read tool schema before each unfamiliar call.
- Never shortcut planning — run the full MCP flow; do not return "payloads for you to apply."
- Project discovery:
git remote get-url origin→ send path to MCP → use numericproject_idafter human confirms full trio (id,name,path_with_namespace).
Confirmation gates (non-negotiable)
Cannot be inferred from context:
| Flag | Set true only after |
|---|---|
requirements_confirmed | Human says yes to validating requirements |
projects_confirmed | Human confirms all project trios (main, backend, frontend) |
issues_creation_confirmed | Human says yes to "Should I create the issues in GitLab?" |
A broad request ("do everything") is not confirmation.
Execution sync (status labels)
Three-step cycle per issue — never skip the middle step:
status_backlog → status_in_progress → status_done
Read label names from gitlab-sync-config.md or discover via list_project_labels. Full flow: references/flows.md.
SOURCE_BRANCH for issue execution: resolved by ns-execution-gitlab-issue Gate 1 — milestone/version discovery with mandatory develop fallback (../ns-execution-gitlab-issue/references/source-branch-resolution.md). Do not pick a base branch ad hoc when delegating to that skill.
Delivery report
- Confirm issue target (
project_id+issue_iidor URL). - Summarize diff vs agreed base branch.
add_issue_commentwithinternal: true.
SDD delivery units
When docs/versions/{version_san}/delivery-units.md exists and Gate 4 publish = yes: flow SDD delivery-unit publish in references/flows.md. One issue per unit — never per task-NNN, never one issue for whole version.
Related skills
- Board sync during implementation:
ns-gitlab-board-sync(do not duplicate status sync rules here). - Issue execution workflow:
ns-execution-gitlab-issue.
References
| File | When to read |
|---|---|
references/tool-catalog.md | Before any tool call — required args and examples |
references/flows.md | Planning, issue creation, execution sync, delivery report |
../ns-spec-driven/references/gates.md | SDD planning gates |
../../ns-harness/references/artifact-layout.md | requirements.md and version paths |
Error handling — STOP
On Plan limit exceeded or similar hard MCP errors: stop all GitLab operations, inform the human, wait for guidance. No workarounds.