[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76H6B2NCWZ2NZ37APYD4F3J":3,"skill-same:01M76H6B2NCWZ2NZ37APYD4F3J":68},{"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":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":61},"01M76H6B2NCWZ2NZ37APYD4F3J","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.","bg-szy\u002FTOP-SKILLS","bg-szy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F106576190?v=4","01M73A4E8KPV67SFXRY8XZGNBX","ShuZhiyong","01M73A4E96MQ294MHM74TZBVQD",6,"MIT","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\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, Codex or similar harness, and for projects using Golang.\nmetadata:\n  author: samber\n  version: \"1.3.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\npaths:\n  - \"**\u002F*.go\"\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**Orchestration mode:** Fan out the sub-agents described in the \"Parallelizing Documentation Work\" section (one per package, or one per doc layer\u002Ffile) for documenting or auditing documentation across a large codebase, and merge their output into the final docs. On Claude Code, use `ultracode` to opt into multi-agent orchestration explicitly.\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\n- See `samber\u002Fcc-skills-golang@golang-naming` skill for naming conventions in doc comments.\n- See `samber\u002Fcc-skills-golang@golang-testing` skill for Example test functions.\n- See `samber\u002Fcc-skills-golang@golang-project-layout` skill for where documentation files belong.\n- See `samber\u002Fcc-skills@humanizer-en-asd-ste100` skill for strict, controlled English prose (ASD-STE100) when documentation demands maximal clarity and unambiguity.\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\nFor regulated or safety-critical documentation that requires strict controlled-English prose, → See `samber\u002Fcc-skills@humanizer-en-asd-ste100` skill.\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 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, covering prerequisites, clone, build, test, and PR process. If setup takes longer, improve the process with a Makefile, docker-compose, or devcontainer. 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, copying the template from [templates\u002FCHANGELOG.md](.\u002Fassets\u002Ftemplates\u002FCHANGELOG.md). Write each entry to answer _what changed for the reader_ — internal refactors without user-visible impact belong in commit history, and a fixed edge case never becomes 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 a Go Playground integration when one is 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; to inspect how a published package renders its docs, symbols, and examples, → See `samber\u002Fcc-skills-golang@golang-pkg-go-dev` skill.\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**Orchestration mode:** Fan out the sub-agents described in the \"Parallelizing Documentation Work\" section (one per package, or one per doc layer\u002Ffile) for documenting or auditing documentation across a large codebase, and merge their output into the final docs. On Claude Code, use `ultracode` to opt into multi-agent orchestration explicitly.\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\n- See `samber\u002Fcc-skills-golang@golang-naming` skill for naming conventions in doc comments.\n- See `samber\u002Fcc-skills-golang@golang-testing` skill for Example test functions.\n- See `samber\u002Fcc-skills-golang@golang-project-layout` skill for where documentation files belong.\n- See `samber\u002Fcc-skills@humanizer-en-asd-ste100` skill for strict, controlled English prose (ASD-STE100) when documentation demands maximal clarity and unambiguity.\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\nFor regulated or safety-critical documentation that requires strict controlled-English prose, → See `samber\u002Fcc-skills@humanizer-en-asd-ste100` skill.\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 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, covering prerequisites, clone, build, test, and PR process. If setup takes longer, improve the process with a Makefile, docker-compose, or devcontainer. 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, copying the template from [templates\u002FCHANGELOG.md](.\u002Fassets\u002Ftemplates\u002FCHANGELOG.md). Write each entry to answer _what changed for the reader_ — internal refactors without user-visible impact belong in commit history, and a fixed edge case never becomes 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 a Go Playground integration when one is 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; to inspect how a published package renders its docs, symbols, and examples, → See `samber\u002Fcc-skills-golang@golang-pkg-go-dev` skill.\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,"paths":24,"license":15,"metadata":26,"description":7,"allowed-tools":36,"compatibility":37,"user-invocable":38},[25],"**\u002F*.go",{"author":27,"version":28,"openclaw":29},"samber","1.3.2",{"emoji":30,"install":31,"homepage":32,"requires":33},"📝",[],"https:\u002F\u002Fgithub.com\u002Fsamber\u002Fcc-skills-golang",{"bins":34},[35],"go","Read Edit Write Glob Grep Bash(go:*) Bash(golangci-lint:*) Bash(git:*) Agent WebFetch","Designed for Claude Code, Codex or similar harness, and for projects using Golang.",true,"master","fd76f882a04e445e899d5cfb2732f2105ea054ee","skills\u002Fmarketplace\u002Fgolang-documentation",0,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS","https:\u002F\u002Fbg-szy.github.io\u002FTOP-SKILLS\u002F","https:\u002F\u002Fgithub.com\u002Fbg-szy","https:\u002F\u002Fwww.ecust.edu.cn\u002F","a student of East China University of Science and Technology","2026-11-15 03:38:02",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":38},[51,54,57],{"tool":52,"command":53},"npx","npx skills add bg-szy\u002FTOP-SKILLS --skill golang-documentation",{"tool":55,"command":56},"bunx","bunx skills add bg-szy\u002FTOP-SKILLS --skill golang-documentation",{"tool":58,"command":59},"pnpm","pnpm dlx skills add bg-szy\u002FTOP-SKILLS --skill golang-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fgolang-documentation\u002FSKILL.md",[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"skill-report.json","REFERENCE","参考文档",97722,"https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fgolang-documentation\u002Fskill-report.json",[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7DXW9N826PKXK174PVW3038","serpmaven","Scrape Google search results (SERP) to JSON with SERP Maven (serpmaven) - a real Chrome browser on a residential proxy with sticky sessions. Run it as a CLI, a Python library, a local HTTP search API (`serve`), an MCP server or a Docker image; set the proxy login, workers, pages and cost tracking. Use when the user wants Google results, rank tracking, a self-hosted SERP API, or live Google search for an AI agent.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fserpmaven\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7DXVHSTWDV65475QEQ915M7","revnu-landing-page-audit","Find out why a landing page isn't turning visitors into signups, demos or sales. Audits one page against what the ad, post or search that sends people there promised, then checks the first screen, proof, call to action, friction and mobile. Returns at most 7 prioritized fixes, plus what is fine and what could not be checked; rewrites specific lines and fixes the page in the repo when asked. Never promises a conversion lift. Works without a Revnu account. Use when the user says or asks: \"audit my landing page\", \"why isn't this page converting\", \"review my homepage\", \"my ads get clicks but no signups\", \"people bounce from the pricing page\", \"CRO review\", \"improve conversion rate\", \"is my hero section clear\", \"roast my landing page\", \"rewrite my headline\", \"what's wrong with this page\", \"landing page feedback\", \"make the signup page convert better\". Not for SEO or AI-search audits, page speed engineering on its own, or building a new page from scratch.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-landing-page-audit\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7DXV8X2D7B3VTD4HHYYHTGR","revnu-growth-context","Write down once who buys, what they're stuck on, what it costs, what proof you have and what you've already tried, so every growth task starts from facts instead of a questionnaire. Creates or updates .agents\u002Frevnu-growth.md from the repo, the live site and the user, and imports an existing product-marketing.md. Use when the user says \"set up our marketing context\", \"who is our ideal customer\", \"write our ICP\", \"describe the product for marketing\", \"positioning doc\", \"what's our brand voice\", \"remember this about our customers\", \"log what we tried\", \"what have we learned from marketing\", \"we changed pricing, update the context\", \"update our growth notes\", \"summarize the business for the agent\", \"import my product-marketing.md\", \"start a growth doc\", or before a first marketing, SEO, outreach or launch task when no context file exists. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-growth-context\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7DXV0DGJ1G0A60PAHC6J3C5","revnu-get-listed","Get onto the third-party pages AI answers and search cite when buyers ask for the best tool in your category: \"best X\" roundups, directories, review sites, GitHub awesome lists, community threads and comparison pages. Finds which ones are cited, ranks them by fit and effort, and drafts each submission, PR or pitch by the target's own rules. Use when the user says \"get us listed\", \"which directories should we submit to\", \"how do we get into best-of lists\", \"why does ChatGPT recommend competitors and not us\", \"get mentioned in AI answers\", \"submit to awesome lists\", \"get on G2\", \"where are our competitors listed\", \"pitch listicle authors\", \"find backlink opportunities\", \"launch directories\", \"get into roundups\", \"Product Hunt alternatives\", \"where should we be listed\", \"get cited by Perplexity\". Never submits, pays or posts without a yes. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-get-listed\u002FSKILL.md",[],[],{"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":76},"01M7DXTSPMGT9D6DSS0HP9BSTA","revnu-ai-readiness-audit","Audit whether your website gives ChatGPT, Perplexity, Claude, Gemini and Google's AI Overviews something worth quoting, and fix the pages that don't. Use when the user says or asks \"is my site ready for AI search\", \"audit my site for AI answers\", \"AEO audit\", \"GEO audit\", \"why doesn't ChatGPT quote our pricing\", \"make our pages citable by AI\", \"do I need llms.txt\", \"does schema help with ChatGPT\", \"check our structured data\", \"is our content visible without JavaScript\", \"AI SEO audit\", \"optimize our homepage for AI answers\", \"LLM SEO check\", \"why does AI get our product wrong\", \"fix our site for AI Overviews\". Checks fetchability and indexability, answers in the raw HTML, entity facts, schema (including JS-injected markup), headings, dates and llms.txt, then gives at most 10 prioritised fixes and edits the repo when asked. Works without a Revnu account.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Frevnu-ai-readiness-audit\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":76},"01M7DXSZHCVTRS620GC3S97JZV","proxy-troubleshooting","Diagnose residential proxy failures, with NodeMaven's gateway as the reference - 407 with correct credentials, 406, 410, 500, a connection that hangs, ERR_TUNNEL_CONNECTION_FAILED in a browser, Playwright or Puppeteer ignoring proxy credentials, a sticky session that changes IP, geo-targeting that is silently ignored, passwords with special characters, and unexpected traffic from headless Chrome. Use when a proxy connection fails, returns the wrong location, or costs more traffic than expected.","https:\u002F\u002Fgithub.com\u002Fbg-szy\u002FTOP-SKILLS\u002Fblob\u002Fmaster\u002Fskills\u002Fmarketplace\u002Fproxy-troubleshooting\u002FSKILL.md",[],[]]