godoc-authoring

godoc-authoring is a skill for Claude Code, Codex from Netcracker/qubership-ai-packages. It costs 204 tokens per session (14,988 once invoked), scanned A, original, Apache-2.0.

A writing guide for Go documentation comments and inline comments, including how Go names, references, tags, and formatting should be handled.

In plain words
What is it for?
Use it to write, edit, review, compare, or decide whether to add comments to Go declarations and implementation code.
Why use it?
It prevents developers from applying documentation habits from other languages where Go uses different conventions.

Skill for Claude CodeCodex

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

Good fit Use it to write, edit, review, compare, or decide whether to add comments to Go declarations and implementation code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/netcracker/qubership-ai-packages/godoc-authoring
Install

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.

Any agent
npx skills add Netcracker/qubership-ai-packages --skill godoc-authoring
Clone the repo
git clone --depth 1 https://github.com/Netcracker/qubership-ai-packages

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin godoc-authoring — /plugin install godoc-authoring after adding the marketplace above.

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 godoc-authoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/netcracker/qubership-ai-packages/godoc-authoring/github.svg)](https://agentmods.dev/skills/netcracker/qubership-ai-packages/godoc-authoring)
Your own site
<a href="https://agentmods.dev/skills/netcracker/qubership-ai-packages/godoc-authoring"><img src="https://agentmods.dev/badge/skills/netcracker/qubership-ai-packages/godoc-authoring/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 godoc-authoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/netcracker/qubership-ai-packages/godoc-authoring"><img src="https://agentmods.dev/badge/skills/netcracker/qubership-ai-packages/godoc-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 204 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 14,988 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.
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.00204 $0.14988
Opus 5.5 $0.00082 $0.05995
Sonnet 5.5 $0.00041 $0.02998
Haiku 4.5 $0.00020 $0.01499

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

Security

Grade A, and why

godoc-authoring 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 24d 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.

agent-packages/godoc-authoring/.apm/skills/godoc-authoring/SKILL.md · 1,005 lines

How it starts

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

Authoring a Go doc comment

This skill governs what a comment says and in what order. Wording, tone, sentence length, and dialect belong to english-developer-style: load it too, and defer to it on the prose. The two compose: this skill picks the slots; that one writes the sentences.

It is the Go sibling of javadoc-authoring and keeps its section numbering, so a review that cites "§7b" means the same rubric in either language. Read this one for Go; do not translate the Java one in your head. The slot model transfers unchanged, but §3, §5, and §6 do not: Go puts the identifier's name in the first sentence, replaces {@link} with an unchecked bracket syntax, and has no tags at all.

gofmt owns the layout of a doc comment (indentation of code blocks, list markers, blank-line normalization) and rewrites it on every save. Never hand-align a doc comment; write the content and let the formatter place it.

1. The correction that matters most

"Document the why, not the what" is half wrong for a doc comment, and the wrong half does the damage.

An inline // comment inside a function documents the why; it sits next to code the reader can already see. A doc comment on a declaration documents the contract: what a caller may rely on, what an implementer must guarantee, what holds before and after. That is a what at the level of a promise, not a restatement of the code.

The failure mode is therefore not "explains what the code does". It is either of these:

  • Narrating the implementation. Loops over the entries and adds each to the map. The body already states it, and the comment becomes false on the next refactor.
  • Justifying the code's existence. This helper centralizes the boilerplate every endpoint shared. That belongs in the commit message and the pull request description. A doc comment's reader has to use or fix the thing, not decide whether to merge it.

The test is the refactor, not the reader. Rewrite the body so it behaves identically and reads differently: a loop becomes a call into slices, a helper is inlined, a field is renamed. Every sentence you would then have to edit was implementation, whatever it sounded like. This is the operative rule, because it settles cases that "specification, not details" argues about forever, and it does not soften with visibility: an unexported function's comment goes stale on that refactor exactly as an exported one's does, and the cost of a comment that lies is the same either way.

Read the full file on GitHub · 1,005 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. 24d ago Changed · +25 lines c0c0bb3a60fb
  2. 1mo ago Changed · +36 lines d21917d0fd74
  3. 2mo ago Changed · -21 lines f973cb9ba668
  4. 3mo ago Changed · +290 lines · -3 tokens per session 5f871bc55437
  5. 3mo ago First seen · 675 lines · 207 tokens per session scan A 5fb5556096d6

Subscribe to this mod's changes

godoc-authoring is a skill published in the GitHub repository Netcracker/qubership-ai-packages (9 stars, last pushed yesterday), licensed Apache-2.0. It adds 204 tokens to every session and 14,988 once invoked, about $0.0008 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-31.

Related

godoc-authoring compared with skills from other repositories

godoc-authoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
godoc-authoringNetcracker/qubership-ai-packagesSkill9yesterdayApache-2.0A204Claude Code, Codex
golang-testingaffaan-m/ECCSkill316k2d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill316k2d agoMITA45Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill4.1k3d agoMITA115Claude Code
golang-samber-oopssamber/cc-skills-golangSkill4.1k3d agoMITA74Claude Code
golang-uber-fxsamber/cc-skills-golangSkill4.1k3d agoMITA122Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0ktodayApache-2.0A51Claude Code, Codex