[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F1Y7E9T7S20WJVWRPCF0D4":3,"skill-same:01M6F1Y7E9T7S20WJVWRPCF0D4":126},{"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":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":63,"updatedAt":64,"install":65,"resources":77},"01M6F1Y7E9T7S20WJVWRPCF0D4","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.","luokai0\u002Fai-agent-skills-by-luo-kai","luokai0","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F266954973?v=4","01M6E16VNT42JB8B3X3254QWJ7","luo kai","01M6E16VTFVP6S5XJF1V1MPV90",14,"MIT","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\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","cc","up","edit","write","read","projects","Bash","api","writing","changelog","git","code","libraries","ai coding agents","doc comments","llms","2026-11-10 10:12:30",false,"---\nname: golang-documentation\ndescription: \"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.\"\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\"\n  openclaw:\n    emoji: \"?\"\n    homepage: https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang\n    requires:\n      bins:\n        - go\n    install: []\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":54,"compatibility":55,"user-invocable":56},{"author":45,"version":46,"openclaw":47},"samber","1.1.2",{"emoji":48,"install":49,"homepage":50,"requires":51},"?",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":52},[53],"go","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,"main","4d2fb89cdfb75f3f6fd3c6c5ec9ad90ea129eb3c","ai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation",2,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai","https:\u002F\u002Fgithub.com\u002Fluokai0","a solo builder.","2026-05-06 04:29:04",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":56},[67,70,73],{"tool":68,"command":69},"npx","npx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill golang-documentation",{"tool":71,"command":72},"bunx","bunx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill golang-documentation",{"tool":74,"command":75},"pnpm","pnpm dlx skills add luokai0\u002Fai-agent-skills-by-luo-kai --skill golang-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002FSKILL.md",[78,84,88,94,98,102,106,110,114,118,122],{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"_meta.json","REFERENCE","参考文档",139,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002F_meta.json",{"path":85,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":86,"sourceHtmlUrl":87},".clawhub\u002Forigin.json",152,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002F.clawhub\u002Forigin.json",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"assets\u002Ftemplates\u002FCHANGELOG.md","ASSET","资产文件",675,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FCHANGELOG.md",{"path":95,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":96,"sourceHtmlUrl":97},"assets\u002Ftemplates\u002FCONTRIBUTING.md",1163,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FCONTRIBUTING.md",{"path":99,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":100,"sourceHtmlUrl":101},"assets\u002Ftemplates\u002Fllms.txt",1236,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002Fllms.txt",{"path":103,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":104,"sourceHtmlUrl":105},"assets\u002Ftemplates\u002FREADME.md",3872,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FREADME.md",{"path":107,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fevals.json",28105,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Fevals\u002Fevals.json",{"path":111,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fapplication.md",5495,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Freferences\u002Fapplication.md",{"path":115,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":116,"sourceHtmlUrl":117},"references\u002Fcode-comments.md",10472,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Freferences\u002Fcode-comments.md",{"path":119,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":120,"sourceHtmlUrl":121},"references\u002Flibrary.md",6888,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Freferences\u002Flibrary.md",{"path":123,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fproject-docs.md",3975,"https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fgolang-documentation\u002Freferences\u002Fproject-docs.md",[127,153,170,192,219,243],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":39},"01M6F2SKTE208174C7S7JJCZC7","write-contracts","Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement minting', 'generate Move module', 'create token contract', 'build DAO', 'implement staking'. Ask storage questions when: 'store', 'track', 'registry', 'mapping', 'list', 'collection'.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fwrite-contracts\u002FSKILL.md",[],[26,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152],"contracts","write contracts","storage","secure","create","generate","collection","model","decision","ask","smart-contracts","selection","objects","structure","nft","token","aptos","critical","move",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":39},"01M6F2RFXJ6T9MKW0A7N7GM45B","web-search","通用网络搜索技能，支持多引擎搜索（百度、必应、DuckDuckGo），无需API密钥即可获取实时信息","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fweb-search-ex-skill\u002FSKILL.md",[],[160,161,162,163,164,165,166,167,168,169],"web","search","web search","搜索","baidu","bing","duckduckgo","百度","多引擎","internet",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":39},"01M6F2K968G1FZEZFPW2E6B222","solo-build","Execute implementation plan tasks with TDD workflow, auto-commit, and phase gates. Use when user says \"build it\", \"start building\", \"execute plan\", \"implement tasks\", \"ship it\", or references a track ID. Do NOT use for planning (use \u002Fplan) or scaffolding (use \u002Fscaffold).","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fsolo-build\u002FSKILL.md",[],[177,178,179,180,181,182,183,34,161,29,184,27,26,185,186,187,188,189,190,191],"build","solo","solo build","MCP","workflow","commit","tasks","plan","auto","references","context7","query","scaffolding","ship it","project",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":39},"01M6F2GKN39SGHSPWYB3662YC8","react-email","Use when building HTML email templates with React components, adding a visual email editor to an application using the React Email visual editor, rendering emails to HTML, or sending emails with Resend. Covers welcome emails, password resets, notifications, order confirmations, newsletters, transactional emails, and the embeddable email editor component.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Freact-email-skills\u002FSKILL.md",[],[199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218],"react","email","react email","github","editor","components","react components","component","welcome","https","notifications","password","node","use","html","resend","visual","emails","rendering","with",{"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},"01M6F2FBVGVDFSG8SSFJGXA40C","APITester Agent-Driven API Testing","Test API endpoints and document responses. Define tests in plain English, run them, get formatted results. Agent-driven Postman alternative.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fopenclaw-api-tester\u002FSKILL.md",[],[226,30,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242],"testing","api testing","driven","APITester Agent Driven API Testing","test","run","postman","results","plain english","tester","endpoints","document","get","define","tests","english","api-tester",{"skillNo":244,"name":245,"nameZh":6,"description":246,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":247,"categories":248,"keywords":249,"publishedAt":39},"01M6F273Y3NGAPVJZ608BC0G9G","hubspot-implementation-plan","Generate a phased implementation plan from a HubSpot audit report. Creates prioritized, sequenced cleanup processes with effort estimates, dependencies, and automation feasibility. Use after running \u002Fhubspot-audit.","https:\u002F\u002Fgithub.com\u002Fluokai0\u002Fai-agent-skills-by-luo-kai\u002Fblob\u002Fmain\u002Fai-agent-skills\u002F22-clawhub-skills\u002Fhubspot-implementation-plan\u002FSKILL.md",[],[184,250,251,252,253,254,255,139,256,257,258,259,260,212,261,262,218,263],"implementation","hubspot","hubspot implementation plan","automation","feasibility","cleanup","planning","report","audit","audit report","phased implementation","dependencies","processes","hubspot audit"]