[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75XNYZD2ZPVXSWEH8WSAQRW":3,"skill-same:01M75XNYZD2ZPVXSWEH8WSAQRW":97},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M75XNYZD2ZPVXSWEH8WSAQRW","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.","sushichan044\u002Fgo-cli-sub-command-completion","sushichan044","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F71284054?v=4","01M6CD61CFDCQYW4XTQ1CF5200","Kentaro Suzuki","01M75XMZ4B4C4XMZA1WKDQQBFK",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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.4\"\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## Writing Principles\n\nApply to every piece of documentation you write or review:\n\n**Concision** — write the shortest version that carries the idea. Remove ornament and hollow transitions. Never drop facts, warnings, or user-requested depth.\n\n**Intent over paraphrase** — code shows _what_ happens; docs explain _why_ it exists, _when_ to use it, _what constraints_ apply. A comment that only restates the signature wastes the reader's time.\n\n**No invented context** — omit unsupported rationale, marketing claims (`seamlessly`, `robust`, `enterprise-grade`), or future promises. Leave gaps visible rather than filling with speculation.\n\n**Preserve meaning when editing** — keep modality intact (`must`\u002F`should`\u002F`may` are different obligations). Preserve conditions, warnings, required actions. A cleaner sentence that changes obligations is wrong.\n\n**Anti-patterns to remove on sight:** pure-paraphrase comments that start with the name but add nothing (godoc requires the name as prefix — what it forbids is stopping there), signature restatement, marketing vocabulary, groundless future claims (`future extensibility`, `easy to scale`), hollow transitions (`it's worth noting that`, `in conclusion`), template padding that adds no information.\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). Each entry answers _what changed for the reader_ — internal refactors without user-visible impact belong in commit history. Don't inflate a fixed edge case into a broad \"reliability improvement\" claim. 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## Writing Principles\n\nApply to every piece of documentation you write or review:\n\n**Concision** — write the shortest version that carries the idea. Remove ornament and hollow transitions. Never drop facts, warnings, or user-requested depth.\n\n**Intent over paraphrase** — code shows _what_ happens; docs explain _why_ it exists, _when_ to use it, _what constraints_ apply. A comment that only restates the signature wastes the reader's time.\n\n**No invented context** — omit unsupported rationale, marketing claims (`seamlessly`, `robust`, `enterprise-grade`), or future promises. Leave gaps visible rather than filling with speculation.\n\n**Preserve meaning when editing** — keep modality intact (`must`\u002F`should`\u002F`may` are different obligations). Preserve conditions, warnings, required actions. A cleaner sentence that changes obligations is wrong.\n\n**Anti-patterns to remove on sight:** pure-paraphrase comments that start with the name but add nothing (godoc requires the name as prefix — what it forbids is stopping there), signature restatement, marketing vocabulary, groundless future claims (`future extensibility`, `easy to scale`), hollow transitions (`it's worth noting that`, `in conclusion`), template padding that adds no information.\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). Each entry answers _what changed for the reader_ — internal refactors without user-visible impact belong in commit history. Don't inflate a fixed edge case into a broad \"reliability improvement\" claim. 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":24,"description":7,"allowed-tools":34,"compatibility":35,"user-invocable":36},{"author":25,"version":26,"openclaw":27},"samber","1.1.4",{"emoji":28,"install":29,"homepage":30,"requires":31},"📝",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":32},[33],"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","5bd2e2880509d8934a47694565489e55d58d3040",".agents\u002Fskills\u002Fgolang-documentation","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion","https:\u002F\u002Fgithub.com\u002Fsushichan044","A software engineer with a passion for novels and music.","2026-06-19 12:37:01",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":36},[46,49,52],{"tool":47,"command":48},"npx","npx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-documentation",{"tool":50,"command":51},"bunx","bunx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-documentation",{"tool":53,"command":54},"pnpm","pnpm dlx skills add sushichan044\u002Fgo-cli-sub-command-completion --skill golang-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002FSKILL.md",[57,63,67,71,75,81,85,89,93],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"assets\u002Ftemplates\u002FCHANGELOG.md","ASSET","资产文件",675,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FCHANGELOG.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"assets\u002Ftemplates\u002FCONTRIBUTING.md",1163,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FCONTRIBUTING.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"assets\u002Ftemplates\u002Fllms.txt",1236,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002Fllms.txt",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"assets\u002Ftemplates\u002FREADME.md",3872,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Fassets\u002Ftemplates\u002FREADME.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"evals\u002Fevals.json","REFERENCE","参考文档",31364,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Fevals\u002Fevals.json",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fapplication.md",5760,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fapplication.md",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fcode-comments.md",12899,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fcode-comments.md",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Flibrary.md",7924,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Flibrary.md",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fproject-docs.md",4228,"https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-documentation\u002Freferences\u002Fproject-docs.md",[98,105,112,119,126,133],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M75XQZ90ZTFP09ZH20ZHGG5G","golang-troubleshooting","Troubleshoot Golang programs systematically - find and fix the root cause. Use when encountering bugs, crashes, deadlocks, or unexpected behavior in Go code. Covers debugging methodology, common Go pitfalls, test-driven debugging, pprof setup and capture, Delve debugger, race detection, GODEBUG tracing, and production debugging. Start here for any 'something is wrong' situation. Not for interpreting profiles or benchmarking (→ See `samber\u002Fcc-skills-golang@golang-benchmark` skill) or applying optimization patterns (→ See `samber\u002Fcc-skills-golang@golang-performance` skill).","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-troubleshooting\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M75XQS47M7BEJHGDBYB80GV7","golang-testing","Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky\u002Fslow tests. For testify-specific APIs see `samber\u002Fcc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber\u002Fcc-skills-golang@golang-benchmark`.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-testing\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M75XQJ26PB3HX3BE2Y9PQTRH","golang-structs-interfaces","Golang struct and interface design patterns — composition, embedding, type assertions, type switches, interface segregation, dependency injection via interfaces, struct field tags, and pointer vs value receivers. Use this skill when designing Go types, defining or implementing interfaces, embedding structs or interfaces, writing type assertions or type switches, adding struct field tags for JSON\u002FYAML\u002FDB serialization, or choosing between pointer and value receivers. Also use when the user asks about \"accept interfaces, return structs\", compile-time interface checks, or composing small interfaces into larger ones.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-structs-interfaces\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M75XQDAYJ2CBD5TRWY1P9CXA","golang-stretchr-testify","Comprehensive guide to stretchr\u002Ftestify for Golang testing. Covers assert, require, mock, and suite packages in depth. Use when writing tests with testify, creating mocks, setting up test suites, or choosing between assert and require. Covers testify assertions, mock expectations, argument matchers, call verification, suite lifecycle, and advanced patterns like Eventually, JSONEq, and custom matchers. Apply when the codebase imports github.com\u002Fstretchr\u002Ftestify.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-stretchr-testify\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":19},"01M75XQ7S4862T0RMNYP9P468F","golang-spf13-cobra","Golang CLI command tree library using spf13\u002Fcobra — cobra.Command, RunE vs Run, PersistentPreRunE hook chain, Args validators (NoArgs, ExactArgs, MatchAll, custom), persistent vs local flags, command groups, ValidArgsFunction, RegisterFlagCompletionFunc, ShellCompDirective, usage\u002Fhelp template customization, man-page and markdown doc generation, and testing with SetArgs\u002FSetOut\u002FSetErr. Apply when using or adopting spf13\u002Fcobra, or when the codebase imports `github.com\u002Fspf13\u002Fcobra`. For configuration layering alongside cobra, see the `samber\u002Fcc-skills-golang@golang-spf13-viper` skill. For general CLI architecture (project layout, exit codes, signal handling, I\u002FO patterns), see `samber\u002Fcc-skills-golang@golang-cli`.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-spf13-cobra\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":19},"01M75XQ289794Z4EVRBJCGM80V","golang-security","Security best practices and vulnerability prevention for Golang. Covers injection (SQL, command, XSS), cryptography, filesystem safety, network security, cookies, secrets management, memory safety, and logging. Apply when writing, reviewing, or auditing Go code for security, or when working on any risky code involving crypto, I\u002FO, secrets management, user input handling, or authentication. Includes configuration of security tools.","https:\u002F\u002Fgithub.com\u002Fsushichan044\u002Fgo-cli-sub-command-completion\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fgolang-security\u002FSKILL.md",[],[]]