gitlab-mcp-server: Skill for Claude Code

.github/skills/modularize-go-package/SKILL.md

modularize-go-package is a skill for Claude Code, Codex from jmrplens/gitlab-mcp-server. It costs 65 tokens per session (4,167 once invoked), scanned A, original, MIT.

A workflow for splitting one large Go package into smaller packages organised by area of responsibility. A package is a folder of related Go code that can be used by other code.

In plain words
What is it for?
Use it to move domain-specific files, update imports and type names, create registration functions, and break up packages containing many files.
Why use it?
It makes a large codebase easier to navigate and change while checking compilation and tests after each group of moves.

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/modularize-go-package/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 modularize-go-package

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/modularize-go-package/github.svg)](https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/modularize-go-package)
Your own site
<a href="https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/modularize-go-package"><img src="https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/modularize-go-package/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 modularize-go-package

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/modularize-go-package"><img src="https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/modularize-go-package.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,167 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.00065 $0.04167
Opus 5.5 $0.00026 $0.01667
Sonnet 5.5 $0.00013 $0.00833
Haiku 4.5 $0.00006 $0.00417

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

Security

Grade A, and why

modularize-go-package 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/modularize-go-package/SKILL.md · 348 lines

How it starts

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

Modularize Go Package

Primary Directive

Transform a monolithic Go package into a modular structure with domain-specific sub-packages and a shared utilities package. Every step must maintain compilation and test integrity.

Execution Model

This skill operates in atomic migration batches. Each batch moves one domain to its own sub-package. Between batches, the project must compile and all tests must pass. Never move to the next batch until the current one is verified.

Prerequisites

Before invoking this skill, ensure:

  1. Clean git working directory (git status shows no uncommitted changes)
  2. All tests pass: go test ./internal/... -count=1
  3. All code compiles: go build ./...
  4. You have identified the source package and its domain files

Input Parameters

  • ${sourcePackage} — The monolithic package to modularize (e.g., internal/tools)
  • ${utilPackage} — Name for the shared utilities package (e.g., internal/toolutil)
  • ${domains} — Comma-separated list of domains to extract (e.g., branches,commits,issues)

Process

Step 1: Inventory Analysis

Scan the source package and classify every file:

Category Files Action
Shared utilities errors.go, pagination.go, logging.go, markdown.go, text.go, meta_tool.go, string_or_int.go, file_utils.go, time_helpers.go Extract to ${utilPackage}
Shared constants Annotation variables, format constants Extract to ${utilPackage}
Domain handlers branches.go, commits.go, etc. Move to ${sourcePackage}/{domain}/
Domain tests branches_test.go, commits_test.go, etc. Move with their domain
Test helpers helpers_test.go Extract to internal/testutil (exported NewTestClient, RespondJSON, RespondJSONWithPagination)
Catalog wiring action_specs.go, catalog aggregation Keep runtime surfaces catalog-backed; do not add package-level meta registration as the final path
Package doc (doc comment in any file) Create ${sourcePackage}/doc.go

Read the full file on GitHub · 348 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 · +3 lines c99b40b40c22
  2. 2mo ago Changed 80b365b27ae0
  3. 2mo ago Changed b1363df67e8c
  4. 2mo ago Changed 3d47a590a398
  5. 2mo ago Changed 70556aeb35e6
  6. 3mo ago Changed · -1 lines 61d4caaea0f7
  7. 3mo ago Changed 26ab07087b28
  8. 3mo ago First seen · 346 lines · 65 tokens per session scan A 3b2e69ea525f

Subscribe to this mod's changes

modularize-go-package is a skill published in the GitHub repository jmrplens/gitlab-mcp-server (58 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 4,167 once invoked, about $0.0003 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

modularize-go-package compared with skills from other repositories

modularize-go-package next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modularize-go-packagejmrplens/gitlab-mcp-serverSkill58todayMITA65Claude 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