Back to Skills

golang-documentation

Comprehensive documentation guide for Golang projects, covering godoc comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests, API docs, and llms.txt. Use when writing or reviewing doc comments, documentation, adding code examples, setting up doc sites, or discussing documentation best practices. Triggers for both libraries and applications/CLIs.

1,747stars112forksUpdated 5/20/2026

Security Assessment

Safe(100/100)
Security Score100/100

About golang-documentation

The `golang-documentation` skill provides a structured framework for creating, reviewing, and maintaining documentation for Go projects. It addresses the challenge of ensuring codebases are both human-readable and machine-interpretable, which is critical for developer productivity and collaboration. By consolidating best practices for doc comments, READMEs, CONTRIBUTING guidelines, CHANGELOGs, Go Playground examples, and API documentation, this skill helps teams produce consistent and high-quality documentation across libraries and applications/CLIs.

Key features include automated workflows for writing or reviewing documentation, a comprehensive checklist covering essential documentation artifacts, and guidance for project-specific documentation needs, whether for libraries or applications. The skill supports parallelization through sub-agents, enabling scalable documentation efforts for large codebases. Additional capabilities include integration with Go tools, adherence to godoc conventions, structured example tests, playground demos, and optional generation of `llms.txt` and documentation websites for complex projects.

This skill is ideal for Go developers, technical writers, and AI coding agents working on both open-source and private projects. It serves use cases such as filling missing documentation, auditing existing docs for completeness, preparing code examples for educational purposes, and setting up documentation sites. Its compatibility with AI coding assistants makes it particularly valuable for teams seeking to maintain high documentation standards without extensive manual review.

FAQ

Who can use the golang-documentation skill?

It is designed for Go developers, technical writers, and AI coding agents working on libraries or applications/CLIs, whether open-source or private projects.

Which project types does this skill support?

It supports both libraries (non-main packages) and applications/CLIs (projects with a main package and cmd/ directory), with tailored documentation guidance for each type.

What are the required documentation artifacts?

Every Go project should have doc comments on exported functions, package comments, README.md, LICENSE, installation instructions, and working code examples. CONTRIBUTING.md, CHANGELOG.md, Example tests, Go Playground demos, API docs, documentation websites, and llms.txt are recommended based on project type.

Are there any tool requirements?

Yes, the skill requires the Go toolchain (`go`) and can use allowed tools like Read, Edit, Write, Glob, Grep, Bash commands for go, golangci-lint, git, Agent, and WebFetch.

Can the skill handle large projects?

Yes, it supports parallelization using up to 5 sub-agents to verify and update documentation across multiple packages simultaneously.

All Files

10 files
references/application.md5.4 KB
View
assets/templates/CHANGELOG.md0.7 KB
View
evals/evals.json28.4 KB
View
SKILL.md11.4 KB
View
references/code-comments.md10.2 KB
View
assets/templates/README.md3.8 KB
View
assets/templates/llms.txt1.2 KB
View
assets/templates/CONTRIBUTING.md1.1 KB
View
references/project-docs.md3.8 KB
View
references/library.md6.7 KB
View

Install golang-documentation

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill