[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JGQ0R3TQK7F4XKQ9BCTJPH":3,"skill-same:01M6JGQ0R3TQK7F4XKQ9BCTJPH":115},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":69},"01M6JGQ0R3TQK7F4XKQ9BCTJPH","golang-documentation",null,"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\u002FCLIs.","muratovv\u002Fai-hats","muratovv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7502801?v=4","01M6JGCBN4KEJX012GPJVSH04T","Fedor Muratov","01M6JGCBSNMN7CW3RGTPPE0MN2",3,"MIT","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"golang documentation","documentation","golang","contributing","up","edit","write","read","projects","playground","Bash","api","writing","changelog","git","code","libraries","ai coding agents","doc comments","llms","2026-11-10 10:12:30",false,"---\nname: golang-documentation\ndescription: >-\n  Comprehensive documentation guide for Golang projects, covering godoc\n  comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests,\n  API docs, and llms.txt. Use when writing or reviewing doc comments,\n  documentation, adding code examples, setting up doc sites, or discussing\n  documentation best practices. Triggers for both libraries and\n  applications\u002FCLIs.\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.1.2\"\nallowed-tools: Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch\n---\n\n**Persona:** You are a Go technical writer and API designer. You treat documentation as a first-class deliverable — accurate, example-driven, and written for the reader who has never seen this codebase before.\n\n**Modes:**\n\n- **Write mode** — generating or filling in missing documentation (doc comments, README, CONTRIBUTING, CHANGELOG, llms.txt). Work sequentially through the checklist in Step 2, or parallelize across packages\u002Ffiles using sub-agents.\n- **Review mode** — auditing existing documentation for completeness, accuracy, and style. Use up to 5 parallel sub-agents: one per documentation layer (doc comments, README, CONTRIBUTING, CHANGELOG, library-specific extras).\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-documentation` skill takes precedence.\n\n# Go Documentation\n\nWrite documentation that serves both humans and AI agents. Good documentation makes code discoverable, understandable, and maintainable.\n\n## Cross-References\n\nSee `samber\u002Fcc-skills-golang@golang-naming` skill for naming conventions in doc comments. See `samber\u002Fcc-skills-golang@golang-testing` skill for Example test functions. See `samber\u002Fcc-skills-golang@golang-project-layout` skill for where documentation files belong.\n\n## Step 1: Detect Project Type\n\nBefore documenting, determine the project type — it changes what documentation is needed:\n\n**Library** — no `main` package, meant to be imported by other projects:\n\n- Focus on godoc comments, `ExampleXxx` functions, playground demos, pkg.go.dev rendering\n- See [Library Documentation](.\u002Freferences\u002Flibrary.md)\n\n**Application\u002FCLI** — has `main` package, `cmd\u002F` directory, produces a binary or Docker image:\n\n- Focus on installation instructions, CLI help text, configuration docs\n- See [Application Documentation](.\u002Freferences\u002Fapplication.md)\n\n**Both apply**: function comments, README, CONTRIBUTING, CHANGELOG.\n\n**Architecture docs**: for complex projects, use the `docs\u002F` directory and design description docs.\n\n## Step 2: Documentation Checklist\n\nEvery Go project needs these (ordered by priority):\n\n| Item | Required | Library | Application |\n| --- | --- | --- | --- |\n| Doc comments on exported functions | Yes | Yes | Yes |\n| Package comment (`\u002F\u002F Package foo...`) — MUST exist | Yes | Yes | Yes |\n| README.md | Yes | Yes | Yes |\n| LICENSE | Yes | Yes | Yes |\n| Getting started \u002F installation | Yes | Yes | Yes |\n| Working code examples | Yes | Yes | Yes |\n| CONTRIBUTING.md | Recommended | Yes | Yes |\n| CHANGELOG.md or GitHub Releases | Recommended | Yes | Yes |\n| Example test functions (`ExampleXxx`) | Recommended | Yes | No |\n| Go Playground demos | Recommended | Yes | No |\n| API docs (e.g., OpenAPI) | If applicable | Maybe | Maybe |\n| Documentation website | Large projects | Maybe | Maybe |\n| llms.txt | Recommended | Yes | Yes |\n\nA private project might not need a documentation website, llms.txt, Go Playground demos...\n\n## Parallelizing Documentation Work\n\nWhen documenting a large codebase with many packages, use up to 5 parallel sub-agents (via the Agent tool) for independent tasks:\n\n- Assign each sub-agent to verify and fix doc comments in a different set of packages\n- Generate `ExampleXxx` test functions for multiple packages simultaneously\n- Generate project docs in parallel: one sub-agent per file (README, CONTRIBUTING, CHANGELOG, llms.txt)\n\n## Step 3: Function & Method Doc Comments\n\nEvery exported function and method MUST have a doc comment. Document complex internal functions too. Skip test functions.\n\nThe comment starts with the function name and a verb phrase. Focus on **why** and **when**, not restating what the code already shows. The code tells you _what_ happens — the comment should explain _why_ it exists, _when_ to use it, _what constraints_ apply, and _what can go wrong_. Include parameters, return values, error cases, and a usage example:\n\n```go\n\u002F\u002F CalculateDiscount computes the final price after applying tiered discounts.\n\u002F\u002F Discounts are applied progressively based on order quantity: each tier unlocks\n\u002F\u002F additional percentage reduction. Returns an error if the quantity is invalid or\n\u002F\u002F if the base price would result in a negative value after discount application.\n\u002F\u002F\n\u002F\u002F Parameters:\n\u002F\u002F   - basePrice: The original price before any discounts (must be non-negative)\n\u002F\u002F   - quantity: The number of units ordered (must be positive)\n\u002F\u002F   - tiers: A slice of discount tiers sorted by minimum quantity threshold\n\u002F\u002F\n\u002F\u002F Returns the final discounted price rounded to 2 decimal places.\n\u002F\u002F Returns ErrInvalidPrice if basePrice is negative.\n\u002F\u002F Returns ErrInvalidQuantity if quantity is zero or negative.\n\u002F\u002F\n\u002F\u002F Play: https:\u002F\u002Fgo.dev\u002Fplay\u002Fp\u002Fabc123XYZ\n\u002F\u002F\n\u002F\u002F Example:\n\u002F\u002F\n\u002F\u002F\ttiers := []DiscountTier{\n\u002F\u002F\t    {MinQuantity: 10, PercentOff: 5},\n\u002F\u002F\t    {MinQuantity: 50, PercentOff: 15},\n\u002F\u002F\t    {MinQuantity: 100, PercentOff: 25},\n\u002F\u002F\t}\n\u002F\u002F\tfinalPrice, err := CalculateDiscount(100.00, 75, tiers)\n\u002F\u002F\tif err != nil {\n\u002F\u002F\t    log.Fatalf(\"Discount calculation failed: %v\", err)\n\u002F\u002F\t}\n\u002F\u002F\tlog.Printf(\"Ordered 75 units at $100 each: final price = $%.2f\", finalPrice)\nfunc CalculateDiscount(basePrice float64, quantity int, tiers []DiscountTier) (float64, error) {\n    \u002F\u002F implementation\n}\n```\n\nFor the full comment format, deprecated markers, interface docs, and file-level comments, see **[Code Comments](.\u002Freferences\u002Fcode-comments.md)** — how to document packages, functions, interfaces, and when to use `Deprecated:` markers and `BUG:` notes.\n\n## Step 4: README Structure\n\nREADME SHOULD follow this exact section order. Copy the template from [templates\u002FREADME.md](.\u002Fassets\u002Ftemplates\u002FREADME.md):\n\n1. **Title** — project name as `# heading`\n2. **Badges** — shields.io pictograms (Go version, license, CI, coverage, Go Report Card...)\n3. **Summary** — 1-2 sentences explaining what the project does\n4. **Demo** — code snippet, GIF, screenshot, or video showing the project in action\n5. **Getting Started** — installation + minimal working example\n6. **Features \u002F Specification** — detailed feature list or specification (very long section)\n7. **Contributing** — link to CONTRIBUTING.md or inline if very short\n8. **Contributors** — thank contributors (badge or list)\n9. **License** — license name + link\n\nCommon badges for Go projects:\n\n```markdown\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fgo-mod\u002Fgo-version\u002F{owner}\u002F{repo})](https:\u002F\u002Fgo.dev\u002F) [![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002F{owner}\u002F{repo})](.\u002FLICENSE) [![Build Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002F{owner}\u002F{repo}\u002Ftest.yml?branch=main)](https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Factions) [![Coverage](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgithub\u002F{owner}\u002F{repo})](https:\u002F\u002Fcodecov.io\u002Fgh\u002F{owner}\u002F{repo}) [![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002F{owner}\u002F{repo})](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002F{owner}\u002F{repo}) [![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002F{owner}\u002F{repo}.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002F{owner}\u002F{repo})\n```\n\nFor the full README guidance and application-specific sections, see [Project Docs](.\u002Freferences\u002Fproject-docs.md#readme).\n\n## Step 5: CONTRIBUTING & Changelog\n\n**CONTRIBUTING.md** — Help contributors get started in under 10 minutes. Include: prerequisites, clone, build, test, PR process. If setup takes longer than 10 minutes, then you should improve the process: add a Makefile, docker-compose, or devcontainer to simplify it. See [Project Docs](.\u002Freferences\u002Fproject-docs.md#contributingmd).\n\n**Changelog** — Track changes using [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002F) format or GitHub Releases. Copy the template from [templates\u002FCHANGELOG.md](.\u002Fassets\u002Ftemplates\u002FCHANGELOG.md). See [Project Docs](.\u002Freferences\u002Fproject-docs.md#changelog).\n\n## Step 6: Library-Specific Documentation\n\nFor Go libraries, add these on top of the basics:\n\n- **Go Playground demos** — create runnable demos and link them in doc comments with `\u002F\u002F Play: https:\u002F\u002Fgo.dev\u002Fplay\u002Fp\u002Fxxx`. Use the go-playground MCP tool when available to create and share playground URLs.\n- **Example test functions** — write `func ExampleXxx()` in `_test.go` files. These are executable documentation verified by `go test`.\n- **Generous code examples** — include multiple examples in doc comments showing common use cases.\n- **godoc** — your doc comments render on [pkg.go.dev](https:\u002F\u002Fpkg.go.dev). Use `go doc` locally to preview.\n- **Documentation website** — for large libraries, consider Docusaurus or MkDocs Material with sections: Getting Started, Tutorial, How-to Guides, Reference, Explanation.\n- **Register for discoverability** — add to Context7, DeepWiki, OpenDeep, zRead. Even for private libraries.\n\nSee [Library Documentation](.\u002Freferences\u002Flibrary.md) for details.\n\n## Step 7: Application-Specific Documentation\n\nFor Go applications\u002FCLIs:\n\n- **Installation methods** — pre-built binaries (GoReleaser), `go install`, Docker images, Homebrew...\n- **CLI help text** — make `--help` comprehensive; it's the primary documentation\n- **Configuration docs** — document all env vars, config files, CLI flags\n\nSee [Application Documentation](.\u002Freferences\u002Fapplication.md) for details.\n\n## Step 8: API Documentation\n\nIf your project exposes an API:\n\n| API Style    | Format      | Tool                                         |\n| ------------ | ----------- | -------------------------------------------- |\n| REST\u002FHTTP    | OpenAPI 3.x | swaggo\u002Fswag (auto-generate from annotations) |\n| Event-driven | AsyncAPI    | Manual or code-gen                           |\n| gRPC         | Protobuf    | buf, grpc-gateway                            |\n\nPrefer auto-generation from code annotations when possible. See [Application Documentation](.\u002Freferences\u002Fapplication.md#api-documentation) for details.\n\n## Step 9: AI-Friendly Documentation\n\nMake your project consumable by AI agents:\n\n- **llms.txt** — add a `llms.txt` file at the repository root. Copy the template from [templates\u002Fllms.txt](.\u002Fassets\u002Ftemplates\u002Fllms.txt). This file gives LLMs a structured overview of your project.\n- **Structured formats** — use OpenAPI, AsyncAPI, or protobuf for machine-readable API docs.\n- **Consistent doc comments** — well-structured godoc comments are easily parsed by AI tools.\n- **Clarity** — a clear, well-structured documentation helps AI agents understand your project quickly.\n\n## Step 10: Delivery Documentation\n\nDocument how users get your project:\n\n**Libraries:**\n\n```bash\ngo get github.com\u002F{owner}\u002F{repo}\n```\n\n**Applications:**\n\n```bash\n# Pre-built binary\ncurl -sSL https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Freleases\u002Flatest\u002Fdownload\u002F{repo}-$(uname -s)-$(uname -m) -o \u002Fusr\u002Flocal\u002Fbin\u002F{repo}\n\n# From source\ngo install github.com\u002F{owner}\u002F{repo}@latest\n\n# Docker\ndocker pull {registry}\u002F{owner}\u002F{repo}:latest\n```\n\nSee [Project Docs](.\u002Freferences\u002Fproject-docs.md#delivery) for Dockerfile best practices and Homebrew tap setup.\n","**Persona:** You are a Go technical writer and API designer. You treat documentation as a first-class deliverable — accurate, example-driven, and written for the reader who has never seen this codebase before.\n\n**Modes:**\n\n- **Write mode** — generating or filling in missing documentation (doc comments, README, CONTRIBUTING, CHANGELOG, llms.txt). Work sequentially through the checklist in Step 2, or parallelize across packages\u002Ffiles using sub-agents.\n- **Review mode** — auditing existing documentation for completeness, accuracy, and style. Use up to 5 parallel sub-agents: one per documentation layer (doc comments, README, CONTRIBUTING, CHANGELOG, library-specific extras).\n\n> **Community default.** A company skill that explicitly supersedes `samber\u002Fcc-skills-golang@golang-documentation` skill takes precedence.\n\n# Go Documentation\n\nWrite documentation that serves both humans and AI agents. Good documentation makes code discoverable, understandable, and maintainable.\n\n## Cross-References\n\nSee `samber\u002Fcc-skills-golang@golang-naming` skill for naming conventions in doc comments. See `samber\u002Fcc-skills-golang@golang-testing` skill for Example test functions. See `samber\u002Fcc-skills-golang@golang-project-layout` skill for where documentation files belong.\n\n## Step 1: Detect Project Type\n\nBefore documenting, determine the project type — it changes what documentation is needed:\n\n**Library** — no `main` package, meant to be imported by other projects:\n\n- Focus on godoc comments, `ExampleXxx` functions, playground demos, pkg.go.dev rendering\n- See [Library Documentation](.\u002Freferences\u002Flibrary.md)\n\n**Application\u002FCLI** — has `main` package, `cmd\u002F` directory, produces a binary or Docker image:\n\n- Focus on installation instructions, CLI help text, configuration docs\n- See [Application Documentation](.\u002Freferences\u002Fapplication.md)\n\n**Both apply**: function comments, README, CONTRIBUTING, CHANGELOG.\n\n**Architecture docs**: for complex projects, use the `docs\u002F` directory and design description docs.\n\n## Step 2: Documentation Checklist\n\nEvery Go project needs these (ordered by priority):\n\n| Item | Required | Library | Application |\n| --- | --- | --- | --- |\n| Doc comments on exported functions | Yes | Yes | Yes |\n| Package comment (`\u002F\u002F Package foo...`) — MUST exist | Yes | Yes | Yes |\n| README.md | Yes | Yes | Yes |\n| LICENSE | Yes | Yes | Yes |\n| Getting started \u002F installation | Yes | Yes | Yes |\n| Working code examples | Yes | Yes | Yes |\n| CONTRIBUTING.md | Recommended | Yes | Yes |\n| CHANGELOG.md or GitHub Releases | Recommended | Yes | Yes |\n| Example test functions (`ExampleXxx`) | Recommended | Yes | No |\n| Go Playground demos | Recommended | Yes | No |\n| API docs (e.g., OpenAPI) | If applicable | Maybe | Maybe |\n| Documentation website | Large projects | Maybe | Maybe |\n| llms.txt | Recommended | Yes | Yes |\n\nA private project might not need a documentation website, llms.txt, Go Playground demos...\n\n## Parallelizing Documentation Work\n\nWhen documenting a large codebase with many packages, use up to 5 parallel sub-agents (via the Agent tool) for independent tasks:\n\n- Assign each sub-agent to verify and fix doc comments in a different set of packages\n- Generate `ExampleXxx` test functions for multiple packages simultaneously\n- Generate project docs in parallel: one sub-agent per file (README, CONTRIBUTING, CHANGELOG, llms.txt)\n\n## Step 3: Function & Method Doc Comments\n\nEvery exported function and method MUST have a doc comment. Document complex internal functions too. Skip test functions.\n\nThe comment starts with the function name and a verb phrase. Focus on **why** and **when**, not restating what the code already shows. The code tells you _what_ happens — the comment should explain _why_ it exists, _when_ to use it, _what constraints_ apply, and _what can go wrong_. Include parameters, return values, error cases, and a usage example:\n\n```go\n\u002F\u002F CalculateDiscount computes the final price after applying tiered discounts.\n\u002F\u002F Discounts are applied progressively based on order quantity: each tier unlocks\n\u002F\u002F additional percentage reduction. Returns an error if the quantity is invalid or\n\u002F\u002F if the base price would result in a negative value after discount application.\n\u002F\u002F\n\u002F\u002F Parameters:\n\u002F\u002F   - basePrice: The original price before any discounts (must be non-negative)\n\u002F\u002F   - quantity: The number of units ordered (must be positive)\n\u002F\u002F   - tiers: A slice of discount tiers sorted by minimum quantity threshold\n\u002F\u002F\n\u002F\u002F Returns the final discounted price rounded to 2 decimal places.\n\u002F\u002F Returns ErrInvalidPrice if basePrice is negative.\n\u002F\u002F Returns ErrInvalidQuantity if quantity is zero or negative.\n\u002F\u002F\n\u002F\u002F Play: https:\u002F\u002Fgo.dev\u002Fplay\u002Fp\u002Fabc123XYZ\n\u002F\u002F\n\u002F\u002F Example:\n\u002F\u002F\n\u002F\u002F\ttiers := []DiscountTier{\n\u002F\u002F\t    {MinQuantity: 10, PercentOff: 5},\n\u002F\u002F\t    {MinQuantity: 50, PercentOff: 15},\n\u002F\u002F\t    {MinQuantity: 100, PercentOff: 25},\n\u002F\u002F\t}\n\u002F\u002F\tfinalPrice, err := CalculateDiscount(100.00, 75, tiers)\n\u002F\u002F\tif err != nil {\n\u002F\u002F\t    log.Fatalf(\"Discount calculation failed: %v\", err)\n\u002F\u002F\t}\n\u002F\u002F\tlog.Printf(\"Ordered 75 units at $100 each: final price = $%.2f\", finalPrice)\nfunc CalculateDiscount(basePrice float64, quantity int, tiers []DiscountTier) (float64, error) {\n    \u002F\u002F implementation\n}\n```\n\nFor the full comment format, deprecated markers, interface docs, and file-level comments, see **[Code Comments](.\u002Freferences\u002Fcode-comments.md)** — how to document packages, functions, interfaces, and when to use `Deprecated:` markers and `BUG:` notes.\n\n## Step 4: README Structure\n\nREADME SHOULD follow this exact section order. Copy the template from [templates\u002FREADME.md](.\u002Fassets\u002Ftemplates\u002FREADME.md):\n\n1. **Title** — project name as `# heading`\n2. **Badges** — shields.io pictograms (Go version, license, CI, coverage, Go Report Card...)\n3. **Summary** — 1-2 sentences explaining what the project does\n4. **Demo** — code snippet, GIF, screenshot, or video showing the project in action\n5. **Getting Started** — installation + minimal working example\n6. **Features \u002F Specification** — detailed feature list or specification (very long section)\n7. **Contributing** — link to CONTRIBUTING.md or inline if very short\n8. **Contributors** — thank contributors (badge or list)\n9. **License** — license name + link\n\nCommon badges for Go projects:\n\n```markdown\n[![Go Version](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fgo-mod\u002Fgo-version\u002F{owner}\u002F{repo})](https:\u002F\u002Fgo.dev\u002F) [![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002F{owner}\u002F{repo})](.\u002FLICENSE) [![Build Status](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002F{owner}\u002F{repo}\u002Ftest.yml?branch=main)](https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Factions) [![Coverage](https:\u002F\u002Fimg.shields.io\u002Fcodecov\u002Fc\u002Fgithub\u002F{owner}\u002F{repo})](https:\u002F\u002Fcodecov.io\u002Fgh\u002F{owner}\u002F{repo}) [![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002F{owner}\u002F{repo})](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002F{owner}\u002F{repo}) [![Go Reference](https:\u002F\u002Fpkg.go.dev\u002Fbadge\u002Fgithub.com\u002F{owner}\u002F{repo}.svg)](https:\u002F\u002Fpkg.go.dev\u002Fgithub.com\u002F{owner}\u002F{repo})\n```\n\nFor the full README guidance and application-specific sections, see [Project Docs](.\u002Freferences\u002Fproject-docs.md#readme).\n\n## Step 5: CONTRIBUTING & Changelog\n\n**CONTRIBUTING.md** — Help contributors get started in under 10 minutes. Include: prerequisites, clone, build, test, PR process. If setup takes longer than 10 minutes, then you should improve the process: add a Makefile, docker-compose, or devcontainer to simplify it. See [Project Docs](.\u002Freferences\u002Fproject-docs.md#contributingmd).\n\n**Changelog** — Track changes using [Keep a Changelog](https:\u002F\u002Fkeepachangelog.com\u002F) format or GitHub Releases. Copy the template from [templates\u002FCHANGELOG.md](.\u002Fassets\u002Ftemplates\u002FCHANGELOG.md). See [Project Docs](.\u002Freferences\u002Fproject-docs.md#changelog).\n\n## Step 6: Library-Specific Documentation\n\nFor Go libraries, add these on top of the basics:\n\n- **Go Playground demos** — create runnable demos and link them in doc comments with `\u002F\u002F Play: https:\u002F\u002Fgo.dev\u002Fplay\u002Fp\u002Fxxx`. Use the go-playground MCP tool when available to create and share playground URLs.\n- **Example test functions** — write `func ExampleXxx()` in `_test.go` files. These are executable documentation verified by `go test`.\n- **Generous code examples** — include multiple examples in doc comments showing common use cases.\n- **godoc** — your doc comments render on [pkg.go.dev](https:\u002F\u002Fpkg.go.dev). Use `go doc` locally to preview.\n- **Documentation website** — for large libraries, consider Docusaurus or MkDocs Material with sections: Getting Started, Tutorial, How-to Guides, Reference, Explanation.\n- **Register for discoverability** — add to Context7, DeepWiki, OpenDeep, zRead. Even for private libraries.\n\nSee [Library Documentation](.\u002Freferences\u002Flibrary.md) for details.\n\n## Step 7: Application-Specific Documentation\n\nFor Go applications\u002FCLIs:\n\n- **Installation methods** — pre-built binaries (GoReleaser), `go install`, Docker images, Homebrew...\n- **CLI help text** — make `--help` comprehensive; it's the primary documentation\n- **Configuration docs** — document all env vars, config files, CLI flags\n\nSee [Application Documentation](.\u002Freferences\u002Fapplication.md) for details.\n\n## Step 8: API Documentation\n\nIf your project exposes an API:\n\n| API Style    | Format      | Tool                                         |\n| ------------ | ----------- | -------------------------------------------- |\n| REST\u002FHTTP    | OpenAPI 3.x | swaggo\u002Fswag (auto-generate from annotations) |\n| Event-driven | AsyncAPI    | Manual or code-gen                           |\n| gRPC         | Protobuf    | buf, grpc-gateway                            |\n\nPrefer auto-generation from code annotations when possible. See [Application Documentation](.\u002Freferences\u002Fapplication.md#api-documentation) for details.\n\n## Step 9: AI-Friendly Documentation\n\nMake your project consumable by AI agents:\n\n- **llms.txt** — add a `llms.txt` file at the repository root. Copy the template from [templates\u002Fllms.txt](.\u002Fassets\u002Ftemplates\u002Fllms.txt). This file gives LLMs a structured overview of your project.\n- **Structured formats** — use OpenAPI, AsyncAPI, or protobuf for machine-readable API docs.\n- **Consistent doc comments** — well-structured godoc comments are easily parsed by AI tools.\n- **Clarity** — a clear, well-structured documentation helps AI agents understand your project quickly.\n\n## Step 10: Delivery Documentation\n\nDocument how users get your project:\n\n**Libraries:**\n\n```bash\ngo get github.com\u002F{owner}\u002F{repo}\n```\n\n**Applications:**\n\n```bash\n# Pre-built binary\ncurl -sSL https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Freleases\u002Flatest\u002Fdownload\u002F{repo}-$(uname -s)-$(uname -m) -o \u002Fusr\u002Flocal\u002Fbin\u002F{repo}\n\n# From source\ngo install github.com\u002F{owner}\u002F{repo}@latest\n\n# Docker\ndocker pull {registry}\u002F{owner}\u002F{repo}:latest\n```\n\nSee [Project Docs](.\u002Freferences\u002Fproject-docs.md#delivery) for Dockerfile best practices and Homebrew tap setup.\n",{"name":5,"license":15,"metadata":44,"description":7,"allowed-tools":47,"compatibility":48,"user-invocable":49},{"author":45,"version":46},"samber","1.1.2","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch","Designed for Claude Code or similar AI coding agents, and for projects using Golang.",true,"master","b4819add93efbaf4d80627118ec34680406b309b","packages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation",1,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats","https:\u002F\u002Fgithub.com\u002Fmuratovv","2026-11-05 20:59:10",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":49},[59,62,65],{"tool":60,"command":61},"npx","npx skills add muratovv\u002Fai-hats --skill golang-documentation",{"tool":63,"command":64},"bunx","bunx skills add muratovv\u002Fai-hats --skill golang-documentation",{"tool":66,"command":67},"pnpm","pnpm dlx skills add muratovv\u002Fai-hats --skill golang-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002FSKILL.md",[70,76,80,84,90,95,99,103,107,111],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"assets\u002Ftemplates\u002FCHANGELOG.md","ASSET","资产文件",675,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FCHANGELOG.md",{"path":77,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":78,"sourceHtmlUrl":79},"assets\u002Ftemplates\u002Fllms.txt",1236,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002Fllms.txt",{"path":81,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":82,"sourceHtmlUrl":83},"assets\u002Ftemplates\u002FREADME.md",3876,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FREADME.md",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fevals.json","REFERENCE","参考文档",28105,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Fevals\u002Fevals.json",{"path":91,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"LICENSE","许可证",1070,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002FLICENSE",{"path":96,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":97,"sourceHtmlUrl":98},"metadata.yaml",645,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Fmetadata.yaml",{"path":100,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Fapplication.md",5495,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fapplication.md",{"path":104,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":105,"sourceHtmlUrl":106},"references\u002Fcode-comments.md",10472,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fcode-comments.md",{"path":108,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":109,"sourceHtmlUrl":110},"references\u002Flibrary.md",6888,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Flibrary.md",{"path":112,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fproject-docs.md",3975,"https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fusage\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fproject-docs.md",[116,141,166,184,207,219],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":39},"01M6PVFB1SM738R2SRSRSF7CY6","tool-evaluation-protocol","Time-bounded protocol for evaluating new tools, libraries, or methodologies before adoption. Use when evaluating a candidate dependency for the project, researching a methodology (e.g. ML\u002FLLM frameworks, testing approaches), or following up on a hype-driven recommendation.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Ftool-evaluation-protocol\u002FSKILL.md",[],[123,124,125,126,127,128,35,129,130,131,132,133,23,134,135,136,137,138,139,140],"protocol","Evaluation","tool","tool evaluation protocol","testing","ml","adoption","methodology","Tools","use","dependency","frameworks","time","project","recommendation","for","bounded","candidate",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":39},"01M6PVF7HATBEX1G7N50E2QT57","systematic-debugging","4-phase bug-fix protocol (evidence, pattern, hypothesis, verify). Use when investigating any error, failure, or unexpected behavior, handling bug reports from users or monitoring, or diagnosing test failures with non-obvious causes.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[148,149,150,151,123,152,153,154,155,156,132,157,158,159,160,161,162,163,164,165],"systematic debugging","debugging","systematic","test","monitoring","hypothesis","verify","behavior","fix","evidence","bug","reports","pattern","users","error","with","bug-fix","phase",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M6PVF3MTQN3RPF73AN34856J","skill-template","Canonical template and validation guide for ai-hats skills. Use when creating a new skill, reviewing an existing one for structural compliance, or deciding which pattern fits a new behavior.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-template\u002FSKILL.md",[],[173,174,175,176,177,155,178,132,179,160,180,181,182,138,183],"template","skill template","validation","compliance","hats","guide","new skill","structural","canonical","which","Existing",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M6PVF06SCV28QARM5MQPANC9","skill-optimization","Audit and refactor library components to eliminate redundancy and staleness. Use during periodic library maintenance, after adding multiple new skills or rules, when a role's token budget is too high, or after retrospectives identify component issues.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fskill-optimization\u002FSKILL.md",[],[191,192,193,194,195,196,197,198,199,200,132,201,202,203,204,205,206],"Optimization","skill optimization","components","component","issues","library","audit","refactor","Budget","Rules","periodic","maintenance","token","token budget","role","high",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":213,"publishedAt":39},"01M6PVEXM9717016T9MW82HDCT","silent-fallback-gate","PreToolUse hook — refuses an Edit or Write that adds an inert broad except. Use when a Python edit was blocked for a silent fallback.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fsilent-fallback-gate\u002FSKILL.md",[],[214,215,216,217,25,24,132,218,138],"gate","fallback","silent fallback gate","python","hook",{"skillNo":220,"name":221,"nameZh":6,"description":222,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":223,"categories":224,"keywords":225,"publishedAt":39},"01M6PVESM49C5NT7SB7N3F76VS","retro-to-framework","Convert an observation about agent behavior — from a retrospective or from a single incident — into a framework-level change (hook, rule, skill, skill update). Use after a retrospective identifies problems that are not project-specific, after an incident where an agent misapplied a component it had read, when CLAUDE.md band-aids accumulate (more than 3 per-project rules that could be generic), or when the same problem recurs across multiple projects.","https:\u002F\u002Fgithub.com\u002Fmuratovv\u002Fai-hats\u002Fblob\u002Fmaster\u002Fpackages\u002Fai-hats-library\u002Fsrc\u002Fai_hats_library\u002Fexperimental\u002Fusage\u002Fskills\u002Fretro-to-framework\u002FSKILL.md",[],[226,227,228,229,194,230,27,231,200,155,132,232,233,136,234,235,236,237,238,239],"framework","retro","retro to framework","change","retrospective","convert","incident","across","problem","about","more","skill update","single","generic"]