[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79ZYC42Q5Q4M4CWJC7074FX":3,"skill-same:01M79ZYC42Q5Q4M4CWJC7074FX":56},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M79ZYC42Q5Q4M4CWJC7074FX","go-style-core",null,"Use when working with Go formatting, line length, nesting, naked returns, semicolons, or core style principles. Also use when a style question isn't covered by a more specific skill, even if the user doesn't reference a specific style rule. Does not cover domain-specific patterns like error handling, naming, or testing (see specialized skills). Acts as fallback when no more specific style skill applies.","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-style-core\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: go-style-core\ndescription: Use when working with Go formatting, line length, nesting, naked returns, semicolons, or core style principles. Also use when a style question isn't covered by a more specific skill, even if the user doesn't reference a specific style rule. Does not cover domain-specific patterns like error handling, naming, or testing (see specialized skills). Acts as fallback when no more specific style skill applies.\n---\n\n# Go Style Core Principles\n\n## Resource Routing\n\n- `references\u002FPRINCIPLES.md` - Read when resolving conflicts between clarity, simplicity, concision, maintainability, and consistency.\n- `references\u002FFORMATTING.md` - Read when handling gofmt, line breaks, whitespace, comments, or semicolons.\n\n## Style Principles (Priority Order)\n\nWhen writing readable Go code, apply these principles in order of importance:\n\n### Priority Order\n\n1. **Clarity** — Can a reader understand the code without extra context?\n2. **Simplicity** — Is this the simplest way to accomplish the goal?\n3. **Concision** — Does every line earn its place?\n4. **Maintainability** — Will this be easy to modify later?\n5. **Consistency** — Does it match surrounding code and project conventions?\n\n---\n\n## Formatting\n\nRun `gofmt` — no exceptions. There is **no rigid line length limit**, but Uber suggests a soft limit of 99 characters. Break by semantics, not length — refactor rather than just wrap.\n\n---\n\n## Reduce Nesting\n\nHandle error cases and special conditions first. Return early or continue the loop to keep the \"happy path\" unindented.\n\n```go\n\u002F\u002F Bad: Deeply nested\nfor _, v := range data {\n    if v.F1 == 1 {\n        v = process(v)\n        if err := v.Call(); err == nil {\n            v.Send()\n        } else {\n            return err\n        }\n    } else {\n        log.Printf(\"Invalid v: %v\", v)\n    }\n}\n\n\u002F\u002F Good: Flat structure with early returns\nfor _, v := range data {\n    if v.F1 != 1 {\n        log.Printf(\"Invalid v: %v\", v)\n        continue\n    }\n\n    v = process(v)\n    if err := v.Call(); err != nil {\n        return err\n    }\n    v.Send()\n}\n```\n\n### Unnecessary Else\n\nIf a variable is set in both branches of an if, use default + override pattern.\n\n```go\n\u002F\u002F Bad: Setting in both branches\nvar a int\nif b {\n    a = 100\n} else {\n    a = 10\n}\n\n\u002F\u002F Good: Default + override\na := 10\nif b {\n    a = 100\n}\n```\n\n---\n\n## Naked Returns\n\nA `return` statement without arguments returns the named return values. This is\nknown as a \"naked\" return.\n\n```go\nfunc split(sum int) (x, y int) {\n    x = sum * 4 \u002F 9\n    y = sum - x\n    return \u002F\u002F returns x, y\n}\n```\n\n### Guidelines for Naked Returns\n\n- **OK in small functions**: Naked returns are fine in functions that are just a\n  handful of lines\n- **Be explicit in medium+ functions**: Once a function grows to medium size, be\n  explicit with return values for clarity\n- **Don't name results just for naked returns**: Clarity of documentation is\n  always more important than saving a line or two\n\n```go\n\u002F\u002F Good: Small function, naked return is clear\nfunc minMax(a, b int) (min, max int) {\n    if a \u003C b {\n        min, max = a, b\n    } else {\n        min, max = b, a\n    }\n    return\n}\n\n\u002F\u002F Good: Larger function, explicit return\nfunc processData(data []byte) (result []byte, err error) {\n    result = make([]byte, 0, len(data))\n\n    for _, b := range data {\n        if b == 0 {\n            return nil, errors.New(\"null byte in data\")\n        }\n        result = append(result, transform(b))\n    }\n\n    return result, nil \u002F\u002F explicit: clearer in longer functions\n}\n```\n\nSee **go-documentation** for guidance on Named Result Parameters.\n\n---\n\n## Semicolons\n\nGo's lexer automatically inserts semicolons after any line whose last token is\nan identifier, literal, or one of: `break continue fallthrough return ++ -- ) }`.\n\nThis means **opening braces must be on the same line** as the control structure:\n\n```go\n\u002F\u002F Good: brace on same line\nif i \u003C f() {\n    g()\n}\n\n\u002F\u002F Bad: brace on next line — lexer inserts semicolon after f()\nif i \u003C f()  \u002F\u002F wrong!\n{           \u002F\u002F wrong!\n    g()\n}\n```\n\nIdiomatic Go only has explicit semicolons in `for` loop clauses and to separate\nmultiple statements on a single line.\n\n---\n\n## Quick Reference\n\n| Principle | Key Question |\n|-----------|--------------|\n| Clarity | Can a reader understand what and why? |\n| Simplicity | Is this the simplest approach? |\n| Concision | Is the signal-to-noise ratio high? |\n| Maintainability | Can this be safely modified later? |\n| Consistency | Does this match surrounding code? |\n\n## Related Skills\n\n- **Naming conventions**: See [go-naming](..\u002Fgo-naming\u002FSKILL.md) when applying MixedCaps, choosing identifier names, or resolving naming debates\n- **Error flow**: See [go-error-handling](..\u002Fgo-error-handling\u002FSKILL.md) when structuring error-first guard clauses or reducing nesting via early returns\n- **Documentation**: See [go-documentation](..\u002Fgo-documentation\u002FSKILL.md) when writing doc comments, named return parameters, or package-level docs\n- **Linting enforcement**: See [go-linting](..\u002Fgo-linting\u002FSKILL.md) when automating style checks with golangci-lint or configuring CI\n- **Code review**: See [go-code-review](..\u002Fgo-code-review\u002FSKILL.md) when applying style principles during a systematic code review\n- **Logging style**: See [go-logging](..\u002Fgo-logging\u002FSKILL.md) when reviewing logging practices, choosing between log and slog, or structuring log output\n","# Go Style Core Principles\n\n## Resource Routing\n\n- `references\u002FPRINCIPLES.md` - Read when resolving conflicts between clarity, simplicity, concision, maintainability, and consistency.\n- `references\u002FFORMATTING.md` - Read when handling gofmt, line breaks, whitespace, comments, or semicolons.\n\n## Style Principles (Priority Order)\n\nWhen writing readable Go code, apply these principles in order of importance:\n\n### Priority Order\n\n1. **Clarity** — Can a reader understand the code without extra context?\n2. **Simplicity** — Is this the simplest way to accomplish the goal?\n3. **Concision** — Does every line earn its place?\n4. **Maintainability** — Will this be easy to modify later?\n5. **Consistency** — Does it match surrounding code and project conventions?\n\n---\n\n## Formatting\n\nRun `gofmt` — no exceptions. There is **no rigid line length limit**, but Uber suggests a soft limit of 99 characters. Break by semantics, not length — refactor rather than just wrap.\n\n---\n\n## Reduce Nesting\n\nHandle error cases and special conditions first. Return early or continue the loop to keep the \"happy path\" unindented.\n\n```go\n\u002F\u002F Bad: Deeply nested\nfor _, v := range data {\n    if v.F1 == 1 {\n        v = process(v)\n        if err := v.Call(); err == nil {\n            v.Send()\n        } else {\n            return err\n        }\n    } else {\n        log.Printf(\"Invalid v: %v\", v)\n    }\n}\n\n\u002F\u002F Good: Flat structure with early returns\nfor _, v := range data {\n    if v.F1 != 1 {\n        log.Printf(\"Invalid v: %v\", v)\n        continue\n    }\n\n    v = process(v)\n    if err := v.Call(); err != nil {\n        return err\n    }\n    v.Send()\n}\n```\n\n### Unnecessary Else\n\nIf a variable is set in both branches of an if, use default + override pattern.\n\n```go\n\u002F\u002F Bad: Setting in both branches\nvar a int\nif b {\n    a = 100\n} else {\n    a = 10\n}\n\n\u002F\u002F Good: Default + override\na := 10\nif b {\n    a = 100\n}\n```\n\n---\n\n## Naked Returns\n\nA `return` statement without arguments returns the named return values. This is\nknown as a \"naked\" return.\n\n```go\nfunc split(sum int) (x, y int) {\n    x = sum * 4 \u002F 9\n    y = sum - x\n    return \u002F\u002F returns x, y\n}\n```\n\n### Guidelines for Naked Returns\n\n- **OK in small functions**: Naked returns are fine in functions that are just a\n  handful of lines\n- **Be explicit in medium+ functions**: Once a function grows to medium size, be\n  explicit with return values for clarity\n- **Don't name results just for naked returns**: Clarity of documentation is\n  always more important than saving a line or two\n\n```go\n\u002F\u002F Good: Small function, naked return is clear\nfunc minMax(a, b int) (min, max int) {\n    if a \u003C b {\n        min, max = a, b\n    } else {\n        min, max = b, a\n    }\n    return\n}\n\n\u002F\u002F Good: Larger function, explicit return\nfunc processData(data []byte) (result []byte, err error) {\n    result = make([]byte, 0, len(data))\n\n    for _, b := range data {\n        if b == 0 {\n            return nil, errors.New(\"null byte in data\")\n        }\n        result = append(result, transform(b))\n    }\n\n    return result, nil \u002F\u002F explicit: clearer in longer functions\n}\n```\n\nSee **go-documentation** for guidance on Named Result Parameters.\n\n---\n\n## Semicolons\n\nGo's lexer automatically inserts semicolons after any line whose last token is\nan identifier, literal, or one of: `break continue fallthrough return ++ -- ) }`.\n\nThis means **opening braces must be on the same line** as the control structure:\n\n```go\n\u002F\u002F Good: brace on same line\nif i \u003C f() {\n    g()\n}\n\n\u002F\u002F Bad: brace on next line — lexer inserts semicolon after f()\nif i \u003C f()  \u002F\u002F wrong!\n{           \u002F\u002F wrong!\n    g()\n}\n```\n\nIdiomatic Go only has explicit semicolons in `for` loop clauses and to separate\nmultiple statements on a single line.\n\n---\n\n## Quick Reference\n\n| Principle | Key Question |\n|-----------|--------------|\n| Clarity | Can a reader understand what and why? |\n| Simplicity | Is this the simplest approach? |\n| Concision | Is the signal-to-noise ratio high? |\n| Maintainability | Can this be safely modified later? |\n| Consistency | Does this match surrounding code? |\n\n## Related Skills\n\n- **Naming conventions**: See [go-naming](..\u002Fgo-naming\u002FSKILL.md) when applying MixedCaps, choosing identifier names, or resolving naming debates\n- **Error flow**: See [go-error-handling](..\u002Fgo-error-handling\u002FSKILL.md) when structuring error-first guard clauses or reducing nesting via early returns\n- **Documentation**: See [go-documentation](..\u002Fgo-documentation\u002FSKILL.md) when writing doc comments, named return parameters, or package-level docs\n- **Linting enforcement**: See [go-linting](..\u002Fgo-linting\u002FSKILL.md) when automating style checks with golangci-lint or configuring CI\n- **Code review**: See [go-code-review](..\u002Fgo-code-review\u002FSKILL.md) when applying style principles during a systematic code review\n- **Logging style**: See [go-logging](..\u002Fgo-logging\u002FSKILL.md) when reviewing logging practices, choosing between log and slog, or structuring log output\n",{"name":5,"description":7},"main","19f4d52a98d557f3a645a2cfbbeb5bd54f28831d",".github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-style-core","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":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add kongnakornna\u002Fgolangapi --skill go-style-core",{"tool":38,"command":39},"bunx","bunx skills add kongnakornna\u002Fgolangapi --skill go-style-core",{"tool":41,"command":42},"pnpm","pnpm dlx skills add kongnakornna\u002Fgolangapi --skill go-style-core","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-style-core\u002FSKILL.md",true,[46,52],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002FFORMATTING.md","REFERENCE","参考文档",2701,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-style-core\u002Freferences\u002FFORMATTING.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002FPRINCIPLES.md",2310,"https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgolang-skills\u002Fskills\u002Fgo-style-core\u002Freferences\u002FPRINCIPLES.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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",[],[]]