Skip to content
Agentmart
Submit a tool

golang-documentation

Write, update, or review Go documentation: doc comments, package docs, runnable examples, READMEs, contribution guides, API references, and change notes.

Skill by reagin

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/reagin-golang-documentation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Write, update, or review Go documentation: doc comments, package docs, runnable examples, READMEs, contribution guides, API references, and change notes. Use when documentation is a deliverable or public behavior needs an audience-focused explanation.

Use cases: documents, backend, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/golang-documentation

What's inside

Skill name
golang-documentation
Description
Write, update, or review Go documentation: doc comments, package docs, runnable examples, READMEs, contribution guides, API references, and change notes. Use when documentation is a deliverable or public behavior needs an audience-focused explanation.
License
MIT
Instructions
80 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Go Documentation

Write documentation that helps its intended reader make a correct decision or complete a task. Match the repository's voice, terminology, and existing information architecture.

## Establish audience and truth

Before editing:

1. Inspect the documented code, go.mod, existing package comments, examples, README, contribution guidance, and release process.
2. Identify the primary audience: package consumer, CLI user, service operator, contributor, or maintainer.
3. Determine the source of truth for commands, configuration, defaults, compatibility, and generated API material.
4. Check whether the requested change affects a public API, behavior, migration path, or security assumption.

Do not add README, CONTRIBUTING, CHANGELOG, llms.txt, badges, or generated API pages simply because a template exists. Create only artifacts required by the task and repository conventions.

## Go package documentation

For exported packages and APIs:

- Describe the contract, purpose, important invariants, side effects, concurrency behavior, ownership, and error conditions that callers cannot infer safely from the signature.
- Keep comments close to the declaration and begin with the declared name when that improves Go documentation and lint compatibility.
- Document units, accepted ranges, zero-value behavior, nil behavior, cancellation, mutation, and resource ownership when relevant.
- State compatibility or deprecation guidance with an actionable replacement and timeline when one exists.
- Avoid repeating the function body line by line or promising implementation details that are not contractual.
- Use package comments to explain the package boundary and the smallest useful usage path.

Examples should be minimal, compilable, deterministic, and safe to copy. Use Go example tests when executable output or discoverability in go doc matters. Do not include live credentials, unstable network dependencies, or time-sensitive output.

## Project and application documentation

A useful project entry point normally answers only what the audience needs:

- what the project is and is not;
- how to install or build it using the repository's real commands;
- one verified first-use path;
- configuration precedence and required external services;
- compatibility and support expectations;
- where deeper operational, API, security, and contribution information lives.

For commands, copy help output only when it is generated or kept in sync. For services, document health, startup dependencies, migrations, graceful shutdown, and operator-visible failure modes where applicable.

Keep architecture documentation focused on decisions, boundaries, and consequences. Avoid directory-by-directory prose that becomes stale as soon as files move.

## API and change documentation

When behavior changes, update the documentation at the same abstraction level:

- public symbol change: doc comments and examples;
- CLI or configuration change: user guide and migration note;
- service contract change: authoritative API specification and compatibility note;
- operational change: deployment or runbook documentation;
- contributor workflow change: contribution guidance.

A changelog should describe user-visible impact, not restate commit messages. Preserve the project's release format and do not invent semantic-version promises.

## Verification

Use the repository's existing checks. Depending on the artifact, verify:

- gofmt and go test for Go examples;
- go doc rendering and package discovery;
- documented commands in a safe local mode;
- local Markdown links and headings;
- names, flags, defaults, environment variables, and output against source;
- generated documentation through its pinned generator rather than hand edits.

Verify examples in a safe local mode. Treat publishing, large site regeneration, and repository-configuration changes as separate deliverables.

## Review checklist

- Every statement is supported by current code or an authoritative source.
- The document serves a defined audience and task.
- Examples compile or are clearly marked as illustrative.
- Public contracts include the non-obvious failure and ownership semantics.
- Secrets, personal data, and internal-only endpoints are absent.
- Links are direct, local links resolve, and duplicated guidance has one source of truth.
- Removed or renamed behavior is not still advertised elsewhere.
- The final document is concise enough to stay maintainable.

From reagin/agent-skills, MIT.

More from reagin/agent-skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 25, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from reagin

Cite this page

golang-documentation skill. Agent Mart. https://agentmart.dev/skills/reagin-golang-documentation (last updated 2026-10-24)