Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/jmrplens/gitlab-mcp-server/go-source-documentationnpx skills add jmrplens/gitlab-mcp-server --skill go-source-documentationgit clone --depth 1 https://github.com/jmrplens/gitlab-mcp-serverWrote 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.
[](https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/go-source-documentation)<a href="https://agentmods.dev/skills/jmrplens/gitlab-mcp-server/go-source-documentation"><img src="https://agentmods.dev/badge/skills/jmrplens/gitlab-mcp-server/go-source-documentation.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00075 | $0.03271 |
| Opus 5 | $0.00037 | $0.01636 |
| Sonnet 5 | $0.00015 | $0.00654 |
| Haiku 4.5 | $0.00007 | $0.00327 |
Grade A, and why
go-source-documentation 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 352 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Source Documentation Skill
Activation
Activate this skill when the user:
- Asks to document Go source files or test files
- Asks to add doc comments to Go code
- Asks to improve or fix Go documentation
- Mentions
/document-goor/doc-go - Asks to add file headers to Go files
- Asks to document a Go package
Prerequisites
Before starting, gather context:
- Read the target file(s) completely to understand structure and purpose
- Read related files in the same package to understand the package API surface
- Check existing tests to understand what behavior the code implements
- Identify the package role within the project architecture
- Use Context7 to verify current Go doc comment conventions if uncertain
Documentation Patterns
Pattern 1: Package Comment
Every package needs exactly one Package comment, typically in the main file or a dedicated doc.go:
// Package tools implements MCP tool handlers for GitLab operations.
//
// Each tool follows a consistent pattern: a typed input struct with jsonschema
// tags defining the parameter schema, a handler function that calls the GitLab
// API, and a typed output struct for the response.
//
// Actions are exposed through [ActionSpecs], which feed catalog-backed meta,
// dynamic, gitlab://tools resources, and individual tool surfaces with
// appropriate annotations.
//
// # Supported Operations
//
// - Branches: create, list, protect, unprotect
// - Issues: create, list, get, update, search
// - Merge Requests: create, list, get, update, merge
// - Files: get content, create, update
// - Commits: list, get details
package tools
Pattern 2: File Header Comment
For multi-file packages, each file gets a header describing its scope. The header goes immediately before the package declaration:
// branches.go implements MCP tool handlers for GitLab branch operations.
//
// It provides the following tools:
// - gitlab_branch_create: Create a new branch from a ref
// - gitlab_branch_list: List branches with optional search
// - gitlab_branch_protect: Protect a branch with access levels
// - gitlab_branch_unprotect: Remove protection from a branch
package tools
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.
- 4d ago First seen · 352 lines · 75 tokens per session scan A 8a862508a663
go-source-documentation is a skill published in the GitHub repository jmrplens/gitlab-mcp-server (31 stars, last pushed 4d ago), licensed MIT. It adds 75 tokens to every session and 3,271 once invoked, about $0.0004 per session on Opus 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.
Other skills, from other repositories
release-notes
Draft concise release notes.
test-with-gt
Write Go test code using the gt library. Use when writing tests, creating test files, or when the user asks to add tests for Go code.
go-code-review
Use when reviewing Go code or checking code against community style standards. Also use proactively before submitting a Go PR or when reviewing any Go code changes, even if the user doesn't explicitly request a style review. Does not cover language-specific syntax — delegates to specialized skills.
go-concurrency
Use when writing concurrent Go code — goroutines, channels, mutexes, or thread-safety guarantees. Also use when parallelizing work, fixing data races, or protecting shared state, even if the user doesn't explicitly mention concurrency primitives. Does not cover context.Context patterns (see go-context).
go-defensive
Use when hardening Go code at API boundaries — copying slices/maps, verifying interface compliance, using defer for cleanup, time.Time/time.Duration, or avoiding mutable globals. Also use when reviewing for robustness concerns like missing cleanup or unsafe crypto usage, even if the user doesn't mention "defensive…
go-error-handling
Use when writing Go code that returns, wraps, or handles errors — choosing between sentinel errors, custom types, and fmt.Errorf (%w vs %v), structuring error flow, or deciding whether to log or return. Also use when propagating errors across package boundaries or using errors.Is/As, even if the user doesn't ask about…