mcpField
M
mcp-gitlab-usage

mcp-gitlab-usage

github.com/nextstage-brasilDevelopment0166 installsUpdated 1w ago
Repository

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

  1. 01Required planning before GitLab requests
  2. 02Version checks for the GitLab skill
  3. 03Project discovery and confirmation gates
  4. 04Issue status synchronization rules
  5. 05Delivery reporting and error handling

Use cases

  1. 01Planning GitLab requirements and issues
  2. 02Creating issues after explicit confirmation
  3. 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-usage

After installing, type/mcp-gitlab-usagein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

evals/
evals.json
references/
flows.md
tool-catalog.md

Details

From the project README

MCP 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:

  1. Your first action must be start_execution_planning with inferred arguments. Do not output planning text, RF suggestions, or issue descriptions before a tool response.
  2. 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:

  1. Call with check_version: true only.
  2. Compare server version to any local MCP skill copy if present.
  3. Call with for_update: true only when missing or versions differ.
  4. Do not pass check_version and for_update together.

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 numeric project_id after human confirms full trio (id, name, path_with_namespace).

Confirmation gates (non-negotiable)

Cannot be inferred from context:

FlagSet true only after
requirements_confirmedHuman says yes to validating requirements
projects_confirmedHuman confirms all project trios (main, backend, frontend)
issues_creation_confirmedHuman 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

  1. Confirm issue target (project_id + issue_iid or URL).
  2. Summarize diff vs agreed base branch.
  3. add_issue_comment with internal: 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

FileWhen to read
references/tool-catalog.mdBefore any tool call — required args and examples
references/flows.mdPlanning, issue creation, execution sync, delivery report
../ns-spec-driven/references/gates.mdSDD planning gates
../../ns-harness/references/artifact-layout.mdrequirements.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.

Comments

Markdown supported