From docs-guardian
Audits, generates, and formats Go documentation per Godoc conventions, with public API detection, symbol documentation rules, and completeness checks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/docs-guardian:lang-goThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Go uses capitalization as the visibility mechanism. A symbol is **public** (exported) if:
Go uses capitalization as the visibility mechanism. A symbol is public (exported) if:
| Pattern | Public? |
|---|---|
func ProcessData( | Yes (uppercase P) |
func processData( | No (lowercase p) |
type Config struct | Yes |
type config struct | No |
var MaxRetries = | Yes |
const DefaultTimeout = | Yes |
| Type | Detection | Documentation Expected |
|---|---|---|
| Functions | func Name( at package level | Godoc comment starting with function name |
| Methods | func (r *Receiver) Name( | Godoc comment starting with method name |
| Types | type Name struct/interface | Godoc comment starting with type name |
| Constants | const Name = (exported) | Godoc comment or inline comment |
| Variables | var Name = (exported) | Godoc comment |
| Package | package name | Package comment in doc.go or any file |
Go documentation comments must:
// 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 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.
A Go symbol is fully documented when:
internal/ packages: exclude from public API coverage (they are internal)_test.go files: exclude (test code)generated files (containing // Code generated): excludeSource files: **/*.go
Exclude: vendor/, *_test.go, files with // Code generated header
npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin docs-guardianFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Provides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.