[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79Z8B5D24SGEFFKH9DCP3FY":3,"skill-same:01M79Z8B5D24SGEFFKH9DCP3FY":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79Z8B5D24SGEFFKH9DCP3FY","go-code-review",null,"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\u002Fgo-agent-skills\u002Fskills\u002F(code-quality)\u002Fgo-code-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: go-code-review\ndescription: >\n  Comprehensive code review checklist for Go projects. Evaluates code\n  quality, idiomatic patterns, error handling, naming, package structure,\n  and test coverage. Use when reviewing Go code, PRs, or before merging\n  changes. Trigger examples: \"review this code\", \"check this PR\", \"code\n  review\", \"review Go file\".\n  Not for: security audits (go-security-audit), performance analysis\n  (go-performance-review).\nuser-invocable: true\nlicense: MIT\ncompatibility: Designed for Claude Code or similar AI coding agents working on Go projects. Requires the Go toolchain. Read-only: this skill reports findings, it does not edit code.\nallowed-tools: Read Glob Grep Bash(go:*) Bash(gofmt:*) Bash(golangci-lint:*)\nmetadata:\n  author: eduardo-sl\n  version: \"1.3.1\"\n---\n\n# Go Code Review\n\nStructured code review process for Go. Reviews should be constructive, specific,\nand cite the relevant principle behind each finding.\n\n## Operating Modes\n\nPick the mode that matches the request before starting:\n\n- **Diff review** (default) — review only the changed lines plus enough\n  surrounding context to judge them. Use for PRs and working-tree changes.\n- **File\u002Fpackage review** — review the named files or packages in full,\n  including their tests.\n- **Full audit** — sweep the entire codebase. Use the strategy in\n  \"Auditing Large Codebases\" below and aggregate everything into one report.\n\n## Review Process\n\nExecute these steps in order. For each finding, classify severity:\n- 🔴 **BLOCKER** — Must fix before merge. Correctness, data loss, security.\n- 🟡 **WARNING** — Should fix. Maintainability, idiomatic Go, clarity.\n- 🟢 **SUGGESTION** — Consider improving. Style, naming, documentation.\n\n## 0. Run the Toolchain First\n\nBefore reading code manually, let the tools catch the mechanical issues\n(skip any tool that is not installed and note it in the report):\n\n```bash\ngo build .\u002F...          # it must compile\ngo vet .\u002F...            # suspicious constructs\ngolangci-lint run       # if the repo has a config\ngo test -race .\u002F...     # tests pass, no data races\n```\n\nReport tool findings alongside manual findings — a failing `go vet` is\nan automatic 🔴 BLOCKER. Never report an issue a tool already proves\nabsent.\n\n## 1. Correctness & Safety\n\n### Error Handling\n- Every error is checked. No blank identifier `_` discarding errors silently.\n- Errors are wrapped with context: `fmt.Errorf(\"fetch user %d: %w\", id, err)`.\n- Error values compared with `errors.Is()` \u002F `errors.As()`, never `==`.\n- No `panic` outside of `init()` or truly unrecoverable situations.\n- Errors handled exactly once — no log-and-return patterns.\n\n### Nil Safety\n- Pointer receivers checked before dereference when nil is a valid state.\n- Map reads guarded or use comma-ok idiom.\n- Channel operations consider closed\u002Fnil channels.\n- Slice operations check bounds where relevant.\n\n### Concurrency\n- Shared mutable state protected by `sync.Mutex` or channels.\n- No goroutine leaks — every goroutine has a clear termination path.\n- Context propagation: all blocking calls accept and respect `context.Context`.\n- `sync.WaitGroup` or `errgroup.Group` used for goroutine lifecycle.\n\n## 2. API Design\n\n- Exported functions have doc comments starting with the function name.\n- Accept interfaces, return concrete types.\n- Use functional options (`WithTimeout(d)`) over config structs for optional params.\n- Context is always the first parameter: `func Foo(ctx context.Context, ...)`.\n- Return `error` as the last return value.\n- Avoid `bool` parameters — prefer named types or options.\n\n## 3. Idiomatic Go\n\n- Uses `:=` for local variables, `var` for zero-value intent.\n- No unnecessary `else` after return\u002Fcontinue\u002Fbreak.\n- Guard clauses and early returns reduce nesting.\n- `defer` used for cleanup, placed right after resource acquisition.\n- `range` used over manual index iteration where appropriate.\n- Struct literals use field names.\n- Interfaces defined at consumer, not producer.\n\n## 4. Package Structure\n\n- Package names are short, lowercase, singular nouns.\n- No circular dependencies between packages.\n- `internal\u002F` used for non-public packages.\n- `cmd\u002F` contains main packages, one per binary.\n- Clear separation of concerns — no god packages.\n\n## 5. Testing\n\n- Test functions follow `TestXxx` naming convention.\n- Table-driven tests used for multiple input\u002Foutput combinations.\n- Test helpers use `t.Helper()` for clean stack traces.\n- No test logic in `init()` — use `TestMain` when needed.\n- Tests use `testify\u002Fassert` or `testify\u002Frequire` consistently, or stdlib only.\n- Edge cases covered: empty input, nil, zero values, max values.\n- `t.Parallel()` used where safe.\n\n## 6. Documentation\n\n- All exported types, functions, and constants have doc comments.\n- Doc comments start with the name of the entity.\n- Package-level doc comment in `doc.go` for non-trivial packages.\n- Complex algorithms or business logic have inline comments explaining *why*.\n\n## 7. Dependencies\n\n- `go.mod` has no replace directives in committed code (except monorepos).\n- No unused dependencies.\n- Dependencies are from well-maintained, reputable sources.\n- Indirect dependencies are understood and acceptable.\n\n## Auditing Large Codebases\n\nWhen the scope exceeds ~20 files, do not read everything in one linear\npass. Split the audit into independent passes:\n\n1. Enumerate packages (`go list .\u002F...`) and group them by layer\n   (handlers, services, stores, shared libraries).\n2. Run one focused pass per concern from sections 1-7 (correctness,\n   API design, idioms, structure, testing, docs, dependencies).\n3. If your environment supports delegating work to parallel sub-agents\n   or tasks, assign each pass to one — they are independent by design.\n   Otherwise run them sequentially, one concern at a time.\n4. Require every finding to cite `file.go:line` and severity so the\n   final aggregation is mechanical: merge, deduplicate, sort by severity.\n\n## Review Output Format\n\n```text\n## Code Review Summary\n\n**Files reviewed:** \u003Clist>\n**Overall assessment:** APPROVE | REQUEST CHANGES | COMMENT\n\n### Findings\n\n#### 🔴 BLOCKER: \u003Ctitle>\n- **File:** `path\u002Fto\u002Ffile.go:42`\n- **Issue:** \u003Cwhat is wrong>\n- **Why:** \u003Cwhich principle or guideline>\n- **Fix:** \u003Cconcrete suggestion>\n\n#### 🟡 WARNING: \u003Ctitle>\n...\n\n#### 🟢 SUGGESTION: \u003Ctitle>\n...\n\n### What's Done Well\n\u003Cgenuine positive observations — always include at least one>\n```\n","# Go Code Review\n\nStructured code review process for Go. Reviews should be constructive, specific,\nand cite the relevant principle behind each finding.\n\n## Operating Modes\n\nPick the mode that matches the request before starting:\n\n- **Diff review** (default) — review only the changed lines plus enough\n  surrounding context to judge them. Use for PRs and working-tree changes.\n- **File\u002Fpackage review** — review the named files or packages in full,\n  including their tests.\n- **Full audit** — sweep the entire codebase. Use the strategy in\n  \"Auditing Large Codebases\" below and aggregate everything into one report.\n\n## Review Process\n\nExecute these steps in order. For each finding, classify severity:\n- 🔴 **BLOCKER** — Must fix before merge. Correctness, data loss, security.\n- 🟡 **WARNING** — Should fix. Maintainability, idiomatic Go, clarity.\n- 🟢 **SUGGESTION** — Consider improving. Style, naming, documentation.\n\n## 0. Run the Toolchain First\n\nBefore reading code manually, let the tools catch the mechanical issues\n(skip any tool that is not installed and note it in the report):\n\n```bash\ngo build .\u002F...          # it must compile\ngo vet .\u002F...            # suspicious constructs\ngolangci-lint run       # if the repo has a config\ngo test -race .\u002F...     # tests pass, no data races\n```\n\nReport tool findings alongside manual findings — a failing `go vet` is\nan automatic 🔴 BLOCKER. Never report an issue a tool already proves\nabsent.\n\n## 1. Correctness & Safety\n\n### Error Handling\n- Every error is checked. No blank identifier `_` discarding errors silently.\n- Errors are wrapped with context: `fmt.Errorf(\"fetch user %d: %w\", id, err)`.\n- Error values compared with `errors.Is()` \u002F `errors.As()`, never `==`.\n- No `panic` outside of `init()` or truly unrecoverable situations.\n- Errors handled exactly once — no log-and-return patterns.\n\n### Nil Safety\n- Pointer receivers checked before dereference when nil is a valid state.\n- Map reads guarded or use comma-ok idiom.\n- Channel operations consider closed\u002Fnil channels.\n- Slice operations check bounds where relevant.\n\n### Concurrency\n- Shared mutable state protected by `sync.Mutex` or channels.\n- No goroutine leaks — every goroutine has a clear termination path.\n- Context propagation: all blocking calls accept and respect `context.Context`.\n- `sync.WaitGroup` or `errgroup.Group` used for goroutine lifecycle.\n\n## 2. API Design\n\n- Exported functions have doc comments starting with the function name.\n- Accept interfaces, return concrete types.\n- Use functional options (`WithTimeout(d)`) over config structs for optional params.\n- Context is always the first parameter: `func Foo(ctx context.Context, ...)`.\n- Return `error` as the last return value.\n- Avoid `bool` parameters — prefer named types or options.\n\n## 3. Idiomatic Go\n\n- Uses `:=` for local variables, `var` for zero-value intent.\n- No unnecessary `else` after return\u002Fcontinue\u002Fbreak.\n- Guard clauses and early returns reduce nesting.\n- `defer` used for cleanup, placed right after resource acquisition.\n- `range` used over manual index iteration where appropriate.\n- Struct literals use field names.\n- Interfaces defined at consumer, not producer.\n\n## 4. Package Structure\n\n- Package names are short, lowercase, singular nouns.\n- No circular dependencies between packages.\n- `internal\u002F` used for non-public packages.\n- `cmd\u002F` contains main packages, one per binary.\n- Clear separation of concerns — no god packages.\n\n## 5. Testing\n\n- Test functions follow `TestXxx` naming convention.\n- Table-driven tests used for multiple input\u002Foutput combinations.\n- Test helpers use `t.Helper()` for clean stack traces.\n- No test logic in `init()` — use `TestMain` when needed.\n- Tests use `testify\u002Fassert` or `testify\u002Frequire` consistently, or stdlib only.\n- Edge cases covered: empty input, nil, zero values, max values.\n- `t.Parallel()` used where safe.\n\n## 6. Documentation\n\n- All exported types, functions, and constants have doc comments.\n- Doc comments start with the name of the entity.\n- Package-level doc comment in `doc.go` for non-trivial packages.\n- Complex algorithms or business logic have inline comments explaining *why*.\n\n## 7. Dependencies\n\n- `go.mod` has no replace directives in committed code (except monorepos).\n- No unused dependencies.\n- Dependencies are from well-maintained, reputable sources.\n- Indirect dependencies are understood and acceptable.\n\n## Auditing Large Codebases\n\nWhen the scope exceeds ~20 files, do not read everything in one linear\npass. Split the audit into independent passes:\n\n1. Enumerate packages (`go list .\u002F...`) and group them by layer\n   (handlers, services, stores, shared libraries).\n2. Run one focused pass per concern from sections 1-7 (correctness,\n   API design, idioms, structure, testing, docs, dependencies).\n3. If your environment supports delegating work to parallel sub-agents\n   or tasks, assign each pass to one — they are independent by design.\n   Otherwise run them sequentially, one concern at a time.\n4. Require every finding to cite `file.go:line` and severity so the\n   final aggregation is mechanical: merge, deduplicate, sort by severity.\n\n## Review Output Format\n\n```text\n## Code Review Summary\n\n**Files reviewed:** \u003Clist>\n**Overall assessment:** APPROVE | REQUEST CHANGES | COMMENT\n\n### Findings\n\n#### 🔴 BLOCKER: \u003Ctitle>\n- **File:** `path\u002Fto\u002Ffile.go:42`\n- **Issue:** \u003Cwhat is wrong>\n- **Why:** \u003Cwhich principle or guideline>\n- **Fix:** \u003Cconcrete suggestion>\n\n#### 🟡 WARNING: \u003Ctitle>\n...\n\n#### 🟢 SUGGESTION: \u003Ctitle>\n...\n\n### What's Done Well\n\u003Cgenuine positive observations — always include at least one>\n```\n",{},"main","19f4d52a98d557f3a645a2cfbbeb5bd54f28831d",".github\u002Fskills\u002Fgo-agent-skills\u002Fskills\u002F(code-quality)\u002Fgo-code-review","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":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add kongnakornna\u002Fgolangapi --skill go-code-review",{"tool":37,"command":38},"bunx","bunx skills add kongnakornna\u002Fgolangapi --skill go-code-review",{"tool":40,"command":41},"pnpm","pnpm dlx skills add kongnakornna\u002Fgolangapi --skill go-code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkongnakornna\u002Fgolangapi\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fgo-agent-skills\u002Fskills\u002F(code-quality)\u002Fgo-code-review\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"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":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"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",[],[]]