[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79ZWKNMHT1VEZY6W886WQVG":3,"skill-same:01M79ZWKNMHT1VEZY6W886WQVG":75},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M79ZWKNMHT1VEZY6W886WQVG","go-documentation",null,"Use when writing or reviewing documentation for Go packages, types, functions, or methods. Also use proactively when creating new exported types, functions, or packages, even if the user doesn't explicitly ask about documentation. Does not cover code comments for non-exported symbols (see go-style-core).","kongnakornna\u002Fgolangapi","kongnakornna","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10528904?v=4","01M79Z5JQPPV5CWQHXS235Q9MD","Kongnakorn Jantakun","01M79Z5JRHJJJ6PR2DGQS4P985",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: go-documentation\ndescription: Use when writing or reviewing documentation for Go packages, types, functions, or methods. Also use proactively when creating new exported types, functions, or packages, even if the user doesn't explicitly ask about documentation. Does not cover code comments for non-exported symbols (see go-style-core).\nallowed-tools: Bash(bash:*)\n---\n\n# Go Documentation\n\n## Resource Routing\n\n- `scripts\u002Fcheck-docs.sh` - Run when checking exported functions, types, methods, constants, and packages for missing doc comments.\n- `scripts\u002Fcheck-docs-ast.go` - Implementation helper invoked by `check-docs.sh`; patch this when changing documentation analysis behavior.\n- `assets\u002Fdoc-template.go` - Use when starting a documented package or exported API.\n- `references\u002FCONVENTIONS.md` - Read when documenting parameters, context behavior, concurrency safety, cleanup, errors, or named results.\n- `references\u002FEXAMPLES.md` - Read when adding runnable examples or package examples.\n- `references\u002FFORMATTING.md` - Read when formatting Godoc lists, paragraphs, links, and code blocks.\n\n---\n\n## Doc Comments\n\n> **Normative**: All top-level exported names must have doc comments.\n\n### Basic Rules\n\n1. Begin with the name of the object being described\n2. An article (\"a\", \"an\", \"the\") may precede the name\n3. Use full sentences (capitalized, punctuated)\n\n```go\n\u002F\u002F A Request represents a request to run a command.\ntype Request struct { ...\n\n\u002F\u002F Encode writes the JSON encoding of req to w.\nfunc Encode(w io.Writer, req *Request) { ...\n```\n\nUnexported types\u002Ffunctions with unobvious behavior should also have doc comments.\n\n> **Validation**: After adding doc comments, run `bash scripts\u002Fcheck-docs.sh` to verify no exported symbols are missing documentation. Fix any gaps before proceeding.\n\n---\n\n## Comment Sentences\n\n> **Normative**: Documentation comments must be complete sentences.\n\n- Capitalize the first word, end with punctuation\n- Exception: may begin with uncapitalized identifier if clear\n- End-of-line comments for struct fields can be phrases\n\n---\n\n## Comment Line Length\n\n> **Advisory**: Aim for ~80 columns, but no hard limit.\n\nBreak based on punctuation. Don't split long URLs.\n\n---\n\n## Struct Documentation\n\nGroup fields with section comments. Mark optional fields with defaults:\n\n```go\ntype Options struct {\n    \u002F\u002F General setup:\n    Name  string\n    Group *FooGroup\n\n    \u002F\u002F Customization:\n    LargeGroupThreshold int \u002F\u002F optional; default: 10\n}\n```\n\n---\n\n## Package Comments\n\n> **Normative**: Every package must have exactly one package comment.\n\n```go\n\u002F\u002F Package math provides basic constants and mathematical functions.\npackage math\n```\n\n- For `main` packages, use the binary name: `\u002F\u002F The seed_generator command ...`\n- For long package comments, use a `doc.go` file\n\n---\n\n## What to Document\n\n> **Advisory**: Document non-obvious behavior, not obvious behavior.\n\n| Topic | Document when... | Skip when... |\n|-------|-----------------|--------------|\n| Parameters | Non-obvious behavior, edge cases | Restates the type signature |\n| Contexts | Behavior differs from standard cancellation | Standard `ctx.Err()` return |\n| Concurrency | Ambiguous thread safety (e.g., read that mutates) | Read-only is safe, mutation is unsafe |\n| Cleanup | Always document resource release | — |\n| Errors | Sentinel values, error types (use `*PathError`) | — |\n| Named results | Multiple params of same type, action-oriented names | Type alone is clear enough |\n\nKey principles:\n\n- Context cancellation returning `ctx.Err()` is implied — don't restate it\n- Read-only ops are assumed thread-safe; mutations assumed unsafe — don't restate\n- Always document cleanup requirements (e.g., `Call Stop to release resources`)\n- Use pointer in error type docs (`*PathError`) for correct `errors.Is`\u002F`errors.As`\n- Don't name results just to enable naked returns — clarity > brevity\n\n---\n\n## Runnable Examples\n\n> **Advisory**: Provide runnable examples in test files (`*_test.go`).\n\n```go\nfunc ExampleConfig_WriteTo() {\n    cfg := &Config{Name: \"example\"}\n    cfg.WriteTo(os.Stdout)\n    \u002F\u002F Output:\n    \u002F\u002F {\"name\": \"example\"}\n}\n```\n\nExamples appear in Godoc attached to the documented element.\n\n---\n\n## Quick Reference\n\n| Topic | Key Rule |\n|-------|----------|\n| Doc comments | Start with name, use full sentences |\n| Line length | ~80 chars, prioritize readability |\n| Package comments | One per package, above `package` clause |\n| Parameters | Document non-obvious behavior only |\n| Contexts | Document exceptions to implied behavior |\n| Concurrency | Document ambiguous thread safety |\n| Cleanup | Always document resource release |\n| Errors | Document sentinels and types (note pointer) |\n| Examples | Use runnable examples in test files |\n| Formatting | Blank lines for paragraphs, indent for code |\n\n---\n\n## Related Skills\n\n- **Naming conventions**: See [go-naming](..\u002Fgo-naming\u002FSKILL.md) when choosing names for the identifiers your doc comments describe\n- **Testing examples**: See [go-testing](..\u002Fgo-testing\u002FSKILL.md) when writing runnable `Example` test functions that appear in godoc\n- **Linting enforcement**: See [go-linting](..\u002Fgo-linting\u002FSKILL.md) when using revive or other linters to enforce doc comment presence\n- **Style principles**: See [go-style-core](..\u002Fgo-style-core\u002FSKILL.md) when balancing documentation verbosity against clarity and concision\n","# Go Documentation\n\n## Resource Routing\n\n- `scripts\u002Fcheck-docs.sh` - Run when checking exported functions, types, methods, constants, and packages for missing doc comments.\n- `scripts\u002Fcheck-docs-ast.go` - Implementation helper invoked by `check-docs.sh`; patch this when changing documentation analysis behavior.\n- `assets\u002Fdoc-template.go` - Use when starting a documented package or exported API.\n- `references\u002FCONVENTIONS.md` - Read when documenting parameters, context behavior, concurrency safety, cleanup, errors, or named results.\n- `references\u002FEXAMPLES.md` - Read when adding runnable examples or package examples.\n- `references\u002FFORMATTING.md` - Read when formatting Godoc lists, paragraphs, links, and code blocks.\n\n---\n\n## Doc Comments\n\n> **Normative**: All top-level exported names must have doc comments.\n\n### Basic Rules\n\n1. Begin with the name of the object being described\n2. An article (\"a\", \"an\", \"the\") may precede the name\n3. Use full sentences (capitalized, punctuated)\n\n```go\n\u002F\u002F A Request represents a request to run a command.\ntype Request struct { ...\n\n\u002F\u002F Encode writes the JSON encoding of req to w.\nfunc Encode(w io.Writer, req *Request) { ...\n```\n\nUnexported types\u002Ffunctions with unobvious behavior should also have doc comments.\n\n> **Validation**: After adding doc comments, run `bash scripts\u002Fcheck-docs.sh` to verify no exported symbols are missing documentation. Fix any gaps before proceeding.\n\n---\n\n## Comment Sentences\n\n> **Normative**: Documentation comments must be complete sentences.\n\n- Capitalize the first word, end with punctuation\n- Exception: may begin with uncapitalized identifier if clear\n- End-of-line comments for struct fields can be phrases\n\n---\n\n## Comment Line Length\n\n> **Advisory**: Aim for ~80 columns, but no hard limit.\n\nBreak based on punctuation. Don't split long URLs.\n\n---\n\n## Struct Documentation\n\nGroup fields with section comments. Mark optional fields with defaults:\n\n```go\ntype Options struct {\n    \u002F\u002F General setup:\n    Name  string\n    Group *FooGroup\n\n    \u002F\u002F Customization:\n    LargeGroupThreshold int \u002F\u002F optional; default: 10\n}\n```\n\n---\n\n## Package Comments\n\n> **Normative**: Every package must have exactly one package comment.\n\n```go\n\u002F\u002F Package math provides basic constants and mathematical functions.\npackage math\n```\n\n- For `main` packages, use the binary name: `\u002F\u002F The seed_generator command ...`\n- For long package comments, use a `doc.go` file\n\n---\n\n## What to Document\n\n> **Advisory**: Document non-obvious behavior, not obvious behavior.\n\n| Topic | Document when... | Skip when... |\n|-------|-----------------|--------------|\n| Parameters | Non-obvious behavior, edge cases | Restates the type signature |\n| Contexts | Behavior differs from standard cancellation | Standard `ctx.Err()` return |\n| Concurrency | Ambiguous thread safety (e.g., read that mutates) | Read-only is safe, mutation is unsafe |\n| Cleanup | Always document resource release | — |\n| Errors | Sentinel values, error types (use `*PathError`) | — |\n| Named results | Multiple params of same type, action-oriented names | Type alone is clear enough |\n\nKey principles:\n\n- Context cancellation returning `ctx.Err()` is implied — don't restate it\n- Read-only ops are assumed thread-safe; mutations assumed unsafe — don't restate\n- Always document cleanup requirements (e.g., `Call Stop to release resources`)\n- Use pointer in error type docs (`*PathError`) for correct `errors.Is`\u002F`errors.As`\n- Don't name results just to enable naked returns — clarity > brevity\n\n---\n\n## Runnable Examples\n\n> **Advisory**: Provide runnable examples in test files (`*_test.go`).\n\n```go\nfunc ExampleConfig_WriteTo() {\n    cfg := &Config{Name: \"example\"}\n    cfg.WriteTo(os.Stdout)\n    \u002F\u002F Output:\n    \u002F\u002F {\"name\": \"example\"}\n}\n```\n\nExamples appear in Godoc attached to the documented element.\n\n---\n\n## Quick Reference\n\n| Topic | Key Rule |\n|-------|----------|\n| Doc comments | Start with name, use full sentences |\n| Line length | ~80 chars, prioritize readability |\n| Package comments | One per package, above `package` clause |\n| Parameters | Document non-obvious behavior only |\n| Contexts | Document exceptions to implied behavior |\n| Concurrency | Document ambiguous thread safety |\n| Cleanup | Always document resource release |\n| Errors | Document sentinels and types (note pointer) |\n| Examples | Use runnable examples in test files |\n| Formatting | Blank lines for paragraphs, indent for code |\n\n---\n\n## Related Skills\n\n- **Naming conventions**: See [go-naming](..\u002Fgo-naming\u002FSKILL.md) when choosing names for the identifiers your doc comments describe\n- **Testing examples**: See [go-testing](..\u002Fgo-testing\u002FSKILL.md) when writing runnable `Example` test functions that appear in godoc\n- **Linting enforcement**: See [go-linting](..\u002Fgo-linting\u002FSKILL.md) when using revive or other linters to enforce doc comment presence\n- **Style principles**: See [go-style-core](..\u002Fgo-style-core\u002FSKILL.md) when balancing documentation verbosity against clarity and concision\n",{"name":5,"description":7,"allowed-tools":24},"Bash(bash:*)","main","19f4d52a98d557f3a645a2cfbbeb5bd54f28831d",".github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi","https:\u002F\u002Fgithub.com\u002Fkongnakornna","http:\u002F\u002Fcmoniot.trueddns.com:52160","Technical Skills and Expertise\r\nLanguages and Frameworks\r\nFrontend: HTML, JavaScript, TypeScript, React, Vue, Angular, Next.js\r\nBackend: Node.js,Python,Golang","2026-10-06 23:01:46",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add kongnakornna\u002Fgolangapi --skill go-documentation",{"tool":39,"command":40},"bunx","bunx skills add kongnakornna\u002Fgolangapi --skill go-documentation",{"tool":42,"command":43},"pnpm","pnpm dlx skills add kongnakornna\u002Fgolangapi --skill go-documentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002FSKILL.md",true,[47,53,59,63,67,71],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"assets\u002Fdoc-template.go","SCRIPT","脚本",1539,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Fassets\u002Fdoc-template.go",{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002FCONVENTIONS.md","REFERENCE","参考文档",7323,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Freferences\u002FCONVENTIONS.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002FEXAMPLES.md",2704,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Freferences\u002FEXAMPLES.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002FFORMATTING.md",1705,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Freferences\u002FFORMATTING.md",{"path":68,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fcheck-docs-ast.go",8669,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Fscripts\u002Fcheck-docs-ast.go",{"path":72,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Fcheck-docs.sh",1280,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-documentation\u002Fscripts\u002Fcheck-docs.sh",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7A0M9RJJ3383VEFYKABWV15","tb-writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-writing-plans\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7A0M4JKY4DEDRP1CBHT00WV","tb-using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-using-git-worktrees\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7A0KZ5HRAQAAT2KXR6146Q7","tb-test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-test-driven-development\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7A0KW92W3F18E2MRP8H62P2","tb-subagent-driven-development","Use when executing implementation plans with independent tasks in the current session","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-subagent-driven-development\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7A0KKYQCHYYRHA5J5BAP24M","tb-scrutinize","Outsider-perspective end-to-end review of a plan, PR, or code change. First questions intent and whether a simpler\u002Fmore elegant approach would achieve the same goal, then traces the actual code path (not just the diff) to verify the change does what it claims. Output is concise, actionable, and every call carries its rationale. Trigger on \u002Ftb-scrutinize and proactively whenever the user asks to review, audit, sanity-check, or get a second opinion on a plan, PR, diff, design doc, or proposed code change.","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-scrutinize\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7A0KFDR1V3RW7SW1XNHP82P","tb-requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftb-requesting-code-review\u002FSKILL.md",[],[]]