agentsclimarketplace

Lang go

Skill xiaolai/docs-guardian-for-claude/skills/docs-guardian/languages/lang-go

Use when writing, auditing, or generating documentation for Go projects — covers docstring conventions, API doc extraction, and Go-specific patterns.From its SKILL.md

Install
npx -y skills add xiaolai/docs-guardian-for-claude --skill lang-go

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.5 KB, as published. Nobody here has run it

Go Language Adapter

Public API Detection

Go uses capitalization as the visibility mechanism. A symbol is public (exported) if:

  1. Its name starts with an uppercase letter
  2. It is defined at package level (not inside a function)
PatternPublic?
func ProcessData(Yes (uppercase P)
func processData(No (lowercase p)
type Config structYes
type config structNo
var MaxRetries =Yes
const DefaultTimeout =Yes

Symbol Types to Document

TypeDetectionDocumentation Expected
Functionsfunc Name( at package levelGodoc comment starting with function name
Methodsfunc (r *Receiver) Name(Godoc comment starting with method name
Typestype Name struct/interfaceGodoc comment starting with type name
Constantsconst Name = (exported)Godoc comment or inline comment
Variablesvar Name = (exported)Godoc comment
Packagepackage namePackage comment in doc.go or any file

Godoc Format

Go documentation comments must:

  1. Start with the symbol name
  2. Be a complete sentence
  3. Appear directly above the declaration (no blank line between)
// ProcessData reads input from r and returns processed results.
// It returns an error if the input is malformed.
func ProcessData(r io.Reader) ([]Result, error) {

Package Documentation

// Package auth provides user authentication and session management.
//
// It supports OAuth2, JWT, and API key authentication methods.
package auth

Prefer doc.go for package-level documentation.

Documentation Completeness Check

A Go symbol is fully documented when:

  1. Has a comment directly above it (no blank line gap)
  2. Comment starts with the symbol's name
  3. Comment is a complete sentence (ends with period)
  4. For functions: parameters and return values are described in the prose

Special Cases

  • internal/ packages: exclude from public API coverage (they are internal)
  • _test.go files: exclude (test code)
  • generated files (containing // Code generated): exclude
  • Interface methods: each method should have a comment

File Patterns

Source files: **/*.go Exclude: vendor/, *_test.go, files with // Code generated header

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.