gitlab-mcp-server: Skill for Claude Code

.github/skills/go-safe-move-refactor/SKILL.md

go-safe-move-refactor is a skill for Claude Code, Codex from jmrplens/gitlab-mcp-server. It costs 50 tokens per session (3,465 once invoked), scanned A, original, MIT.

A guided method for moving Go source files between packages while keeping the project compiling. It uses temporary forwarding code so existing callers continue to work during the move.

In plain words
What is it for?
Use it to split or reorganize Go packages, move functions and types, update imports and names, migrate tests, and add or remove forwarding stubs.
Why use it?
Package changes can break imports, names, tests, or builds. This method checks compilation after each small change and postpones removing compatibility code until the move is complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is jmrplens/gitlab-mcp-server's own configuration. It tells Claude Code and Codex how to work on gitlab-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gitlab-mcp-server configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go test ./internal/... -count=1.

Reuse

Borrowing it

Nothing to install: this file belongs to jmrplens/gitlab-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jmrplens/gitlab-mcp-server/main/.github/skills/go-safe-move-refactor/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/jmrplens/gitlab-mcp-server

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-safe-move-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor/github.svg)](https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor)
Your own site
<a href="https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor"><img src="https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-safe-move-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor"><img src="https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/go-safe-move-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,465 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.03465
Opus 5.5 $0.00020 $0.01386
Sonnet 5.5 $0.00010 $0.00693
Haiku 4.5 $0.00005 $0.00347

Measured 1mo ago against content hash dea879c5661a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-safe-move-refactor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/go-safe-move-refactor/SKILL.md · 371 lines

How it starts

The opening of the file, as written. The whole thing — 371 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Safe Move Refactor

Primary Directive

Move one or more Go source files from one package to another while maintaining compilation at every intermediate step. This skill implements the "bridge pattern" — keep old code working via forwarding stubs while new code is established, then remove bridges after verification.

When to Use

  • Moving a .go file from one package to another
  • Extracting a set of functions/types into a new package
  • Consolidating multiple files into a single sub-package
  • Splitting a large package into smaller ones

Core Principle: Never Break Compilation

Every change must be an atomic step that leaves go build ./... passing. The sequence is:

1. Create destination → 2. Copy & transform → 3. Add forwarding stubs → 4. Verify → 5. Update consumers → 6. Remove stubs → 7. Verify

Process

Step 1: Pre-Flight Check

go build ./...    # Must pass
golangci-lint run --build-tags e2e ./... # Must pass
go test ./...     # Record baseline (should pass)

Record:

  • Source file path: ${srcFile} (e.g., internal/tools/branches.go)
  • Source package: ${srcPkg} (e.g., tools)
  • Destination directory: ${dstDir} (e.g., internal/tools/branches/)
  • Destination package: ${dstPkg} (e.g., branches)

Discovery check (before any move): The client-go API defines the canonical domain structure. Verify you have the complete picture:

  1. Inspect client-go types: Run go doc gitlab.com/gitlab-org/api/client-go/v3.{Type} for the domain's key types to understand the canonical fields and API contract
  2. List all non-test handler files in the source package to find everything that exists
  3. Check action_specs.go and catalog aggregation for the domain's canonical runtime exposure
  4. Look for related files (e.g., a domain might span {domain}.go + {domain}_extra.go)
  5. If the domain's catalog group has a generated tool reference page (site/src/content/docs/reference/tools/<group>.mdx, written by make gen-tool-reference; <group> is the group's tool name without gitlab_ and with hyphens, so gitlab_merge_request is merge-request.mdx), read it for supplementary user-facing context, but do NOT skip the move if there is none. A move never edits that page: it changes only if the move changes what the catalog serves (a tool name, an action ID, a description, a tier or a schema), and then make gen-tool-reference rewrites it

Read the full file on GitHub · 371 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +8 lines dea879c5661a
  2. 2mo ago Changed f05fcfcc3fb3
  3. 2mo ago Changed 400abb0adb50
  4. 3mo ago Changed · -2 lines 5ccb17c7ca3f
  5. 3mo ago First seen · 365 lines · 50 tokens per session scan A 26c1d5973b10

Subscribe to this mod's changes

go-safe-move-refactor is a skill published in the GitHub repository jmrplens/gitlab-mcp-server (58 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 3,465 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

go-safe-move-refactor compared with skills from other repositories

go-safe-move-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-safe-move-refactorjmrplens/gitlab-mcp-serverSkill58todayMITA50Claude Code, Codex
goaizendev-sh/goaiSkill2508d agoMITA0Claude Code, Codex
golang-benchmarkseaworld008/Commonly-used-high-value-skillsSkill756d agoMITA20Claude Code, Codex
golang-observabilityseaworld008/Commonly-used-high-value-skillsSkill756d agoMITA31Claude Code, Codex
go-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0A65Claude Code
code-review-gosoulcodex/agenticSkill102d agoMITA61Claude Code, Codex
go-code-reviewcxuu/golang-skillsSkill1995mo agoApache-2.0A56Claude Code