go-api-documentation

Generate godoc-compatible comments for Go packages, types, functions, methods, and constants.

3|2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/sentenz/skills --skill go-api-documentation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-api-documentation
Source: https://github.com/sentenz/skills/tree/main/skills/go-api-documentation
Command: npx skills add https://github.com/sentenz/skills --skill go-api-documentation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the creation of godoc-compatible API comments for Go packages, types, functions, methods, and constants, improving discoverability and maintainability across projects.

Core Features & Use Cases

  • Generates package, type, function, method, and constant documentation following Go conventions.
  • Provides templates and examples to standardize comment style and structure.
  • Helps teams review and update API docs consistently during code reviews and refactors.

Quick Start

Provide the Go package you want documented and let the skill generate godoc-compatible comments.

Frequently Asked Questions about go-api-documentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate godoc-compatible comments for Go packages?

You generate godoc comments by applying this skill to your Go codebase, which automatically produces standardized comments for packages, types, functions, methods, and constants placed directly before declarations.

What is the standard format for Go API documentation?

The standard format for Go API documentation requires comments to be placed immediately before declarations without intervening blank lines. This skill adheres to these conventions, supporting standardized comment styles and structures using templates and examples.

Can I use templates to standardize Go documentation across multiple libraries?

Yes, you can standardize Go documentation across libraries using this skill, which provides templates and examples to ensure consistent comment style and structure across all packages, types, and functions during code reviews and refactors.

Does this tool work with existing Go codebases during refactoring?

Yes, this tool works with existing Go codebases during refactoring. It helps teams review and update API documentation consistently across libraries and services by applying godoc conventions to existing packages, types, functions, methods, and constants.

What's the best way to automate API documentation generation for Go services?

The best way to automate API documentation generation for Go services is using a skill that auto-generates godoc-compatible comments for all declarations. This approach improves discoverability and maintainability across projects by applying standardized templates and examples.

When do I need to regenerate godoc comments for Go functions and methods?

You need to regenerate godoc comments for Go functions and methods during creation, review, or update of API documentation. This skill automates the process across libraries and services, ensuring comments remain synchronized with code changes and refactors.